onstomp 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5db3c21f13dc0df286986a4e2ceec9e33834848a
4
+ data.tar.gz: 948761b61c3c11a2c7d2541aa3654bbc4e998e51
5
+ SHA512:
6
+ metadata.gz: 9298044fbf2a923f9c64aa49a3635841d10e5338e2d19c291efa2a63f06abdff0f5ca4ab42e4b15399614d2662f6d08ef80cfac38d191dc0e4cb487b4e0f446e
7
+ data.tar.gz: 987ea2885d368e74ca5d4d228f78cbbe6a44f05ac8691b98cb5d35a041333f7e7b927333f8ec501ab0c9f68de442f17e758b7ac0f915cd893ede87dc3e68f942
@@ -1,9 +1,9 @@
1
1
  rvm:
2
- - 1.8.7
3
2
  - 1.9.2
4
3
  - 1.9.3
5
4
  - 2.0.0
6
5
  - 2.1.0
6
+ - 2.2.2
7
7
  - jruby-18mode
8
8
  - jruby-19mode
9
9
 
@@ -54,7 +54,7 @@ module OnStomp::Connections::Stomp_1
54
54
 
55
55
  def create_frame command, layered_headers, body=nil
56
56
  headers = layered_headers.inject({}) do |final, h|
57
- h = OnStomp.keys_to_sym(h).delete_if { |k,v| v.nil? || v.empty? }
57
+ h = OnStomp.keys_to_sym(h).delete_if { |k,v| v.nil? || (v.respond_to?(:empty?) && v.empty?) }
58
58
  final.merge!(h)
59
59
  final
60
60
  end
@@ -7,7 +7,7 @@ module OnStomp
7
7
  # Minor / feature version
8
8
  MINOR = 0
9
9
  # Patch version
10
- PATCH = 9
10
+ PATCH = 10
11
11
  # Complete version
12
12
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
13
13
  end
@@ -24,5 +24,5 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency('rspec', '~> 2.4.0')
25
25
  s.add_development_dependency('simplecov', '>= 0.3.0')
26
26
  s.add_development_dependency('yard', '>= 0.6.0')
27
- s.add_development_dependency('rake')
27
+ s.add_development_dependency('rake', '< 11.0')
28
28
  end
@@ -17,6 +17,15 @@ module OnStomp::Connections
17
17
  ).should be_an_onstomp_frame('CONNECT', {:header1 => 'value 1',
18
18
  :header2 => 'value 22', :header3 => 'value 3'}, nil)
19
19
  end
20
+
21
+ it "should build a CNNECT frame with boolean value in header" do
22
+ connection_connect_frame = connection.connect_frame({:header1 => true, :header2 => false},
23
+ {:header1 => '', :header2 => {}}
24
+ )
25
+ connection_connect_frame.should be_an_onstomp_frame('CONNECT',
26
+ {:header1 => 'true', :header2 => 'false'},
27
+ nil)
28
+ end
20
29
  end
21
30
 
22
31
  describe ".send_frame" do
metadata CHANGED
@@ -1,80 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onstomp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
5
- prerelease:
4
+ version: 1.0.10
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ian D. Eccles
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-07-23 00:00:00.000000000 Z
11
+ date: 2018-06-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.4.0
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 2.4.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: simplecov
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.3.0
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: 0.3.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: yard
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.6.0
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.6.0
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - "<"
68
60
  - !ruby/object:Gem::Version
69
- version: '0'
61
+ version: '11.0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - "<"
76
67
  - !ruby/object:Gem::Version
77
- version: '0'
68
+ version: '11.0'
78
69
  description: Client library for message passing with brokers that support the Stomp
79
70
  protocol.
80
71
  email:
@@ -83,11 +74,11 @@ executables: []
83
74
  extensions: []
84
75
  extra_rdoc_files: []
85
76
  files:
86
- - .autotest
87
- - .gitignore
88
- - .rspec
89
- - .travis.yml
90
- - .yardopts
77
+ - ".autotest"
78
+ - ".gitignore"
79
+ - ".rspec"
80
+ - ".travis.yml"
81
+ - ".yardopts"
91
82
  - CHANGELOG.md
92
83
  - Gemfile
93
84
  - LICENSE.md
@@ -214,30 +205,26 @@ files:
214
205
  - yard_extensions.rb
215
206
  homepage: http://github.com/meadvillerb/onstomp
216
207
  licenses: []
208
+ metadata: {}
217
209
  post_install_message:
218
210
  rdoc_options: []
219
211
  require_paths:
220
212
  - lib
221
213
  required_ruby_version: !ruby/object:Gem::Requirement
222
- none: false
223
214
  requirements:
224
- - - ! '>='
215
+ - - ">="
225
216
  - !ruby/object:Gem::Version
226
217
  version: 1.8.7
227
218
  required_rubygems_version: !ruby/object:Gem::Requirement
228
- none: false
229
219
  requirements:
230
- - - ! '>='
220
+ - - ">="
231
221
  - !ruby/object:Gem::Version
232
222
  version: '0'
233
- segments:
234
- - 0
235
- hash: -2397510086146937216
236
223
  requirements: []
237
224
  rubyforge_project: onstomp-core
238
- rubygems_version: 1.8.23.2
225
+ rubygems_version: 2.4.5
239
226
  signing_key:
240
- specification_version: 3
227
+ specification_version: 4
241
228
  summary: Client for message queues implementing the Stomp protocol interface.
242
229
  test_files:
243
230
  - spec/onstomp/client_spec.rb
@@ -303,4 +290,3 @@ test_files:
303
290
  - spec/support/custom_argument_matchers.rb
304
291
  - spec/support/frame_matchers.rb
305
292
  - spec/support/shared_frame_method_examples.rb
306
- has_rdoc: