welaika-suspenders 2.2.1 → 2.3.0

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: 4f634aab82dfbf90992167f4c6ff2fa402bbcb13
4
- data.tar.gz: f478032d2a5b4d4b31bd11053a26f1d6e0292474
3
+ metadata.gz: cf7022f2b37a0700fadecdc3fee3ae499e5014c8
4
+ data.tar.gz: bf41da9706fa43631bfc42a814e22e345bc6dd44
5
5
  SHA512:
6
- metadata.gz: d77fd242ddd18f160e66c5a218d982507a0887c1bfab8c74a3c77154fb1e45c92ed8685615c585323513c8ea9f6e8d182f09e75f0ef2f7813caaf3b30764b4b2
7
- data.tar.gz: df8263f179dcc15f88d603fff876f221d4929571c80c9292f4720112a43a4529880c6cda419fc265aeee2e7e6aa81264a7916cfe687cdfe8b596c3931558321a
6
+ metadata.gz: a27f6edc2500ee53cbd62ce0f13704e1b48c1497aff5a49f775102a6e52eb4f914e4f147f2a6e53e16fc632461f61f2e724b922dcba5f59bdb5609382670abfe
7
+ data.tar.gz: 319ce8f5816f0928a7c690ee71c69bdb8ea6f8d7cdfe8737ce079f5886dbac7bf5ec7fb8a102b6614951fb9081a7ee462afa190fb0bbde1b589153b8a5a57c66
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- welaika-suspenders (2.2.1)
4
+ welaika-suspenders (2.3.0)
5
5
  bitters (~> 0.10.0)
6
6
  bundler (~> 1.3)
7
7
  rails (= 4.1.8)
@@ -74,7 +74,7 @@ GEM
74
74
  mime-types (>= 1.16, < 3)
75
75
  mime-types (1.25.1)
76
76
  mini_portile (0.6.0)
77
- minitest (5.4.3)
77
+ minitest (5.5.0)
78
78
  multi_json (1.10.1)
79
79
  multi_test (0.1.1)
80
80
  nokogiri (1.6.2.1)
