welaika-suspenders 1.4.0 → 2.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -7
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +7 -2
  5. data/CONTRIBUTING.md +24 -26
  6. data/Gemfile.lock +94 -69
  7. data/NEWS.md +183 -0
  8. data/README.md +21 -127
  9. data/Rakefile +3 -3
  10. data/bin/rake +16 -0
  11. data/bin/rspec +16 -0
  12. data/bin/setup +13 -0
  13. data/bin/welaika-suspenders +8 -11
  14. data/lib/{welaika_suspenders → suspenders}/actions.rb +1 -16
  15. data/lib/suspenders/app_builder.rb +424 -0
  16. data/lib/{welaika_suspenders → suspenders}/generators/app_generator.rb +50 -54
  17. data/lib/suspenders/version.rb +5 -0
  18. data/lib/suspenders.rb +4 -0
  19. data/{features/support → spec/fakes}/bin/heroku +0 -0
  20. data/{features/support → spec/fakes}/bin/hub +0 -0
  21. data/spec/features/github_spec.rb +10 -0
  22. data/spec/features/heroku_spec.rb +19 -0
  23. data/spec/features/new_project_spec.rb +115 -0
  24. data/spec/spec_helper.rb +24 -0
  25. data/{features → spec}/support/fake_github.rb +1 -1
  26. data/spec/support/fake_heroku.rb +38 -0
  27. data/spec/support/suspenders.rb +49 -0
  28. data/suspenders.gemspec +36 -0
  29. data/templates/Gemfile.erb +58 -0
  30. data/templates/Procfile +1 -2
  31. data/templates/README.md.erb +28 -2
  32. data/templates/_flashes.html.slim +4 -3
  33. data/templates/_javascript.html.slim +3 -0
  34. data/templates/action_mailer.rb +5 -0
  35. data/templates/application.css.scss +3 -4
  36. data/templates/bin_setup.erb +34 -0
  37. data/templates/config_i18n_tasks.yml +13 -0
  38. data/templates/config_locales_en.yml.erb +19 -0
  39. data/templates/database_cleaner_rspec.rb +1 -4
  40. data/templates/development_seeds.rb +12 -0
  41. data/templates/errors.rb +22 -16
  42. data/templates/{factory_girl_syntax_rspec.rb → factory_girl_rspec.rb} +0 -0
  43. data/templates/i18n.rb +3 -0
  44. data/templates/newrelic.yml.erb +34 -0
  45. data/templates/postgresql_database.yml.erb +1 -1
  46. data/templates/rack_timeout.rb +1 -1
  47. data/templates/rails_helper.rb +23 -0
  48. data/templates/sample.env +1 -12
  49. data/templates/secrets.yml +14 -0
  50. data/templates/smtp.rb +9 -10
  51. data/templates/spec_helper.rb +16 -0
  52. data/templates/staging.rb +5 -0
  53. data/templates/suspenders_gitignore +10 -9
  54. data/templates/suspenders_layout.html.slim +14 -0
  55. data/templates/travis.yml.erb +24 -0
  56. data/templates/unicorn.rb +12 -9
  57. metadata +100 -80
  58. data/.DS_Store +0 -0
  59. data/features/github_repo.feature +0 -8
  60. data/features/heroku_true.feature +0 -9
  61. data/features/rake_clean.feature +0 -15
  62. data/features/step_definitions/suspenders_steps.rb +0 -69
  63. data/features/support/env.rb +0 -10
  64. data/features/support/fake_heroku.rb +0 -21
  65. data/lib/welaika_suspenders/app_builder.rb +0 -318
  66. data/lib/welaika_suspenders/version.rb +0 -4
  67. data/lib/welaika_suspenders/version_check.rb +0 -26
  68. data/templates/.DS_Store +0 -0
  69. data/templates/Gemfile_clean +0 -56
  70. data/templates/bin_setup +0 -11
  71. data/templates/capybara_selectors.rb +0 -29
  72. data/templates/config_locales_en.yml +0 -11
  73. data/templates/create_dragonfly_jobs.rb +0 -9
  74. data/templates/dragonfly.rb +0 -9
  75. data/templates/dragonfly_initializer.rb +0 -47
  76. data/templates/exist_in_db.rb +0 -6
  77. data/templates/factories_spec.rb +0 -14
  78. data/templates/factories_spec_rake_task.rb +0 -9
  79. data/templates/import_common_javascripts +0 -4
  80. data/templates/model_spec_helper.rb +0 -38
  81. data/templates/presenters.rb +0 -3
  82. data/templates/rails_root_definition.rb +0 -2
  83. data/templates/rspec +0 -2
  84. data/templates/rspec_config.rb +0 -16
  85. data/templates/simplecov_init.rb +0 -3
  86. data/templates/suspenders_layout.html.slim.erb +0 -12
  87. data/templates/unit_spec_helper.rb +0 -15
  88. data/welaika-suspenders.gemspec +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bd75804513df3c2ca1d1ec1b762a773de7a4caf
