bretels 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9f3d7058249bf44bd2f659ed79719a99787685bc
4
+ data.tar.gz: 6dbedd997aacbcd23393e19d7b8ad24bb14553ce
5
+ SHA512:
6
+ metadata.gz: 496efbb24f8eff4b8c2758b2686938f6d4ac28bacd5b1436f5a153748bc58fd51bfa78fb1c301d887f9aefdc462af3db0d395030b0e4b43fd68305f1867da1ed
7
+ data.tar.gz: b9b042865639d705c08f72520b24a2611e9b600da7f6828349332404d99f43dc8e180821297648fabcf9c4c717abbacdc662900df19a5d23016e4435cefb87f4
@@ -1,89 +1,83 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bretels (1.0.0)
4
+ bretels (1.0.1)
5
5
  bundler (>= 1.1)
6
6
  hub (~> 1.10.2)
7
- rails (= 3.2.12)
7
+ rails (= 4.0.0)
8
8
 
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- actionmailer (3.2.12)
13
- actionpack (= 3.2.12)
14
- mail (~> 2.4.4)
15
- actionpack (3.2.12)
16
- activemodel (= 3.2.12)
17
- activesupport (= 3.2.12)
18
- builder (~> 3.0.0)
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)
19
18
  erubis (~> 2.7.0)
20
- journey (~> 1.0.4)
21
- rack (~> 1.4.5)
22
- rack-cache (~> 1.2)
23
- rack-test (~> 0.6.1)
24
- sprockets (~> 2.2.1)
25
- activemodel (3.2.12)
26
- activesupport (= 3.2.12)
27
- builder (~> 3.0.0)
28
- activerecord (3.2.12)
29
- activemodel (= 3.2.12)
30
- activesupport (= 3.2.12)
31
- arel (~> 3.0.2)
32
- tzinfo (~> 0.3.29)
33
- activeresource (3.2.12)
34
- activemodel (= 3.2.12)
35
- activesupport (= 3.2.12)
36
- activesupport (3.2.12)
37
- i18n (~> 0.6)
38
- multi_json (~> 1.0)
39
- arel (3.0.2)
40
- builder (3.0.4)
19
+ rack (~> 1.5.2)
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)
34
+ thread_safe (~> 0.1)
35
+ tzinfo (~> 0.3.37)
36
+ arel (4.0.0)
37
+ atomic (1.1.12)
38
+ builder (3.1.4)
41
39
  erubis (2.7.0)
42
- hike (1.2.1)
40
+ hike (1.2.3)
43
41
  hub (1.10.4)
44
42
  i18n (0.6.4)
45
- journey (1.0.4)
46
- json (1.7.6)
47
- mail (2.4.4)
48
- i18n (>= 0.4.0)
43
+ mail (2.5.4)
49
44
  mime-types (~> 1.16)
50
45
  treetop (~> 1.4.8)
51
- mime-types (1.21)
52
- multi_json (1.7.0)
46
+ mime-types (1.23)
47
+ minitest (4.7.5)
48
+ multi_json (1.7.8)
53
49
  polyglot (0.3.3)
54
- rack (1.4.5)
55
- rack-cache (1.2)
56
- rack (>= 0.4)
57
- rack-ssl (1.3.3)
58
- rack
50
+ rack (1.5.2)
59
51
  rack-test (0.6.2)
60
52
  rack (>= 1.0)
61
- rails (3.2.12)
62
- actionmailer (= 3.2.12)
63
- actionpack (= 3.2.12)
64
- activerecord (= 3.2.12)
65
- activeresource (= 3.2.12)
66
- activesupport (= 3.2.12)
67
- bundler (~> 1.0)
68
- railties (= 3.2.12)
69
- railties (3.2.12)
70
- actionpack (= 3.2.12)
71
- activesupport (= 3.2.12)
72
- rack-ssl (~> 1.3.2)
53
+ rails (4.0.0)
54
+ actionmailer (= 4.0.0)
55
+ actionpack (= 4.0.0)
56
+ activerecord (= 4.0.0)
57
+ activesupport (= 4.0.0)
58
+ bundler (>= 1.3.0, < 2.0)
59
+ railties (= 4.0.0)
60
+ sprockets-rails (~> 2.0.0)
61
+ railties (4.0.0)
62
+ actionpack (= 4.0.0)
63
+ activesupport (= 4.0.0)
73
64
  rake (>= 0.8.7)
74
- rdoc (~> 3.4)
75
- thor (>= 0.14.6, < 2.0)
76
- rake (10.0.3)
77
- rdoc (3.12.2)
78
- json (~> 1.4)
79
- sprockets (2.2.2)
65
+ thor (>= 0.18.1, < 2.0)
66
+ rake (10.1.0)
67
+ sprockets (2.10.0)
80
68
  hike (~> 1.2)
81
69
  multi_json (~> 1.0)
82
70
  rack (~> 1.0)
83
71
  tilt (~> 1.1, != 1.3.0)
