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 +4 -4
- data/recipes/core.rb +1 -0
- data/recipes/rails_mailinglist_signup.rb +74 -0
- data/recipes/railsapps.rb +1 -0
- data/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 590eaac564a6db23e1403adeeec14ab57efd5118
|
4
|
+
data.tar.gz: d604d06f149770edce524f323271e142adbc3633
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6ee8132420cf0dc7bd0b9655bed5912bf1cf491f2ee80575f576343afa21e8b70a650fabf126b3010cb70d0419ff02ccb8241901731384cce0fbb3b1a80ca5a
|
7
|
+
data.tar.gz: c86518a31c25c73bf4e8310a295cd569b8f01904cc6a9743d254941cc41a61da350b73a147c420014c9e2f67543285184a678d0b328e96983cd192de8f51fcb0
|
data/recipes/core.rb
CHANGED
@@ -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
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
|
+
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-
|
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
|