rails_apps_composer 3.1.24 → 3.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4120bda3f8a5cfc6d3e9a767538e58a78f972b8
4
- data.tar.gz: 0a46cd79d4a6ccab482506fa92435151af8d6139
3
+ metadata.gz: e9378b5f445e8c2241ffa12cef249bb3a3678a53
4
+ data.tar.gz: eb00acbda79ab1f171b5338e741631674602f0b2
5
5
  SHA512:
6
- metadata.gz: 9d051b902569d869207cf451229e2acbf191e4945ba22bd278bde2d0e736139cb7cea8cc81df6bf0be9c98d4009d6a16d76d0874fb42b11d4f72e9e2a0fc3263
7
- data.tar.gz: 04f69cb6f1b9ad5e5ec55cb03306164b1bfcdd9b839c563e9cb1a50e330397176935f27cd915b07ac2ccc97f949249d60728210cbee7c3c8f04311fd4d660521
6
+ metadata.gz: 21367b0cdb2da7e2e1e18e88942ce920edd065b05835a70634630fb79d6161518b53bca2ccc971f086863f18b14c7a8e824ca58fe7b9a9a8845e96220f4a97a0
7
+ data.tar.gz: 36ce7622cdf5e696bc93e66b20f9837da74936eca46aaa9500d09cfa37433e05956d3c13da3bba28c1a1bd228dd0491a3fcf875f647ce0602fc7dcc293f5d229
data/recipes/frontend.rb CHANGED
@@ -17,6 +17,12 @@ stage_two do
17
17
  generate 'layout:install foundation4 -f'
18
18
  when 'foundation5'
19
19
  generate 'layout:install foundation5 -f'
20
+ else
21
+ case prefs[:jquery]
22
+ when 'gem', 'yarn'
23
+ say_wizard "modifying application.js for jQuery"
24
+ insert_into_file('app/assets/javascripts/application.js', "//= require jquery\n", :before => /^ *\/\/= require rails-ujs/, :force => false)
25
+ end
20
26
  end
21
27
 
22
28
  ### GIT ###
data/recipes/gems.rb CHANGED
@@ -89,6 +89,14 @@ case prefs[:frontend]
89
89
  add_gem 'foundation-rails', '~> 5.5'
90
90
  end
91
91
 
92
+ ## jQuery
93
+ case prefs[:jquery]
94
+ when 'gem'
95
+ add_gem 'jquery-rails'
96
+ when 'yarn'
97
+ run 'bundle exec yarn add jquery'
98
+ end
99
+
92
100
  ## Pages
93
101
  case prefs[:pages]
94
102
  when 'about'
@@ -16,6 +16,7 @@ if prefer :apps4, 'learn-rails'
16
16
  prefs[:email] = 'sendgrid'
17
17
  prefs[:form_builder] = false
18
18
  prefs[:frontend] = 'bootstrap3'
19
+ prefs[:jquery] = 'gem'
19
20
  prefs[:layouts] = 'none'
20
21
  prefs[:pages] = 'none'
21
22
  prefs[:github] = false
@@ -36,7 +37,6 @@ if prefer :apps4, 'learn-rails'
36
37
  add_gem 'high_voltage'
37
38
  add_gem 'gibbon'
38
39
  add_gem 'minitest-spec-rails', :group => :test
39
- add_gem 'minitest-rails-capybara', :group => :test
40
40
  gsub_file 'Gemfile', /gem 'sqlite3'\n/, ''
41
41
  add_gem 'sqlite3', :group => :development
42
42
 
data/recipes/setup.rb CHANGED
@@ -47,6 +47,19 @@ if recipes.include? 'frontend'
47
47
  ["Simple CSS", "simple"]] unless prefs.has_key? :frontend
48
48
  end
49
49
 
50
+ ## jQuery
51
+ if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR >= 1
52
+ if prefs[:frontend] == 'none'
53
+ prefs[:jquery] = multiple_choice "Add jQuery?", [["No", "none"],
54
+ ["Add jquery-rails gem", "gem"],
55
+ ["Add using yarn", "yarn"]] unless prefs.has_key? :jquery
56
+ else
57
+ prefs[:jquery] = multiple_choice "How to install jQuery?",
58
+ [["Add jquery-rails gem", "gem"],
59
+ ["Add using yarn", "yarn"]] unless prefs.has_key? :jquery
60
+ end
61
+ end
62
+
50
63
  ## Email
51
64
  if recipes.include? 'email'
52
65
  unless prefs.has_key? :email
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.1.24"
2
+ VERSION = "3.1.25"
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.24
4
+ version: 3.1.25
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-07 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n