rails_apps_composer 3.0.33 → 3.0.34

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: 70a7b50abd2256e51868148c1cb8202e33b43228
4
- data.tar.gz: 1843bf2b29aceb70954aac6d23be17a59009a805
3
+ metadata.gz: b2ea17bb7fd4d545ca2bb31c0d148e3baa4cf558
4
+ data.tar.gz: e4e6b65f869fa3ddaaaa6a2dadfb5c7d01d82fd0
5
5
  SHA512:
6
- metadata.gz: a40b574707896053edb43a589457e8a6e4db92da0bffb450b39fbf02260419deb385dbd2acdde043eda141c2281ae6eb5d29e2497f30e16bc11ad1ad854ad51d
7
- data.tar.gz: 3fd7f8ebb384e0af05a336f9e194dcafecc5b9d284487f9e3c35f8274411a53afc7ee7d12078fe81d1ebb5f10853af0be86ee65d91cf630ebbd37d201cf69db6
6
+ metadata.gz: ce6cc5f6e2f2d7890e43e4a8e622cf99a43413569f336d9cf0f435e24acb8cddb513cde64fbce3e61b7951ed820be6e93f01333b13ac37b379355947ff39348b
7
+ data.tar.gz: edd096a27f0cd2c2f3cb96234dd4c98acf0b0f755d9c50c0acdf744ac21af6c2e90b8ec63dfc6577f685799424efea0c1bf6337dcc64015d9692411a1927533e
data/recipes/core.rb CHANGED
@@ -22,6 +22,7 @@ requires: [git, railsapps,
22
22
  rails_mailinglist_activejob,
23
23
  rails_stripe_checkout,
24
24
  rails_stripe_coupons,
25
+ rails_stripe_membership_saas,
25
26
  setup, locale, readme, gems,
26
27
  tests,
27
28
  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
- unless (prefer :apps4, 'rails-stripe-checkout') || (prefer :apps4, 'rails-stripe-coupons')
12
+ unless :apps4.to_s.include? 'rails-stripe-'
13
13
  generate 'migration AddNameToUsers name:string'
14
14
  end
15
15
  if (prefer :devise_modules, 'confirmable') || (prefer :devise_modules, 'invitable')
data/recipes/init.rb CHANGED
@@ -88,6 +88,13 @@ stage_three do
88
88
  append_file 'db/seeds.rb' do <<-FILE
89
89
  CreateCouponcodesService.new.call
90
90
  puts 'CREATED PROMOTIONAL CODES'
91
+ FILE
92
+ end
93
+ end
94
+ if prefer :apps4, 'rails-stripe-membership-saas'
95
+ append_file 'db/seeds.rb' do <<-FILE
96
+ CreatePlanService.new.call
97
+ puts 'CREATED PLANS'
91
98
  FILE
92
99
  end
93
100
  end
@@ -152,6 +159,10 @@ FILE
152
159
  inject_into_file 'app/views/layouts/_navigation_links.html.erb', ", data: { no_turbolink: true }", :after => "new_user_registration_path"
153
160
  inject_into_file 'app/views/layouts/_navigation_links.html.erb', "\n <li><%= link_to 'Coupons', coupons_path %></li>", :after => "users_path %></li>"
154
161
  end
162
+ if prefer :apps4, 'rails-stripe-membership-saas'
163
+ inject_into_file 'app/views/layouts/_navigation_links.html.erb', ", data: { no_turbolink: true }", :after => "new_user_registration_path"
164
+ copy_from_repo 'app/views/devise/registrations/edit.html.erb', :repo => 'https://raw.github.com/RailsApps/rails-stripe-membership-saas/master/'
165
+ end
155
166
  ### GIT ###
156
167
  git :add => '-A' if prefer :git, true
157
168
  git :commit => '-qm "rails_apps_composer: navigation links"' if prefer :git, true
@@ -0,0 +1,111 @@
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_membership_saas.rb
3
+
4
+ if prefer :apps4, 'rails-stripe-membership-saas'
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] = ['stripe_publishable_key',
16
+ 'stripe_api_key',
17
+ 'mailchimp_list_id',
18
+ 'mailchimp_api_key']
19
+ prefs[:pages] = 'users'
20
+ prefs[:locale] = 'none'
21
+ prefs[:rubocop] = false
22
+
23
+ # gems
24
+ add_gem 'gibbon'
25
+ add_gem 'payola-payments'
26
+ add_gem 'sucker_punch'
27
+
28
+ stage_three do
29
+ say_wizard "recipe stage three"
30
+ repo = 'https://raw.github.com/RailsApps/rails-stripe-membership-saas/master/'
31
+
32
+ # >-------------------------------[ Migrations ]---------------------------------<
33
+
34
+ generate 'payola:install'
35
+ generate 'model Plan name stripe_id interval amount:integer --no-test-framework'
36
+ generate 'migration AddPlanRefToUsers plan:references'
37
+ generate 'migration RemoveNameFromUsers name'
38
+ run 'bundle exec rake db:migrate'
39
+
40
+ # >-------------------------------[ Config ]---------------------------------<
41
+
42
+ copy_from_repo 'config/initializers/active_job.rb', :repo => repo
43
+ copy_from_repo 'config/initializers/payola.rb', :repo => repo
44
+ copy_from_repo 'db/seeds.rb', :repo => repo
45
+
46
+ # >-------------------------------[ Assets ]--------------------------------<
47
+
48
+ copy_from_repo 'app/assets/stylesheets/pricing.css.scss', :repo => repo
49
+
50
+ # >-------------------------------[ Controllers ]--------------------------------<
51
+
52
+ copy_from_repo 'app/controllers/application_controller.rb', :repo => repo
53
+ copy_from_repo 'app/controllers/content_controller.rb', :repo => repo
54
+ copy_from_repo 'app/controllers/visitors_controller.rb', :repo => repo
55
+ copy_from_repo 'app/controllers/products_controller.rb', :repo => repo
56
+ copy_from_repo 'app/controllers/registrations_controller.rb', :repo => repo
57
+
58
+ # >-------------------------------[ Jobs ]---------------------------------<
59
+
60
+ copy_from_repo 'app/jobs/mailing_list_signup_job.rb', :repo => repo
61
+
62
+ # >-------------------------------[ Mailers ]--------------------------------<
63
+
64
+ copy_from_repo 'app/mailers/application_mailer.rb', :repo => repo
65
+ copy_from_repo 'app/mailers/user_mailer.rb', :repo => repo
66
+
67
+ # >-------------------------------[ Models ]--------------------------------<
68
+
69
+ copy_from_repo 'app/models/plan.rb', :repo => repo
70
+ copy_from_repo 'app/models/user.rb', :repo => repo
71
+
72
+ # >-------------------------------[ Services ]---------------------------------<
73
+
74
+ copy_from_repo 'app/services/create_plan_service.rb', :repo => repo
75
+
76
+ # >-------------------------------[ Views ]--------------------------------<
77
+
78
+ copy_from_repo 'app/views/content/gold.html.erb', :repo => repo
79
+ copy_from_repo 'app/views/content/platinum.html.erb', :repo => repo
80
+ copy_from_repo 'app/views/content/silver.html.erb', :repo => repo
81
+ copy_from_repo 'app/views/devise/registrations/edit.html.erb', :repo => repo
82
+ copy_from_repo 'app/views/devise/registrations/new.html.erb', :repo => repo
83
+ copy_from_repo 'app/views/layouts/_navigation_links.html.erb', :repo => repo
84
+ copy_from_repo 'app/views/layouts/application.html.erb', :repo => repo
85
+ copy_from_repo 'app/views/layouts/mailer.html.erb', :repo => repo
86
+ copy_from_repo 'app/views/layouts/mailer.text.erb', :repo => repo
87
+ copy_from_repo 'app/views/user_mailer/expire_email.html.erb', :repo => repo
88
+ copy_from_repo 'app/views/user_mailer/expire_email.text.erb', :repo => repo
89
+ copy_from_repo 'app/views/visitors/index.html.erb', :repo => repo
90
+ copy_from_repo 'app/views/products/product.pdf', :repo => repo
91
+
92
+ # >-------------------------------[ Routes ]--------------------------------<
93
+
94
+ copy_from_repo 'config/routes.rb', :repo => repo
95
+
96
+ # >-------------------------------[ Tests ]--------------------------------<
97
+
98
+ ### tests not implemented
99
+
100
+ end
101
+ end
102
+
103
+ __END__
104
+
105
+ name: rails_stripe_membership_saas
106
+ description: "rails-stripe-membership-saas starter application"
107
+ author: RailsApps
108
+
109
+ requires: [core]
110
+ run_after: [git]
111
+ category: apps
data/recipes/railsapps.rb CHANGED
@@ -36,7 +36,8 @@ when "4"
36
36
  ["rails-devise-pundit", "rails-devise-pundit"],
