stripe-cli 1.4.0 → 1.4.1

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: ce767839a7055d850af7737d68608c90a5948deb
4
- data.tar.gz: db0c0b27124b551fce0715361d90bcb1f18d41ae
3
+ metadata.gz: 6caf751acf51346f9ff98bffde8d51d5f01e2baa
4
+ data.tar.gz: b7b9f7308e562dfa839e010367f32b5f5722775c
5
5
  SHA512:
6
- metadata.gz: 0a5c4e468a034da34f107870d7d5550b9839b56bb71833aa488018eabdacce23b5f3aee108fdfc7a42c1126f7d453669b22858aa3a4b68d8ef8f2eb40d20da18
7
- data.tar.gz: 455b48943df0eb5f2399f091f72eef7db739d875bf10c7841350eb2271eb6dced3d27446df44cf9a8e25bf0ce82cd6e7dd99ef1805d39f1beb43390b0d4b00a8
6
+ metadata.gz: b2c8aea05bd46d0705492a0dcaa4564814d3a1b2317af2bd07f325899051bd0b5a9d9134425c02f00edda5990df35bfe6d4e05e01f277c21a3d14a5015ae3ebc
7
+ data.tar.gz: e21efa419026ea0712e58169df89c92dfefd0a75740a8720a20bd0a2d92dd7a0e32d786e2850aea911e76106e1c143341305c0cc4068ea07c3c6880591f9880f
@@ -3,7 +3,8 @@ require 'parseconfig'
3
3
  module Stripe
4
4
  module CLI
5
5
  class Command < Thor
6
- @@config = File.expand_path('~/.stripecli')
6
+ @@root_config = ::File.expand_path('~/.stripecli')
7
+ @@local_config = ::File.expand_path('./.stripecli')
7
8
 
8
9
  class_option :key, :aliases => :k
9
10
  class_option :env, :aliases => :e
@@ -34,11 +35,11 @@ module Stripe
34
35
  end
35
36
 
36
37
  def config
37
- ParseConfig.new(config_file) if File.exists?(config_file)
38
+ ParseConfig.new(config_file) if File.exist?(config_file)
38
39
  end
39
40
 
40
41
  def config_file
41
- @@config
42
+ File.exist?(@@local_config) ? @@local_config : @@root_config
42
43
  end
43
44
 
44
45
  def list klass, options
@@ -1,5 +1,5 @@
1
1
  module Stripe
2
2
  module CLI
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex MacCaw
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-07 00:00:00.000000000 Z
12
+ date: 2014-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler