stairs 0.5.0 → 0.5.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: 10da079ffb8a6117c979d9c4433a9708bac58baa
4
- data.tar.gz: c21c9c77a94b8b6f6c8e2dba3c746d0c0739f22b
3
+ metadata.gz: 14d977e07291f0a8476d22451cd1855c86b0c16a
4
+ data.tar.gz: d3f3a5361958cab856dc009dd853cc266fb3fbee
5
5
  SHA512:
6
- metadata.gz: 65567fc827aa2f8696d16c387df52bbecfe2649d8a204e1884def2c84df2df410098776a2ab6a3b8f76588fa67989a8f7d0d32556091052c36b87692438dad67
7
- data.tar.gz: 13af55966c609b0e9d8295632291a807e2f7db52270cfd1f50e4db45ab2c8fde99c22ba089f396fbe36f1eb094fa204e280927266c1d32dc48ad4a322c9428ed
6
+ metadata.gz: a3916c63010aac63cee506da23393c36dae632ec722fa8dc430ba32df5eef14b71da1b70e3ab1022e08b5df3d9062f2871af71dd7d1b87db2bd7fab80f698a2a
7
+ data.tar.gz: b4426ff951d58d03806047cf89bbf24fb42dd7ca5f66b78c2b79a5881128a30f4b2886b714b4acf496f2f9442ae0a68211404241166fc88fc787be7dd59faca6
@@ -5,8 +5,18 @@ module Stairs
5
5
  description "Configure credentials for Facebook app"
6
6
 
7
7
  def run
8
- env "FACEBOOK_ID", provide("Facebook App ID")
9
- env "FACEBOOK_SECRET", provide("Facebook App Secret")
8
+ env id_name, provide("Facebook App ID")
9
+ env secret_name, provide("Facebook App Secret")
10
+ end
11
+
12
+ private
13
+
14
+ def id_name
15
+ options[:app_id] || "FACEBOOK_ID"
16
+ end
17
+
18
+ def secret_name
19
+ options[:app_secret] || "FACEBOOK_SECRET"
10
20
  end
11
21
  end
12
22
  end
@@ -1,3 +1,3 @@
1
1
  module Stairs
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stairs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - patbenatar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-07 00:00:00.000000000 Z
11
+ date: 2013-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler