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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9378b5f445e8c2241ffa12cef249bb3a3678a53
4
- data.tar.gz: eb00acbda79ab1f171b5338e741631674602f0b2
3
+ metadata.gz: 9a6cec824ef928531b2409a63b3e788782796307
4
+ data.tar.gz: 9c3128bbeea601bb3f3136b6040e3bbc603cdfbd
5
5
  SHA512:
6
- metadata.gz: 21367b0cdb2da7e2e1e18e88942ce920edd065b05835a70634630fb79d6161518b53bca2ccc971f086863f18b14c7a8e824ca58fe7b9a9a8845e96220f4a97a0
7
- data.tar.gz: 36ce7622cdf5e696bc93e66b20f9837da74936eca46aaa9500d09cfa37433e05956d3c13da3bba28c1a1bd228dd0491a3fcf875f647ce0602fc7dcc293f5d229
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
- add_gem 'capybara', :group => :test
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.alpha3.1'
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'
@@ -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
- copy_from_repo 'app/views/contacts/new.html.erb', :repo => repo
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
- copy_from_repo 'app/views/visitors/new.html.erb', :repo => repo
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 with Capybara", "rspec"]] unless prefs.has_key? :tests
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
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.1.25"
2
+ VERSION = "3.1.27"
3
3
  end
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.25
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-15 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n