rails_apps_composer 3.0.43 → 3.0.44

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: 2c917eac39f4867b168a098e8bb305321a18f83a
4
- data.tar.gz: 0fea79cf961277f8ce257af3d517df83af388560
3
+ metadata.gz: 718f377c5d050afbcb767313267222d0370372df
4
+ data.tar.gz: 0f7b0962cd227ccf9ea1fd6c7bae57c234f12d15
5
5
  SHA512:
6
- metadata.gz: e34668fb5d4a5f62d68fc07fc4340f145c7b7d671104a437285a2c06776eda9462d15e6c2c507aa5383da3c1e66257c1752c64da8ffb4c9cae064b941b6f11b3
7
- data.tar.gz: fe1217083e9dc8a206a58e4cba8f65cb4f79801fa2cc3846d58c7d99f301cedd1008fd86474134649d7b81dabda2190037fbc3aa6374ceb7ee345e5e168c7a80
6
+ metadata.gz: cb1080f5e6725ed19df99cf8aa904de6e0ea1d5aed3a740b5d6ccc35b90aac13f08e4aa28cf3a3f1335dc7d9017444e24f9a31ee6e3bab6e3d033b78f696c99a
7
+ data.tar.gz: 262b1b5067d66b3a41c1ba70babd83ffcf26a6d9cd0bc19316fbe2b1c9f7e30b2efea38ebde1ca2a094c9f98a6cba915147907a51b43ef7d7bc4b5bf531b5f40
data/recipes/admin.rb CHANGED
@@ -1,15 +1,10 @@
1
1
  # Application template recipe for the rails_apps_composer. Change the recipe here:
2
2
  # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/admin.rb
3
3
 
4
- case config['admin']
5
- when 'activeadmin'
6
- prefs[:admin] = 'activeadmin'
7
- when 'rails_admin'
8
- prefs[:admin] = 'rails_admin'
9
- end
4
+ prefs[:admin] = config['admin'] unless config['admin'] == 'none'
10
5
 
11
6
  if prefer :admin, 'activeadmin'
12
- add_gem 'activeadmin', github: 'gregbell/active_admin'
7
+ add_gem 'activeadmin', '~> 1.0.0.pre2'
13
8
  elsif prefer :admin, 'rails_admin'
14
9
  add_gem 'rails_admin'
15
10
  end
data/recipes/example.rb CHANGED
@@ -16,14 +16,7 @@ if config['space_test']
16
16
  end
17
17
  # the @config@ hash is only available to the recipe
18
18
  # the @prefs{}@ hash is available to all the recipes
19
- case config['orbit']
20
- when 'leo'
21
- prefs[:test_orbit] = 'leo'
22
- when 'spy'
23
- prefs[:test_orbit] = 'spy'
24
- when 'gps'
25
- prefs[:test_orbit] = 'gps'
26
- end
19
+ prefs[:test_orbit] = config['orbit']
27
20
  end
28
21
 
29
22
  stage_two do
data/recipes/extras.rb CHANGED
@@ -66,23 +66,15 @@ if prefs[:rvmrc]
66
66
  end
67
67
 
68
68
  ## QUIET ASSETS
69
- if config['quiet_assets']
70
- prefs[:quiet_assets] = true
71
- end
69
+ prefs[:quiet_assets] = true if config['quiet_assets']
72
70
  if prefs[:quiet_assets]
73
71
  say_wizard "recipe setting quiet_assets for reduced asset pipeline logging"
74
72
  add_gem 'quiet_assets', :group => :development
75
73
  end
76
74
 
77
75
  ## LOCAL_ENV.YML FILE
78
- if config['local_env_file']
79
- case config['local_env_file']
80
- when 'figaro'
81
- prefs[:local_env_file] = 'figaro'
82
- when 'foreman'
83
- prefs[:local_env_file] = 'foreman'
84
- end
85
- end
76
+ prefs[:local_env_file] = config['local_env_file'] unless config['local_env_file'] = 'none'
77
+
86
78
  if prefer :local_env_file, 'figaro'
87
79
  say_wizard "recipe creating application.yml file for environment variables with figaro"
88
80
  add_gem 'figaro', '>= 1.0.0.rc1'
@@ -92,9 +84,7 @@ elsif prefer :local_env_file, 'foreman'
92
84
  end
93
85
 
94
86
  ## BETTER ERRORS
95
- if config['better_errors']
96
- prefs[:better_errors] = true
97
- end
87
+ prefs[:better_errors] = true if config['better_errors']
98
88
  if prefs[:better_errors]
99
89
  say_wizard "recipe adding better_errors gem"
100
90
  add_gem 'better_errors', :group => :development
@@ -111,9 +101,7 @@ if prefs[:better_errors]
111
101
  end
112
102
 
113
103
  # Pry
114
- if config['pry']
115
- prefs[:pry] = true
116
- end
104
+ prefs[:pry] = true if config['pry']
117
105
  if prefs[:pry]
118
106
  say_wizard "recipe adding pry-rails gem"
119
107
  add_gem 'pry-rails', :group => [:development, :test]
@@ -121,9 +109,7 @@ if prefs[:pry]
121
109
  end
122
110
 
123
111
  ## Rubocop
124
- if config['rubocop']
125
- prefs[:rubocop] = true
126
- end
112
+ prefs[:rubocop] = true if config['rubocop']
127
113
  if prefs[:rubocop]
128
114
  say_wizard "recipe adding rubocop gem and basic .rubocop.yml"
129
115
  add_gem 'rubocop', :group => [:development, :test]
@@ -152,9 +138,7 @@ if prefs[:disable_turbolinks]
152
138
  end
153
139
 
154
140
  ## BAN SPIDERS
155
- if config['ban_spiders']
156
- prefs[:ban_spiders] = true
157
- end
141
+ prefs[:ban_spiders] = true if config['ban_spiders']
158
142
  if prefs[:ban_spiders]
159
143
  say_wizard "recipe banning spiders by modifying 'public/robots.txt'"
160
144
  stage_two do
@@ -205,9 +189,7 @@ stage_three do
205
189
  end
206
190
 
207
191
  ## GITHUB
208
- if config['github']
209
- prefs[:github] = true
210
- end
192
+ prefs[:github] = true if config['github']
211
193
  if prefs[:github]
212
194
  add_gem 'hub', :require => nil, :group => [:development]
213
195
  stage_three do
data/recipes/gems.rb CHANGED
@@ -35,9 +35,7 @@ else
35
35
  end
36
36
 
37
37
  ## Database Adapter
38
- unless prefer :database, 'sqlite'
39
- gsub_file 'Gemfile', /gem 'sqlite3'\n/, ''
40
- end
38
+ gsub_file 'Gemfile', /gem 'sqlite3'\n/, '' unless prefer :database, 'sqlite'
41
39
  gsub_file 'Gemfile', /gem 'pg'.*/, ''
42
40
  add_gem 'pg' if prefer :database, 'postgresql'
43
41
  gsub_file 'Gemfile', /gem 'mysql2'.*/, ''
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.43"
2
+ VERSION = "3.0.44"
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.0.43
4
+ version: 3.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  requirements: []
186
186
  rubyforge_project: rails_apps_composer
187
- rubygems_version: 2.4.6
187
+ rubygems_version: 2.4.8
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.