4
- data.tar.gz: cd57eda3e4cfd279910f39c8919255ff11932c6c
3
+ metadata.gz: ea2c374607bb3fa7dc50a7128b9f35e1ad6e5887
4
+ data.tar.gz: cf5a55873616498b4a3e3448044599c7785a2ead
5
5
  SHA512:
6
- metadata.gz: 607d82380093cba26fd9861a824f53016bcb3701bf691934562cd6517b611ee7f3efaf4dc762063fb22a0ee441f7d963b4c1ea8b145f2b9ab9e1689d5378d3ae
7
- data.tar.gz: 22f642a87e09108150ede87ea5261f50f8c74fd6fbf547361ded0f94aaa269e887e2c787670d4d9426706188e5ee9225fdd4d1cabbd86c53e573e1abe1e83dc1
6
+ metadata.gz: 887c8e0c178593f5764be5040e12312027604f045a78853e86d2f7968cc55a4eb9c5138c56a795879ac8b339d3b768bd1f174a5ea539087a318daac4551e8fff
7
+ data.tar.gz: a56784561e21028de103b733d7caf8c4cb66873006c2712a424d5b1a9c5bfdb850c1ce41ce1a236ba221aac4b08e09aaf05254583edfef272c41d53677a5f6a5
data/.gitignore CHANGED
@@ -1,9 +1,4 @@
1
1
  *.gem
2
2
  *.swp
