rails_apps_composer 2.4.25 → 2.4.26

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: ae94d7ef1ef1ed3e2c94151d58e9827e9a8b44f7
4
- data.tar.gz: bbeb269bd02495aef1bde1695b617f2f6684a72f
3
+ metadata.gz: 55295ece4918c30d58c8c9cecd2290a79f20c57a
4
+ data.tar.gz: 1957d5ae9537467f3de66edf3d304ea0afdf9945
5
5
  SHA512:
6
- metadata.gz: 41d929c187621ef56fe8615ba4d97b22e5850528e7ea9d84a251d90774ab72520986793bf40f36160cb7503902be96211afa4da12aa75139981994e55a725abf
7
- data.tar.gz: 03c2df4bff06248139ab11756138d929d44359cc880185aec85e34b4230e41981683bf8ab130d07f07452c5c76890aad047a9da4a2bdd3d4b8209df55e9ba4a9
6
+ metadata.gz: 4c778245cd0f240d024f05da4214ee4aca9974036d3609da017600293bc2745b586b2ac4db80d2110b4507a752777cd6e82ec434659a5d62ac66a2d56e9a0231
7
+ data.tar.gz: 5556dedc6d599726bbbe1569bc9868627e18171b2391a2215dab4dfb1ad31e7debf07dac034a0820c894c3fe61ab9541db4f632a0b0354cf7fe251260c00d8d0
data/recipes/extras.rb CHANGED
@@ -84,7 +84,7 @@ if config['local_env_file']
84
84
  prefs[:local_env_file] = 'foreman'
85
85
  end
86
86
  end
87
- if prefer :local_env_file, 'figaro'
87
+ if prefer :local_env_file, 'figaro' and not rails_4_1?
88
88
  say_wizard "recipe creating application.yml file for environment variables with figaro"
89
89
  add_gem 'figaro'
90
90
  elsif prefer :local_env_file, 'foreman'
data/recipes/gems.rb CHANGED
@@ -255,7 +255,7 @@ after_bundler do
255
255
  end
256
256
  end
257
257
  ## Figaro Gem
258
- if prefer :local_env_file, 'figaro'
258
+ if prefer :local_env_file, 'figaro' and not rails_4_1?
259
259
  generate 'figaro:install'
260
260
  gsub_file 'config/application.yml', /# PUSHER_.*\n/, ''
261
261
  gsub_file 'config/application.yml', /# STRIPE_.*\n/, ''
data/recipes/init.rb CHANGED
@@ -17,9 +17,9 @@ after_everything do
17
17
  when 'mandrill'
18
18
  credentials = "MANDRILL_USERNAME: Your_Username\nMANDRILL_APIKEY: Your_API_Key\n"
19
19
  end
20
- append_file 'config/application.yml', credentials if prefer :local_env_file, 'figaro'
20
+ append_file 'config/application.yml', credentials if prefer :local_env_file, 'figaro' and not rails_4_1?
21
21
  append_file '.env', credentials.gsub(': ', '=') if prefer :local_env_file, 'foreman'
22
- if prefer :local_env_file, 'figaro'
22
+ if prefer :local_env_file, 'figaro' and not rails_4_1?
23
23
  ## DEFAULT USER
24
24
  unless prefer :starter_app, false
25
25
  append_file 'config/application.yml' do <<-FILE
@@ -67,13 +67,13 @@ FILE
67
67
  ### SUBDOMAINS ###
68
68
  copy_from_repo 'config/application.yml', :repo => 'https://raw.github.com/RailsApps/rails3-subdomains/master/' if prefer :starter_app, 'subdomains_app'
69
69
  ### APPLICATION.EXAMPLE.YML ###
70
- if prefer :local_env_file, 'figaro'
70
+ if prefer :local_env_file, 'figaro' and not rails_4_1?
71
71
  copy_file destination_root + '/config/application.yml', destination_root + '/config/application.example.yml'
72
72
  elsif prefer :local_env_file, 'foreman'
73
73
  copy_file destination_root + '/.env', destination_root + '/.env.example'
74
74
  end
75
75
  ### DATABASE SEED ###
76
- if prefer :local_env_file, 'figaro'
76
+ if prefer :local_env_file, 'figaro' and not rails_4_1?
77
77
  append_file 'db/seeds.rb' do <<-FILE
78
78
  # Environment variables (ENV['...']) can be set in the file config/application.yml.
79
79
  # See http://railsapps.github.io/rails-environment-variables.html
@@ -14,6 +14,10 @@ def rails_4?
14
14
  Rails::VERSION::MAJOR.to_s == "4"
15
15
  end
16
16
 
17
+ def rails_4_1?
18
+ Rails::VERSION::MAJOR.to_s == "4" && Rails::VERSION::MINOR.to_s == "1"
19
+ end
20
+
17
21
  def ask_wizard(question)
18
22
  ask "\033[1m\033[36m" + (@current_recipe || "prompt").rjust(10) + "\033[1m\033[36m" + " #{question}\033[0m"
19
23
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.4.25"
2
+ VERSION = "2.4.26"
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: 2.4.25
4
+ version: 2.4.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-14 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n