hitfox-suspenders 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/.ruby-version +1 -0
  4. data/CONTRIBUTING.md +48 -0
  5. data/Gemfile +3 -0
  6. data/Gemfile.lock +139 -0
  7. data/LICENSE +21 -0
  8. data/NEWS.md +373 -0
  9. data/README.md +43 -0
  10. data/Rakefile +8 -0
  11. data/bin/hitfox-suspenders +18 -0
  12. data/bin/rake +16 -0
  13. data/bin/rspec +16 -0
  14. data/bin/setup +13 -0
  15. data/lib/suspenders/actions.rb +33 -0
  16. data/lib/suspenders/app_builder.rb +342 -0
  17. data/lib/suspenders/generators/app_generator.rb +196 -0
  18. data/lib/suspenders/version.rb +5 -0
  19. data/lib/suspenders.rb +4 -0
  20. data/spec/fakes/bin/hub +5 -0
  21. data/spec/features/github_spec.rb +10 -0
  22. data/spec/features/new_project_spec.rb +108 -0
  23. data/spec/spec_helper.rb +23 -0
  24. data/spec/support/fake_github.rb +21 -0
  25. data/spec/support/suspenders.rb +49 -0
  26. data/suspenders.gemspec +36 -0
  27. data/templates/Gemfile.erb +48 -0
  28. data/templates/README.md.erb +42 -0
  29. data/templates/_flashes.html.erb +7 -0
  30. data/templates/_javascript.html.erb +12 -0
  31. data/templates/action_mailer.rb +5 -0
  32. data/templates/application.css.scss +8 -0
  33. data/templates/bin_setup.erb +36 -0
  34. data/templates/bundler_audit.rake +12 -0
  35. data/templates/circle.yml +3 -0
  36. data/templates/config_i18n_tasks.yml +13 -0
  37. data/templates/config_locales_en.yml.erb +19 -0
  38. data/templates/database_cleaner_rspec.rb +21 -0
  39. data/templates/development_seeds.rb +12 -0
  40. data/templates/disable_xml_params.rb +3 -0
  41. data/templates/errors.rb +34 -0
  42. data/templates/factory_girl_rspec.rb +3 -0
  43. data/templates/flashes_helper.rb +5 -0
  44. data/templates/i18n.rb +3 -0
  45. data/templates/json_encoding.rb +1 -0
  46. data/templates/mandrill.rb +3 -0
  47. data/templates/postgresql_database.yml.erb +11 -0
  48. data/templates/rails_helper.rb +23 -0
  49. data/templates/sample.env +3 -0
  50. data/templates/secrets.yml +14 -0
  51. data/templates/spec_helper.rb +22 -0
  52. data/templates/staging.rb +5 -0
  53. data/templates/suspenders_gitignore +14 -0
  54. data/templates/suspenders_layout.html.erb.erb +21 -0
  55. data/templates/travis.yml.erb +21 -0
  56. metadata +187 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 26d290336d031cdce6c24477663f0d3ad856c70a