data/README.md CHANGED
@@ -4,13 +4,17 @@ This is a [suspenders](https://github.com/thoughtbot/suspenders) fork in use at
4
4
  Big thanks to [thoughtbot](http://thoughtbot.com/community) for providing such a great starting point.
5
5
 
6
6
 
7
- Installation
8
- ------------
7
+ ## Installation
9
8
 
10
9
  First install the suspenders gem:
11
10
 
12
11
  gem install welaika-suspenders
13
12
 
13
+ If you are using RVM, please create a new gemset named like `projectname`:
14
+
15
+ rvm gemset create projectname
16
+ rvm gemset use projectname
17
+
14
18
  Then run:
15
19
 
16
20
  welaika-suspenders projectname
@@ -18,22 +22,19 @@ Then run:
18
22
  This will create a rails app in `projectname`. This script creates a
19
23
  new git repository. It is not meant to be used against an existing repo.
20
24
 
21
- If you want to add an existing repo, run
22
-
23
- git remote add origin git@github.com:welaika/projectname.git
24
-
25
25
  Then run:
26
26
 
27
27
  cd projectname && bin/setup
28
28
 
29
- Version number
30
- --------------
29
+ If you want to add an empty bare repository as origin, run
31
30
 
32
- `welaika-suspenders` version number isn't related to thoughbot's [suspenders](https://github.com/thoughtbot/suspenders).
31
+ git remote add origin git@github.com:welaika/projectname.git
33
32
 
33
+ ## Version number
34
34
 
35
- Changelog
36
- ---------
35
+ `welaika-suspenders` version number isn't related to thoughbot's [suspenders](https://github.com/thoughtbot/suspenders).
36
+
37
+ ## Changelog
37
38
 
38
39
  We merge commits from thoughbot's [suspenders](https://github.com/thoughtbot/suspenders) periodically.
39
40
 
@@ -48,4 +49,6 @@ List of changes we made since [this is commit](https://github.com/thoughtbot/sus
48
49
  - add [slim-rails](https://github.com/slim-template/slim-rails) gem
49
50
  - add some html meta tags
50
51
  - use EU region as default for Heroku
51
-
52
+ - use pry-byebug instead of byebug
53
+ - use CDATA wrapper for javascript
54
+ - create a .ruby-gemset file with app name
@@ -168,6 +168,10 @@ end
168
168
  create_file '.ruby-version', "#{Suspenders::RUBY_VERSION}\n"
169
169
  end
170
170
 
171
+ def create_ruby_gemset_file
172
+ create_file '.ruby-gemset', "#{app_name}\n"
173
+ end
174
+
171
175
  def setup_heroku_specific_gems
172
176
  inject_into_file 'Gemfile', "\n\s\sgem 'rails_12factor'",
173
177
  after: /group :staging, :production do/
@@ -233,6 +237,10 @@ end
233
237
  copy_file 'rack_timeout.rb', 'config/initializers/rack_timeout.rb'
234
238
  end
235
239
 
240
+ def configure_slim
241
+ copy_file 'slim.rb', 'config/initializers/slim.rb'
242
+ end
243
+
236
244
  def configure_action_mailer
237
245
  action_mailer_host 'development', "localhost:#{port_number}"
238
246
  action_mailer_host 'test', 'www.example.com'
@@ -45,6 +45,7 @@ module Suspenders
45
45
 
46
46
  def customize_gemfile
47
47
  build :replace_gemfile
48
+ build :create_ruby_gemset_file
48
49
  build :set_ruby_to_version_being_used
49
50
 
50
51
  if options[:heroku]
@@ -126,6 +127,7 @@ module Suspenders
126
127
  build :configure_time_zone
127
128
  build :configure_time_formats
128
129
  build :configure_rack_timeout
130
+ build :configure_slim
129
131
  build :disable_xml_params
130
132
  build :configure_available_locales
131
133
  build :fix_i18n_deprecation_warning
@@ -1,5 +1,5 @@
1
1
  module Suspenders
2
2
  RAILS_VERSION = "4.1.8"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "2.2.1"
4
+ VERSION = "2.3.0"
5
5
  end
@@ -29,6 +29,14 @@ feature 'Suspend a new project with default configuration' do
29
29
  expect(ruby_version_file).to eq "#{RUBY_VERSION}\n"
30
30
  end
31
31
 
32
+ scenario 'generated .ruby-gemset is pulled from app name' do
33
+ run_suspenders
34
+
35
+ ruby_gemset_file = IO.read("#{project_path}/.ruby-gemset")
36
+
37
+ expect(ruby_gemset_file).to eq "#{SuspendersTestHelpers::APP_NAME}\n"
38
+ end
39
+
32
40
  scenario 'secrets.yml reads secret from env' do
33
41
  run_suspenders
34
42
 
@@ -35,12 +35,12 @@ end
35
35
 
36
36
  group :development, :test do
37
37
  gem "awesome_print"
38
- gem "byebug"
39
38
  gem "dotenv-rails"
40
39
  gem "faker"
41
40
  gem "factory_girl_rails"
42
41
  gem "priscilla"
43
42
  gem "pry-bloodline"
43
+ gem "pry-byebug"
44
44
  gem "pry-rails"
45
45
  gem "rspec-rails", "~> 3.0.0"
46
46
  end
@@ -1,8 +1,6 @@
1
- <%= app_name.humanize %>
2
- <%= '=' * app_name.humanize.length %>
1
+ # <%= app_name.humanize %>
3
2
 
4
- Getting Started
5
- ---------------
3
+ ## Getting Started
6
4
 
7
5
  After you have cloned this repo, run this setup script to set up your machine
8
6
  with the necessary dependencies to run and test this app:
@@ -24,8 +22,7 @@ is [purposefully excluded from the project's `Gemfile`][exclude].
24
22
  [foreman]: https://github.com/ddollar/foreman
25
23
  [exclude]: https://github.com/ddollar/foreman/pull/437#issuecomment-41110407
26
24
 
27
- Guidelines
28
- ----------
25
+ ## Guidelines
29
26
 
30
27
  Use the following guides for getting things done, programming well, and
31
28
  programming in style.
data/templates/slim.rb ADDED
@@ -0,0 +1 @@
1
+ Slim::Engine.set_options({ js_wrapper: :cdata })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: welaika-suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-15 00:00:00.000000000 Z
12
+ date: 2014-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bitters
@@ -180,6 +180,7 @@ files:
180
180
  - templates/rails_helper.rb
181
181
  - templates/sample.env
182
182
  - templates/secrets.yml
183
+ - templates/slim.rb
183
184
  - templates/smtp.rb
184
185
  - templates/spec_helper.rb
185
186
  - templates/staging.rb