rugular 0.9.14 → 0.9.15

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: 047aace190b4c14d82ab6e0ee3e4f91b596745e2
4
- data.tar.gz: 8826e9528fc12c57e74aaaf09aa534af3117d21f
3
+ metadata.gz: cd776461bd3a6e2dba08148d046abf1654ebb74f
4
+ data.tar.gz: 73fb52ba97cac652bf4d125607b0cdceaf88ed3d
5
5
  SHA512:
6
- metadata.gz: 391307e412b814906bde67e26142ca037c099eb2a0e6d5c5a59b803ce0409cc71e367497cc5a72573c551b9f870513d21fc3aeeed2c769a68a396841bb9d3de5
7
- data.tar.gz: 5daae1fb19585ac165b0a82959194c362ed851a111795d866efb861f23e39d6667312c0bb198ff43eb2b762229051ef5e092310bc0b5f99d83f71b15d51fce38
6
+ metadata.gz: 048ea9444d47ddb1c4f4ef69c2119951866f0882254ce30e82da1db5b453d854416050ea8c55f1b86f9608b2a788e375492c5403f14d8cc08e2e3443662c994c
7
+ data.tar.gz: 9da324787f7490f21f5f9d06ae6c595e61a0174ff784bec70e7b93a90bafe4785f110c5ab57e1ee4ffbf276cf88897666919e5aa3f71c909281257602006140b
@@ -25,28 +25,24 @@ module Rugular
25
25
 
26
26
  def compile_bower_javascript
27
27
  File.open('dist/vendor.js', 'w') do |file|
28
- file.write(Uglifier.compile(bower_javascript))
28
+ file.write(bower_javascript)
29
29
  end
30
30
  end
31
31
 
32
32
  def create_application_js_file
33
33
  File.open('dist/application.js', 'w') do |file|
34
34
  file.write(
35
- Uglifier.compile(
35
+ ::Rugular::JavascriptFiles.ordered_array.map do |javascript_file|
36
+ text = File.read(javascript_file).gsub('templateUrl', 'template')
36
37
 
37
- ::Rugular::JavascriptFiles.ordered_array.map do |javascript_file|
38
- text = File.read(javascript_file).gsub('templateUrl', 'template')
39
-
40
- CoffeeScript.compile(text)
41
- end.join
42
-
43
- )
38
+ CoffeeScript.compile(text)
39
+ end.join
44
40
  )
45
41
  end
46
42
  end
47
43
 
48
44
  def inline_template_url_files
49
- (Dir.glob("**/*.haml") - ["src/index.haml"]).each do |haml_file|
45
+ (Dir.glob('**/*.haml') - ['src/index.haml']).each do |haml_file|
50
46
  haml_html = ::Haml::Engine.new(File.read(haml_file), {}).render
51
47
 
52
48
  html = haml_html.tr("\n", '').gsub("'", "\'").gsub('"', '\"')
@@ -1,3 +1,3 @@
1
1
  module Rugular
2
- VERSION = '0.9.14'
2
+ VERSION = '0.9.15'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.14
4
+ version: 0.9.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Shook