84
- thor (0.17.0)
85
- tilt (1.3.5)
86
- treetop (1.4.12)
72
+ sprockets-rails (2.0.0)
73
+ actionpack (>= 3.0)
74
+ activesupport (>= 3.0)
75
+ sprockets (~> 2.8)
76
+ thor (0.18.1)
77
+ thread_safe (0.1.2)
78
+ atomic
79
+ tilt (1.4.1)
80
+ treetop (1.4.14)
87
81
  polyglot
88
82
  polyglot (>= 0.3.1)
89
83
  tzinfo (0.3.37)
@@ -26,7 +26,7 @@ Fork of thoughtbot's Suspenders for use at Brightin.
26
26
  s.rdoc_options = ["--charset=UTF-8"]
27
27
  s.extra_rdoc_files = %w[README.md LICENSE]
28
28
 
29
- s.add_dependency 'rails', '3.2.12'
29
+ s.add_dependency 'rails', '4.0.0'
30
30
  s.add_dependency 'bundler', '>= 1.1'
31
31
  s.add_dependency 'hub', '~> 1.10.2'
32
32
  end
@@ -85,8 +85,8 @@ module Bretels
85
85
  end
86
86
 
87
87
  def lib_in_load_path
88
- replace_in_file 'config/application.rb',
89
- '# config.autoload_paths += %W(#{config.root}/extras)', 'config.autoload_paths += Dir["#{config.root}/lib/**/"]'
88
+ inject_into_file 'config/application.rb', "\n\n" + ' config.autoload_paths += Dir["#{config.root}/lib/**/"]',
89
+ after: /class Application < Rails::Application/
90
90
  end
91
91
 
92
92
  def create_partials_directory
@@ -127,9 +127,6 @@ module Bretels
127
127
  end
128
128
 
129
129
  def configure_rspec
130
- remove_file '.rspec'
131
- copy_file 'rspec', '.rspec'
132
-
133
130
  config = <<-RUBY
134
131
 
135
132
  # Hand-pick the generators we use
@@ -148,12 +145,6 @@ module Bretels
148
145
  inject_into_class 'config/application.rb', 'Application', config
149
146
  end
150
147
 
151
- def blacklist_active_record_attributes
152
- replace_in_file 'config/application.rb',
153
- 'config.active_record.whitelist_attributes = true',
154
- 'config.active_record.whitelist_attributes = false'
155
- end
156
-
157
148
  def configure_strong_parameters
158
149
  copy_file 'strong_parameters.rb', 'config/initializers/strong_parameters.rb'
159
150
  end
@@ -189,7 +180,6 @@ module Bretels
189
180
  end
190
181
 
191
182
  def setup_foreman
192
- copy_file 'sample.env', '.sample.env'
193
183
  copy_file 'unicorn.rb', 'config/unicorn.rb'
194
184
  copy_file 'Procfile', 'Procfile'
195
185
  end
@@ -208,7 +198,8 @@ module Bretels
208
198
  'spec/features',
209
199
  'spec/models',
210
200
  ].each do |dir|
211
- empty_directory_with_gitkeep dir
201
+ empty_directory(dir)
202
+ create_file("#{dir}/.gitkeep")
212
203
  end
213
204
  end
214
205
 
@@ -268,5 +259,14 @@ module Bretels
268
259
  end
269
260
  end
270
261
 
262
+ def raise_unpermitted_params
263
+ config = <<-RUBY
264
+ \n\n config.action_controller.action_on_unpermitted_parameters = :raise
265
+ RUBY
266
+
267
+ inject_into_file 'config/environments/development.rb', config.rstrip,
268
+ :after => "config.assets.debug = true"
269
+ end
270
+
271
271
  end
272
272
  end
@@ -98,8 +98,8 @@ module Bretels
98
98
  def configure_app
99
99
  say 'Configuring app'
100
100
  build :configure_action_mailer
101
- build :blacklist_active_record_attributes
102
101
  build :configure_strong_parameters
102
+ build :raise_unpermitted_params
103
103
  build :configure_time_zone
104
104
  build :configure_time_formats
105
105
  build :configure_dutch_language
@@ -1,3 +1,3 @@
1
1
  module Bretels
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -1,19 +1,14 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '3.2.12'
4
- gem 'flutie'
3
+ gem 'rails', '4.0.0'
4
+ gem 'coffee-rails'
5
5
  gem 'jquery-rails'
6
6
  gem 'pg'
7
7
  gem 'rack-timeout'
8
- gem 'strong_parameters'
9
- gem 'unicorn'
10
8
  gem 'rails-i18n'
11
-
12
- group :assets do
13
- gem 'coffee-rails'
14
- gem 'sass-rails'
15
- gem 'uglifier'
16
- end
9
+ gem 'sass-rails'
10
+ gem 'uglifier'
11
+ gem 'unicorn'
17
12
 
18
13
  group :development do
19
14
  gem 'foreman'
