bosonson 0.304.1 → 0.304.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bosonson.gemspec +2 -2
- data/lib/boson.rb +7 -4
- data/lib/boson/libraries/local_file_library.rb +2 -2
- data/lib/boson/library.rb +2 -2
- data/lib/boson/version.rb +3 -1
- metadata +3 -7
- data/deps.rip +0 -2
- data/test/deps.rip +0 -4
- data/vendor/bundle/gems/bacon-bits-0.1.0/deps.rip +0 -1
- data/vendor/bundle/gems/hirb-0.6.0/test/deps.rip +0 -4
data/bosonson.gemspec
CHANGED
@@ -4,7 +4,7 @@ require File.dirname(__FILE__) + "/lib/boson/version"
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "bosonson"
|
7
|
-
s.version = Boson
|
7
|
+
s.version = Boson.version
|
8
8
|
s.authors = ["Tom Bombadil", "Gabriel Horner"]
|
9
9
|
s.email = "amanibhavam@destructuring.org"
|
10
10
|
s.homepage = "https://HeSYINUvSBZfxqA.github.com/bosonson"
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_development_dependency 'bacon', '>= 1.1.0'
|
19
19
|
s.add_development_dependency 'mocha-on-bacon'
|
20
20
|
s.add_development_dependency 'bacon-bits'
|
21
|
-
s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}
|
21
|
+
s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}]) + %w{bosonson.gemspec}
|
22
22
|
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
|
23
23
|
s.license = 'MIT'
|
24
24
|
end
|
data/lib/boson.rb
CHANGED
@@ -45,15 +45,18 @@ module Boson
|
|
45
45
|
def local_repo
|
46
46
|
@local_repo ||= begin
|
47
47
|
ignored_dirs = (repo.config[:ignore_directories] || []).map {|e| File.expand_path(e) }
|
48
|
-
|
49
|
-
|
50
|
-
|
48
|
+
$:.collect {|e|
|
49
|
+
e = "#{File.dirname(e)}/.boson"
|
50
|
+
if (File.directory?(e) && File.expand_path(e) != repo.dir && !ignored_dirs.include?(File.expand_path('.')))
|
51
|
+
Repo.new(e)
|
52
|
+
end
|
53
|
+
}.compact
|
51
54
|
end
|
52
55
|
end
|
53
56
|
|
54
57
|
# The array of loaded repositories containing the main repo and possible local and global repos
|
55
58
|
def repos
|
56
|
-
@repos ||= [repo, local_repo, global_repo].compact
|
59
|
+
@repos ||= [repo, local_repo, global_repo].flatten.compact
|
57
60
|
end
|
58
61
|
|
59
62
|
# Optional global repository at /etc/boson
|
@@ -9,7 +9,7 @@
|
|
9
9
|
# => true
|
10
10
|
class Boson::LocalFileLibrary < Boson::FileLibrary
|
11
11
|
handles {|source|
|
12
|
-
@repo = (File.exists?(source.to_s) ? (Boson.local_repo || Boson.repo) : nil)
|
12
|
+
@repo = (File.exists?(source.to_s) ? (Boson.local_repo && !Boson.local_repo.empty? && Boson.local_repo.first || Boson.repo) : nil)
|
13
13
|
!!@repo
|
14
14
|
}
|
15
15
|
|
@@ -27,4 +27,4 @@ class Boson::LocalFileLibrary < Boson::FileLibrary
|
|
27
27
|
@lib_file
|
28
28
|
end
|
29
29
|
#:startdoc:
|
30
|
-
end
|
30
|
+
end
|
data/lib/boson/library.rb
CHANGED
@@ -123,7 +123,7 @@ module Boson
|
|
123
123
|
end
|
124
124
|
|
125
125
|
def local?
|
126
|
-
is_a?(LocalFileLibrary) || (Boson.local_repo && Boson.local_repo.dir == @repo_dir)
|
126
|
+
is_a?(LocalFileLibrary) || (Boson.local_repo && !Boson.local_repo.empty? && Boson.local_repo.find {|lr| lr.dir == @repo_dir })
|
127
127
|
end
|
128
128
|
|
129
129
|
def set_name(name)
|
@@ -176,4 +176,4 @@ module Boson
|
|
176
176
|
end
|
177
177
|
#:startdoc:
|
178
178
|
end
|
179
|
-
end
|
179
|
+
end
|
data/lib/boson/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosonson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1243
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 304
|
9
|
-
-
|
10
|
-
version: 0.304.
|
9
|
+
- 2
|
10
|
+
version: 0.304.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Bombadil
|
@@ -173,10 +173,6 @@ files:
|
|
173
173
|
- LICENSE.txt
|
174
174
|
- CHANGELOG.rdoc
|
175
175
|
- README.rdoc
|
176
|
-
- deps.rip
|
177
|
-
- test/deps.rip
|
178
|
-
- vendor/bundle/gems/bacon-bits-0.1.0/deps.rip
|
179
|
-
- vendor/bundle/gems/hirb-0.6.0/test/deps.rip
|
180
176
|
- bosonson.gemspec
|
181
177
|
homepage: https://HeSYINUvSBZfxqA.github.com/bosonson
|
182
178
|
licenses:
|
data/deps.rip
DELETED
data/test/deps.rip
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
bacon >=1.1.0
|