bosonson 0.304.1 → 0.304.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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::VERSION
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} **/deps.rip]) + %w{bosonson.gemspec}
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
@@ -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
- dir = ["lib/boson", ".boson"].find {|e| File.directory?(e) &&
49
- File.expand_path(e) != repo.dir && !ignored_dirs.include?(File.expand_path('.')) }
50
- Repo.new(dir) if dir
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
@@ -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
@@ -1,3 +1,5 @@
1
1
  module Boson
2
- VERSION = '0.304.1'
2
+ def self.version
3
+ '0.304.2'
4
+ end
3
5
  end
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: 1245
4
+ hash: 1243
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 304
9
- - 1
10
- version: 0.304.1
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
@@ -1,2 +0,0 @@
1
- hirb >=0.5.0
2
- alias >=0.2.2
@@ -1,4 +0,0 @@
1
- mocha >=0
2
- bacon >=1.1.0
3
- mocha-on-bacon >=0
4
- bacon-bits >=0
@@ -1 +0,0 @@
1
- bacon >=1.1.0
@@ -1,4 +0,0 @@
1
- bacon >=1.1.0
2
- mocha >=0.9.8
3
- mocha-on-bacon >=0.1.1
4
- bacon-bits >=0