rails_apps_composer 3.0.27 → 3.0.28

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: e4e7827fbf516e1e40131b12ffb298d907d18030
4
- data.tar.gz: b64fa8c07864437fe2e60cb189ef612e18bde6a1
3
+ metadata.gz: 28b136ac931733ffbc75804617d6d20f5ea83018
4
+ data.tar.gz: d9364ad519af686457d354e13f5375acf959d174
5
5
  SHA512:
6
- metadata.gz: 584ca0aa8d08efd8995489267c56374bbe4813088e7851e523dafb5ec88ad9b8b0f8fd5cc2e78b20840bd0d7e780cfdfee64d50dd5189ac0626af570d82ac945
7
- data.tar.gz: 48c4907017a802097a007a1c8bdeef5ae72651bee64b4e5ae6baf8a7fc0ed9eede8d55f6b1e1115115e48bc5fb8710c016cada0cf6cb4d959a389f4c0a753024
6
+ metadata.gz: 293e1a9c4019e3750c432754f14228c1bc57b3762491f4a4a1085bd14203b19b25bdf89208f47d73877db28b25e96a6c5c7734f64db73e9e57b13c99523c74d7
7
+ data.tar.gz: 2d5d798ec1e3ac7b2384dc9de699a46da201ac5aed0a64a8b0c4062b3fcca671aacf7182ef221a30b720edefeb990bb5e9051f042bd67fb960d79575ae5f036d
data/recipes/core.rb CHANGED
@@ -20,6 +20,7 @@ requires: [git, railsapps,
20
20
  rails_devise_pundit,
21
21
  rails_signup_download,
22
22
  rails_mailinglist_activejob,
23
+ rails_stripe_checkout,
23
24
  setup, locale, readme, gems,
24
25
  tests,
25
26
  email,
data/recipes/devise.rb CHANGED
@@ -9,7 +9,7 @@ stage_two do
9
9
  generate 'devise:install'
10
10
  generate 'devise_invitable:install' if prefer :devise_modules, 'invitable'
11
11
  generate 'devise user' # create the User model
12
- generate 'migration AddNameToUsers name:string'
12
+ generate 'migration AddNameToUsers name:string' unless prefer :apps4, 'rails-stripe-checkout'
13
13
  if (prefer :devise_modules, 'confirmable') || (prefer :devise_modules, 'invitable')
14
14
  gsub_file 'app/models/user.rb', /:registerable,/, ":registerable, :confirmable,"
15
15
  generate 'migration AddConfirmableToUsers confirmation_token:string confirmed_at:datetime confirmation_sent_at:datetime unconfirmed_email:string'
data/recipes/gems.rb CHANGED
@@ -57,6 +57,7 @@ end
57
57
  if prefer :tests, 'rspec'
58
58
  add_gem 'rails_apps_testing', :group => :development
59
59
  add_gem 'rspec-rails', :group => [:development, :test]
60
+ add_gem 'spring-commands-rspec', :group => :development
60
61
  add_gem 'factory_girl_rails', :group => [:development, :test]
61
62
  add_gem 'faker', :group => [:development, :test]
62
63
  add_gem 'capybara', :group => :test
data/recipes/locale.rb CHANGED
@@ -12,7 +12,8 @@ end
12
12
 
13
13
  stage_two do
14
14
  unless prefer :locale, 'none'
15
- gsub_file 'config/application.rb', /# config.i18n.default_locale.*$/, "config.i18n.default_locale = :#{prefs[:locale]}"
15
+ locale_for_app = prefs[:locale].include?('-') ? "'#{prefs[:locale]}'" : prefs[:locale]
16
+ gsub_file 'config/application.rb', /# config.i18n.default_locale.*$/, "config.i18n.default_locale = :#{locale_for_app}"
16
17
  locale_filename = "config/locales/#{prefs[:locale]}.yml"
17
18
  create_file locale_filename
18
19
  append_to_file locale_filename, "#{prefs[:locale]}:"
@@ -0,0 +1,83 @@
1
+ # Application template recipe for the rails_apps_composer. Change the recipe here:
2
+ # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/rails_stripe_checkout.rb
3
+
4
+ if prefer :apps4, 'rails-stripe-checkout'
5
+ prefs[:frontend] = 'bootstrap3'
6
+ prefs[:authentication] = 'devise'
7
+ prefs[:authorization] = 'roles'
8
+ prefs[:better_errors] = true
9
+ prefs[:devise_modules] = false
10
+ prefs[:form_builder] = false
11
+ prefs[:git] = true
12
+ prefs[:local_env_file] = false
13
+ prefs[:pry] = false
14
+ prefs[:quiet_assets] = true
15
+ prefs[:secrets] = ['product_price',
16
+ 'product_title',
17
+ 'stripe_publishable_key',
18
+ 'stripe_api_key',
19
+ 'mailchimp_list_id',
20
+ 'mailchimp_api_key']
21
+ prefs[:pages] = 'users'
22
+ prefs[:locale] = 'none'
23
+
24
+ # gems
25
+ add_gem 'gibbon'
26
+ add_gem 'stripe'
27
+ add_gem 'sucker_punch'
28
+
29
+ stage_three do
30
+ say_wizard "recipe stage three"
31
+ repo = 'https://raw.github.com/RailsApps/rails-stripe-checkout/master/'
32
+
33
+ # >-------------------------------[ Config ]---------------------------------<
34
+
35
+ copy_from_repo 'config/initializers/active_job.rb', :repo => repo
36
+ copy_from_repo 'config/initializers/devise_permitted_parameters.rb', :repo => repo
37
+ copy_from_repo 'config/initializers/stripe.rb', :repo => repo
38
+
39
+ # >-------------------------------[ Assets ]--------------------------------<
40
+
41
+ copy_from_repo 'app/assets/images/rubyonrails.png', :repo => repo
42
+
43
+ # >-------------------------------[ Models ]--------------------------------<
44
+
45
+ copy_from_repo 'app/models/user.rb', :repo => repo
46
+
47
+ # >-------------------------------[ Controllers ]--------------------------------<
48
+
49
+ copy_from_repo 'app/controllers/visitors_controller.rb', :repo => repo
50
+ copy_from_repo 'app/controllers/products_controller.rb', :repo => repo
51
+ copy_from_repo 'app/controllers/registrations_controller.rb', :repo => repo
52
+
53
+ # >-------------------------------[ Jobs ]---------------------------------<
54
+
55
+ copy_from_repo 'app/jobs/mailing_list_signup_job.rb', :repo => repo
56
+
57
+ # >-------------------------------[ Views ]--------------------------------<
58
+
59
+ copy_from_repo 'app/views/devise/registrations/new.html.erb', :repo => repo
60
+ copy_from_repo 'app/views/visitors/_purchase.html.erb', :repo => repo
61
+ copy_from_repo 'app/views/visitors/index.html.erb', :repo => repo
62
+ copy_from_repo 'app/views/products/product.pdf', :repo => repo
63
+
64
+ # >-------------------------------[ Routes ]--------------------------------<
65
+
66
+ copy_from_repo 'config/routes.rb', :repo => repo
67
+
68
+ # >-------------------------------[ Tests ]--------------------------------<
69
+
70
+ ### tests not implemented
71
+
72
+ end
73
+ end
74
+
75
+ __END__
76
+
77
+ name: rails_stripe_checkout
78
+ description: "rails-stripe-checkout starter application"
79
+ author: RailsApps
80
+
81
+ requires: [core]
82
+ run_after: [git]
83
+ category: apps
data/recipes/railsapps.rb CHANGED
@@ -34,7 +34,8 @@ when "4"
34
34
  ["rails-devise", "rails-devise"],
35
35
  ["rails-devise-roles", "rails-devise-roles"],
36
36
  ["rails-devise-pundit", "rails-devise-pundit"],
37
- ["rails-signup-download", "rails-signup-download"]]
37
+ ["rails-signup-download", "rails-signup-download"],
38
+ ["rails-stripe-checkout", "rails-stripe-checkout"]]
38
39
  else
39
40
  prefs[:apps4] = multiple_choice "Choose a starter application.",
40
41
  [["learn-rails", "learn-rails"],
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.27"
2
+ VERSION = "3.0.28"
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.27
4
+ version: 3.0.28
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-11-10 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -143,6 +143,7 @@ files:
143
143
  - recipes/rails_mailinglist_activejob.rb
144
144
  - recipes/rails_omniauth.rb
145
145
  - recipes/rails_signup_download.rb
146
+ - recipes/rails_stripe_checkout.rb
146
147
  - recipes/railsapps.rb
147
148
  - recipes/readme.rb
148
149
  - recipes/roles.rb