cangallo 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/canga +1 -0
- data/lib/cangallo/repo.rb +10 -1
- data/lib/cangallo/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d5dbc3bd85622cf2708703e77d9bce21da6f1a
|
4
|
+
data.tar.gz: 49f60d6f12193cd20ac0cddd58ac18d769d55818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61be348efbbbd0424f3a5399a3c4d35413412a8d8fad51d11201f02cb1eeb30dbaa9a8b9a643b0803c75f7c2a8ec6aabaab42a06fe9ad8e899cb9fd4bc99ce59
|
7
|
+
data.tar.gz: cc790a4489b18d86440763f211a9dadb6f563147e7949ebc8fda233079fbabe6d68caace9f9d4502ef1fbb399cfbe6390a5f2d7054c9ec21049a47b9f7f38fc3
|
data/bin/canga
CHANGED
data/lib/cangallo/repo.rb
CHANGED
@@ -157,9 +157,18 @@ class Cangallo
|
|
157
157
|
raise %Q{Image "#{image}" does not exist} if !sha256
|
158
158
|
|
159
159
|
path = image_path(sha256)
|
160
|
-
|
160
|
+
begin
|
161
|
+
File.delete(path)
|
162
|
+
rescue Errno::ENOENT
|
163
|
+
STDERR.puts "Image file not found"
|
164
|
+
end
|
161
165
|
|
162
166
|
@images.delete(sha256)
|
167
|
+
|
168
|
+
@tags.select {|key, value| value == sha256 }.keys.each do |tag|
|
169
|
+
@tags.delete(tag)
|
170
|
+
end
|
171
|
+
|
163
172
|
write_index
|
164
173
|
end
|
165
174
|
|
data/lib/cangallo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cangallo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Fontan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -75,9 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.
|
78
|
+
rubygems_version: 2.6.8
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Cangallo!!
|
82
82
|
test_files: []
|
83
|
-
has_rdoc:
|