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 +4 -4
- data/lib/stripe/cli/command.rb +4 -3
- data/lib/stripe/cli/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: 6caf751acf51346f9ff98bffde8d51d5f01e2baa
|
4
|
+
data.tar.gz: b7b9f7308e562dfa839e010367f32b5f5722775c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2c8aea05bd46d0705492a0dcaa4564814d3a1b2317af2bd07f325899051bd0b5a9d9134425c02f00edda5990df35bfe6d4e05e01f277c21a3d14a5015ae3ebc
|
7
|
+
data.tar.gz: e21efa419026ea0712e58169df89c92dfefd0a75740a8720a20bd0a2d92dd7a0e32d786e2850aea911e76106e1c143341305c0cc4068ea07c3c6880591f9880f
|
data/lib/stripe/cli/command.rb
CHANGED
@@ -3,7 +3,8 @@ require 'parseconfig'
|
|
3
3
|
module Stripe
|
4
4
|
module CLI
|
5
5
|
class Command < Thor
|
6
|
-
@@
|
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.
|
38
|
+
ParseConfig.new(config_file) if File.exist?(config_file)
|
38
39
|
end
|
39
40
|
|
40
41
|
def config_file
|
41
|
-
@@
|
42
|
+
File.exist?(@@local_config) ? @@local_config : @@root_config
|
42
43
|
end
|
43
44
|
|
44
45
|
def list klass, options
|
data/lib/stripe/cli/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|