astrochimp 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/controllers/astrochimp/signups_controller.rb +1 -0
- data/app/mailers/astrochimp/signup_mailer.rb +10 -0
- data/app/views/astrochimp/signup_mailer/signup_complete.text.erb +5 -0
- data/config/astrochimp.example.yml +6 -3
- data/config/initializers/settings.rb +2 -0
- data/config/routes.rb +1 -1
- data/lib/astrochimp/version.rb +1 -1
- data/test/dummy/Gemfile +1 -0
- data/test/dummy/Gemfile.lock +7 -1
- data/test/dummy/config/astrochimp.yml +6 -3
- data/test/dummy/config/environments/development.rb +3 -0
- data/test/dummy/log/development.log +2217 -0
- data/test/dummy/tmp/letter_opener/1357250023_eea7d49/plain.html +87 -0
- data/test/dummy/tmp/letter_opener/1357250191_859c482/plain.html +87 -0
- data/test/dummy/tmp/letter_opener/1357250233_033a00f/plain.html +87 -0
- data/test/dummy/tmp/letter_opener/1357250285_5e65426/plain.html +87 -0
- data/test/dummy/tmp/letter_opener/1357250614_5df27af/plain.html +87 -0
- data/test/dummy/tmp/letter_opener/1357250650_cee9a81/plain.html +87 -0
- data/test/dummy/tmp/letter_opener/1357250994_935d1b5/plain.html +87 -0
- data/test/dummy/tmp/letter_opener/1357251027_ac6fdc6/plain.html +87 -0
- data/test/functional/astrochimp/signup_mailer_test.rb +9 -0
- metadata +27 -7
@@ -35,6 +35,7 @@ module Astrochimp
|
|
35
35
|
format.html { render action: :index }
|
36
36
|
format.json { render json: @signup.errors, status: :unprocessable_entity }
|
37
37
|
else
|
38
|
+
SignupMailer.signup_complete(@signup).deliver
|
38
39
|
format.html do
|
39
40
|
redirect_to @signup, notice: ENV['AC_SIGNUP_SUCCESS_NOTICE']
|
40
41
|
end
|
@@ -4,13 +4,16 @@ defaults: &defaults
|
|
4
4
|
company_url : "http://mailchimp.com"
|
5
5
|
twitter_user : "Brightbit"
|
6
6
|
facebook_url : "http://www.facebook.com/brightbit"
|
7
|
-
google_analytics_code :
|
8
|
-
mailchimp_list_id :
|
9
|
-
mailchimp_api_key :
|
7
|
+
google_analytics_code :
|
8
|
+
mailchimp_list_id :
|
9
|
+
mailchimp_api_key :
|
10
10
|
email_format : "html"
|
11
11
|
email_double_optin : false # true will require user to confirm their email address
|
12
12
|
signup_success_notice : "Thanks! We'll drop you a line when we launch!"
|
13
13
|
splash_layout : "astrochimp"
|
14
|
+
mail_from : "from@example.com"
|
15
|
+
mail_subject : "You have successfully signed up for Astrochimp"
|
16
|
+
host : "example.com"
|
14
17
|
|
15
18
|
development:
|
16
19
|
<<: *defaults
|
@@ -13,6 +13,8 @@ config.each do |key, value|
|
|
13
13
|
ENV[key] = value.to_s if !value.kind_of?(Hash) && ENV[key].blank?
|
14
14
|
end
|
15
15
|
|
16
|
+
ActionMailer::Base.default_url_options[:host] ||= ENV['AC_HOST']
|
17
|
+
|
16
18
|
#if File.basename($0) != 'rake'
|
17
19
|
#unless ActiveRecord::Base.connection.table_exists?('astrochimp_signups')
|
18
20
|
#raise "\n\nThe Chimp wants you to run rake db:migrate\n\n"
|
data/config/routes.rb
CHANGED
data/lib/astrochimp/version.rb
CHANGED
data/test/dummy/Gemfile
CHANGED
data/test/dummy/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
astrochimp (0.1.
|
4
|
+
astrochimp (0.1.3)
|
5
5
|
hominid (~> 3.0.5)
|
6
6
|
jquery-rails
|
7
7
|
rails (~> 3.2.8)
|
@@ -36,6 +36,7 @@ GEM
|
|
36
36
|
activesupport (3.2.8)
|
37
37
|
i18n (~> 0.6)
|
38
38
|
multi_json (~> 1.0)
|
39
|
+
addressable (2.3.2)
|
39
40
|
arel (3.0.2)
|
40
41
|
builder (3.0.4)
|
41
42
|
erubis (2.7.0)
|
@@ -47,6 +48,10 @@ GEM
|
|
47
48
|
railties (>= 3.1.0, < 5.0)
|
48
49
|
thor (~> 0.14)
|
49
50
|
json (1.7.5)
|
51
|
+
launchy (2.1.2)
|
52
|
+
addressable (~> 2.3)
|
53
|
+
letter_opener (1.0.0)
|
54
|
+
launchy (>= 2.0.4)
|
50
55
|
mail (2.4.4)
|
51
56
|
i18n (>= 0.4.0)
|
52
57
|
mime-types (~> 1.16)
|
@@ -96,5 +101,6 @@ PLATFORMS
|
|
96
101
|
|
97
102
|
DEPENDENCIES
|
98
103
|
astrochimp!
|
104
|
+
letter_opener
|
99
105
|
pg
|
100
106
|
rails
|
@@ -4,13 +4,16 @@ defaults: &defaults
|
|
4
4
|
company_url : "http://mailchimp.com"
|
5
5
|
twitter_user : "Brightbit"
|
6
6
|
facebook_url : "http://www.facebook.com/brightbit"
|
7
|
-
google_analytics_code :
|
8
|
-
mailchimp_list_id :
|
9
|
-
mailchimp_api_key :
|
7
|
+
google_analytics_code :
|
8
|
+
mailchimp_list_id :
|
9
|
+
mailchimp_api_key :
|
10
10
|
email_format : "html"
|
11
11
|
email_double_optin : false # true will require user to confirm their email address
|
12
12
|
signup_success_notice : "Thanks! We'll drop you a line when we launch!"
|
13
13
|
splash_layout : "astrochimp"
|
14
|
+
mail_from : "from@example.com"
|
15
|
+
mail_subject : "You have successfully signed up for Astrochimp"
|
16
|
+
host : "localhost:3000"
|
14
17
|
|
15
18
|
development:
|
16
19
|
<<: *defaults
|