3
- .bundle
4
- .rake_tasks
5
- /bin/*
6
- !bin/welaika-suspenders
7
- pkg
8
- test_project
9
- tmp/aruba
3
+ /.bundle
4
+ /tmp
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.4
data/.travis.yml CHANGED
@@ -1,6 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
3
+ - 2.1.4
4
+ before_install:
5
+ - "echo '--colour' > ~/.rspec"
6
+ - git config --global user.name 'Travis CI'
7
+ - git config --global user.email 'travis-ci@example.com'
8
+ install:
9
+ - bundle install
5
10
  notifications:
6
11
  email: false
data/CONTRIBUTING.md CHANGED
@@ -1,38 +1,36 @@
1
- We love pull requests. Here's a quick guide:
1
+ # Contributing
2
2
 
3
- 1. Fork the repo.
3
+ We love pull requests. Here's a quick guide.
4
4
 
5
- 2. Run the tests. We only take pull requests with passing tests, and it's great
6
- to know that you have a clean slate: `bundle && rake`
5
+ Fork the repo:
7
6
 
8
- 3. Add a test for your change. Only refactoring and documentation changes
9
- require no new tests. If you are adding functionality or fixing a bug, we need
10
- a test!
7
+ git clone git@github.com:thoughtbot/suspenders.git
11
8
 
12
- 4. Make the test pass.
9
+ Set up your machine:
13
10
 
14
- 5. Push to your fork and submit a pull request.
11
+ ./bin/setup
15
12
 
13
+ Make sure the tests pass:
16
14
 
17
- At this point you're waiting on us. We like to at least comment on, if not
18
- accept, pull requests within three business days (and, typically, one business
19
- day). We may suggest some changes or improvements or alternatives.
15
+ rake
20
16
 
21
- Some things that will increase the chance that your pull request is accepted,
22
- taken straight from the Ruby on Rails guide:
17
+ Make your change. Add tests for your change. Make the tests pass:
23
18
 
24
- * Use Rails idioms and helpers
25
- * Include tests that fail without your code, and pass with it
26
- * Update the documentation, the surrounding one, examples elsewhere, guides,
27
- whatever is affected by your contribution
19
+ rake
28
20
 
29
- Syntax:
21
+ Push to your fork and [submit a pull request][pr].
30
22
 
31
- * Two spaces, no tabs.
32
- * No trailing whitespace. Blank lines should not have any space.
33
- * Prefer &&/|| over and/or.
34
- * my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
35
- * a = b and not a=b.
36
- * Follow the conventions you see used in the source already.
23
+ [pr]: https://github.com/thoughtbot/suspenders/compare/
37
24
 
38
- And in case we didn't emphasize it enough: we love tests!
25
+ At this point you're waiting on us. We like to at least comment on pull requests
26
+ within three business days (and, typically, one business day). We may suggest
27
+ some changes or improvements or alternatives.
28
+
29
+ Some things that will increase the chance that your pull request is accepted:
30
+
31
+ * Write tests.
32
+ * Follow our [style guide][style].
33
+ * Write a [good commit message][commit].
34
+
35
+ [style]: https://github.com/thoughtbot/guides/tree/master/style
36
+ [commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
data/Gemfile.lock CHANGED
@@ -1,110 +1,135 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- welaika-suspenders (1.4.0)
4
+ welaika-suspenders (2.0.0.pre)
5
+ bitters (~> 0.10.0)
5
6
  bundler (~> 1.3)
6
- hub (~> 1.10)
7
- rails (= 4.0.0)
7
+ rails (= 4.1.7)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.0.0)
13
- actionpack (= 4.0.0)
14
- mail (~> 2.5.3)
15
- actionpack (4.0.0)
16
- activesupport (= 4.0.0)
17
- builder (~> 3.1.0)
18
- erubis (~> 2.7.0)
12
+ actionmailer (4.1.7)
13
+ actionpack (= 4.1.7)
14
+ actionview (= 4.1.7)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ actionpack (4.1.7)
17
+ actionview (= 4.1.7)
18
+ activesupport (= 4.1.7)
19
19
  rack (~> 1.5.2)
20
20
  rack-test (~> 0.6.2)
21
- activemodel (4.0.0)
22
- activesupport (= 4.0.0)
23
- builder (~> 3.1.0)
24
- activerecord (4.0.0)
25
- activemodel (= 4.0.0)
26
- activerecord-deprecated_finders (~> 1.0.2)
27
- activesupport (= 4.0.0)
28
- arel (~> 4.0.0)
29
- activerecord-deprecated_finders (1.0.3)
30
- activesupport (4.0.0)
31
- i18n (~> 0.6, >= 0.6.4)
32
- minitest (~> 4.2)
33
- multi_json (~> 1.3)
21
+ actionview (4.1.7)
22
+ activesupport (= 4.1.7)
23
+ builder (~> 3.1)
24
+ erubis (~> 2.7.0)
25
+ activemodel (4.1.7)
26
+ activesupport (= 4.1.7)
27
+ builder (~> 3.1)
28
+ activerecord (4.1.7)
29
+ activemodel (= 4.1.7)
30
+ activesupport (= 4.1.7)
31
+ arel (~> 5.0.0)
32
+ activesupport (4.1.7)
33
+ i18n (~> 0.6, >= 0.6.9)
34
+ json (~> 1.7, >= 1.7.7)
35
+ minitest (~> 5.1)
34
36
  thread_safe (~> 0.1)
35
- tzinfo (~> 0.3.37)
36
- arel (4.0.0)
37
- aruba (0.5.3)
37
+ tzinfo (~> 1.1)
38
+ arel (5.0.1.20140414130214)
39
+ aruba (0.5.4)
38
40
  childprocess (>= 0.3.6)
39
41
  cucumber (>= 1.1.1)
40
42
  rspec-expectations (>= 2.7.0)
41
- atomic (1.1.10)
42
- builder (3.1.4)
43
- childprocess (0.3.9)
43
+ bitters (0.10.1)
44
+ bourbon (>= 3.2)
45
+ sass (>= 3.2)
46
+ thor
47
+ bourbon (4.0.2)
48
+ sass (~> 3.3)
49
+ thor
50
+ builder (3.2.2)
51
+ capybara (2.3.0)
52
+ mime-types (>= 1.16)
53
+ nokogiri (>= 1.3.3)
54
+ rack (>= 1.0.0)
55
+ rack-test (>= 0.5.4)
56
+ xpath (~> 2.0)
57
+ childprocess (0.5.3)
44
58
  ffi (~> 1.0, >= 1.0.11)
45
- cucumber (1.3.5)
59
+ cucumber (1.3.15)
46
60
  builder (>= 2.1.2)
47
61
  diff-lcs (>= 1.1.3)
48
- gherkin (~> 2.12.0)
49
- multi_json (~> 1.7.5)
50
- multi_test (>= 0.0.2)
51
- diff-lcs (1.2.4)
62
+ gherkin (~> 2.12)
63
+ multi_json (>= 1.7.5, < 2.0)
64
+ multi_test (>= 0.1.1)
65
+ diff-lcs (1.2.5)
52
66
  erubis (2.7.0)
53
- ffi (1.9.0)
54
- gherkin (2.12.0)
67
+ ffi (1.9.3)
68
+ gherkin (2.12.2)
55
69
  multi_json (~> 1.3)
56
70
  hike (1.2.3)
57
- hub (1.10.6)
58
- i18n (0.6.4)
59
- mail (2.5.4)
60
- mime-types (~> 1.16)
61
- treetop (~> 1.4.8)
62
- mime-types (1.23)
63
- minitest (4.7.5)
64
- multi_json (1.7.7)
65
- multi_test (0.0.2)
66
- polyglot (0.3.3)
71
+ i18n (0.6.11)
72
+ json (1.8.1)
73
+ mail (2.6.3)
74
+ mime-types (>= 1.16, < 3)
75
+ mime-types (1.25.1)
76
+ mini_portile (0.6.0)
77
+ minitest (5.4.3)
78
+ multi_json (1.10.1)
79
+ multi_test (0.1.1)
80
+ nokogiri (1.6.2.1)
81
+ mini_portile (= 0.6.0)
67
82
  rack (1.5.2)
68
83
  rack-test (0.6.2)
69
84
  rack (>= 1.0)
70
- rails (4.0.0)
71
- actionmailer (= 4.0.0)
72
- actionpack (= 4.0.0)
73
- activerecord (= 4.0.0)
74
- activesupport (= 4.0.0)
85
+ rails (4.1.7)
86
+ actionmailer (= 4.1.7)
87
+ actionpack (= 4.1.7)
88
+ actionview (= 4.1.7)
89
+ activemodel (= 4.1.7)
90
+ activerecord (= 4.1.7)
91
+ activesupport (= 4.1.7)
75
92
  bundler (>= 1.3.0, < 2.0)
76
- railties (= 4.0.0)
77
- sprockets-rails (~> 2.0.0)
78
- railties (4.0.0)
79
- actionpack (= 4.0.0)
80
- activesupport (= 4.0.0)
93
+ railties (= 4.1.7)
94
+ sprockets-rails (~> 2.0)
95
+ railties (4.1.7)
96
+ actionpack (= 4.1.7)
97
+ activesupport (= 4.1.7)
81
98
  rake (>= 0.8.7)
82
99
  thor (>= 0.18.1, < 2.0)
83
- rake (10.1.0)
84
- rspec-expectations (2.14.0)
100
+ rake (10.3.2)
101
+ rspec (2.99.0)
102
+ rspec-core (~> 2.99.0)
103
+ rspec-expectations (~> 2.99.0)
104
+ rspec-mocks (~> 2.99.0)
105
+ rspec-core (2.99.0)
106
+ rspec-expectations (2.99.0)
85
107
  diff-lcs (>= 1.1.3, < 2.0)
86
- sprockets (2.10.0)
108
+ rspec-mocks (2.99.0)
109
+ sass (3.4.6)
110
+ sprockets (2.12.3)
87
111
  hike (~> 1.2)
88
112
  multi_json (~> 1.0)
89
113
  rack (~> 1.0)
90
114
  tilt (~> 1.1, != 1.3.0)
91
- sprockets-rails (2.0.0)
115
+ sprockets-rails (2.2.0)
92
116
  actionpack (>= 3.0)
93
117
  activesupport (>= 3.0)
94
- sprockets (~> 2.8)
95
- thor (0.18.1)
96
- thread_safe (0.1.2)
97
- atomic
118
+ sprockets (>= 2.8, < 4.0)
119
+ thor (0.19.1)
120
+ thread_safe (0.3.4)
98
121
  tilt (1.4.1)
99
- treetop (1.4.14)
100
- polyglot
101
- polyglot (>= 0.3.1)
102
- tzinfo (0.3.37)
122
+ tzinfo (1.2.2)
123
+ thread_safe (~> 0.1)
124
+ xpath (2.0.0)
125
+ nokogiri (~> 1.3)
103
126
 
104
127
  PLATFORMS
105
128
  ruby
106
129
 
107
130
  DEPENDENCIES
108
- aruba (~> 0.5.2)
131
+ aruba (~> 0.5)
132
+ capybara (~> 2.2, >= 2.2.0)
109
133
  cucumber (~> 1.2)
134
+ rspec (~> 2.0)
110
135
  welaika-suspenders!
data/NEWS.md CHANGED
@@ -1,3 +1,186 @@
1
+ 1.18.0 (October 23, 2014)
2
+
3
+ * Use Ruby 2.1.3.
4
+ * Move New Relic to all gem groups to more easily
5
+ [debug Rails performance in development][debug-performance].
6
+ * Make `bin/setup` idempotent, failing fast with install messages.
7
+ * Fix unevaluated app name in generated `en.yml` locale file.
8
+ * Change `File.exists?` to `File.exist?` to fix Ruby warning.
9
+ * Don't include port 6000 as an option for Foreman; Chome considers it unsafe.
10
+ * Git ignore the entire /tmp directory.
11
+
12
+ [debug-performance]: https://upcase.com/improving-rails-performance
13
+
14
+ 1.17.0 (September 30, 2014)
15
+
16
+ * Use Rails 4.1.6.
17
+ * Generate a `spec/rails_helper.rb` and `spec/spec_helper.rb` following
18
+ RSpec 3.x's example, but using our defaults.
19
+ * Raise on missing i18n translations in test environment.
20
+ * Raise on unpermitted parameters in test environment.
21
+ * Provide example for using Title gem for internationalizing page title text.
22
+
23
+ 1.16.0 (August 16, 2014)
24
+
25
+ * Use the 3.x series of RSpec.
26
+ * Use the 0.10.x series of Bitters.
27
+ * Improve documentation in generated README for machine setup via `bin/setup`
28
+ and https://github.com/thoughtbot/laptop script.
29
+ * Remove Foreman from `Gemfile`.
30
+ * Use i18n-tasks for missing or unused translations.
31
+ * Raise on missing translations in development environment. Fail fast!
32
+ * Prevent empty div when there are no flashes.
33
+ * Pick random port when generating Rails app so multiple apps can be run via
34
+ Foreman on a development machine at the same time.
35
+ * Add `normalize-rails` gem for resetting browser styles.
36
+
37
+ 1.15.0 (July 9, 2014)
38
+
39
+ * Use Rails 4.1.4.
40
+ * Use latest thoughtbot style guidelines in generated code so that
41
+ https://houndci.com will approve the initial commit.
42
+ * Remove Campfire in favor of Slack.
43
+ * Remove Pow in bin/setup.
44
+ * Upgrade Capybara Webkit to support Capybara 2.3 API.
45
+ * Add byebug.
46
+
47
+ 1.14.0 (June 11, 2014)
48
+
49
+ * Set up Bitters during Suspenders setup. http://bitters.bourbon.io/
50
+ * Remove SimpleCov.
51
+ * Force Suspenders to use a particular Rails version (4.1.1).
52
+ * Use RSpec 2.x until Travis/Capybara issues resolve.
53
+ * Set `viewport` to `initial-scale=1`.
54
+
55
+ 1.13.0 (May 29, 2014)
56
+
57
+ * Remove `FactoryGirl.lint` in `before(:suite)` in order to avoid paying and
58
+ estimated extra ~300ms load time on a typical thoughtbot app.
59
+ * Automatically join Heroku app in `bin/setup` if using Heroku organizations.
60
+
61
+ 1.12.0 (May 26, 2014)
62
+
63
+ * Fix `rake dev:prime` now that Suspenders-generated apps require some `ENV`
64
+ variables to be set.
65
+ * Ensure `EMAIL_RECIPIENTS` is set on staging.
66
+ * Clear `ActionMailer` deliveries before every test.
67
+ * Include New Relic configuration file.
68
+ * Add Formulaic gem for integration testing HTML forms.
69
+ * Set up the Segment.io adapter for analytics and event tracking through
70
+ services such as Google Analytics and Intercom.
71
+ * Prepare staging and production environments to serve static assets through a
72
+ CDN.
73
+
74
+ 1.11.0 (May 17, 2014)
75
+
76
+ * Generate a Rails 4.1.1 app and implement fixes for compatibility.
77
+ * Escape ERb in secrets.yml
78
+ * Maintain ActiveRecord test schema.
79
+ * Make Shoulda Matchers work with Spring.
80
+ * Unify Ruby version for gem and suspended apps.
81
+ * Move SMTP variable settings out of initializer.
82
+ * Connect to Postgres on localhost.
83
+ * Add `bin/setup` for contributors.
84
+ * Improve and document TravisCI configuration.
85
+
86
+ 1.10.2 (April 28, 2014)
87
+
88
+ * Fix bundling Bourbon and Neat.
89
+
90
+ 1.10.1 (April 25, 2014)
91
+
92
+ * Fix bundling sass-rails.
93
+
94
+ 1.10.0 (April 21, 2014)
95
+
96
+ * Generate a Rails 4.1 app.
97
+ * Generate a working .ruby-version for Ruby >= 2.1.0.
98
+ * Update Unicorn template to version now preferred by Heroku.
99
+
100
+ 1.9.3 (April 13, 2014)
101
+
102
+ * Use FactoryGirl.lint instead of custom-generated factory-testing code.
103
+ * Fix Delayed::Job <-> Rails 4.1 dependency conflict.
104
+
105
+ 1.9.2 (April 10, 2014)
106
+
107
+ * Join Heroku apps in bin/setup.
108
+ * Enable SMTP/TLS in SMTP settings.
109
+ * Silence an RSpec warning.
110
+
111
+ 1.9.1 (April 7, 2014)
112
+
113
+ * Fix sass-rails environment NilClass error.
114
+
115
+ 1.9.0 (March 24, 2014)
116
+
117
+ * Add `awesome_print` gem.
118
+ * Add `dev:prime` task placeholder for bootstrapping local dev data.
119
+ * Add fix for I18n deprecation warning from `enforce_available_locales`.
120
+ * Add generated `.travis.yml`.
121
+ * Remove `better_errors` because of issues with Unicorn.
122
+ * Remove fast-failing for RSpec; respect user's `~/.rspec` instead.
123
+ * Update New Relic agent.
124
+ * Update Rails to 4.0.3.
125
+
126
+ 1.8.1 (February 19, 2014)
127
+
128
+ * Don't distribute rspec binstub with gem.
129
+
130
+ 1.8.0 (February 18, 2014)
131
+
132
+ * Make the .git/safe directory in bin/setup.
133
+ * Require `rails_12factor` gem only on Heroku.
134
+ * Require mailer config on staging and production.
135
+ * Add rspec binstub.
136
+ * Fix .ruby-version on Ruby 2.1.0.
137
+ * Replace Flutie's `page_title` with `title` gem.
138
+ * Don't run factory specs twice.
139
+ * Inherit staging config from production.
140
+ * Internal: convert tests from Cucumber to RSpec.
141
+ * Don't include `prefilled_input.js`.
142
+ * Fix Rack class name - Deflater instead of Timeout.
143
+ * Add Pry Rails.
144
+ * Add Spring.
145
+ * Add Dotenv to development and test environments to load environment variables
146
+ from the `.env` file.
147
+ * Reduce ActiveRecord connection pool from 5 to 2.
148
+
149
+ 1.7.0 (December 6, 2013)
150
+
151
+ * Keep `db/schema.rb` under version control.
152
+ * Fast-fail if any part of `bin/setup` fails.
153
+ * Move secret key out of version control.
154
+ * Create `.ruby-version` in generated applications.
155
+ * Add placeholder modules and directories for feature specs.
156
+ * Improve README to include setup instructions.
157
+
158
+ 1.6.0 (November 28, 2013)
159
+
160
+ * Do not create `.rspec` file as the settings are not project-specific.
161
+ * Generate RSpec binstub at `bin/rspec`.
162
+ * Fix stylesheet error on 500, 404, and 422 static pages.
163
+ * Add `--skip-git` option.
164
+ * Disable jQuery animations in Rails integration tests that execute JavaScript.
165
+ * Fix git remote bug.
166
+ * Add `Rack::Deflater` to compress responses with Gzip.
167
+
168
+ 1.5.1 (September 10, 2013)
169
+
170
+ * Remove Turbolinks.
171
+ * Don't use Bundler's binstubs in `bin/setup`.
172
+ * Remove `--drb` now that we aren't using Spork.
173
+ * Set up DNS via Pow for development.
174
+ * Update gem versions.
175
+
176
+ 1.5.0 (August 3, 2013)
177
+
178
+ * Add Neat.
179
+ * Replace Bourne with RSpec Mocks.
180
+ * Replace Sham Rack with WebMock.
181
+ * Remove dependency on `hub` gem.
182
+ * Clean up leftover Rails 3 conventions.
183
+
1
184
  1.4.0 (July 21, 2013)
2
185
 
3
186
  * Support Rails 4.
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Suspenders [![Build Status](https://secure.travis-ci.org/welaika/suspenders.png?branch=master)](http://travis-ci.org/welaika/suspenders)
1
+ # weLaika's Suspenders [![Build Status](https://travis-ci.org/welaika/welaika-suspenders.svg?branch=master)](https://travis-ci.org/welaika/welaika-suspenders)
2
+
3
+ This is a [suspenders](https://github.com/thoughtbot/suspenders) fork in use at [weLaika](http://dev.welaika.com).
4
+ Big thanks to [thoughtbot](http://thoughtbot.com/community) for providing such a great starting point.
2
5
 
3
- This is a Suspenders fork in use at [weLaika](http://dev.welaika.com). Big thanks
4
- to [thoughtbot](http://thoughtbot.com/community) for providing such a great starting
5
- point.
6
6
 
7
7
  Installation
8
8
  ------------
@@ -15,135 +15,29 @@ Then run:
15
15
 
16
16
  welaika-suspenders projectname
17
17
 
18
- This will create a Rails 4.0 app in `projectname`. This script creates a
18
+ This will create a rails app in `projectname`. This script creates a
19
19
  new git repository. It is not meant to be used against an existing repo.
20
20
 
21
- Gemfile
22
- -------
23
-
24
- To see the latest and greatest gems, look at Suspenders'
25
- [templates/Gemfile_clean](templates/Gemfile_clean),
26
- which will be appended to the default generated projectname/Gemfile.
27
-
28
- It includes application gems like:
29
-
30
- * [Airbrake](https://github.com/airbrake/airbrake) for exception notification
31
- * [Bourbon](https://github.com/thoughtbot/bourbon) for Sass mixins
32
- * [Delayed Job](https://github.com/collectiveidea/delayed_job) for background
33
- processing
34
- * [Email Validator](https://github.com/balexand/email_validator) for email
35
- validation
36
- * [Flutie](https://github.com/thoughtbot/flutie) for `page_title` and
37
- `body_class` view helpers
38
- * [High Voltage](https://github.com/thoughtbot/high_voltage) for static pages
39
- * [jQuery Rails](https://github.com/rails/jquery-rails) for jQuery
40
- * [Neat](https://github.com/thoughtbot/neat) for semantic grids
41
- * [Postgres](https://github.com/ged/ruby-pg) for access to the Postgres database
42
- * [Rack Timeout](https://github.com/kch/rack-timeout) to abort requests that are
43
- taking too long
44
- * [Recipient Interceptor](https://github.com/croaky/recipient_interceptor) to
45
- avoid accidentally sending emails to real people from staging
46
- * [Simple Form](https://github.com/plataformatec/simple_form) for form markup
47
- and style
48
- * [Unicorn](https://github.com/defunkt/unicorn) to serve HTTP requests
49
-
50
- And gems only for staging and production like:
51
-
52
- * [New Relic RPM](https://github.com/newrelic/rpm) for monitoring performance
53
- * [Rails 12 Factor](https://github.com/heroku/rails_12factor) to making running
54
- Rails 4 apps easier on Heroku
55
-
56
- And testing gems like:
57
-
58
- * [Bourne](https://github.com/thoughtbot/bourne) and
59
- [Mocha](https://github.com/freerange/mocha) for stubbing and spying
60
- * [Capybara](https://github.com/jnicklas/capybara) and
61
- [Capybara Webkit](https://github.com/thoughtbot/capybara-webkit) for
62
- integration testing
63
- * [Factory Girl](https://github.com/thoughtbot/factory_girl) for test data
64
- * [RSpec](https://github.com/rspec/rspec) for unit testing
65
- * [Shoulda Matchers](https://github.com/thoughtbot/shoulda-matchers) for common
66
- RSpec matchers
67
- * [Timecop](https://github.com/jtrupiano/timecop-console) for testing time
68
-
69
- Other goodies
70
- -------------
71
-
72
- Suspenders also comes with:
73
-
74
- * Override recipient emails in staging environment.
75
- * Rails' flashes set up and in application layout.
76
- * A few nice time formats set up for localization.
77
- * [Heroku-recommended asset pipeline
78
- settings](https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar/).
79
-
80
- Heroku
81
- ------
82
-
83
- You can optionally create Heroku staging and production apps:
84
-
85
- welaika-suspenders app --heroku true
86
-
87
- This has the same effect as running:
88
-
89
- heroku create app-staging --remote staging
90
- heroku create app-production --remote production
91
-
92
- Github
93
- ------
94
-
95
- You can optionally create a Github repository:
96
-
97
- welaika-suspenders app --github organization/project
98
-
99
- This has the same effect as running:
100
-
101
- hub create organization/project
102
-
103
- Dependencies
104
- ------------
105
-
106
- Suspenders requires Ruby 1.9.2 or greater.
107
-
108
- Some gems included in Suspenders have native extensions. You should have GCC
109
- installed on your machine before generating an app with Suspenders.
110
-
111
- Use [OS X GCC Installer](https://github.com/kennethreitz/osx-gcc-installer/) for
112
- Snow Leopard (OS X 10.6).
113
-
114
- Use [Command Line Tools for XCode](https://developer.apple.com/downloads/index.action)
115
- for Lion (OS X 10.7) or Mountain Lion (OS X 10.8).
116
-
117
- We use [Capybara Webkit](https://github.com/thoughtbot/capybara-webkit) for
118
- full-stack Javascript integration testing. It requires QT. Instructions for
119
- installing QT are
120
- [here](https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit).
121
-
122
- PostgreSQL needs to be installed and running for the `db:create` rake task.
123
-
124
- Issues
125
- ------
126
-
127
- If you have problems, please create a
128
- [Github Issue](https://github.com/thoughtbot/suspenders/issues).
129
-
130
- Contributing
131
- ------------
132
21
 
133
- Please see CONTRIBUTING.md for details.
22
+ Version number
23
+ --------------
134
24
 
135
- Credits
136
- -------
25
+ `welaika-suspenders` version number isn't related to thoughbot's [suspenders](https://github.com/thoughtbot/suspenders).
137
26
 
138
- ![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
139
27
 
140
- Suspenders is maintained and funded by
141
- [thoughtbot, inc](http://thoughtbot.com/community).
28
+ Changelog
29
+ ---------
142
30
 
143
- The names and logos for thoughtbot are trademarks of thoughtbot, inc.
31
+ We merge commits from thoughbot's [suspenders](https://github.com/thoughtbot/suspenders) periodically.
144
32
 
145
- License
146
- -------
33
+ List of changes we made since [this is commit](https://github.com/thoughtbot/suspenders/tree/d24d6eab4cc254f8bebfd73fd2b26fbbd2647e86):
34
+ - remove `host` key in database.yml
35
+ - add [priscilla](https://github.com/Arkham/priscilla) gem
36
+ - add [pry-bloodline](https://github.com/Arkham/pry-bloodline) gem
37
+ - add [rails-i18n](https://github.com/svenfuchs/rails-i18n) gem and use italian, english as available locales
38
+ - add [letter_opener](https://github.com/ryanb/letter_opener) gem
39
+ - add [faker](https://github.com/stympy/faker) gem
40
+ - remove segment.io javascript code
41
+ - add [slim-rails](https://github.com/slim-template/slim-rails) gem
42
+ - add some html meta tags
147
43
 
148
- Suspenders is Copyright © 2008-2013 thoughtbot. It is free software, and may be
149
- redistributed under the terms specified in the LICENSE file.
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
1
  require 'bundler/setup'
2
2
  require 'bundler/gem_tasks'
3
- require 'cucumber/rake/task'
3
+ require 'rspec/core/rake_task'
4
4
 
5
- Cucumber::Rake::Task.new
5
+ RSpec::Core::RakeTask.new(:rspec)
6
6
 
7
7
  desc 'Run the test suite'
8
- task :default => ['cucumber']
8
+ task :default => :rspec