emberprecompile 0.1.1a → 0.1.1

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.
@@ -10,15 +10,17 @@ module Emberprecompile
10
10
 
11
11
  Find.find(source) do |file|
12
12
  if !FileTest.directory?(file)
13
- if(file.end_with?(".handlebars"))
14
- print "Compiling "+file
15
- templateName = file.chomp(".handlebars")
16
- templateName.slice!(source)
17
- result = Barber::Ember::FilePrecompiler.call(File.read(file))
18
- output.write('/* '+ templateName + ' Handlebar */')
19
- output.write('Ember.TEMPLATES["' + templateName + '"] = ' + result + '')
20
- print "\n"
21
- end
13
+ print "Compiling "+file
14
+ templateName = file.chomp(".handlebars")
15
+ templateName.slice!(source)
16
+ result = Barber::Ember::FilePrecompiler.call(File.read(file))
17
+ output.write('/* '+ templateName + ' Handlebar */')
18
+ output.puts @string
19
+ output.write('Ember.TEMPLATES["' + templateName + '"] = ' + result + '')
20
+ output.puts @string
21
+ print "\n"
22
+ else
23
+ next
22
24
  end
23
25
  end
24
26
  print "\n"
@@ -1,3 +1,3 @@
1
1
  module Emberprecompile
2
- VERSION = "0.1.1a"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emberprecompile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1a
5
- prerelease: 5
4
+ version: 0.1.1
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Venkatesh Kommineni
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-22 00:00:00.000000000 Z
12
+ date: 2013-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: barber
@@ -92,9 +92,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  none: false
94
94
  requirements:
95
- - - ! '>'
95
+ - - ! '>='
96
96
  - !ruby/object:Gem::Version
97
- version: 1.3.1
97
+ version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
100
  rubygems_version: 1.8.24