icy-content_buffer 0.1.0 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b7f89a0ca63af6fee28ec5a73038c6f219781dd
4
- data.tar.gz: ba5a1091780bcf2869694e74b2faf230dff1ba31
3
+ metadata.gz: c1b4ee5566643c1335c5fc1c6e50294d5fc3ab17
4
+ data.tar.gz: 760f2a305267f6eb7836a0f6d6b0065b5e451537
5
5
  SHA512:
6
- metadata.gz: 91e727c537ae9fd8935fb6c9407be58ebb90796c299a0a5337d66615a6b25cf067dc8d1a430284deeac86719963f0b70893065e3af2b5f3b198ed6717068fbd5
7
- data.tar.gz: 3b64a6b0605c3f071f969dff752071c6dcd3bdc2c700447ffde0125d91c9e521f554a8d620458375b12871bd5c3e19d2c82d34df1279a6a87d585b33d1d841a2
6
+ metadata.gz: 8e060869c6d84cbf5a8669d93cbcbc599ac676ef2e3cd68d4cddeaada5df3425cfabff8512cfee0d40d8b8372e3d32cbd82168838db5993f1020753775692979
7
+ data.tar.gz: 8927a337c698a79e764a7d1fcccf85f60bdf821988859b96487b074fead4193bc7f79382d194b117023657f6aee7af7aa01c1eacba28b9ef0bcdeb4fb1c3e888
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Icy:ContentBuffer
1
+ # `Icy::ContentBuffer`
2
2
 
3
3
  Content Buffer stores a section of your template for later use. It can be retrieved by passing the block identifier to the the store, and then it can be used in other templates.
4
4
 
@@ -22,30 +22,31 @@ Or install it yourself as:
22
22
 
23
23
  Making the Content Buffer available to your application:
24
24
 
25
- ```
26
- require "content_buffer"
25
+ ```ruby
26
+ require 'icy-content_buffer'
27
27
 
28
28
  def initialize
29
- @content_buffer = ContentBuffer.new
29
+ @content_buffer = Icy::ContentBuffer.new
30
30
  end
31
31
  ```
32
32
 
33
33
  Capturing the content:
34
34
 
35
- ```
35
+ ```ruby
36
36
  content_buffer.set(:title, "Notes tagged #{category.name}")
37
37
  ```
38
38
 
39
39
  Or with a block:
40
40
 
41
- ```
41
+ ```ruby
42
42
  content_buffer.set :og_meta_tags do
43
- # structure the content to be captured
43
+ # structure the content to be captured
44
+ end
44
45
  ```
45
46
 
46
47
  Retrieving the content by its identifier:
47
48
 
48
- ```
49
+ ```ruby
49
50
  content_buffer.get(:og_meta_tags)
50
51
  ```
51
52
 
@@ -57,10 +58,9 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
57
58
 
58
59
  ## Contributing
59
60
 
60
- Bug reports and pull requests are welcome on GitHub at https://github.com/[icelab]/icy-content)buffer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
61
+ Bug reports and pull requests are welcome on GitHub at https://github.com/icelab/icy-content_buffer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
61
62
 
62
63
 
63
64
  ## License
64
65
 
65
66
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
66
-
@@ -8,6 +8,7 @@ module Icy
8
8
 
9
9
  def set(key, value = nil)
10
10
  @content_buffer[key] = block_given? ? yield : value
11
+ nil
11
12
  end
12
13
 
13
14
  def get(key)
@@ -1,6 +1,6 @@
1
1
  module Icy
2
2
  class ContentBuffer
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icy-content_buffer
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
  - Josephine Hall
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-12 00:00:00.000000000 Z
11
+ date: 2016-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler