purobu 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +46 -2
- data/lib/purobu/version.rb +1 -1
- data/purobu.gemspec +1 -1
- metadata +14 -14
data/README.md
CHANGED
@@ -96,7 +96,7 @@ heroku "addons:add heroku-postgresql:dev"
|
|
96
96
|
of information on heroku such as an app's config vars.
|
97
97
|
|
98
98
|
*Note*: To use it, set the HEROKU_API_KEY environment variable or set it in a
|
99
|
-
`Purobu::Configuration.run`
|
99
|
+
`Purobu::Configuration.run` block.
|
100
100
|
|
101
101
|
For example:
|
102
102
|
|
@@ -138,6 +138,18 @@ test do
|
|
138
138
|
end
|
139
139
|
```
|
140
140
|
|
141
|
+
Helpers can also be added via the configuration block:
|
142
|
+
|
143
|
+
```ruby
|
144
|
+
Purobu::Configuration.run do |config|
|
145
|
+
config.helpers do
|
146
|
+
def do_it
|
147
|
+
# it does it
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
```
|
152
|
+
|
141
153
|
A `database_connection` helper is included which can be used in your tests:
|
142
154
|
|
143
155
|
```ruby
|
@@ -147,6 +159,38 @@ database_connection(url) do |conn|
|
|
147
159
|
end
|
148
160
|
```
|
149
161
|
|
162
|
+
## Running on Heroku
|
163
|
+
|
164
|
+
Running a purobu test suite on heroku is trivial.
|
165
|
+
|
166
|
+
Add a Gemfile to your project like so:
|
167
|
+
|
168
|
+
```
|
169
|
+
source :rubygems
|
170
|
+
|
171
|
+
ruby '1.9.3'
|
172
|
+
|
173
|
+
gem 'pg'
|
174
|
+
gem 'purobu', '0.0.4'
|
175
|
+
gem 'clockwork'
|
176
|
+
gem 'foreman'
|
177
|
+
```
|
178
|
+
|
179
|
+
And a clock.rb file:
|
180
|
+
|
181
|
+
```ruby
|
182
|
+
require 'clockwork'
|
183
|
+
include Clockwork
|
184
|
+
|
185
|
+
require 'heroku-api'
|
186
|
+
|
187
|
+
every(1.hour, 'run_purobu') do
|
188
|
+
Heroku::API.new.post_ps('purobu-dod', 'purobu -v')
|
189
|
+
end
|
190
|
+
```
|
191
|
+
|
192
|
+
exprd can be used to track status of the suite and maybe set alerts.
|
193
|
+
|
150
194
|
## Meta
|
151
195
|
|
152
|
-
purobu was
|
196
|
+
purobu was created by Harold Giménez
|
data/lib/purobu/version.rb
CHANGED
data/purobu.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Purobu::VERSION
|
17
17
|
|
18
|
-
gem.add_dependency "heroku", "2.28.
|
18
|
+
gem.add_dependency "heroku", "2.28.7"
|
19
19
|
gem.add_dependency "heroku-api"
|
20
20
|
gem.add_dependency "scrolls", "0.2.1"
|
21
21
|
gem.add_dependency "sequel"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: purobu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,18 +13,18 @@ date: 2012-06-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: heroku
|
16
|
-
requirement: &
|
16
|
+
requirement: &70154365502160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - =
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.28.
|
21
|
+
version: 2.28.7
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70154365502160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: heroku-api
|
27
|
-
requirement: &
|
27
|
+
requirement: &70154365499120 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70154365499120
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: scrolls
|
38
|
-
requirement: &
|
38
|
+
requirement: &70154365482900 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - =
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.2.1
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70154365482900
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sequel
|
49
|
-
requirement: &
|
49
|
+
requirement: &70154365481920 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70154365481920
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70154365475260 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70154365475260
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fakefs
|
71
|
-
requirement: &
|
71
|
+
requirement: &70154365473700 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70154365473700
|
80
80
|
description: ! ' Black-box integration test framework for components on the Heroku
|
81
81
|
platform. '
|
82
82
|
email:
|