4
+ data.tar.gz: a3edd84afead760e5fce469fc9f9816caa3c4c3d
5
+ SHA512:
6
+ metadata.gz: 4363647da43fb91904664e332868d921134e0fbfe1b210bb88123d6e2616046df019f6f6970141e518aa3da7aaa1b220d1f70ed961848e59e6466607b7b065ad
7
+ data.tar.gz: f5aaef9139e22a0b8edabb4f39b4474abe3f2ac84ff9394264b08e7b8b9c90616d68eb8f79e1b4b2f0945e83e4a0226fc045645c1bf292015f3677dea3a3d180
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ *.swp
3
+ /.bundle
4
+ /tmp
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.0
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,48 @@
1
+ # Contributing
2
+
3
+ We love pull requests from everyone. By participating in this project, you agree
4
+ to abide by the thoughtbot [code of conduct].
5
+
6
+ [code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
7
+
8
+ Fork the repo:
9
+
10
+ git clone git@github.com:thoughtbot/suspenders.git
11
+
12
+ Set up your machine:
13
+
14
+ ./bin/setup
15
+
16
+ Make sure the tests pass:
17
+
18
+ rake
19
+
20
+ Make your change.
21
+ Write tests.
22
+ Follow our [style guide][style].
23
+ Make the tests pass:
24
+
25
+ [style]: https://github.com/thoughtbot/guides/tree/master/style
26
+
27
+ rake
28
+
29
+ Write a [good commit message][commit].
30
+ Push to your fork.
31
+ [Submit a pull request][pr].
32
+
33
+ [commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
34
+ [pr]: https://github.com/thoughtbot/suspenders/compare/
35
+
36
+ If [Hound] catches style violations,
37
+ fix them.
38
+
39
+ [hound]: https://houndci.com
40
+
41
+ Wait for us.
42
+ We try to at least comment on pull requests within one business day.
43
+ We may suggest changes.
44
+
45
+ ## Versions
46
+
47
+ To update the Ruby version,
48
+ change `.ruby-version` and `.travis.yml`.
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,139 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ hitfox-suspenders (1.0.0)
5
+ bitters (~> 1.0.0)
6
+ bundler (~> 1.3)
7
+ rails (= 4.2.1)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (4.2.1)
13
+ actionpack (= 4.2.1)
14
+ actionview (= 4.2.1)
15
+ activejob (= 4.2.1)
16
+ mail (~> 2.5, >= 2.5.4)
17
+ rails-dom-testing (~> 1.0, >= 1.0.5)
18
+ actionpack (4.2.1)
19
+ actionview (= 4.2.1)
20
+ activesupport (= 4.2.1)
21
+ rack (~> 1.6)
22
+ rack-test (~> 0.6.2)
23
+ rails-dom-testing (~> 1.0, >= 1.0.5)
24
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
25
+ actionview (4.2.1)
26
+ activesupport (= 4.2.1)
27
+ builder (~> 3.1)
28
+ erubis (~> 2.7.0)
29
+ rails-dom-testing (~> 1.0, >= 1.0.5)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
31
+ activejob (4.2.1)
32
+ activesupport (= 4.2.1)
33
+ globalid (>= 0.3.0)
34
+ activemodel (4.2.1)
35
+ activesupport (= 4.2.1)
36
+ builder (~> 3.1)
37
+ activerecord (4.2.1)
38
+ activemodel (= 4.2.1)
39
+ activesupport (= 4.2.1)
40
+ arel (~> 6.0)
41
+ activesupport (4.2.1)
42
+ i18n (~> 0.7)
43
+ json (~> 1.7, >= 1.7.7)
44
+ minitest (~> 5.1)
45
+ thread_safe (~> 0.3, >= 0.3.4)
46
+ tzinfo (~> 1.1)
47
+ arel (6.0.0)
48
+ bitters (1.0.0)
49
+ bourbon (>= 3.2)
50
+ sass (>= 3.2)
51
+ thor
52
+ bourbon (4.2.2)
53
+ sass (~> 3.4)
54
+ thor
55
+ builder (3.2.2)
56
+ capybara (2.4.4)
57
+ mime-types (>= 1.16)
58
+ nokogiri (>= 1.3.3)
59
+ rack (>= 1.0.0)
60
+ rack-test (>= 0.5.4)
61
+ xpath (~> 2.0)
62
+ diff-lcs (1.2.5)
63
+ erubis (2.7.0)
64
+ globalid (0.3.5)
65
+ activesupport (>= 4.1.0)
66
+ hike (1.2.3)
67
+ i18n (0.7.0)
68
+ json (1.8.2)
69
+ loofah (2.0.1)
70
+ nokogiri (>= 1.5.9)
71
+ mail (2.6.3)
72
+ mime-types (>= 1.16, < 3)
73
+ mime-types (2.4.3)
74
+ mini_portile (0.6.2)
75
+ minitest (5.5.1)
76
+ multi_json (1.11.0)
77
+ nokogiri (1.6.6.2)
78
+ mini_portile (~> 0.6.0)
79
+ rack (1.6.0)
80
+ rack-test (0.6.3)
81
+ rack (>= 1.0)
82
+ rails (4.2.1)
83
+ actionmailer (= 4.2.1)
84
+ actionpack (= 4.2.1)
85
+ actionview (= 4.2.1)
86
+ activejob (= 4.2.1)
87
+ activemodel (= 4.2.1)
88
+ activerecord (= 4.2.1)
89
+ activesupport (= 4.2.1)
90
+ bundler (>= 1.3.0, < 2.0)
91
+ railties (= 4.2.1)
92
+ sprockets-rails
93
+ rails-deprecated_sanitizer (1.0.3)
94
+ activesupport (>= 4.2.0.alpha)
95
+ rails-dom-testing (1.0.6)
96
+ activesupport (>= 4.2.0.beta, < 5.0)
97
+ nokogiri (~> 1.6.0)
98
+ rails-deprecated_sanitizer (>= 1.0.1)
99
+ rails-html-sanitizer (1.0.2)
100
+ loofah (~> 2.0)
101
+ railties (4.2.1)
102
+ actionpack (= 4.2.1)
103
+ activesupport (= 4.2.1)
104
+ rake (>= 0.8.7)
105
+ thor (>= 0.18.1, < 2.0)
106
+ rake (10.4.2)
107
+ rspec (2.99.0)
108
+ rspec-core (~> 2.99.0)
109
+ rspec-expectations (~> 2.99.0)
110
+ rspec-mocks (~> 2.99.0)
111
+ rspec-core (2.99.2)
112
+ rspec-expectations (2.99.2)
113
+ diff-lcs (>= 1.1.3, < 2.0)
114
+ rspec-mocks (2.99.3)
115
+ sass (3.4.13)
116
+ sprockets (2.12.3)
117
+ hike (~> 1.2)
118
+ multi_json (~> 1.0)
119
+ rack (~> 1.0)
120
+ tilt (~> 1.1, != 1.3.0)
121
+ sprockets-rails (2.2.4)
122
+ actionpack (>= 3.0)
123
+ activesupport (>= 3.0)
124
+ sprockets (>= 2.8, < 4.0)
125
+ thor (0.19.1)
126
+ thread_safe (0.3.5)
127
+ tilt (1.4.1)
128
+ tzinfo (1.2.2)
129
+ thread_safe (~> 0.1)
130
+ xpath (2.0.0)
131
+ nokogiri (~> 1.3)
132
+
133
+ PLATFORMS
134
+ ruby
135
+
136
+ DEPENDENCIES
137
+ capybara (~> 2.2, >= 2.2.0)
138
+ hitfox-suspenders!
139
+ rspec (~> 2.0)
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2010-2012 Mike Burns and thoughtbot, inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/NEWS.md ADDED
@@ -0,0 +1,373 @@
1
+ 1.26.0 (March 23, 2015)
2
+
3
+ * Update Rails to 4.2.1
4
+ * Update Bitters to 1.0
5
+ * Fix .ruby-version (should have been 2.1.1)
6
+ * Enable `verify_partial_doubles`
7
+ * Renames Segment.io to Segment
8
+ * Removes New Relic unnecessary configuration setting
9
+
10
+ 1.25.0 (March 7, 2015)
11
+
12
+ * Configure Active Job queue adapter for test env
13
+ * Use Ruby 2.2.1 (bug: `.ruby-version` wasn’t updated in the package)
14
+ * Dasherize heroku app names
15
+ * Update Bourbon to 4.2.0
16
+ * Add ASSET_HOST to sample.env (defaults to HOST)
17
+ * Set bin/deploy script as executable
18
+ * Set email deliver method to :test for development
19
+ * Include missing word in the Flutie description in README.
20
+ * Remove unused dev gems: aruba & cucumber
21
+ * Use skip_bundle class_option (rather than defining an empty run_bundle method)
22
+
23
+ 1.24.0 (February 3, 2015)
24
+
25
+ * Remove things in Suspenders that Rails does for us now.
26
+ * Document how to use the `title` view helper.
27
+ * Improve speed of bundling in `bin/setup` script.
28
+ * Set ENV variable to make out-of-the-box Heroku static asset experience better.
29
+
30
+ 1.23.0 (January 19, 2015)
31
+
32
+ * Use Bourbon 4.1.0.
33
+ * Use Neat 1.7.0.
34
+ * Remove [parameter wrapping] for every format, including JSON.
35
+ * Turn off TravisCI email notifications for Suspended apps.
36
+ * Run `rake dev:prime` on CI in order to test
37
+ whether `bin/setup` has any regressions.
38
+ * Fix `config.action_mailer.default_url_options`'s value.
39
+ It now correctly uses `ENV.fetch("HOST")` in staging
40
+ and production.
41
+
42
+ [parameter wrapping]: http://api.rubyonrails.org/classes/ActionController/ParamsWrapper.html
43
+
44
+ 1.22.0 (January 11, 2015)
45
+
46
+ * Allow additional
47
+ [Heroku flags](https://github.com/thoughtbot/suspenders#heroku)
48
+ such as `--addons` and `--region`.
49
+ * Use RSpec 3.1.0.
50
+ * Use Travis' new Docker container infrastructure
51
+ for builds that start sooner and run faster.
52
+ * Improve SMTP and ActionMailer default settings.
53
+
54
+ 1.21.0 (January 4, 2015)
55
+
56
+ * Use Ruby 2.2.0.
57
+ * Use Rails 4.2.0.
58
+ * Install [Refills] and Refills' "flashes" component.
59
+ * Add `bin/deploy` script.
60
+
61
+ [Refills]: http://refills.bourbon.io/components/#flashes
62
+
63
+ 1.20.0 (November 25, 2014)
64
+
65
+ * Use Ruby 2.1.5.
66
+ * Use bin/setup from TravisCI to test executable documentation.
67
+ * Default JSON time format to use ISO8601 to match Heroku API Design Guide.
68
+ * Add Bundler Audit to scan Gemfile for insecure dependencies per CVEs.
69
+
70
+ 1.19.0 (November 23, 2014)
71
+
72
+ * Use Ruby 2.1.4.
73
+ * Use Rails 4.1.8.
74
+ * Add Bundler Audit gem for scanning the Gemfile
75
+ for insecure dependencies based on published CVEs.
76
+ * Use Heroku-recommended timeout numbers.
77
+ * [Improve memory] of app on Heroku with New Relic.
78
+ * Turn off RSpec verbose mode by default.
79
+
80
+ [Improve memory]: http://forum.upcase.com/t/how-to-free-up-swap-space-heroku/3017/13?u=croaky
81
+
82
+ 1.18.0 (October 23, 2014)
83
+
84
+ * Use Ruby 2.1.3.
85
+ * Move New Relic to all gem groups to more easily
86
+ [debug Rails performance in development][debug-performance].
87
+ * Make `bin/setup` idempotent, failing fast with install messages.
88
+ * Fix unevaluated app name in generated `en.yml` locale file.
89
+ * Change `File.exists?` to `File.exist?` to fix Ruby warning.
90
+ * Don't include port 6000 as an option for Foreman; Chome considers it unsafe.
91
+ * Git ignore the entire /tmp directory.
92
+
93
+ [debug-performance]: https://upcase.com/improving-rails-performance
94
+
95
+ 1.17.0 (September 30, 2014)
96
+
97
+ * Use Rails 4.1.6.
98
+ * Generate a `spec/rails_helper.rb` and `spec/spec_helper.rb` following
99
+ RSpec 3.x's example, but using our defaults.
100
+ * Raise on missing i18n translations in test environment.
101
+ * Raise on unpermitted parameters in test environment.
102
+ * Provide example for using Title gem for internationalizing page title text.
103
+
104
+ 1.16.0 (August 16, 2014)
105
+
106
+ * Use the 3.x series of RSpec.
107
+ * Use the 0.10.x series of Bitters.
108
+ * Improve documentation in generated README for machine setup via `bin/setup`
109
+ and https://github.com/thoughtbot/laptop script.
110
+ * Remove Foreman from `Gemfile`.
111
+ * Use i18n-tasks for missing or unused translations.
112
+ * Raise on missing translations in development environment. Fail fast!
113
+ * Prevent empty div when there are no flashes.
114
+ * Pick random port when generating Rails app so multiple apps can be run via
115
+ Foreman on a development machine at the same time.
116
+ * Add `normalize-rails` gem for resetting browser styles.
117
+
118
+ 1.15.0 (July 9, 2014)
119
+
120
+ * Use Rails 4.1.4.
121
+ * Use latest thoughtbot style guidelines in generated code so that
122
+ https://houndci.com will approve the initial commit.
123
+ * Remove Campfire in favor of Slack.
124
+ * Remove Pow in bin/setup.
125
+ * Upgrade Capybara Webkit to support Capybara 2.3 API.
126
+ * Add byebug.
127
+
128
+ 1.14.0 (June 11, 2014)
129
+
130
+ * Set up Bitters during Suspenders setup. http://bitters.bourbon.io/
131
+ * Remove SimpleCov.
132
+ * Force Suspenders to use a particular Rails version (4.1.1).
133
+ * Use RSpec 2.x until Travis/Capybara issues resolve.
134
+ * Set `viewport` to `initial-scale=1`.
135
+
136
+ 1.13.0 (May 29, 2014)
137
+
138
+ * Remove `FactoryGirl.lint` in `before(:suite)` in order to avoid paying and
139
+ estimated extra ~300ms load time on a typical thoughtbot app.
140
+ * Automatically join Heroku app in `bin/setup` if using Heroku organizations.
141
+
142
+ 1.12.0 (May 26, 2014)
143
+
144
+ * Fix `rake dev:prime` now that Suspenders-generated apps require some `ENV`
145
+ variables to be set.
146
+ * Ensure `EMAIL_RECIPIENTS` is set on staging.
147
+ * Clear `ActionMailer` deliveries before every test.
148
+ * Include New Relic configuration file.
149
+ * Add Formulaic gem for integration testing HTML forms.
150
+ * Set up the Segment.io adapter for analytics and event tracking through
151
+ services such as Google Analytics and Intercom.
152
+ * Prepare staging and production environments to serve static assets through a
153
+ CDN.
154
+
155
+ 1.11.0 (May 17, 2014)
156
+
157
+ * Generate a Rails 4.1.1 app and implement fixes for compatibility.
158
+ * Escape ERb in secrets.yml
159
+ * Maintain ActiveRecord test schema.
160
+ * Make Shoulda Matchers work with Spring.
161
+ * Unify Ruby version for gem and suspended apps.
162
+ * Move SMTP variable settings out of initializer.
163
+ * Connect to Postgres on localhost.
164
+ * Add `bin/setup` for contributors.
165
+ * Improve and document TravisCI configuration.
166
+
167
+ 1.10.2 (April 28, 2014)
168
+
169
+ * Fix bundling Bourbon and Neat.
170
+
171
+ 1.10.1 (April 25, 2014)
172
+
173
+ * Fix bundling sass-rails.
174
+
175
+ 1.10.0 (April 21, 2014)
176
+
177
+ * Generate a Rails 4.1 app.
178
+ * Generate a working .ruby-version for Ruby >= 2.1.0.
179
+ * Update Unicorn template to version now preferred by Heroku.
180
+
181
+ 1.9.3 (April 13, 2014)
182
+
183
+ * Use FactoryGirl.lint instead of custom-generated factory-testing code.
184
+ * Fix Delayed::Job <-> Rails 4.1 dependency conflict.
185
+
186
+ 1.9.2 (April 10, 2014)
187
+
188
+ * Join Heroku apps in bin/setup.
189
+ * Enable SMTP/TLS in SMTP settings.
190
+ * Silence an RSpec warning.
191
+
192
+ 1.9.1 (April 7, 2014)
193
+
194
+ * Fix sass-rails environment NilClass error.
195
+
196
+ 1.9.0 (March 24, 2014)
197
+
198
+ * Add `awesome_print` gem.
199
+ * Add `dev:prime` task placeholder for bootstrapping local dev data.
200
+ * Add fix for I18n deprecation warning from `enforce_available_locales`.
201
+ * Add generated `.travis.yml`.
202
+ * Remove `better_errors` because of issues with Unicorn.
203
+ * Remove fast-failing for RSpec; respect user's `~/.rspec` instead.
204
+ * Update New Relic agent.
205
+ * Update Rails to 4.0.3.
206
+
207
+ 1.8.1 (February 19, 2014)
208
+
209
+ * Don't distribute rspec binstub with gem.
210
+
211
+ 1.8.0 (February 18, 2014)
212
+
213
+ * Make the .git/safe directory in bin/setup.
214
+ * Require `rails_12factor` gem only on Heroku.
215
+ * Require mailer config on staging and production.
216
+ * Add rspec binstub.
217
+ * Fix .ruby-version on Ruby 2.1.0.
218
+ * Replace Flutie's `page_title` with `title` gem.
219
+ * Don't run factory specs twice.
220
+ * Inherit staging config from production.
221
+ * Internal: convert tests from Cucumber to RSpec.
222
+ * Don't include `prefilled_input.js`.
223
+ * Fix Rack class name - Deflater instead of Timeout.
224
+ * Add Pry Rails.
225
+ * Add Spring.
226
+ * Add Dotenv to development and test environments to load environment variables
227
+ from the `.env` file.
228
+ * Reduce ActiveRecord connection pool from 5 to 2.
229
+
230
+ 1.7.0 (December 6, 2013)
231
+
232
+ * Keep `db/schema.rb` under version control.
233
+ * Fast-fail if any part of `bin/setup` fails.
234
+ * Move secret key out of version control.
235
+ * Create `.ruby-version` in generated applications.
236
+ * Add placeholder modules and directories for feature specs.
237
+ * Improve README to include setup instructions.
238
+
239
+ 1.6.0 (November 28, 2013)
240
+
241
+ * Do not create `.rspec` file as the settings are not project-specific.
242
+ * Generate RSpec binstub at `bin/rspec`.
243
+ * Fix stylesheet error on 500, 404, and 422 static pages.
244
+ * Add `--skip-git` option.
245
+ * Disable jQuery animations in Rails integration tests that execute JavaScript.
246
+ * Fix git remote bug.
247
+ * Add `Rack::Deflater` to compress responses with Gzip.
248
+
249
+ 1.5.1 (September 10, 2013)
250
+
251
+ * Remove Turbolinks.
252
+ * Don't use Bundler's binstubs in `bin/setup`.
253
+ * Remove `--drb` now that we aren't using Spork.
254
+ * Set up DNS via Pow for development.
255
+ * Update gem versions.
256
+
257
+ 1.5.0 (August 3, 2013)
258
+
259
+ * Add Neat.
260
+ * Replace Bourne with RSpec Mocks.
261
+ * Replace Sham Rack with WebMock.
262
+ * Remove dependency on `hub` gem.
263
+ * Clean up leftover Rails 3 conventions.
264
+
265
+ 1.4.0 (July 21, 2013)
266
+
267
+ * Support Rails 4.
268
+ * Support Ruby 2.
269
+ * Remove jQuery UI.
270
+ * Factories spec works for non-ActiveRecord objects.
271
+ * Use New Relic RPM gem >= 3.5.7 for Heroku request queue accuracy.
272
+ * Abort RSpec runs on first failure.
273
+ * Replace custom email validator with gem.
274
+
275
+ 1.3.0 (May 13, 2013)
276
+
277
+ * Switch web server from Thin to Unicorn
278
+ * Set up database before setting up RSpec so that the rspec:install task works
279
+ * Add Delayed::Job
280
+ * Clean up cruft from ActionMailer delivery configuration
281
+ * strong_parameters now raises an error in development
282
+ * Enforce Ruby 1.9.2+ in the gemspec
283
+
284
+ 1.2.2 (March 14, 2013)
285
+
286
+ * Fix Syntax error in staging/production environment config files.
287
+ * Make Factory Girl available to development environment for generators and
288
+ `rails console`.
289
+
290
+ 1.2.1 (February 28, 2013)
291
+
292
+ * Use Ruby 1.9.3 and 2.0
293
+ * Update staging and production email delivery
294
+ * Remove Spork and Guard
295
+ * Add better_errors and binding_of_caller gems
296
+ * Fix ActiveRecord attributes' blacklist
297
+ * Add Flutie to Gemfile
298
+
299
+ 1.2.0 (February 13, 2013)
300
+
301
+ * Upgrade Rails from 3.2.8 to 3.2.12 to keep pace with security patches.
302
+ * Improve staging environment on Heroku with staging `ENV` variables and
303
+ overriding the recipient in staging email delivery.
304
+ * Remove Flutie, use Bourbon.
305
+ * Wrap all HTTP requests in a 5 second timeout.
306
+ * Don't use `attr_accessible` whitelists. Instead, configure Strong Parameters.
307
+ * Provide a `bin/setup` script.
308
+ * Force RSpec's `expect` syntax.
309
+ * Remove remaining references to Cucumber, complete RSpec + Capybara conversion.
310
+ * Improve Foreman/`.env`/`Procfile` interactions.
311
+
312
+ 1.1.5 (October 22, 2012)
313
+
314
+ * Ignore `.env`.
315
+ * Link to thoughtbot/guides in generated README.
316
+ * Remove Cucumber in favor of RSpec + Capybara.
317
+ * Deliver emails in staging environment to an overriden email or set of emails.
318
+ * Encode database as UTF8.
319
+ * Bundle with binstubs using 37signals' directory convention.
320
+ * Configure time formats using localization.
321
+ * Add Ruby version to Gemfile.
322
+ * Add fast-failing spec that tests validity of factories.
323
+ * Use SimpleCov for C0 coverage.
324
+ * Configure RSpec with `--profile` flag to find slow-running specs.
325
+
326
+ 1.1.4 (September 4, 2012)
327
+
328
+ * Always store UTC in the DB.
329
+ * Use Rails 3.2.8.
330
+
331
+ 1.1.3 (August 7, 2012)
332
+
333
+ * Fix broken Gemfile additions where capybara stole cucumber's `require: false`
334
+
335
+ 1.1.2 (August 6, 2012)
336
+
337
+ * Fix broken rake.
338
+ * Use Heroku-compliant asset pipeline settings.
339
+
340
+ 1.1.1 (August 3, 2012)
341
+
342
+ * Fix broken newline interpolation
343
+
344
+ 1.1.0 (August 3, 2012)
345
+
346
+ * Add --github option.
347
+ * Add --webkit option.
348
+ * Remove cruft when generating controllers.
349
+ * Add Spork and Guard.
350
+
351
+ 1.0.1 (August 2, 2012)
352
+
353
+ * Fix broken install on Ruby 1.8.
354
+ * Remove db/schema.rb from .gitignore.
355
+ * Remove Factory Girl step definitions.
356
+
357
+ 1.0.0 (June 29, 2012)
358
+
359
+ * Ignore `bin/`, `.rake_tasks`, `.bundle/`, and `.gem/`.
360
+ * Create a root route only with `--clearance`.
361
+ * Do not autocommit after generate.
362
+ * Style static error pages.
363
+ * Cucumber requires everything under `features/`, regardless of pwd.
364
+ * Added gems:
365
+ * `foreman`
366
+ * `therubyracer`
367
+ * Removed gems:
368
+ * `copycopter_client`
369
+ * `heroku`
370
+ * `ruby-debug`
371
+ * `sass`
372
+ * `sprockets-redirect`
373
+ * `email_spec`
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # HitFox's Suspenders [![Circle CI](https://circleci.com/gh/HitFox/hitfox-suspenders.svg?style=svg)](https://circleci.com/gh/HitFox/hitfox-suspenders)
2
+
3
+ This is a [suspenders](https://github.com/thoughtbot/suspenders) fork we use at [HitFox Group](http://hitfoxgroup.com).
4
+ Big thanks to [thoughtbot](http://thoughtbot.com/community). Also, thanks to [weLaika](https://github.com/welaika) for providing an example of the forked suspenders gem, with a lot of the configurations we use as well.
5
+
6
+
7
+ Installation
8
+ ------------
9
+
10
+ First install the suspenders gem:
11
+
12
+ gem install hitfox-suspenders
13
+
14
+ Then run:
15
+
16
+ hitfox-suspenders projectname
17
+
18
+ This will create a rails app in `projectname`. This script creates a
19
+ new git repository. It is not meant to be used against an existing repo.
20
+
21
+
22
+ Version number
23
+ --------------
24
+
25
+ Our `hitfox-suspenders` version number isn't related to thoughbot's [suspenders](https://github.com/thoughtbot/suspenders).
26
+
27
+
28
+ Changelog
29
+ ---------
30
+
31
+ We constantly pull the latest chages from Thoughtbot's [suspenders](https://github.com/thoughtbot/suspenders) periodically.
32
+
33
+ List of changes we made since [this commit](https://github.com/thoughtbot/suspenders/commit/a470912e9df01fda62f0c23ce032a1c9b5493b69):
34
+ - Use Ruby 2.2.0 for CircleCI compatibility
35
+ - Add CircleCI configuration and remove the Travis one
36
+ - Add Honeybadger configuration and remove New Relic
37
+ - Use simple_form 3.0.3 to supress annoying warnings in specs
38
+ - Add Mandrill configuration
39
+ - Use the Cloud66 ENV variable name for the HOST (used for action_mailer_host)
40
+ - Add company specific assumptions to the README generator
41
+ - Remove CDN, Heroku, Unicorn, Segment and delayed_jobs configurations
42
+ - Remove deployment scripts and Procfile
43
+
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'bundler/setup'
2
+ require 'bundler/gem_tasks'
3
+ require 'rspec/core/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:rspec)
6
+
7
+ desc 'Run the test suite'
8
+ task :default => :rspec
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
5
+ $LOAD_PATH << source_path
6
+
7
+ require 'suspenders'
8
+
9
+ if ['create', '--create'].include? ARGV[0]
10
+ ARGV.shift
11
+ puts "[WARNING] the suspenders create argument is deprecated. Just use `suspenders #{ARGV.join}` instead"
12
+ end
13
+
14
+ templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
15
+ Suspenders::AppGenerator.source_root templates_root
16
+ Suspenders::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root
17
+
18
+ Suspenders::AppGenerator.start
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rake', 'rake')