rails_apps_composer 3.0.6 → 3.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/recipes/railsapps.rb +11 -0
- data/templates/helpers.erb +1 -0
- data/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb01bd5962b4adcede6b8f64251e3e882022b46e
|
4
|
+
data.tar.gz: 6b9926a1676c9998e5705816581006700dedab3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee19881bae4349d20b178e151ddd506f7ebfb9e38c539ea43c65393fc780adc556144657ee03821ad81f31dff566892d1ae94a9b1179960e42f6438ccf231a68
|
7
|
+
data.tar.gz: 77ea706f6f990c963e411aef44155d4a93d3d328cc9ee0111a7f04d9eb119db644c2595851ab1e88acbb74c536309d99dd10fdb9f750160a1bb2e61ae16260c4
|
data/recipes/railsapps.rb
CHANGED
@@ -39,6 +39,17 @@ when "4"
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
unless prefs[:announcements]
|
43
|
+
say_loud '', 'Get on the mailing list for Rails Composer news?'
|
44
|
+
prefs[:announcements] = ask_wizard('Enter your email address:')
|
45
|
+
if prefs[:announcements].present?
|
46
|
+
system "curl --silent http://mailinglist.railscomposer.com/api -d'visitor[email]=#{prefs[:announcements]}' > /dev/null"
|
47
|
+
prefs[:announcements] = 'mailinglist'
|
48
|
+
else
|
49
|
+
prefs[:announcements] = 'none'
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
42
53
|
__END__
|
43
54
|
|
44
55
|
name: railsapps
|
data/templates/helpers.erb
CHANGED
@@ -7,6 +7,7 @@ def diagnostics_recipes; @diagnostics_recipes end
|
|
7
7
|
def diagnostics_prefs; @diagnostics_prefs end
|
8
8
|
|
9
9
|
def say_custom(tag, text); say "\033[1m\033[36m" + tag.to_s.rjust(10) + "\033[0m" + " #{text}" end
|
10
|
+
def say_loud(tag, text); say "\033[1m\033[36m" + tag.to_s.rjust(10) + " #{text}" + "\033[0m" end
|
10
11
|
def say_recipe(name); say "\033[1m\033[36m" + "recipe".rjust(10) + "\033[0m" + " Running #{name} recipe..." end
|
11
12
|
def say_wizard(text); say_custom(@current_recipe || 'composer', text) end
|
12
13
|
|
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.7
|
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-07-
|
11
|
+
date: 2014-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|