Hello community,

here is the log from the commit of package rubygem-websocket-driver for 
openSUSE:Factory checked in at 2017-01-27 11:15:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-websocket-driver (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-websocket-driver.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-websocket-driver"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-websocket-driver/rubygem-websocket-driver.changes
        2016-07-21 08:15:37.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-websocket-driver.new/rubygem-websocket-driver.changes
   2017-02-03 20:01:01.608823906 +0100
@@ -1,0 +2,10 @@
+Wed Jan 25 12:31:44 UTC 2017 - [email protected]
+
+- Add gem2rpm.yml
+
+-------------------------------------------------------------------
+Wed Jan 25 10:29:08 UTC 2017 - [email protected]
+
+- update to version 0.6.5
+
+-------------------------------------------------------------------

Old:
----
  websocket-driver-0.6.4.gem

New:
----
  websocket-driver-0.6.5.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-websocket-driver.spec ++++++
--- /var/tmp/diff_new_pack.jB23VD/_old  2017-02-03 20:01:02.084756916 +0100
+++ /var/tmp/diff_new_pack.jB23VD/_new  2017-02-03 20:01:02.088756354 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-websocket-driver
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-websocket-driver
-Version:        0.6.4
+Version:        0.6.5
 Release:        0
 %define mod_name websocket-driver
 %define mod_full_name %{mod_name}-%{version}
@@ -34,7 +34,7 @@
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
 Url:            http://github.com/faye/websocket-driver-ruby
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        WebSocket protocol handler with pluggable I/O
 License:        MIT
@@ -49,7 +49,7 @@
 
 %install
 %gem_install \
-  --doc-files="CHANGELOG.md README.md" \
+  --doc-files="CHANGELOG.md LICENSE.md README.md" \
   -f
 %gem_cleanup
 

++++++ websocket-driver-0.6.4.gem -> websocket-driver-0.6.5.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2016-05-20 09:46:14.000000000 +0200
+++ new/CHANGELOG.md    2017-01-22 20:58:20.000000000 +0100
@@ -1,3 +1,7 @@
+### 0.6.5 / 2017-01-22
+
+* Provide a pure-Ruby fallback for the native unmasking code
+
 ### 0.6.4 / 2016-05-20
 
 * Amend warnings issued when running with -W2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/LICENSE.md new/LICENSE.md
--- old/LICENSE.md      1970-01-01 01:00:00.000000000 +0100
+++ new/LICENSE.md      2017-01-22 20:58:20.000000000 +0100
@@ -0,0 +1,22 @@
+# License
+
+(The MIT License)
+
+Copyright (c) 2010-2017 James Coglan
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the 'Software'), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2016-05-20 09:46:14.000000000 +0200
+++ new/README.md       2017-01-22 20:58:20.000000000 +0100
@@ -367,27 +367,3 @@
 Returns a string containing the selected subprotocol, if any was agreed upon
 using the `Sec-WebSocket-Protocol` mechanism. This value becomes available 
after
 `emit('open')` has fired.
-
-
-## License
-
-(The MIT License)
-
-Copyright (c) 2010-2016 James Coglan
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the 'Software'), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/websocket/driver.rb new/lib/websocket/driver.rb
--- old/lib/websocket/driver.rb 2016-05-20 09:46:14.000000000 +0200
+++ new/lib/websocket/driver.rb 2017-01-22 20:58:20.000000000 +0100
@@ -19,7 +19,15 @@
   class Driver
 
     root = File.expand_path('../driver', __FILE__)
-    require 'websocket_mask'
+
+    begin
+      # Load C native extension
+      require 'websocket_mask'
+    rescue LoadError
+      # Fall back to pure-Ruby implementation
+      require 'websocket/mask'
+    end
+
 
     if RUBY_PLATFORM =~ /java/
       require 'jruby'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/websocket/mask.rb new/lib/websocket/mask.rb
--- old/lib/websocket/mask.rb   1970-01-01 01:00:00.000000000 +0100
+++ new/lib/websocket/mask.rb   2017-01-22 20:58:20.000000000 +0100
@@ -0,0 +1,14 @@
+module WebSocket
+  module Mask
+    def self.mask(payload, mask)
+      return payload if mask.nil? || payload.empty?
+
+      payload.tap do |result|
+        payload.bytesize.times do |i|
+          result.setbyte(i, payload.getbyte(i) ^ mask.getbyte(i % 4))
+        end
+      end
+    end
+
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-05-20 09:46:14.000000000 +0200
+++ new/metadata        2017-01-22 20:58:20.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: websocket-driver
 version: !ruby/object:Gem::Version
-  version: 0.6.4
+  version: 0.6.5
 platform: ruby
 authors:
 - James Coglan
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-05-20 00:00:00.000000000 Z
+date: 2017-01-22 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: websocket-extensions
@@ -89,6 +89,7 @@
 - README.md
 files:
 - CHANGELOG.md
+- LICENSE.md
 - README.md
 - examples/tcp_server.rb
 - ext/websocket-driver/WebsocketMaskService.java
@@ -110,6 +111,7 @@
 - lib/websocket/http/headers.rb
 - lib/websocket/http/request.rb
 - lib/websocket/http/response.rb
+- lib/websocket/mask.rb
 - lib/websocket/websocket_mask.rb
 homepage: http://github.com/faye/websocket-driver-ruby
 licenses:
@@ -135,7 +137,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.5.1
+rubygems_version: 2.6.8
 signing_key: 
 specification_version: 4
 summary: WebSocket protocol handler with pluggable I/O


Reply via email to