nanoc-snippet 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,6 +4,26 @@ Show a snippet of one item.
4
4
 
5
5
  It use [nokogiri](http://nokogiri.org/).
6
6
 
7
+ ## Install
8
+
9
+ gem install nanoc-snippet
10
+
11
+ If you use bundler, add it to your Gemfile:
12
+
13
+ gem "nanoc-snippet", "~> 0.0.2"
14
+
15
+ ## Usage
16
+
17
+ Add to *lib/default.rb*:
18
+
19
+ ```ruby
20
+ require 'nanoc-snippet'
21
+
22
+ include Nanoc::Helpers::Snippet
23
+ ```
24
+
25
+ In your layout:
26
+
7
27
  ```ruby
8
28
  <%= snippet(item) %>
9
29
  ```
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-snippet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &12620520 !ruby/object:Gem::Requirement
16
+ requirement: &22137480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12620520
24
+ version_requirements: *22137480
25
25
  description:
26
26
  email: francois@2metz.fr
27
27
  executables: []
@@ -30,7 +30,7 @@ extra_rdoc_files:
30
30
  - README.md
31
31
  files:
32
32
  - README.md
33
- - lib/nanoc/helpers/snippet.rb
33
+ - lib/nanoc-snippet.rb
34
34
  homepage: https://github.com/stormz/nanoc-plugins
35
35
  licenses: []
36
36
  post_install_message: