mj-suspenders 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +39 -45
- data/lib/suspenders/app_builder.rb +11 -0
- data/lib/suspenders/generators/app_generator.rb +2 -0
- data/lib/suspenders/version.rb +1 -1
- data/mj-suspenders.gemspec +2 -2
- data/templates/Gemfile.erb +5 -1
- data/templates/smtp.yml.erb +24 -0
- data/templates/smtp_initializer.rb +11 -0
- data/templates/suspenders_gitignore +1 -0
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 435e07e0fee88741e0f7bddba7c10d58f5d92aed
|
4
|
+
data.tar.gz: 2a266d5d3335f403fbd5301859effc345fbe1a95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9275341b69dc57f606538a37f90d2b3f52b07207a389bede765890b4edadbb06bd8294125ff247093feb5347c70a863b6bb7169c6f045de7a020051570710732
|
7
|
+
data.tar.gz: 0d0c13ebe176c1e0f86728e8d349a8b547d58d9daece38cf961178c631c10b61825f70268b57de95983be08d08bd0c1bd35c3fbbbec027ee2888fdb4c5f2ab63
|
data/Gemfile.lock
CHANGED
@@ -1,64 +1,61 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mj-suspenders (0.0.
|
5
|
-
bundler (~> 1.
|
6
|
-
rails (= 4.0.
|
4
|
+
mj-suspenders (0.0.2)
|
5
|
+
bundler (~> 1.6)
|
6
|
+
rails (= 4.0.4)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionmailer (4.0.
|
12
|
-
actionpack (= 4.0.
|
11
|
+
actionmailer (4.0.4)
|
12
|
+
actionpack (= 4.0.4)
|
13
13
|
mail (~> 2.5.4)
|
14
|
-
actionpack (4.0.
|
15
|
-
activesupport (= 4.0.
|
14
|
+
actionpack (4.0.4)
|
15
|
+
activesupport (= 4.0.4)
|
16
16
|
builder (~> 3.1.0)
|
17
17
|
erubis (~> 2.7.0)
|
18
18
|
rack (~> 1.5.2)
|
19
19
|
rack-test (~> 0.6.2)
|
20
|
-
activemodel (4.0.
|
21
|
-
activesupport (= 4.0.
|
20
|
+
activemodel (4.0.4)
|
21
|
+
activesupport (= 4.0.4)
|
22
22
|
builder (~> 3.1.0)
|
23
|
-
activerecord (4.0.
|
24
|
-
activemodel (= 4.0.
|
23
|
+
activerecord (4.0.4)
|
24
|
+
activemodel (= 4.0.4)
|
25
25
|
activerecord-deprecated_finders (~> 1.0.2)
|
26
|
-
activesupport (= 4.0.
|
26
|
+
activesupport (= 4.0.4)
|
27
27
|
arel (~> 4.0.0)
|
28
28
|
activerecord-deprecated_finders (1.0.3)
|
29
|
-
activesupport (4.0.
|
30
|
-
i18n (~> 0.6, >= 0.6.
|
29
|
+
activesupport (4.0.4)
|
30
|
+
i18n (~> 0.6, >= 0.6.9)
|
31
31
|
minitest (~> 4.2)
|
32
32
|
multi_json (~> 1.3)
|
33
33
|
thread_safe (~> 0.1)
|
34
34
|
tzinfo (~> 0.3.37)
|
35
35
|
arel (4.0.2)
|
36
|
-
aruba (0.5.
|
36
|
+
aruba (0.5.4)
|
37
37
|
childprocess (>= 0.3.6)
|
38
38
|
cucumber (>= 1.1.1)
|
39
39
|
rspec-expectations (>= 2.7.0)
|
40
40
|
builder (3.1.4)
|
41
|
-
capybara (2.2.
|
41
|
+
capybara (2.2.1)
|
42
42
|
mime-types (>= 1.16)
|
43
43
|
nokogiri (>= 1.3.3)
|
44
44
|
rack (>= 1.0.0)
|
45
45
|
rack-test (>= 0.5.4)
|
46
46
|
xpath (~> 2.0)
|
47
|
-
childprocess (0.
|
47
|
+
childprocess (0.5.2)
|
48
48
|
ffi (~> 1.0, >= 1.0.11)
|
49
|
-
cucumber (1.3.
|
49
|
+
cucumber (1.3.14)
|
50
50
|
builder (>= 2.1.2)
|
51
51
|
diff-lcs (>= 1.1.3)
|
52
|
-
gherkin (~> 2.12
|
53
|
-
multi_json (
|
54
|
-
multi_test (
|
55
|
-
diff-lcs (1.2.
|
52
|
+
gherkin (~> 2.12)
|
53
|
+
multi_json (>= 1.7.5, < 2.0)
|
54
|
+
multi_test (>= 0.1.1)
|
55
|
+
diff-lcs (1.2.5)
|
56
56
|
erubis (2.7.0)
|
57
|
-
ffi (1.9.
|
58
|
-
|
59
|
-
gherkin (2.12.0)
|
60
|
-
multi_json (~> 1.3)
|
61
|
-
gherkin (2.12.0-x86-mingw32)
|
57
|
+
ffi (1.9.3)
|
58
|
+
gherkin (2.12.2)
|
62
59
|
multi_json (~> 1.3)
|
63
60
|
hike (1.2.3)
|
64
61
|
i18n (0.6.9)
|
@@ -66,29 +63,27 @@ GEM
|
|
66
63
|
mime-types (~> 1.16)
|
67
64
|
treetop (~> 1.4.8)
|
68
65
|
mime-types (1.25.1)
|
69
|
-
mini_portile (0.5.
|
66
|
+
mini_portile (0.5.3)
|
70
67
|
minitest (4.7.5)
|
71
|
-
multi_json (1.
|
72
|
-
multi_test (0.
|
68
|
+
multi_json (1.9.2)
|
69
|
+
multi_test (0.1.1)
|
73
70
|
nokogiri (1.6.1)
|
74
71
|
mini_portile (~> 0.5.0)
|
75
|
-
nokogiri (1.6.1-x86-mingw32)
|
76
|
-
mini_portile (~> 0.5.0)
|
77
72
|
polyglot (0.3.4)
|
78
73
|
rack (1.5.2)
|
79
74
|
rack-test (0.6.2)
|
80
75
|
rack (>= 1.0)
|
81
|
-
rails (4.0.
|
82
|
-
actionmailer (= 4.0.
|
83
|
-
actionpack (= 4.0.
|
84
|
-
activerecord (= 4.0.
|
85
|
-
activesupport (= 4.0.
|
76
|
+
rails (4.0.4)
|
77
|
+
actionmailer (= 4.0.4)
|
78
|
+
actionpack (= 4.0.4)
|
79
|
+
activerecord (= 4.0.4)
|
80
|
+
activesupport (= 4.0.4)
|
86
81
|
bundler (>= 1.3.0, < 2.0)
|
87
|
-
railties (= 4.0.
|
82
|
+
railties (= 4.0.4)
|
88
83
|
sprockets-rails (~> 2.0.0)
|
89
|
-
railties (4.0.
|
90
|
-
actionpack (= 4.0.
|
91
|
-
activesupport (= 4.0.
|
84
|
+
railties (4.0.4)
|
85
|
+
actionpack (= 4.0.4)
|
86
|
+
activesupport (= 4.0.4)
|
92
87
|
rake (>= 0.8.7)
|
93
88
|
thor (>= 0.18.1, < 2.0)
|
94
89
|
rake (10.2.2)
|
@@ -96,10 +91,10 @@ GEM
|
|
96
91
|
rspec-core (~> 2.14.0)
|
97
92
|
rspec-expectations (~> 2.14.0)
|
98
93
|
rspec-mocks (~> 2.14.0)
|
99
|
-
rspec-core (2.14.
|
100
|
-
rspec-expectations (2.14.
|
94
|
+
rspec-core (2.14.8)
|
95
|
+
rspec-expectations (2.14.5)
|
101
96
|
diff-lcs (>= 1.1.3, < 2.0)
|
102
|
-
rspec-mocks (2.14.
|
97
|
+
rspec-mocks (2.14.6)
|
103
98
|
simplecov (0.7.1)
|
104
99
|
multi_json (~> 1.0)
|
105
100
|
simplecov-html (~> 0.7.1)
|
@@ -125,7 +120,6 @@ GEM
|
|
125
120
|
|
126
121
|
PLATFORMS
|
127
122
|
ruby
|
128
|
-
x86-mingw32
|
129
123
|
|
130
124
|
DEPENDENCIES
|
131
125
|
aruba (~> 0.5.2)
|
@@ -28,6 +28,7 @@ module Suspenders
|
|
28
28
|
def configure_generators
|
29
29
|
config = <<-RUBY
|
30
30
|
config.generators do |generate|
|
31
|
+
generate.decorator false
|
31
32
|
generate.helper false
|
32
33
|
generate.javascript_engine false
|
33
34
|
generate.request_specs false
|
@@ -35,6 +36,7 @@ module Suspenders
|
|
35
36
|
generate.stylesheets false
|
36
37
|
generate.test_framework :rspec
|
37
38
|
generate.view_specs false
|
39
|
+
generate.fixture_replacement :machinist
|
38
40
|
end
|
39
41
|
|
40
42
|
RUBY
|
@@ -42,6 +44,15 @@ module Suspenders
|
|
42
44
|
inject_into_class 'config/application.rb', 'Application', config
|
43
45
|
end
|
44
46
|
|
47
|
+
def generate_machinist
|
48
|
+
generate 'machinist:install'
|
49
|
+
end
|
50
|
+
|
51
|
+
def setup_smtp
|
52
|
+
copy_file 'smtp.yml.erb', 'config/smtp.yml'
|
53
|
+
copy_file 'smtp_initializer.rb', 'config/initializers/smtp_setup.rb'
|
54
|
+
end
|
55
|
+
|
45
56
|
def enable_rack_deflater
|
46
57
|
config = <<-RUBY
|
47
58
|
|
@@ -55,6 +55,7 @@ module Suspenders
|
|
55
55
|
say 'Setting up the test environment'
|
56
56
|
build :generate_rspec
|
57
57
|
build :configure_rspec
|
58
|
+
build :generate_machinist
|
58
59
|
build :use_spring_binstubs
|
59
60
|
build :enable_database_cleaner
|
60
61
|
build :configure_spec_support_features
|
@@ -93,6 +94,7 @@ module Suspenders
|
|
93
94
|
def configure_app
|
94
95
|
say 'Configuring app'
|
95
96
|
build :configure_action_mailer
|
97
|
+
build :setup_smtp
|
96
98
|
build :configure_time_zone
|
97
99
|
build :configure_time_formats
|
98
100
|
build :disable_xml_params
|
data/lib/suspenders/version.rb
CHANGED
data/mj-suspenders.gemspec
CHANGED
@@ -5,8 +5,8 @@ require 'date'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.required_ruby_version = '>= 1.9.2'
|
8
|
-
s.add_dependency 'bundler', '~> 1.
|
9
|
-
s.add_dependency 'rails', '4.0.
|
8
|
+
s.add_dependency 'bundler', '~> 1.6'
|
9
|
+
s.add_dependency 'rails', '4.0.4'
|
10
10
|
s.add_development_dependency 'aruba', '~> 0.5.2'
|
11
11
|
s.add_development_dependency 'cucumber', '~> 1.2'
|
12
12
|
s.authors = ['thoughtbot', 'Marcelo Jacobus']
|
data/templates/Gemfile.erb
CHANGED
@@ -8,13 +8,16 @@ gem 'high_voltage'
|
|
8
8
|
gem 'jquery-rails'
|
9
9
|
gem 'mysql2'
|
10
10
|
gem 'rack-timeout'
|
11
|
-
gem 'rails', '>= 4.0.
|
11
|
+
gem 'rails', '>= 4.0.4'
|
12
12
|
gem 'recipient_interceptor'
|
13
13
|
gem 'sass-rails'
|
14
14
|
gem 'simple_form'
|
15
15
|
gem 'title'
|
16
16
|
gem 'uglifier'
|
17
17
|
gem 'unicorn'
|
18
|
+
gem 'kaminari'
|
19
|
+
gem 'vattributes'
|
20
|
+
gem 'draper', '~> 1.3'
|
18
21
|
|
19
22
|
group :development do
|
20
23
|
gem 'spring'
|
@@ -26,6 +29,7 @@ group :development, :test do
|
|
26
29
|
# gem 'dotenv-rails'
|
27
30
|
gem 'pry-rails'
|
28
31
|
gem 'rspec-rails', '>= 2.14'
|
32
|
+
gem 'machinist', '>= 2.0.0.beta2'
|
29
33
|
end
|
30
34
|
|
31
35
|
group :test do
|
@@ -0,0 +1,24 @@
|
|
1
|
+
development:
|
2
|
+
delivery_method: smtp
|
3
|
+
address: smtp.gmail.com
|
4
|
+
port: 587
|
5
|
+
authentication: plain
|
6
|
+
user_name: user@gmail.com
|
7
|
+
password: password
|
8
|
+
enable_starttls_auto: true
|
9
|
+
staging:
|
10
|
+
delivery_method: smtp
|
11
|
+
address: smtp.gmail.com
|
12
|
+
port: 587
|
13
|
+
authentication: plain
|
14
|
+
user_name: user@gmail.com
|
15
|
+
password: password
|
16
|
+
enable_starttls_auto: true
|
17
|
+
production:
|
18
|
+
delivery_method: smtp
|
19
|
+
address: smtp.gmail.com
|
20
|
+
port: 587
|
21
|
+
authentication: plain
|
22
|
+
user_name: user@gmail.com
|
23
|
+
password: password
|
24
|
+
enable_starttls_auto: true
|
@@ -0,0 +1,11 @@
|
|
1
|
+
unless Rails.env.test?
|
2
|
+
file = "#{Rails.root.to_s}/config/smtp.yml"
|
3
|
+
|
4
|
+
if File.exists?(file)
|
5
|
+
email_settings = YAML::load(File.open(file))
|
6
|
+
|
7
|
+
unless email_settings[Rails.env].nil?
|
8
|
+
ActionMailer::Base.smtp_settings = email_settings[Rails.env].symbolize_keys
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mj-suspenders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thoughtbot
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.6'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.6'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rails
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 4.0.
|
34
|
+
version: 4.0.4
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 4.0.
|
41
|
+
version: 4.0.4
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: aruba
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,6 +151,8 @@ files:
|
|
151
151
|
- templates/i18n.rb
|
152
152
|
- templates/ruby-version.erb
|
153
153
|
- templates/secret_token.rb
|
154
|
+
- templates/smtp.yml.erb
|
155
|
+
- templates/smtp_initializer.rb
|
154
156
|
- templates/spec_helper.rb
|
155
157
|
- templates/staging.rb
|
156
158
|
- templates/suspenders_gitignore
|
@@ -178,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
180
|
version: '0'
|
179
181
|
requirements: []
|
180
182
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.2.2
|
182
184
|
signing_key:
|
183
185
|
specification_version: 4
|
184
186
|
summary: Generate a Rails app using thoughtbot's best practices. Plus Marcelo Jacobus
|