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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8648a60f499fa28077d5f711e7c087100edef52f
4
- data.tar.gz: a4d9810a1f7510ae47ed95d32e6758180f7f8b80
3
+ metadata.gz: fb01bd5962b4adcede6b8f64251e3e882022b46e
4
+ data.tar.gz: 6b9926a1676c9998e5705816581006700dedab3d
5
5
  SHA512:
6
- metadata.gz: 8ac82d916a354582e943ce8251a419d7e43e439d15c5962d31e1c6bd605c9b37ae2e3a8b9f75e3b24b49f84e588e7c1d924109410de557723739d763b3c40dd2
7
- data.tar.gz: 6009032970cceab9c305638ff498c536e7da55482ca6cc0a82bc3a0a27d5d19795bdffffe2e8bbff546844112de12e7c391c5d110e803303c0129c6485c25a68
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.6"
2
+ VERSION = "3.0.7"
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.6
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-02 00:00:00.000000000 Z
11
+ date: 2014-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n