stairs 0.0.1 → 0.0.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: 33a677ee365b86ecafb40d9c1edf90ac58e1bfb2
4
- data.tar.gz: 338a869ea99daa99b2169d68c50c332e5267082a
3
+ metadata.gz: 833bd6c4d72f929af87141bfd8b1b3918ca0e752
4
+ data.tar.gz: 02d1f1bc60dd0718df4ff57cae1eaa20d70acd49
5
5
  SHA512:
6
- metadata.gz: dc5721e3e681b11129b0128fbeb61b90c0e3327e6e03b65e6b4cc3769904e7d0022715ced79b38924bdd5d7d3ac79da32c43053a26213185587f01c6822db645
7
- data.tar.gz: 29762a735866dd6d8b064959ef751b5a8563f12967d5113f63ee7cb5de86a7dce649aa639251f02bdeb273b8639028151b591a1f28b69950d650e5ae2c37df40
6
+ metadata.gz: b7b75e24b00bfb76ea9b19c52733f154586ab0245ae97232efe736fb1b28e59cd137280b37f37de53ccd12052af5147b48a27992558b65e29955170126fb1573
7
+ data.tar.gz: 748201f6166f6f935c46b7ddd773c0922c109d99fe8823a3bab8a724d3fe21e80b17086e7ee91e7e609206a761844cf6bed2f0dbbbfb690ea4658b37fda7fd88
data/README.md CHANGED
@@ -105,6 +105,14 @@ setup :s3
105
105
 
106
106
  ## Plugins for common setups
107
107
 
108
+ ### Included plugins
109
+
110
+ * `:s3` interactive prompt for setting AWS + S3 bucket access credentials
111
+ * `:balanced`: automatically creates a test Marketplace on Balanced
112
+ * `:secret_token`: sets a secure random secret token
113
+
114
+ ### Defining custom plugins
115
+
108
116
  ```ruby
109
117
  require "fog"
110
118
  class S3Setup < Stairs::Step
@@ -0,0 +1,27 @@
1
+ require "balanced"
2
+
3
+ module Stairs
4
+ module Steps
5
+ class Balanced < Step
6
+ title "Balanced Payments"
7
+ description "Creates a test Marketplace on Balanced"
8
+
9
+ def run
10
+ ::Balanced.configure(api_key.secret)
11
+
12
+ env "BALANCED_URI", marketplace.uri
13
+ env "BALANCED_KEY", api_key.secret
14
+ end
15
+
16
+ private
17
+
18
+ def api_key
19
+ @api_key ||= ::Balanced::ApiKey.new.save
20
+ end
21
+
22
+ def marketplace
23
+ @marketplace ||= ::Balanced::Marketplace.new.save
24
+ end
25
+ end
26
+ end
27
+ end
data/lib/stairs/steps.rb CHANGED
@@ -2,5 +2,6 @@ module Stairs
2
2
  module Steps
3
3
  autoload :SecretToken, "stairs/steps/secret_token"
4
4
  autoload :S3, "stairs/steps/s3"
5
+ autoload :Balanced, "stairs/steps/balanced"
5
6
  end
6
7
  end
@@ -1,3 +1,3 @@
1
1
  module Stairs
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/stairs.gemspec CHANGED
@@ -22,5 +22,9 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake"
23
23
 
24
24
  spec.add_dependency "highline", "~> 1.6.20"
25
- spec.add_dependency "activesupport", "> 3.2.0"
25
+ spec.add_dependency "activesupport", ">= 3.2.0"
26
+
27
+ # Plugin dependencies
28
+ # TODO better way to manage these?
29
+ spec.add_dependency "balanced", "~> 0.7.4"
26
30
  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.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - patbenatar
@@ -56,16 +56,30 @@ dependencies:
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>'
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 3.2.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>'
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: 3.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: balanced
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 0.7.4
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.7.4
69
83
  description: A DSL and collection of plugins for easy setup of projects on new development
70
84
  environments.
71
85
  email:
@@ -83,6 +97,7 @@ files:
83
97
  - lib/stairs/script.rb
84
98
  - lib/stairs/step.rb
85
99
  - lib/stairs/steps.rb
100
+ - lib/stairs/steps/balanced.rb
86
101
  - lib/stairs/steps/s3.rb
87
102
  - lib/stairs/steps/secret_token.rb
88
103
  - lib/stairs/tasks.rb