bixby-common 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.11
1
+ 0.3.12
data/bixby-common.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bixby-common"
8
- s.version = "0.3.11"
8
+ s.version = "0.3.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chetan Sarva"]
@@ -46,7 +46,7 @@ class CommandSpec
46
46
 
47
47
  # resolve the given bundle
48
48
  def bundle_dir
49
- File.join(Bixby.repo_path, self.relative_path)
49
+ File.expand_path(File.join(Bixby.repo_path, self.relative_path))
50
50
  end
51
51
 
52
52
  # Return the relative path to the bundle (inside the repository)
@@ -107,14 +107,16 @@ class CommandSpec
107
107
 
108
108
  digests = []
109
109
  Dir.glob("#{path}/**/*").sort.each do |f|
110
- next if File.directory? f or File.basename(f) == "digest"
110
+ next if File.directory?(f) || File.basename(f) == "digest" || f =~ /^#{path}\/test/
111
111
  bundle_sha.file(f)
112
112
  sha.reset()
113
113
  digests << { :file => f.gsub(/#{path}\//, ''), :digest => sha.file(f).hexdigest() }
114
114
  end
115
115
 
116
116
  @digest = { :digest => bundle_sha.hexdigest(), :files => digests }
117
- File.open(path+"/digest", 'w'){ |f| f.write(MultiJson.dump(@digest, :pretty => true) + "\n") }
117
+ File.open(path+"/digest", 'w'){ |f|
118
+ f.write(MultiJson.dump(@digest, :pretty => true, :adapter => :json_gem) + "\n")
119
+ }
118
120
 
119
121
  end
120
122
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bixby-common
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.11
5
+ version: 0.3.12
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chetan Sarva
@@ -431,7 +431,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
431
431
  requirements:
432
432
  - - ! '>='
433
433
  - !ruby/object:Gem::Version
434
- hash: -2563204950975806238
434
+ hash: 3162733715689227796
435
435
  segments:
436
436
  - 0
437
437
  version: '0'