ribbon 0.3.0 → 0.3.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.
Files changed (3) hide show
  1. data/lib/ribbon.rb +4 -4
  2. data/lib/ribbon/version.rb +1 -1
  3. metadata +5 -5
data/lib/ribbon.rb CHANGED
@@ -128,13 +128,13 @@ class Ribbon < BasicObject
128
128
  # Merges the hash of +new+ with the hash of +old+, creating a new ribbon in
129
129
  # the process.
130
130
  def self.merge(old, new, &block)
131
- new extract_hash_from(old).merge(extract_hash_from(ribbon), &block)
131
+ new extract_hash_from(old).merge(extract_hash_from(new), &block)
132
132
  end
133
133
 
134
134
  # Merges the hash of +new+ with the hash of +old+, modifying +old+'s hash in
135
135
  # the process.
136
136
  def self.merge!(old, new, &block)
137
- extract_hash_from(old).merge! extract_hash_from(ribbon), &block
137
+ extract_hash_from(old).merge! extract_hash_from(new), &block
138
138
  end
139
139
 
140
140
  # Returns +true+ if the given +object+ is a ribbon.
@@ -144,12 +144,12 @@ class Ribbon < BasicObject
144
144
 
145
145
  # Returns +true+ if the given ribbon is wrapped.
146
146
  def self.wrapped?(ribbon)
147
- Wrapper === ribbon
147
+ ::Ribbon::Wrapper === ribbon
148
148
  end
149
149
 
150
150
  # Wraps a ribbon instance in a Ribbon::Wrapper.
151
151
  def self.wrap(ribbon)
152
- Wrapper.new ribbon
152
+ ::Ribbon::Wrapper.new ribbon
153
153
  end
154
154
 
155
155
  # Unwraps the +ribbon+ if it is wrapped and returns its hash. Returns +nil+ in
@@ -16,7 +16,7 @@ class Ribbon < BasicObject
16
16
  # Patch version.
17
17
  #
18
18
  # Increments denote changes in implementation.
19
- PATCH = 0
19
+ PATCH = 1
20
20
 
21
21
  # Build version.
22
22
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ribbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rookie
16
- requirement: &15659380 !ruby/object:Gem::Requirement
16
+ requirement: &18538300 !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: :development
23
23
  prerelease: false
24
- version_requirements: *15659380
24
+ version_requirements: *18538300
25
25
  description: Ruby Object Notation. Inspired by JSON and OpenStruct.
26
26
  email: matheus.a.m.moreira@gmail.com
27
27
  executables: []
@@ -54,7 +54,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  segments:
56
56
  - 0
57
- hash: 2946347091620539582
57
+ hash: 63380645992066073
58
58
  required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  none: false
60
60
  requirements:
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  segments:
65
65
  - 0
66
- hash: 2946347091620539582
66
+ hash: 63380645992066073
67
67
  requirements: []
68
68
  rubyforge_project:
69
69
  rubygems_version: 1.8.10