rails_apps_composer 3.1.25 → 3.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/recipes/gems.rb +5 -3
- data/recipes/learn_rails.rb +19 -4
- data/recipes/setup.rb +1 -1
- data/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a6cec824ef928531b2409a63b3e788782796307
|
4
|
+
data.tar.gz: 9c3128bbeea601bb3f3136b6040e3bbc603cdfbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dddafa88d79031dabaf1cb4085213d32ce0fa89bba40410a1a2c901089bade3a75ea293533572b79831092c0058b4518f93f9ecb810283367422f08c3ff7963
|
7
|
+
data.tar.gz: 6d1b817b117c2fcfb669bd67c8c1e7738c645a56ffdbc33c4d90dfe7dc5d1c21e337f1f91351edd72fec8c7947ce5483a3057c2e9d44545ae2fd02f1506c24ba
|
data/recipes/gems.rb
CHANGED
@@ -59,10 +59,12 @@ if prefer :tests, 'rspec'
|
|
59
59
|
add_gem 'spring-commands-rspec', :group => :development
|
60
60
|
add_gem 'factory_girl_rails', :group => [:development, :test]
|
61
61
|
add_gem 'faker', :group => [:development, :test]
|
62
|
-
|
62
|
+
unless Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR >= 1
|
63
|
+
add_gem 'capybara', :group => :test
|
64
|
+
add_gem 'selenium-webdriver', :group => :test
|
65
|
+
end
|
63
66
|
add_gem 'database_cleaner', :group => :test
|
64
67
|
add_gem 'launchy', :group => :test
|
65
|
-
add_gem 'selenium-webdriver', :group => :test
|
66
68
|
if prefer :continuous_testing, 'guard'
|
67
69
|
add_gem 'guard-bundler', :group => :development
|
68
70
|
add_gem 'guard-rails', :group => :development
|
@@ -81,7 +83,7 @@ case prefs[:frontend]
|
|
81
83
|
when 'bootstrap3'
|
82
84
|
add_gem 'bootstrap-sass'
|
83
85
|
when 'bootstrap4'
|
84
|
-
add_gem 'bootstrap', '~> 4.0.0.
|
86
|
+
add_gem 'bootstrap', '~> 4.0.0.alpha6'
|
85
87
|
when 'foundation4'
|
86
88
|
add_gem 'zurb-foundation', '~> 4.3.2'
|
87
89
|
add_gem 'compass-rails', '~> 1.1.2'
|
data/recipes/learn_rails.rb
CHANGED
@@ -14,9 +14,7 @@ if prefer :apps4, 'learn-rails'
|
|
14
14
|
prefs[:devise_modules] = false
|
15
15
|
prefs[:dev_webserver] = 'puma'
|
16
16
|
prefs[:email] = 'sendgrid'
|
17
|
-
prefs[:form_builder] = false
|
18
17
|
prefs[:frontend] = 'bootstrap3'
|
19
|
-
prefs[:jquery] = 'gem'
|
20
18
|
prefs[:layouts] = 'none'
|
21
19
|
prefs[:pages] = 'none'
|
22
20
|
prefs[:github] = false
|
@@ -33,6 +31,15 @@ if prefer :apps4, 'learn-rails'
|
|
33
31
|
prefs[:disable_turbolinks] = false
|
34
32
|
prefs[:rvmrc] = true
|
35
33
|
|
34
|
+
if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR >= 1
|
35
|
+
prefs[:form_builder] = false
|
36
|
+
prefs[:jquery] = 'gem'
|
37
|
+
else
|
38
|
+
# Rails 5.0 version uses SimpleForm
|
39
|
+
prefs[:form_builder] = 'simple_form'
|
40
|
+
add_gem 'minitest-rails-capybara', :group => :test
|
41
|
+
end
|
42
|
+
|
36
43
|
# gems
|
37
44
|
add_gem 'high_voltage'
|
38
45
|
add_gem 'gibbon'
|
@@ -61,11 +68,19 @@ if prefer :apps4, 'learn-rails'
|
|
61
68
|
|
62
69
|
# >-------------------------------[ Views ]--------------------------------<
|
63
70
|
|
64
|
-
|
71
|
+
if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR >= 1
|
72
|
+
copy_from_repo 'app/views/visitors/new.html.erb', :repo => repo
|
73
|
+
copy_from_repo 'app/views/contacts/new.html.erb', :repo => repo
|
74
|
+
else
|
75
|
+
# Rails 5.0 version uses SimpleForm
|
76
|
+
copy_from_repo 'app/views/visitors/new.html.erb', :repo => 'https://raw.githubusercontent.com/RailsApps/learn-rails/rails50/'
|
77
|
+
copy_from_repo 'app/views/contacts/new.html.erb', :repo => 'https://raw.githubusercontent.com/RailsApps/learn-rails/rails50/'
|
78
|
+
end
|
79
|
+
|
65
80
|
copy_from_repo 'app/views/pages/about.html.erb', :repo => repo
|
66
81
|
copy_from_repo 'app/views/user_mailer/contact_email.html.erb', :repo => repo
|
67
82
|
copy_from_repo 'app/views/user_mailer/contact_email.text.erb', :repo => repo
|
68
|
-
|
83
|
+
|
69
84
|
# create navigation links using the rails_layout gem
|
70
85
|
generate 'layout:navigation -f'
|
71
86
|
|
data/recipes/setup.rb
CHANGED
@@ -31,7 +31,7 @@ prefs[:templates] = multiple_choice "Template engine?", [["ERB", "erb"], ["Haml"
|
|
31
31
|
## Testing Framework
|
32
32
|
if recipes.include? 'tests'
|
33
33
|
prefs[:tests] = multiple_choice "Test framework?", [["None", "none"],
|
34
|
-
["RSpec
|
34
|
+
["RSpec", "rspec"]] unless prefs.has_key? :tests
|
35
35
|
case prefs[:tests]
|
36
36
|
when 'rspec'
|
37
37
|
say_wizard "Adding DatabaseCleaner, FactoryGirl, Faker, Launchy, Selenium"
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|