tilt-yaml2json 0.0.1 → 0.0.2

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: bb00fa839ca0a87cfc6677012ae770b43efc8d7a
4
- data.tar.gz: 5170bc6bf91add6a763cf6b60e898970628ab71c
3
+ metadata.gz: 0a1bc7afd3ebecf683e1b3a8c653b670aec06bc8
4
+ data.tar.gz: 89478fc98f6fa7d6d3d162d71bccdf145fbae850
5
5
  SHA512:
6
- metadata.gz: f56399dae4a3741fa83db690c5b4f1480888f6bc4ae8d14d5cf87dd29bba24d263a878d75ca7397cec8812651c50602f7da9fbb6b5bbfd3a3948e0c60df95363
7
- data.tar.gz: b4f45e98d64fa94a89cc9069c9fbfb19d1a09eca22451a8ec3c2d4d3ba51b5b5f8968a56bbc64ae800f2f43cc6c290dfb5f33f3fad1f12162d5854472acadb6a
6
+ metadata.gz: 4e67ac3c2daf27d0066fb65d0681aed9c2546cb5b910fa278a9c777828e9b814fa9015c12c9ce965aa73204357cafe877791a69e79fb697aa0669cad1032313c
7
+ data.tar.gz: 859d2e0fe6954be5f1a99aa14f15caa097fe723f6a2520822dd1b6da2fa5953c6a577720626078d588406cfd4cf471afac5c18b1bf004120901f7bc16d71474d
data/README.md CHANGED
@@ -25,9 +25,17 @@ Tilt.register Tilt::YAML2JSONTemplate, 'yml'
25
25
  puts Tilt.new('foo.yml').render
26
26
  ```
27
27
 
28
+ or
29
+
30
+ ``` ruby
31
+ require 'tilt/yaml2json/register'
32
+
33
+ puts Tilt.new('foo.yml').render
34
+ ```
35
+
28
36
  ## Contributing
29
37
 
30
- 1. Fork it ( https://github.com/[my-github-username]/tilt-yaml2json/fork )
38
+ 1. Fork it ( https://github.com/ursm/tilt-yaml2json/fork )
31
39
  2. Create your feature branch (`git checkout -b my-new-feature`)
32
40
  3. Commit your changes (`git commit -am 'Add some feature'`)
33
41
  4. Push to the branch (`git push origin my-new-feature`)
@@ -0,0 +1,4 @@
1
+ require 'tilt'
2
+ require 'tilt/yaml2json'
3
+
4
+ Tilt.register Tilt::YAML2JSONTemplate, 'yml', 'yaml'
@@ -1,5 +1,5 @@
1
1
  module Tilt
2
2
  module YAML2JSON
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tilt-yaml2json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keita Urashima
@@ -66,6 +66,7 @@ files:
66
66
  - Rakefile
67
67
  - lib/tilt-yaml2json.rb
68
68
  - lib/tilt/yaml2json.rb
69
+ - lib/tilt/yaml2json/register.rb
69
70
  - lib/tilt/yaml2json/version.rb
70
71
  - tilt-yaml2json.gemspec
71
72
  homepage: https://github.com/ursm/tilt-yaml2json