suspenders 1.0.1 → 1.1.0

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.
@@ -0,0 +1,16 @@
1
+ require 'spork'
2
+
3
+ Spork.prefork do
4
+ ENV['RAILS_ENV'] ||= 'test'
5
+ require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
6
+ require 'cucumber/rails'
7
+
8
+ Capybara.default_selector = :css
9
+ DatabaseCleaner.strategy = :truncation
10
+ end
11
+
12
+ Spork.each_run do
13
+ After do
14
+ DatabaseCleaner.clean
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-02 00:00:00.000000000 Z
12
+ date: 2012-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '1.1'
46
+ - !ruby/object:Gem::Dependency
47
+ name: hub
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.10.2
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.10.2
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: cucumber
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +108,6 @@ extra_rdoc_files:
92
108
  - LICENSE
93
109
  files:
94
110
  - CONTRIBUTING.md
95
- - GOALS
96
111
  - Gemfile
97
112
  - Gemfile.lock
98
113
  - LICENSE
@@ -100,21 +115,23 @@ files:
100
115
  - README.md
101
116
  - Rakefile
102
117
  - bin/suspenders
103
- - features/creating_a_heroku_app.feature
118
+ - features/clearance_false.feature
119
+ - features/github_repo.feature
120
+ - features/heroku_true.feature
104
121
  - features/rake_clean.feature
105
- - features/skipping_clearance.feature
106
- - features/step_definitions/gem_steps.rb
107
- - features/step_definitions/heroku_steps.rb
108
- - features/step_definitions/shell_steps.rb
122
+ - features/step_definitions/suspenders_steps.rb
109
123
  - features/support/bin/heroku
110
124
  - features/support/env.rb
125
+ - features/support/fake_github.rb
111
126
  - features/support/fake_heroku.rb
127
+ - features/webkit_false.feature
112
128
  - lib/suspenders/actions.rb
113
129
  - lib/suspenders/app_builder.rb
114
130
  - lib/suspenders/generators/app_generator.rb
115
131
  - lib/suspenders/version.rb
116
132
  - suspenders.gemspec
117
133
  - templates/Gemfile_additions
134
+ - templates/Guardfile
118
135
  - templates/HEROKU_README.md
119
136
  - templates/Procfile
120
137
  - templates/README.md.erb
@@ -123,6 +140,7 @@ files:
123
140
  - templates/email_validator.rb
124
141
  - templates/errors.rb
125
142
  - templates/factory_girl_syntax_rspec.rb
143
+ - templates/features_support_env.rb
126
144
  - templates/import_scss_styles
127
145
  - templates/javascripts/prefilled_input.js
128
146
  - templates/postgresql_database.yml.erb
@@ -155,12 +173,13 @@ signing_key:
155
173
  specification_version: 3
156
174
  summary: Generate a Rails app using thoughtbot's best practices.
157
175
  test_files:
158
- - features/creating_a_heroku_app.feature
176
+ - features/clearance_false.feature
177
+ - features/github_repo.feature
178
+ - features/heroku_true.feature
159
179
  - features/rake_clean.feature
160
- - features/skipping_clearance.feature
161
- - features/step_definitions/gem_steps.rb
162
- - features/step_definitions/heroku_steps.rb
163
- - features/step_definitions/shell_steps.rb
180
+ - features/step_definitions/suspenders_steps.rb
164
181
  - features/support/bin/heroku
165
182
  - features/support/env.rb
183
+ - features/support/fake_github.rb
166
184
  - features/support/fake_heroku.rb
185
+ - features/webkit_false.feature
data/GOALS DELETED
@@ -1,2 +0,0 @@
1
- Suspenders hits 1.0.0 when it can generate a Rails app that we can build
2
- upon and use for all client demands.
@@ -1,9 +0,0 @@
1
- @disable-bundler
2
- Feature: Creating a Heroku app when suspending a project
3
-
4
- Scenario: User uses the --heroku=true command line argument
5
- When I suspend a project called "test_project" with:
6
- | argument | value |
7
- | --heroku | true |
8
- Then the "test_project-staging" heroku app should exist
9
- And the "test_project-production" heroku app should exist
@@ -1,13 +0,0 @@
1
- @disable-bundler
2
- Feature: Skipping clearance
3
- As a developer
4
- I want to suspend an app without clearance
5
- So that I can build apps without users, or with other authentication libraries
6
-
7
- Scenario: Passing --clearance=false
8
- When I suspend a project called "test_project" with:
9
- | argument | value |
10
- | --clearance | false |
11
- And I cd to the "test_project" root
12
- Then "clearance" should not be installed
13
- And I can cleanly rake the project
@@ -1,5 +0,0 @@
1
- Then /^"(.*)" should not be installed$/ do |gem_name|
2
- in_current_dir do
3
- system("bundle show #{gem_name} 2>&1 > /dev/null").should be_false
4
- end
5
- end
@@ -1,3 +0,0 @@
1
- Then /^the "([^"]*)" heroku app should exist$/ do |app_name|
2
- FakeHeroku.should have_created_app(app_name)
3
- end