emberprecompile 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in emberprecompile.gemspec
4
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in emberprecompile.gemspec
4
+ gemspec
data/LICENSE.txt CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2013 TODO: Write your name
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1
+ Copyright (c) 2013 TODO: Write your name
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
22
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,44 +1,44 @@
1
- # Ember Pre-Compile
2
-
3
- Compiling handlebars for Ember JS library. Supported versions of libraries are Handlbars JS RC 3 and Ember JS RC 1.
4
-
5
-
6
- ## Installation
7
-
8
- Add this line to your application's Gemfile:
9
-
10
- gem 'emberprecompile'
11
-
12
- And then execute:
13
-
14
- $ bundle
15
-
16
- Or install it yourself as:
17
-
18
- $ gem install emberprecompile
19
-
20
- ## Usage
21
-
22
- After installing gem, to compile handlebars say:
23
-
24
- $ emberprecompile
25
-
26
- Or
27
-
28
- $ emberprecompile compile
29
-
30
- To keep monitoring changes in handlebar files say:
31
-
32
- $ emberprecompile watch
33
-
34
- ## Note
35
-
36
- It expects "views" and "compiled" folders are existing in current location. Currently all handlebars are placed under "views" folder with ".handlebars" extension. Compiled handlebars are placed under "compiled" folder in "views.handlebars.js" file.
37
-
38
- ## Contributing
39
-
40
- 1. Fork it
41
- 2. Create your feature branch (`git checkout -b my-new-feature`)
42
- 3. Commit your changes (`git commit -am 'Add some feature'`)
43
- 4. Push to the branch (`git push origin my-new-feature`)
44
- 5. Create new Pull Request
1
+ # Ember Pre-Compile
2
+
3
+ Compiling handlebars for Ember JS library. Supported versions of libraries are Handlbars JS RC 4 and Ember JS RC 5.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ gem 'emberprecompile'
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install emberprecompile
19
+
20
+ ## Usage
21
+
22
+ After installing gem, to compile handlebars say:
23
+
24
+ $ emberprecompile
25
+
26
+ Or
27
+
28
+ $ emberprecompile compile
29
+
30
+ To keep monitoring changes in handlebar files say:
31
+
32
+ $ emberprecompile watch
33
+
34
+ ## Note
35
+
36
+ It expects "views" and "compiled" folders are existing in current location. Currently all handlebars are placed under "views" folder with ".handlebars" extension. Compiled handlebars are placed under "compiled" folder in "views.handlebars.js" file.
37
+
38
+ ## Contributing
39
+
40
+ 1. Fork it
41
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
42
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
43
+ 4. Push to the branch (`git push origin my-new-feature`)
44
+ 5. Create new Pull Request
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require "bundler/gem_tasks"
1
+ require "bundler/gem_tasks"
@@ -1,25 +1,25 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'emberprecompile/version'
5
-
6
- Gem::Specification.new do |gem|
7
- gem.name = "emberprecompile"
8
- gem.version = Emberprecompile::VERSION
9
- gem.authors = ["Venkatesh Kommineni"]
10
- gem.email = ["vkommineni@hotmail.com"]
11
- gem.description = %q{Handlebars pre compiler for Ember JS}
12
- gem.summary = %q{Pre compiles handlebars for Ember JS}
13
- gem.homepage = "https://github.com/venku/emberprecompile"
14
-
15
- gem.files = Dir.glob("*")
16
- gem.files += Dir.glob("lib/**/*")
17
- gem.executables = %w(emberprecompile)
18
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
- gem.require_paths = ["lib"]
20
-
21
- gem.add_dependency "barber", "=0.3.0"
22
- gem.add_dependency "fssm"
23
-
24
- gem.add_development_dependency "rake"
25
- end
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'emberprecompile/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "emberprecompile"
8
+ gem.version = Emberprecompile::VERSION
9
+ gem.authors = ["Venkatesh Kommineni"]
10
+ gem.email = ["vkommineni@hotmail.com"]
11
+ gem.description = %q{Handlebars pre compiler for Ember JS}
12
+ gem.summary = %q{Pre compiles handlebars for Ember JS}
13
+ gem.homepage = "https://github.com/venku/emberprecompile"
14
+
15
+ gem.files = Dir.glob("*")
16
+ gem.files += Dir.glob("lib/**/*")
17
+ gem.executables = %w(emberprecompile)
18
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
+ gem.require_paths = ["lib"]
20
+
21
+ gem.add_dependency "barber"
22
+ gem.add_dependency "fssm"
23
+
24
+ gem.add_development_dependency "rake"
25
+ end
@@ -1,7 +1,7 @@
1
- require "emberprecompile/version"
2
- require "emberprecompile/compiler"
3
- require "emberprecompile/watcher"
4
-
5
- module Emberprecompile
6
- # Your code goes here...
7
- end
1
+ require "emberprecompile/version"
2
+ require "emberprecompile/compiler"
3
+ require "emberprecompile/watcher"
4
+
5
+ module Emberprecompile
6
+ # Your code goes here...
7
+ end
@@ -16,7 +16,7 @@ module Emberprecompile
16
16
  templateName.slice!(source)
17
17
  result = Barber::Ember::FilePrecompiler.call(File.read(file))
18
18
  output.write('/* '+ templateName + ' Handlebar */')
19
- output.write('Ember.TEMPLATES["' + templateName + '"] = ' + result + '')
19
+ output.write('Ember.TEMPLATES["' + templateName + '"] = ' + result + "\n")
20
20
  print "\n"
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
- module Emberprecompile
2
- VERSION = "0.1.2"
3
- end
1
+ module Emberprecompile
2
+ VERSION = "0.1.3"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emberprecompile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-22 00:00:00.000000000 Z
12
+ date: 2013-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: barber
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - '='
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.3.0
21
+ version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - '='
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.3.0
29
+ version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: fssm
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -67,6 +67,7 @@ executables:
67
67
  extensions: []
68
68
  extra_rdoc_files: []
69
69
  files:
70
+ - emberprecompile-0.1.3.gem
70
71
  - emberprecompile.gemspec
71
72
  - Gemfile
72
73
  - LICENSE.txt