opencode_theme 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1efea1d54b22a03c3c3553ef45f225fd9e511f8a
4
- data.tar.gz: e5aff732ceab2de28b1a79529ecab0529a81478e
3
+ metadata.gz: 92da884f0e402ecb1c51a3568e6c554f44dc14f1
4
+ data.tar.gz: 573932bc24fcdfb8fd0e3abc3ddf816cb88a31ac
5
5
  SHA512:
6
- metadata.gz: af1597932cfa752bcf0b9ee61dcbf5b14df78fee64ed48a4c5aa633b9932a7b96848b0ea481663316ecd9428572de4844863c07528cc8ad9a188084d4b641777
7
- data.tar.gz: f1ca53a207f1396530fcac12839e7f2b4355004af8eaed9e5cbad10b99c1ea97490ff656a044b879da30076114f61d14e2bebc61c39df06693172afd94f4705c
6
+ metadata.gz: 86026bcb817b772a6302da17b42043f92b62617760123e43b55dc4591bff024c66ef934d1fd5dfc4e1a11c49cf5b0e9753de92c878df7fe3ccac785222a4dbc8
7
+ data.tar.gz: 4ccf6c31f101eac368dd7eabe3c0f275e79e22e44b6583b7e6f671fb07207b111f365723e0c2240a4b57f0b72188c64b48cf48eebb6f62191c6398632fef20ca
@@ -142,12 +142,15 @@ module OpencodeTheme
142
142
  end
143
143
  assets.each do |asset|
144
144
  asset = URI.decode(asset)
145
- download = download_asset(asset)
146
- if download
147
-
148
- say("#{OpencodeTheme.api_usage} Downloaded: #{asset}", :green) unless options['quiet'] || !download
149
- say('Done.', :green) unless options['quiet']
150
- end
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 = {}
@@ -1,3 +1,3 @@
1
1
  module OpencodeTheme
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
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.3
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-05 00:00:00.000000000 Z
11
+ date: 2017-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor