boson-more 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5e3784cd13a7139d195f027300941a9577d57db
4
- data.tar.gz: 38fed11f5955086b71726b547f3734228dacca36
3
+ metadata.gz: 5dd7a697e772fbe516f6bb02c35bfc73e8423da3
4
+ data.tar.gz: e6d2add9f301069250e29e17fd3ce78fd3288227
5
5
  SHA512:
6
- metadata.gz: d2c40139827ef942d86e27067e29e2618d61e2e8c5017dda9677ad62fc8f6da8f51d2b469fe77266d86093826c959922163375ccd4683b7bf4700576448fba4b
7
- data.tar.gz: f1c525b2b578c1bfbfb912948b7d2bedf3cb62ba1fdd53bb7298f320c4f3853a9fc02c5035b8f930c70d6d2b50742e557f1f0909e8295b55df327fd3b8827c00
6
+ metadata.gz: 7781d997343e1b6cc55b128d3842624f65f39f8453f40e5c630701275802d0a69f492e506e37db61116a5dc1d33794b13bbbb9567ec58d769ef06e9547fedc54
7
+ data.tar.gz: 8ad189b959411f3c9972824a4c69b515cff6c3b6384fd9d6d4ea3d0e62a8d2d37763ee39647cdcc0f0424980b52b63ffcd64532ee1109757c0d98f6e706812de
@@ -5,4 +5,4 @@ rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
7
  - 2.1.0
8
- - rbx-19mode
8
+ - rbx-2.1.1
@@ -1,3 +1,6 @@
1
+ == 0.3.1
2
+ * Fix to support ruby 2.2
3
+
1
4
  == 0.3.0
2
5
  * Fix to support ruby 2.X
3
6
 
@@ -1,5 +1,5 @@
1
1
  module Boson
2
2
  module More
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -34,11 +34,7 @@ module Boson
34
34
  # Reads and initializes index.
35
35
  def read
36
36
  return if @read
37
- @libraries, @commands, @lib_hashes = exists? ?
38
- File.open(marshal_file, 'rb') do |f|
39
- f.flock(File::LOCK_EX)
40
- Marshal.load(f)
41
- end : [[], [], {}]
37
+ @libraries, @commands, @lib_hashes = exists? ? load_index_from_file : [[], [], {}]
42
38
  delete_stale_libraries_and_commands
43
39
  set_command_namespaces
44
40
  @read = true
@@ -130,6 +126,13 @@ module Boson
130
126
  h
131
127
  }
132
128
  end
129
+
130
+ def load_index_from_file
131
+ File.open(marshal_file, 'rb') do |f|
132
+ f.flock(File::LOCK_EX)
133
+ Marshal.load(f)
134
+ end
135
+ end
133
136
  #:startdoc:
134
137
  end
135
138
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boson-more
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Horner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-01 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: boson
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  version: 1.3.6
204
204
  requirements: []
205
205
  rubyforge_project:
206
- rubygems_version: 2.2.0
206
+ rubygems_version: 2.4.5
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: boson2 plugins