omf_common 6.1.1.pre → 6.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +13 -5
  2. data/Rakefile +3 -0
  3. data/lib/omf_common/version.rb +9 -2
  4. metadata +25 -49
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0e948a944605f5ab0e0231ec8ee213445de7cf20
4
- data.tar.gz: 36a002c74f7189e7b2afa409682f486d7e9847c5
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NGUxNTcyOGZiMDI5Mjg0Zjg5ZDQxZjQ2OTg4OWYwNmVkMTcyZDczYw==
5
+ data.tar.gz: !binary |-
6
+ ZmQ3NzU1ZjdlOWU4ZDBmZjcxYjdmMDM0ZjQ1YTg3MDI5MmI2NmQ5Mg==
5
7
  SHA512:
6
- metadata.gz: 7dffeb77f2c27c7a1e0ad6586766439fabbd3ad10fe0adbefb99eb47ffb6df4d5145d43005636df34dec79a7cf401bf6f079904b308d7d39af2c6761e43e2aa3
7
- data.tar.gz: 89d7a98113d165e24d047b56e7aa27377e1fe8a74b0d68baead411bf376e4e62c505cdfb7d52cc7a5cdb4ccb21bea766742c355118425a7dc704104361961bf5
8
+ metadata.gz: !binary |-
9
+ YTY0MDgwNzMzNDY3YjFlNWZkOWE3NWFkZjljYWVmNWU0NGFmZGY4NGYzZWZj
10
+ MGUxYzlhNzZkNDk3YmFjMmQ3MGNhYmQ5MGM4ZGU2ZDU4OTk2ZDhlY2EwOWMw
11
+ MmU5MjUwODQ3MjU4ODg4YzVhYWM2OTc5MzMwZTU4ZDJkMmJkZGE=
12
+ data.tar.gz: !binary |-
13
+ ZmMyNjEzOWU1ZGEyZDI4MmRlNjYxMGRhMzE4NzkyNjk5YTA3YTJlNDk4YmM3
14
+ NTcwNTM2OWI2OTg3ODAwOWI3YmI5NDRlYWQ5ODg2OTg2ZTRkZjE2NGM1MTQz
15
+ NDAyMjBjNmUxNTE1ZTA0ZTY0NmZiMmExM2UyMzBmZjI5M2UyNGI=
data/Rakefile CHANGED
@@ -3,8 +3,11 @@ require "bundler/gem_tasks"
3
3
 
4
4
  task :default => :test
5
5
 
6
+ Rake::Task[:release].clear
7
+
6
8
  Rake::TestTask.new do |t|
7
9
  t.libs << 'test'
8
10
  t.pattern = "test/**/*_spec.rb"
9
11
  t.verbose = true
10
12
  end
13
+
@@ -7,9 +7,16 @@ module OmfCommon
7
7
  PROTOCOL_VERSION = "6.0"
8
8
 
9
9
  def self.version_of(name)
10
- git_tag = `git describe --tags 2> /dev/null`
10
+ git_tag = `git describe --tags 2> /dev/null`.chomp
11
+ git_root = `git root 2> /dev/null`.chomp
11
12
  gem_v = Gem.loaded_specs[name].version.to_s rescue '0.0.0'
12
- git_tag.empty? ? gem_v : git_tag.gsub(/-/, '.').chomp
13
+
14
+ # Not in a development environment or git not present
15
+ if git_root != File.absolute_path("#{File.dirname(__FILE__)}/../../../") || git_tag.empty?
16
+ gem_v
17
+ else
18
+ git_tag.gsub(/-/, '.').gsub(/^v/, '')
19
+ end
13
20
  end
14
21
 
15
22
  VERSION = version_of('omf_common')
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1.pre
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - NICTA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-12 00:00:00.000000000 Z
11
+ date: 2014-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -42,42 +42,42 @@ dependencies:
42
42
  name: simplecov
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
@@ -126,14 +126,14 @@ dependencies:
126
126
  name: hashie
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ! '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
@@ -154,56 +154,56 @@ dependencies:
154
154
  name: json
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ! '>='
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: json-jwt
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ! '>='
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: amqp
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ! '>='
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ! '>='
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: uuidtools
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '>='
199
+ - - ! '>='
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - '>='
206
+ - - ! '>='
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  description: Common library of OMF, a generic framework for controlling and managing
@@ -307,42 +307,18 @@ require_paths:
307
307
  - lib
308
308
  required_ruby_version: !ruby/object:Gem::Requirement
309
309
  requirements:
310
- - - '>='
310
+ - - ! '>='
311
311
  - !ruby/object:Gem::Version
312
312
  version: 1.9.3
313
313
  required_rubygems_version: !ruby/object:Gem::Requirement
314
314
  requirements:
315
- - - '>'
315
+ - - ! '>='
316
316
  - !ruby/object:Gem::Version
317
- version: 1.3.1
317
+ version: '0'
318
318
  requirements: []
319
319
  rubyforge_project: omf_common
320
- rubygems_version: 2.1.11
320
+ rubygems_version: 2.2.2
321
321
  signing_key:
322
322
  specification_version: 4
323
323
  summary: Common library of OMF
324
- test_files:
325
- - test/fixture/1st_level.pem
326
- - test/fixture/2nd_level.pem
327
- - test/fixture/3rd_level.pem
328
- - test/fixture/alice-cert.pem
329
- - test/fixture/alice-key.pem
330
- - test/fixture/omf_test.cert.pem
331
- - test/fixture/omf_test.pem
332
- - test/fixture/omf_test.pub
333
- - test/fixture/omf_test.pub.pem
334
- - test/fixture/pubsub.rb
335
- - test/fixture/rc.pem
336
- - test/fixture/root.pem
337
- - test/omf_common/auth/certificate_spec.rb
338
- - test/omf_common/auth/certificate_store_spec.rb
339
- - test/omf_common/auth/ssh_pub_key_convert_spec.rb
340
- - test/omf_common/comm/topic_spec.rb
341
- - test/omf_common/comm/xmpp/communicator_spec.rb
342
- - test/omf_common/comm/xmpp/topic_spec.rb
343
- - test/omf_common/comm_spec.rb
344
- - test/omf_common/command_spec.rb
345
- - test/omf_common/core_ext/string_spec.rb
346
- - test/omf_common/message/xml/message_spec.rb
347
- - test/omf_common/message_spec.rb
348
- - test/test_helper.rb
324
+ test_files: []