railslove-suspenders 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/railslove-suspenders/app_builder.rb +4 -17
- data/lib/railslove-suspenders/generators/app_generator.rb +1 -3
- data/lib/railslove-suspenders/version.rb +1 -1
- data/railslove-suspenders.gemspec +2 -2
- data/templates/Gemfile_clean +3 -4
- metadata +5 -10
- data/templates/email_validator.rb +0 -7
- data/templates/strong_parameters.rb +0 -1
data/README.md
CHANGED
@@ -57,8 +57,8 @@ module RailsloveSuspenders
|
|
57
57
|
def setup_staging_environment
|
58
58
|
run 'cp config/environments/production.rb config/environments/staging.rb'
|
59
59
|
|
60
|
-
prepend_file 'config/environments/staging.rb',
|
61
|
-
|
60
|
+
# prepend_file 'config/environments/staging.rb',
|
61
|
+
# "Mail.register_interceptor RecipientInterceptor.new(ENV['EMAIL_RECIPIENTS'])\n"
|
62
62
|
end
|
63
63
|
|
64
64
|
def initialize_on_precompile
|
@@ -175,16 +175,6 @@ module RailsloveSuspenders
|
|
175
175
|
run 'rails g delayed_job:active_record'
|
176
176
|
end
|
177
177
|
|
178
|
-
def blacklist_active_record_attributes
|
179
|
-
replace_in_file 'config/application.rb',
|
180
|
-
'config.active_record.whitelist_attributes = true',
|
181
|
-
'config.active_record.whitelist_attributes = false'
|
182
|
-
end
|
183
|
-
|
184
|
-
def configure_strong_parameters
|
185
|
-
copy_file 'strong_parameters.rb', 'config/initializers/strong_parameters.rb'
|
186
|
-
end
|
187
|
-
|
188
178
|
def configure_time_zone
|
189
179
|
config = <<-RUBY
|
190
180
|
config.active_record.default_timezone = :utc
|
@@ -255,7 +245,8 @@ module RailsloveSuspenders
|
|
255
245
|
'spec/support/mixins',
|
256
246
|
'spec/support/shared_examples'
|
257
247
|
].each do |dir|
|
258
|
-
|
248
|
+
run "mkdir #{dir}"
|
249
|
+
run "touch #{dir}/.gitkeep"
|
259
250
|
end
|
260
251
|
end
|
261
252
|
|
@@ -301,10 +292,6 @@ module RailsloveSuspenders
|
|
301
292
|
"Application.routes.draw do\nend"
|
302
293
|
end
|
303
294
|
|
304
|
-
def add_email_validator
|
305
|
-
copy_file 'email_validator.rb', 'app/validators/email_validator.rb'
|
306
|
-
end
|
307
|
-
|
308
295
|
def disable_xml_params
|
309
296
|
copy_file 'disable_xml_params.rb', 'config/initializers/disable_xml_params.rb'
|
310
297
|
end
|
@@ -117,12 +117,10 @@ module RailsloveSuspenders
|
|
117
117
|
say 'Configuring app'
|
118
118
|
build :configure_action_mailer
|
119
119
|
build :blacklist_active_record_attributes
|
120
|
-
# build :configure_strong_parameters
|
121
120
|
build :configure_time_zone
|
122
121
|
build :configure_time_formats
|
123
|
-
build :configure_rack_timeout
|
122
|
+
# build :configure_rack_timeout
|
124
123
|
build :disable_xml_params
|
125
|
-
build :add_email_validator
|
126
124
|
build :setup_default_rake_task
|
127
125
|
# build :configure_unicorn
|
128
126
|
# build :setup_foreman
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.required_ruby_version = '>= 1.9.2'
|
8
8
|
s.add_dependency 'bundler', '~> 1.3'
|
9
9
|
s.add_dependency 'hub', '~> 1.10'
|
10
|
-
s.add_dependency 'rails', '
|
10
|
+
s.add_dependency 'rails', '4.0.0'
|
11
11
|
# s.add_development_dependency 'aruba', '~> 0.5'
|
12
12
|
# s.add_development_dependency 'cucumber', '~> 1.2'
|
13
13
|
s.authors = ['stephanpavlovic']
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
s.description = <<-HERE
|
17
17
|
Suspenders is a base Rails project that you can upgrade. It is used by
|
18
|
-
|
18
|
+
railslove to get a jump start on a working app. Use Suspenders if you're in a
|
19
19
|
rush to build something amazing; don't use it if you like missing deadlines.
|
20
20
|
HERE
|
21
21
|
|
data/templates/Gemfile_clean
CHANGED
@@ -4,15 +4,15 @@ gem 'airbrake'
|
|
4
4
|
gem 'compass'
|
5
5
|
gem 'jquery-rails'
|
6
6
|
gem 'pg'
|
7
|
-
gem 'rails', '>=
|
7
|
+
gem 'rails', '>= 4.0.0'
|
8
8
|
gem 'quiet_assets'
|
9
9
|
gem 'newrelic_rpm'
|
10
|
-
|
10
|
+
gem 'haml-rails'
|
11
11
|
|
12
12
|
group :assets do
|
13
13
|
gem 'coffee-rails'
|
14
|
+
gem 'compass-rails'
|
14
15
|
gem 'sass-rails'
|
15
|
-
gem 'haml-rails'
|
16
16
|
gem 'uglifier'
|
17
17
|
end
|
18
18
|
|
@@ -20,7 +20,6 @@ group :development do
|
|
20
20
|
gem 'better_errors'
|
21
21
|
gem 'binding_of_caller'
|
22
22
|
gem 'smurfville'
|
23
|
-
gem 'i18n_viz'
|
24
23
|
end
|
25
24
|
|
26
25
|
group :development, :test do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railslove-suspenders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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: 2013-
|
12
|
+
date: 2013-09-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - '='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 4.0.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,11 +58,11 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 4.0.0
|
62
62
|
description: ! 'Suspenders is a base Rails project that you can upgrade. It is used
|
63
63
|
by
|
64
64
|
|
65
|
-
|
65
|
+
railslove to get a jump start on a working app. Use Suspenders if you''re in a
|
66
66
|
|
67
67
|
rush to build something amazing; don''t use it if you like missing deadlines.
|
68
68
|
|
@@ -109,7 +109,6 @@ files:
|
|
109
109
|
- templates/config_locales_en.yml
|
110
110
|
- templates/database_cleaner_rspec.rb
|
111
111
|
- templates/disable_xml_params.rb
|
112
|
-
- templates/email_validator.rb
|
113
112
|
- templates/errors.rb
|
114
113
|
- templates/factories_spec.rb
|
115
114
|
- templates/factories_spec_rake_task.rb
|
@@ -122,7 +121,6 @@ files:
|
|
122
121
|
- templates/sample.env
|
123
122
|
- templates/simplecov_init.rb
|
124
123
|
- templates/smtp.rb
|
125
|
-
- templates/strong_parameters.rb
|
126
124
|
- templates/stylesheets/_shame.css.sass
|
127
125
|
- templates/stylesheets/application.css.sass
|
128
126
|
- templates/stylesheets/base/_colors.css.sass
|
@@ -154,9 +152,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
152
|
- - ! '>='
|
155
153
|
- !ruby/object:Gem::Version
|
156
154
|
version: '0'
|
157
|
-
segments:
|
158
|
-
- 0
|
159
|
-
hash: -4278784182071573656
|
160
155
|
requirements: []
|
161
156
|
rubyforge_project:
|
162
157
|
rubygems_version: 1.8.21
|
@@ -1 +0,0 @@
|
|
1
|
-
ActiveRecord::Base.send :include, ActiveModel::ForbiddenAttributesProtection
|