dotjs_sprockets 0.1.0 → 0.1.1

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: ea75be79e483ce16dbf8f103172dafd2d80d9809
4
- data.tar.gz: 4b0bfea0a2fc5c6a80d1ff5eb5e1241057c5e6cf
3
+ metadata.gz: 0696ce27e474fd533278069c7397b8f2de427fb8
4
+ data.tar.gz: 35d496f9eb3091aaaa3f768812c6e8b92def2ee1
5
5
  SHA512:
6
- metadata.gz: 13d8f3f92bd3d73bab36f423749246d24ef1024a601c3a5125125c574f10074cfbe1dd72819624c011ddddedd7a9c0ec68d92ca927ec43b782f4f196212d52f9
7
- data.tar.gz: 699412f42c05219bd043668a2b3ead4697a9b86d3fec6eb65286920f45c69bd4cf97267b42dbb1ad1463b372e20d149c973e43be2e90e7c19a46f22ffdd9beda
6
+ metadata.gz: 550e54e30da339f518ced3ce70ce170f0b3a5a7215bb259de772a972ea8242c06db59f2a706b4424f525b2a1311b4d3b931c0bf0eeb7de7a52ee7e201999b9c2
7
+ data.tar.gz: a19fab5704193242ff782b511b30ec6c594a9f8ef095029556341076694160332c4bccfa494fa697a2852c233f3a97d9a2c47c751ac019633122e8cd364fad90
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # DotjsSprockets
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/dotjs_sprockets.svg)](http://badge.fury.io/rb/dotjs_sprockets)
3
4
  [![Code Climate](https://codeclimate.com/github/roperzh/dotjs_sprockets.png)](https://codeclimate.com/github/roperzh/dotjs_sprockets)
4
5
  [![Inline docs](http://inch-ci.org/github/roperzh/dotjs_sprockets.png?branch=master)](http://inch-ci.org/github/roperzh/dotjs_sprockets)
5
6
 
@@ -10,7 +11,7 @@
10
11
  Add this line to your application's Gemfile:
11
12
 
12
13
  ```ruby
13
- gem "dotjs-sprockets"
14
+ gem "dotjs_sprockets"
14
15
  ```
15
16
 
16
17
  And then execute:
@@ -54,8 +55,7 @@ JST["my_template"]() //=> <h2>Hello!</h2> ...
54
55
 
55
56
  ## Contributing
56
57
 
57
- 1. Fork it ( https://github.com/[my-github-username]/dotjs-sprockets/fork )
58
+ 1. Fork it
58
59
  2. Create your feature branch (`git checkout -b my-new-feature`)
59
- 3. Commit your changes (`git commit -am 'Add some feature'`)
60
- 4. Push to the branch (`git push origin my-new-feature`)
61
- 5. Create a new Pull Request
60
+ 3. Push to the branch (`git push origin my-new-feature`)
61
+ 4. Create a new Pull Request
@@ -18,5 +18,5 @@ module DotjsSprockets
18
18
  EXTENSION = ".djs"
19
19
 
20
20
  # Current version
21
- VERSION = "0.1.0"
21
+ VERSION = "0.1.1"
22
22
  end
@@ -21,8 +21,8 @@ module DotjsSprockets
21
21
  #
22
22
  # @since 0.1.0
23
23
  def precompile(full_path)
24
- template = open(full_path).read.chomp
25
- context.eval("doT.compile('#{template}').toString()")
24
+ template = open(full_path).read
25
+ context.eval("doT.compile(#{template.inspect}).toString()")
26
26
  end
27
27
 
28
28
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotjs_sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Dip