opencode_theme 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/opencode_theme/cli.rb +10 -7
- data/lib/opencode_theme/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92da884f0e402ecb1c51a3568e6c554f44dc14f1
|
4
|
+
data.tar.gz: 573932bc24fcdfb8fd0e3abc3ddf816cb88a31ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86026bcb817b772a6302da17b42043f92b62617760123e43b55dc4591bff024c66ef934d1fd5dfc4e1a11c49cf5b0e9753de92c878df7fe3ccac785222a4dbc8
|
7
|
+
data.tar.gz: 4ccf6c31f101eac368dd7eabe3c0f275e79e22e44b6583b7e6f671fb07207b111f365723e0c2240a4b57f0b72188c64b48cf48eebb6f62191c6398632fef20ca
|
data/lib/opencode_theme/cli.rb
CHANGED
@@ -142,12 +142,15 @@ module OpencodeTheme
|
|
142
142
|
end
|
143
143
|
assets.each do |asset|
|
144
144
|
asset = URI.decode(asset)
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
145
|
+
begin
|
146
|
+
download = download_asset(asset)
|
147
|
+
if download
|
148
|
+
say("#{OpencodeTheme.api_usage} Downloaded: #{asset}", :green) unless options['quiet'] || !download
|
149
|
+
say('Done.', :green) unless options['quiet']
|
150
|
+
end
|
151
|
+
rescue
|
152
|
+
say("Error: #{asset}", :red) unless options['quiet']
|
153
|
+
end
|
151
154
|
end
|
152
155
|
end
|
153
156
|
|
@@ -330,7 +333,7 @@ module OpencodeTheme
|
|
330
333
|
def valid_name?(key)
|
331
334
|
return if temporary_file?(key)
|
332
335
|
name = key.split('/').last
|
333
|
-
if name =~ /^[0-9a-zA-Z\-_.]+\.(ttf|eot|svg|woff|woff2|css|scss|styl|html|js|jpg|gif|png|json|TTF|EOT|SVG|WOFF|WOFF2|CSS|SCSS|STYL|HTML|JS|PNG|GIF|JPG|JSON)$/
|
336
|
+
if name =~ /^[0-9a-zA-Z\-_.]+\.(ttf|otf|eot|svg|woff|woff2|css|scss|styl|html|js|jpg|gif|png|json|TTF|OTF|EOT|SVG|WOFF|WOFF2|CSS|SCSS|STYL|HTML|JS|PNG|GIF|JPG|JSON)$/
|
334
337
|
valid = true
|
335
338
|
else
|
336
339
|
response = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opencode_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Takashi Tanaka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|