rails_apps_composer 2.6.1 → 2.6.2

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: 86253bef88caa6fba3caebfdca067014a32d3693
4
- data.tar.gz: 5ed47674279dfb1743ecc1101d5b49162ee5f471
3
+ metadata.gz: 98fc01dcb4c6e7f9ab85bd2f01e5e0476da61fed
4
+ data.tar.gz: 379fdf2bd2cca7bb324e8a4c301aaab1d1e1583e
5
5
  SHA512:
6
- metadata.gz: 3f09f7c03b3e3a140181b0b77507d042eb211e1d000582ca150c34e8bec58c16d4b212fcf986f500491cc79fa897015872f5bc705b24563b677239047b211c31
7
- data.tar.gz: c010ceffe7a4332d3d1834892fb17358f64bbdc9f91c7c77fc9bda3404c66f4289f532da5787264fc60af9874da401630276e79c3aabda649c5d65875fc7ebaf
6
+ metadata.gz: 4027c5b3d1b7ce03bd47110ee4fa1eb35e531e36fd0258a27f69beb02b3b3558322d1fa64d13e310a85e1068db1bbc3bdf8f5ab32de681e6d182e525c9dae5e5
7
+ data.tar.gz: 2b2dcebe8496b8c886ab544d06e5b970758437f0f669663749dc064ed0635d6f792a574f20135f3d9f52013ef31e01c57a28b2482ed4fba679707613fc069638
data/recipes/extras.rb CHANGED
@@ -156,9 +156,11 @@ after_everything do
156
156
  }.each { |file| remove_file file }
157
157
  # remove temporary Haml gems from Gemfile when Slim is selected
158
158
  if prefer :templates, 'slim'
159
- gsub_file 'Gemfile', / gem 'haml2slim'\n/, "\n"
160
- gsub_file 'Gemfile', / gem 'html2haml'\n/, "\n"
159
+ gsub_file 'Gemfile', /.*gem 'haml2slim'\n/, "\n"
160
+ gsub_file 'Gemfile', /.*gem 'html2haml'\n/, "\n"
161
161
  end
162
+ # remove temporary rails_apps_pages gem
163
+ gsub_file 'Gemfile', /.*gem 'rails_apps_pages'\n/, ''
162
164
  # remove commented lines and multiple blank lines from Gemfile
163
165
  # thanks to https://github.com/perfectline/template-bucket/blob/master/cleanup.rb
164
166
  gsub_file 'Gemfile', /#.*\n/, "\n"
data/recipes/init.rb CHANGED
@@ -38,13 +38,15 @@ after_everything do
38
38
  foreman_cancan = "ROLES=[admin, user, VIP]\n\n"
39
39
  figaro_cancan = foreman_cancan.gsub('=', ': ')
40
40
  ## EMAIL
41
- inject_into_file 'config/secrets.yml', "\n" + " domain_name: example.com", :after => "development:" if rails_4_1?
42
- inject_into_file 'config/secrets.yml', "\n" + " domain_name: <%= ENV[\"DOMAIN_NAME\"] %>", :after => "production:" if rails_4_1?
43
- inject_into_file 'config/secrets.yml', "\n" + secrets_email, :after => "development:" if rails_4_1?
44
- ### 'inject_into_file' doesn't let us inject the same text twice unless we append the extra space, why?
45
- inject_into_file 'config/secrets.yml', "\n" + secrets_email + " ", :after => "production:" if rails_4_1?
46
- append_file '.env', foreman_email if prefer :local_env_file, 'foreman'
47
- append_file 'config/application.yml', figaro_email if prefer :local_env_file, 'figaro'
41
+ unless prefer :email, 'none'
42
+ inject_into_file 'config/secrets.yml', "\n" + " domain_name: example.com", :after => "development:" if rails_4_1?
43
+ inject_into_file 'config/secrets.yml', "\n" + " domain_name: <%= ENV[\"DOMAIN_NAME\"] %>", :after => "production:" if rails_4_1?
44
+ inject_into_file 'config/secrets.yml', "\n" + secrets_email, :after => "development:" if rails_4_1?
45
+ ### 'inject_into_file' doesn't let us inject the same text twice unless we append the extra space, why?
46
+ inject_into_file 'config/secrets.yml', "\n" + secrets_email + " ", :after => "production:" if rails_4_1?
47
+ append_file '.env', foreman_email if prefer :local_env_file, 'foreman'
48
+ append_file 'config/application.yml', figaro_email if prefer :local_env_file, 'figaro'
49
+ end
48
50
  ## DEVISE
49
51
  if prefer :authentication, 'devise'
50
52
  inject_into_file 'config/secrets.yml', "\n" + secrets_d_devise, :after => "development:" if rails_4_1?
@@ -74,10 +74,6 @@ if prefer :apps4, 'learn-rails'
74
74
 
75
75
  copy_from_repo 'app/assets/javascripts/segmentio.js', :repo => repo
76
76
 
77
- # >-------------------------------[ Cleanup ]--------------------------------<
78
-
79
- gsub_file 'Gemfile', /.*gem 'rails_apps_pages'\n/, ''
80
-
81
77
  end
82
78
  end
83
79
 
data/templates/layout.erb CHANGED
@@ -116,7 +116,7 @@ say_wizard("\033[1m\033[36m" + " \| \| \| \|" + "\
116
116
  say_wizard("\033[1m\033[36m" + " \| \| \| \|" + "\033[0m")
117
117
  say_wizard("\033[1m\033[36m" + '' + "\033[0m")
118
118
  say_wizard("\033[1m\033[36m" + "Rails Composer, open source, supported by subscribers." + "\033[0m")
119
- say_wizard("\033[1m\033[36m" + "Like Rails Composer? Please join RailsApps to support development." + "\033[0m")
119
+ say_wizard("\033[1m\033[36m" + "Please join RailsApps to support development of Rails Composer." + "\033[0m")
120
120
  say_wizard("\033[1m\033[36m" + "Need help? Ask on Stack Overflow with the tag \'railsapps.\'" + "\033[0m")
121
121
  say_wizard("Your new application will contain diagnostics in its README file.")
122
122
 
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.6.1"
2
+ VERSION = "2.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe