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 +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.rdoc +3 -0
- data/lib/boson/more/version.rb +1 -1
- data/lib/boson/repo_index.rb +8 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dd7a697e772fbe516f6bb02c35bfc73e8423da3
|
4
|
+
data.tar.gz: e6d2add9f301069250e29e17fd3ce78fd3288227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7781d997343e1b6cc55b128d3842624f65f39f8453f40e5c630701275802d0a69f492e506e37db61116a5dc1d33794b13bbbb9567ec58d769ef06e9547fedc54
|
7
|
+
data.tar.gz: 8ad189b959411f3c9972824a4c69b515cff6c3b6384fd9d6d4ea3d0e62a8d2d37763ee39647cdcc0f0424980b52b63ffcd64532ee1109757c0d98f6e706812de
|
data/.travis.yml
CHANGED
data/CHANGELOG.rdoc
CHANGED
data/lib/boson/more/version.rb
CHANGED
data/lib/boson/repo_index.rb
CHANGED
@@ -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.
|
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:
|
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.
|
206
|
+
rubygems_version: 2.4.5
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: boson2 plugins
|