@@ -35,6 +30,7 @@ group :test do
35
30
  end
36
31
 
37
32
  group :staging, :production do
33
+ gem 'rails_12factor'
38
34
  gem 'exceptional'
39
35
  gem 'newrelic_rpm'
40
36
  end
@@ -1,5 +1,3 @@
1
- <%= javascript_include_tag :application %>
2
-
3
1
  <%= yield :javascript %>
4
2
 
5
3
  <% if Rails.env.test? %>
@@ -7,7 +7,6 @@
7
7
  *.DS_Store
8
8
  *.swp
9
9
  .env
10
- bin/stubs
11
10
  coverage/*
12
11
  public/system
13
12
  rerun.txt
@@ -4,12 +4,13 @@
4
4
  <head>
5
5
  <meta charset="utf-8" />
6
6
  <meta name="robots" content="noopd" />
7
- <title><%%= page_title %></title>
7
+ <title></title>
8
8
  <%%= stylesheet_link_tag :application, :media => 'all' %>
9
+ <%%= javascript_include_tag :application %>
9
10
  <%%= csrf_meta_tags %>
10
11
  </head>
11
12
 
12
- <body class="<%%= body_class %>">
13
+ <body>
13
14
  <%%= render 'flashes' %>
14
15
  <%%= yield %>
15
16
  <%%= render 'javascript' %>
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bretels
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - brightin
@@ -10,44 +9,39 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-04-12 00:00:00.000000000 Z
12
+ date: 2013-08-08 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rails
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - '='
21
19
  - !ruby/object:Gem::Version
22
- version: 3.2.12
20
+ version: 4.0.0
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - '='
29
26
  - !ruby/object:Gem::Version
30
- version: 3.2.12
27
+ version: 4.0.0
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: bundler
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '1.1'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '1.1'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: hub
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ~>
53
47
  - !ruby/object:Gem::Version
@@ -55,14 +49,12 @@ dependencies:
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ~>
61
54
  - !ruby/object:Gem::Version
62
55
  version: 1.10.2
63
- description: ! 'Fork of thoughtbot''s Suspenders for use at Brightin.
64
-
65
- '
56
+ description: |
57
+ Fork of thoughtbot's Suspenders for use at Brightin.
66
58
  email: developers@brightin.com
67
59
  executables:
68
60
  - bretels
@@ -87,7 +79,6 @@ files:
87
79
  - templates/README.md.erb
88
80
  - templates/_flashes.html.erb
89
81
  - templates/_javascript.html.erb
90
- - templates/bin_setup
91
82
  - templates/config_locales_nl.yml
92
83
  - templates/database_cleaner_rspec.rb
93
84
  - templates/disable_xml_params.rb
@@ -98,8 +89,6 @@ files:
98
89
  - templates/factory_girl_syntax_rspec.rb
99
90
  - templates/postgresql_database.yml.erb
100
91
  - templates/rack_timeout.rb
101
- - templates/rspec
102
- - templates/sample.env
103
92
  - templates/spec_helper.rb
104
93
  - templates/staging.rb.erb
105
94
  - templates/strong_parameters.rb
@@ -108,33 +97,26 @@ files:
108
97
  - templates/unicorn.rb
109
98
  homepage: http://github.com/brightin/bretels
110
99
  licenses: []
100
+ metadata: {}
111
101
  post_install_message:
112
102
  rdoc_options:
113
103
  - --charset=UTF-8
114
104
  require_paths:
115
105
  - lib
116
106
  required_ruby_version: !ruby/object:Gem::Requirement
117
- none: false
118
107
  requirements:
119
- - - ! '>='
108
+ - - '>='
120
109
  - !ruby/object:Gem::Version
121
110
  version: '0'
122
- segments:
123
- - 0
124
- hash: -35484308327208431
125
111
  required_rubygems_version: !ruby/object:Gem::Requirement
126
- none: false
127
112
  requirements:
128
- - - ! '>='
113
+ - - '>='
129
114
  - !ruby/object:Gem::Version
130
115
  version: '0'
131
- segments:
132
- - 0
133
- hash: -35484308327208431
134
116
  requirements: []
135
117
  rubyforge_project:
136
- rubygems_version: 1.8.24
118
+ rubygems_version: 2.0.2
137
119
  signing_key:
138
- specification_version: 3
120
+ specification_version: 4
139
121
  summary: Generate a Rails app using brightins's best practices.
140
122
  test_files: []
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env sh
2
-
3
- # Set up Rails app. Run this script immediately after cloning the codebase.
4
- # https://github.com/thoughtbot/guides/tree/master/protocol
5
-
6
- bundle install --binstubs=bin/stubs
7
- bundle exec rake db:setup
8
-
9
- if [ ! -f .env ]; then
10
- cp .sample.env .env
11
- fi
@@ -1 +0,0 @@
1
- --colour
@@ -1,2 +0,0 @@
1
- # http://ddollar.github.com/foreman/
2
- RACK_ENV=development