rails_apps_composer 3.0.4 → 3.0.5

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: f15f1c31c6b772721053b1940764680f4eaca7fc
4
- data.tar.gz: ffd504c3e7d0932850c5bfeeff033add81156976
3
+ metadata.gz: 590eaac564a6db23e1403adeeec14ab57efd5118
4
+ data.tar.gz: d604d06f149770edce524f323271e142adbc3633
5
5
  SHA512:
6
- metadata.gz: 9e1f9854a278d96a0565cd378492ce4d4abc03f6a7632d9d0b25d08d583063b23deb1fe2d3fe15d8550530f7e64c5119e05f9a126b2fb037881b6b348b02f0fb
7
- data.tar.gz: 1a0ba0cbf752e2c9a1617c260a3ae424b27e8cd7e90b87a8a39145893b124c3635037b7201f9a0cbd1f3dc5989cf7a0bdb8ba22243c986511cd39eb1cf1d6547
6
+ metadata.gz: d6ee8132420cf0dc7bd0b9655bed5912bf1cf491f2ee80575f576343afa21e8b70a650fabf126b3010cb70d0419ff02ccb8241901731384cce0fbb3b1a80ca5a
7
+ data.tar.gz: c86518a31c25c73bf4e8310a295cd569b8f01904cc6a9743d254941cc41a61da350b73a147c420014c9e2f67543285184a678d0b328e96983cd192de8f51fcb0
data/recipes/core.rb CHANGED
@@ -18,6 +18,7 @@ requires: [git, railsapps,
18
18
  rails_devise,
19
19
  rails_devise_pundit,
20
20
  rails_signup_download,
21
+ rails_mailinglist_signup,
21
22
  setup, locale, readme, gems,
22
23
  tests,
23
24
  email,
@@ -0,0 +1,74 @@
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_mailinglist_signup.rb
3
+
4
+ if prefer :apps4, 'rails-mailinglist-signup'
5
+ prefs[:authentication] = false
6
+ prefs[:authorization] = false
7
+ prefs[:better_errors] = true
8
+ prefs[:deployment] = 'none'
9
+ prefs[:devise_modules] = false
10
+ prefs[:form_builder] = 'simple_form'
11
+ prefs[:git] = true
12
+ prefs[:local_env_file] = false
13
+ prefs[:pry] = false
14
+ prefs[:quiet_assets] = true
15
+ prefs[:secrets] = ['mailchimp_list_id', 'mailchimp_api_key']
16
+ prefs[:pages] = 'none'
17
+ prefs[:locale] = 'none'
18
+
19
+ # gems
20
+ add_gem 'activejob', github: 'rails/activejob'
21
+ add_gem 'gibbon'
22
+ add_gem 'sucker_punch'
23
+
24
+ stage_two do
25
+ say_wizard "recipe stage two"
26
+ generate 'model Visitor email:string'
27
+ end
28
+
29
+ stage_three do
30
+ say_wizard "recipe stage three"
31
+ repo = 'https://raw.github.com/RailsApps/rails-mailinglist-signup/master/'
32
+
33
+ # >-------------------------------[ Config ]---------------------------------<
34
+
35
+ copy_from_repo 'config/initializers/active_job.rb', :repo => repo
36
+
37
+ # >-------------------------------[ Models ]--------------------------------<
38
+
39
+ copy_from_repo 'app/models/visitor.rb', :repo => repo
40
+
41
+ # >-------------------------------[ Controllers ]--------------------------<
42
+
43
+ copy_from_repo 'app/controllers/visitors_controller.rb', :repo => repo
44
+
45
+ # >-------------------------------[ Jobs ]---------------------------------<
46
+
47
+ copy_from_repo 'app/jobs/mailing_list_signup_job.rb', :repo => repo
48
+
49
+ # >-------------------------------[ Views ]--------------------------------<
50
+
51
+ copy_from_repo 'app/views/visitors/new.html.erb', :repo => repo
52
+
53
+ # >-------------------------------[ Routes ]-------------------------------<
54
+
55
+ inject_into_file 'config/routes.rb', " root to: 'visitors#new'\n", :after => "routes.draw do\n"
56
+ route = ' resources :visitors, only: [:new, :create]'
57
+ inject_into_file 'config/routes.rb', route + "\n", :after => "routes.draw do\n"
58
+
59
+ # >-------------------------------[ Tests ]--------------------------------<
60
+
61
+ ### tests not implemented
62
+
63
+ end
64
+ end
65
+
66
+ __END__
67
+
68
+ name: rails_mailinglist_signup
69
+ description: "rails_mailinglist_signup starter application"
70
+ author: RailsApps
71
+
72
+ requires: [core]
73
+ run_after: [git]
74
+ category: apps
data/recipes/railsapps.rb CHANGED
@@ -27,6 +27,7 @@ when "4"
27
27
  [["learn-rails", "learn-rails"],
28
28
  ["rails-bootstrap", "rails-bootstrap"],
29
29
  ["rails-foundation", "rails-foundation"],
30
+ ["rails-mailinglist-signup", "rails-mailinglist-signup"],
30
31
  ["rails-omniauth", "rails-omniauth"],
31
32
  ["rails-devise", "rails-devise"],
32
33
  ["rails-devise-pundit", "rails-devise-pundit"],
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.4"
2
+ VERSION = "3.0.5"
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.4
4
+ version: 3.0.5
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-06-30 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -138,6 +138,7 @@ files:
138
138
  - recipes/rails_devise.rb
139
139
  - recipes/rails_devise_pundit.rb
140
140
  - recipes/rails_foundation.rb
141
+ - recipes/rails_mailinglist_signup.rb
141
142
  - recipes/rails_omniauth.rb
142
143
  - recipes/rails_signup_download.rb
143
144
  - recipes/railsapps.rb