pebbles-uid 0.0.14 → 0.0.15

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.
data/lib/pebbles-uid.rb CHANGED
@@ -100,5 +100,9 @@ module Pebbles
100
100
  "#{parent_species}:#{path_labels.values[0..-2].join('.')}$#{path_labels.values.last}"
101
101
  end
102
102
 
103
+ def child_path
104
+ "#{path}.#{oid}"
105
+ end
106
+
103
107
  end
104
108
  end
@@ -1,5 +1,5 @@
1
1
  module Pebbles
2
2
  class Uid
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
5
5
  end
data/spec/uid_spec.rb CHANGED
@@ -153,6 +153,8 @@ describe Pebbles::Uid do
153
153
  subject.parent('stuff').should eq('stuff:tourism.norway$fjords')
154
154
  end
155
155
 
156
+ its(:child_path) { should eq('tourism.norway.fjords.1234') }
157
+
156
158
  its(:cache_key) { should eq('post.card:tourism.*$1234') }
157
159
 
158
160
  its(:to_hash) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebbles-uid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-17 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70124235672500 !ruby/object:Gem::Requirement
16
+ requirement: &70332659041680 !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: *70124235672500
24
+ version_requirements: *70332659041680
25
25
  description: Handle pebble UIDs conveniently.
26
26
  email:
27
27
  - katrina.owen@gmail.com