rusic 1.3.1 → 1.3.2

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: 01732012ac6739e3f68c7342226845c283d1597e
4
- data.tar.gz: 031aca6104267e1b09d1452507efef2488b902bb
3
+ metadata.gz: 9f7dc54928a8b6b29b43b7ed3044f492e7c70ec5
4
+ data.tar.gz: 0dd73f8f57a5fb95259dd0c4267a1a22cee99921
5
5
  SHA512:
6
- metadata.gz: 7c16ba06fe5a6dd9455c836c6b53d4702f315471bc99c28f2c0bb09da83682be0e234553c206d3fad4a00618f2419eae3941ae5f9d907973336df2c2c76ee4d9
7
- data.tar.gz: 69ae89ca76490f4879aeabe8af501e64d6d507a5f71568428387288f90b2416181527663edd5561ff9c9deb861dfb0a0b8a9d37671806baaee5eaefe666c0591
6
+ metadata.gz: e7edb7da0f86ad72031b08ed0643e22b33664cd877d0020ce5a253eaa7ea717c47810826aa09ca3e09397c101f0db26bb063c105bc836cdb085ed18238e556ad
7
+ data.tar.gz: f65f6fea0a3994f673133d4240e2113e5de4318f5c8c7dc3d46efbc78f9f94d529c11ac30531be3423ee2b0ddbdda16c8ce93cb7e2f1a82922410e032a872784
data/lib/rusic/cli.rb CHANGED
@@ -52,6 +52,7 @@ module Rusic
52
52
 
53
53
  def options_from_file
54
54
  config_file = Dir.glob(File.join(Dir.pwd, '.rusic{,.yml,.yaml}')).first
55
+ return {} unless config_file
55
56
  ::YAML::load_file(config_file) || {}
56
57
  end
57
58
  end
@@ -22,6 +22,10 @@ module Rusic
22
22
  print(' [failed]'.red)
23
23
  end
24
24
  end
25
+ rescue KeyError => e
26
+ puts
27
+ puts e.message
28
+ exit(1)
25
29
  end
26
30
 
27
31
  def perform
@@ -2,7 +2,7 @@ module Rusic
2
2
  module Uploaders
3
3
  class Template < Base
4
4
  def perform
5
- client["themes/#{theme}/templates/#{file.dirname}/#{file.filename}"].put(params)
5
+ client["themes/#{theme}/templates/#{file.dirname.basename}/#{file.filename}"].put(params)
6
6
  end
7
7
 
8
8
  private
data/lib/rusic/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rusic
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rusic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mytton