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 CHANGED
@@ -10,6 +10,8 @@ First install the suspenders gem:
10
10
 
11
11
  gem install railslove-suspenders
12
12
 
13
+ Make sure that you have your local postgres running on port 5432
14
+
13
15
  Then run:
14
16
 
15
17
  railslove-suspenders projectname
@@ -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
- "Mail.register_interceptor RecipientInterceptor.new(ENV['EMAIL_RECIPIENTS'])\n"
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
- empty_directory_with_gitkeep dir
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
@@ -1,4 +1,4 @@
1
1
  module RailsloveSuspenders
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  # suspenders 1.3.0
4
4
  end
@@ -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', '3.2.13'
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
- thoughtbot to get a jump start on a working app. Use Suspenders if you're in a
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
 
@@ -4,15 +4,15 @@ gem 'airbrake'
4
4
  gem 'compass'
5
5
  gem 'jquery-rails'
6
6
  gem 'pg'
7
- gem 'rails', '>= 3.2.13'
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.0
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-06-06 00:00:00.000000000 Z
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: 3.2.13
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: 3.2.13
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
- thoughtbot to get a jump start on a working app. Use Suspenders if you''re in a
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,7 +0,0 @@
1
- class EmailValidator < ActiveModel::EachValidator
2
- def validate_each(record, attribute, value)
3
- unless value =~ /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
4
- record.errors[attribute] << (options[:message] || "is not an email")
5
- end
6
- end
7
- end
@@ -1 +0,0 @@
1
- ActiveRecord::Base.send :include, ActiveModel::ForbiddenAttributesProtection