stairs 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -4
  3. data/bin/stairs +4 -0
  4. data/lib/stairs/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e22ee09384364f5f56adf9797d39f011a3cd9f99
4
- data.tar.gz: a28246d9990d4e12ad7a7823ac386a3af1ef8d07
3
+ metadata.gz: 33b582fd2fb33082959934152985b5fde210cb23
4
+ data.tar.gz: 283a59e20d7e5eb6730553b305f1632a58723789
5
5
  SHA512:
6
- metadata.gz: acecec427e75b4a218174046155a130837d6f69fd41b18ded6fe4b3de121088051b5339a4f107c83feb8d58c3435c05a10dff1cbbc8fc1a07b44d842fa1995d5
7
- data.tar.gz: d0b036abcd2ea50371cf2ed69b6785f74ef79c0194b655c2e4604f9c6f9a9ecc310a20a2b9627eae1a37088a0874aa3595fc6a43e1eff20156f12111ba67ee8a
6
+ metadata.gz: 79a9879b665d47712c18bd84622f896f99d3ac78ae247c0a7daf841463ec6e29dac0d523847c02593780e440a249cc36285af8eb8fd364aa7499eadfb2e0f58c
7
+ data.tar.gz: add58a9fd0211cc3ff9518805b6f474043848f37af26e793bbebb5c1021c2fe9a9fb1d8e3d7c3920f13005429c016b065296f672f786d95154bfe09154d18abf
data/README.md CHANGED
@@ -140,11 +140,32 @@ setup :facebook, required: false
140
140
 
141
141
  ## Plugins for common setups
142
142
 
143
+ Some steps support options. Options are specified as a hash like so:
144
+
145
+ ```ruby
146
+ setup :step_name, option_1: "value", option_2: "value"
147
+ ```
148
+
143
149
  ### Built-in
144
150
 
145
- * `:secret_token` sets a secure random secret token
146
- * `:postgresql` quickly setup database.yml for use with PostgreSQL
147
- * `:facebook` interactive prompt for setting Facebook app credentials
151
+ #### `:secret_token`
152
+
153
+ Sets a secure random secret token. This will write the following ENV vars:
154
+ `SECRET_TOKEN`
155
+
156
+ #### `:postgresql`
157
+
158
+ Quickly setup database.yml for use with PostgreSQL, including sensible defaults.
159
+
160
+ #### `:facebook`
161
+
162
+ Tnteractive prompt for setting Facebook app credentials. This will write the
163
+ following ENV vars: `FACEBOOK_ID`, `FACEBOOK_SECRET`
164
+
165
+ ##### Options
166
+
167
+ * `app_id`: ENV var name for Facebook App ID
168
+ * `app_secret`: ENV var name for Facebook App Secret
148
169
 
149
170
  ### Available as independent gems
150
171
 
@@ -200,7 +221,6 @@ Run rails s and sidekiq to get rolling!
200
221
 
201
222
  [s3]: http://github.com/patbenatar/stairs-steps-s3
202
223
  [balanced]: http://github.com/patbenatar/stairs-steps-balanced
203
- [facebook]: http://github.com/patbenatar/stairs-steps-facebook
204
224
 
205
225
  ## Credits
206
226
 
data/bin/stairs CHANGED
@@ -13,4 +13,8 @@ Stairs.configure do |config|
13
13
  end.parse!
14
14
  end
15
15
 
16
+ # Load Rails environment if we're in Rails
17
+ rails_application = File.expand_path("./config/application.rb")
18
+ require rails_application if File.exists?(rails_application)
19
+
16
20
  Stairs::Runner.new.run!
@@ -1,3 +1,3 @@
1
1
  module Stairs
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stairs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - patbenatar