37
37
  ["rails-signup-download", "rails-signup-download"],
38
38
  ["rails-stripe-checkout", "rails-stripe-checkout"],
39
- ["rails-stripe-coupons", "rails-stripe-coupons"]]
39
+ ["rails-stripe-coupons", "rails-stripe-coupons"],
40
+ ["rails-stripe-membership-saas", "rails-stripe-membership-saas"]]
40
41
  else
41
42
  prefs[:apps4] = multiple_choice "Upgrade to Rails 4.2 for more choices.",
42
43
  [["learn-rails", "learn-rails"],
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.33"
2
+ VERSION = "3.0.34"
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.33
4
+ version: 3.0.34
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-02-04 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -145,6 +145,7 @@ files:
145
145
  - recipes/rails_signup_download.rb
146
146
  - recipes/rails_stripe_checkout.rb
147
147
  - recipes/rails_stripe_coupons.rb
148
+ - recipes/rails_stripe_membership_saas.rb
148
149
  - recipes/railsapps.rb
149
150
  - recipes/readme.rb
150
151
  - recipes/roles.rb
@@ -183,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
184
  version: '0'
184
185
  requirements: []
185
186
  rubyforge_project: rails_apps_composer
186
- rubygems_version: 2.4.5
187
+ rubygems_version: 2.4.6
187
188
  signing_key:
188
189
  specification_version: 4
189
190
  summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.