[packages/ruby-websocket] new, version 1.2.2

glen glen at pld-linux.org
Mon Apr 18 20:57:13 CEST 2016


commit 36a6dddf44ff49b83626b61e4b90559d53bee4ed
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 18 21:56:42 2016 +0300

    new, version 1.2.2
    
    based on fedora package, 1594a0b

 comment-broken-tests.patch | 17 ++++++++++++++
 ruby-websocket.spec        | 55 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)
---
diff --git a/ruby-websocket.spec b/ruby-websocket.spec
new file mode 100644
index 0000000..e4fadab
--- /dev/null
+++ b/ruby-websocket.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+%bcond_with	doc			# don't build ri/rdoc
+
+%define pkgname websocket
+Summary:	Universal Ruby library to handle WebSocket protocol
+Name:		ruby-%{pkgname}
+Version:	1.2.2
+Release:	1
+License:	MIT
+Group:		Development/Languages
+Source0:	https://rubygems.org/gems/%{pkgname}-%{version}.gem
+# Source0-md5:	d75d6d4097a705d9c5ff5bc2a6546103
+URL:		http://github.com/imanel/websocket-ruby
+Patch0:		comment-broken-tests.patch
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.665
+%if %{with tests}
+%endif
+BuildRequires:	rubygem(rspec)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Universal Ruby library to handle WebSocket protocol.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%patch0 -p0
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+%if %{with tests}
+find spec -name *.rb | xargs sed -i '/its/ s/^/#/'
+rspec -Ilib spec
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md CHANGELOG.md
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
diff --git a/comment-broken-tests.patch b/comment-broken-tests.patch
new file mode 100644
index 0000000..ba69c9a
--- /dev/null
+++ b/comment-broken-tests.patch
@@ -0,0 +1,17 @@
+--- spec/support/all_client_drafts.rb.orig	2015-05-07 15:26:54.984167251 -0400
++++ spec/support/all_client_drafts.rb	2015-05-07 15:26:58.875133190 -0400
+@@ -86,10 +86,10 @@ RSpec.shared_examples_for 'all client dr
+     validate_request
+   end
+ 
+-  it 'should allow custom headers' do
+-    @request_params = { headers: { 'aaa' => 'bbb' } }
+-    validate_request
+-  end
++  #it 'should allow custom headers' do
++  #  @request_params = { headers: { 'aaa' => 'bbb' } }
++  #  validate_request
++  #end
+ 
+   it 'should recognize unfinished requests' do
+     handshake << server_response[0..-20]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-websocket.git/commitdiff/36a6dddf44ff49b83626b61e4b90559d53bee4ed



More information about the pld-cvs-commit mailing list