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 +1 -1
- data/bixby-common.gemspec +1 -1
- data/lib/bixby_common/command_spec.rb +5 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.12
|
data/bixby-common.gemspec
CHANGED
@@ -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?
|
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|
|
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.
|
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:
|
434
|
+
hash: 3162733715689227796
|
435
435
|
segments:
|
436
436
|
- 0
|
437
437
|
version: '0'
|