rails_apps_composer 3.0.34 → 3.0.35

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/templates/helpers.erb +3 -3
  3. data/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2ea17bb7fd4d545ca2bb31c0d148e3baa4cf558
4
- data.tar.gz: e4e6b65f869fa3ddaaaa6a2dadfb5c7d01d82fd0
3
+ metadata.gz: 1d8ddd4e92cc7b67e682b0b92cf3c8dcef9e92e2
4
+ data.tar.gz: a94b59edfa2daa7f67e5e357857df88407c5f474
5
5
  SHA512:
6
- metadata.gz: ce6cc5f6e2f2d7890e43e4a8e622cf99a43413569f336d9cf0f435e24acb8cddb513cde64fbce3e61b7951ed820be6e93f01333b13ac37b379355947ff39348b
7
- data.tar.gz: edd096a27f0cd2c2f3cb96234dd4c98acf0b0f755d9c50c0acdf744ac21af6c2e90b8ec63dfc6577f685799424efea0c1bf6337dcc64015d9692411a1927533e
6
+ metadata.gz: 797eaf47ccced2afc520d380ca016d49b4ea1415ed9a338f539dd451ec6e69e39fc1cd3b4b0672f4ee78f983bad348cd96dd242ce2e1d9d84377054243580405
7
+ data.tar.gz: 2f2727d6cbdf3201e60ada15a46738a484e17ac6c294590d8b96c79d965b8b94e5b12833f25fbfe651d50e76dfaf6c49dae4de070126d5091991661812069630
@@ -101,7 +101,7 @@ end
101
101
  def html_to_haml(source)
102
102
  begin
103
103
  html = open(source) {|input| input.binmode.read }
104
- Haml::HTML.new(html, :erb => true, :xhtml => true).render
104
+ Html2haml::HTML.new(html, :erb => true, :xhtml => true).render
105
105
  rescue RubyParser::SyntaxError
106
106
  say_wizard "Ignoring RubyParser::SyntaxError"
107
107
  # special case to accommodate https://github.com/RailsApps/rails-composer/issues/55
@@ -110,7 +110,7 @@ def html_to_haml(source)
110
110
  say_wizard "applying patch" if html.include? 'card_year'
111
111
  html = html.gsub(/, {add_month_numbers: true}, {name: nil, id: "card_month"}/, '')
112
112
  html = html.gsub(/, {start_year: Date\.today\.year, end_year: Date\.today\.year\+10}, {name: nil, id: "card_year"}/, '')
113
- result = Haml::HTML.new(html, :erb => true, :xhtml => true).render
113
+ result = Html2haml::HTML.new(html, :erb => true, :xhtml => true).render
114
114
  result = result.gsub(/select_month nil/, "select_month nil, {add_month_numbers: true}, {name: nil, id: \"card_month\"}")
115
115
  result = result.gsub(/select_year nil/, "select_year nil, {start_year: Date.today.year, end_year: Date.today.year+10}, {name: nil, id: \"card_year\"}")
116
116
  end
@@ -118,7 +118,7 @@ end
118
118
 
119
119
  def html_to_slim(source)
120
120
  html = open(source) {|input| input.binmode.read }
121
- haml = Haml::HTML.new(html, :erb => true, :xhtml => true).render
121
+ haml = Html2haml::HTML.new(html, :erb => true, :xhtml => true).render
122
122
  Haml2Slim.convert!(haml)
123
123
  end
124
124
 
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.34"
2
+ VERSION = "3.0.35"
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.34
4
+ version: 3.0.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n