alephant 0.1.1-java → 0.1.2-java

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: e380898fbfc1de04d24909fbd8cc82f82c338c4d
4
- data.tar.gz: 8d82eb8ad5ec19279c9547092e74d04aabc61ac1
3
+ metadata.gz: 9b1da928aad5de8cf8dd8b35e18dc0bd0ade980b
4
+ data.tar.gz: cc8bb2abf9b9626eef58d1e9ca5ea60f76f20db9
5
5
  SHA512:
6
- metadata.gz: 3ca79920b31f43796118ff510eea1735ff2fdfc396357dd867e5711ddc918b70de9d9774dd9380c320476f70ad373d8ad0ac58b7a548e3f14b4f874dec1af91a
7
- data.tar.gz: 5d48de598a04829e0ed2a1fbddd909cad847cf79fc10fc2f9846ffcdd0a5521139ee5be51d2dc072531cb1aa19f473c10d109543f1dadc5ca46003d850d26003
6
+ metadata.gz: 67eaebb9049850eb6a770c32044964a8a0dd6919fb462fa8ecde3b0fb88cc410fc23381eef25558061911809634f9520df3b9a2cd9ca48119bf06f92db8930d9
7
+ data.tar.gz: a7bc6d12dcbaa367ac5ef5b83bdd189d645acd01ed6fe4d488da32b83724e36e1767467db1b37e68ce6cb3c83f7622af300b825ffe01a6babe974e41782a28bf
@@ -9,7 +9,7 @@ module Alephant
9
9
  end
10
10
 
11
11
  def parse(msg)
12
- symbolize(msg.body).tap { |o| o[:options] = options_for msg }
12
+ symbolize(msg.body).tap { |o| o[:options] = options_for msg unless not o[:options].nil? }
13
13
  end
14
14
 
15
15
  private
@@ -36,8 +36,8 @@ module Alephant
36
36
  end
37
37
 
38
38
  def location_for(component_id, version = nil)
39
- base_name = "#{@renderer_id}_#{component_id}"
40
- version ? "#{base_name}_#{version}" : base_name
39
+ base_name = "#{@renderer_id}/#{component_id}"
40
+ version ? "#{base_name}/#{version}" : base_name
41
41
  end
42
42
 
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module Alephant
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -35,7 +35,7 @@ describe Alephant::Writer do
35
35
  .stub(:initialize)
36
36
  Alephant::Lookup::Lookup.any_instance
37
37
  .should_receive(:write)
38
- .with(options, 'renderer_id_component_id_0')
38
+ .with(options, 'renderer_id/component_id/0')
39
39
 
40
40
  subject.write(data, 0)
41
41
  end
@@ -44,7 +44,7 @@ describe Alephant::Writer do
44
44
  Alephant::Lookup::Lookup.any_instance.stub(:initialize)
45
45
  Alephant::Lookup::Lookup.any_instance.stub(:write)
46
46
  Alephant::Cache.any_instance
47
- .should_receive(:put).with('renderer_id_component_id_0', 'content')
47
+ .should_receive(:put).with('renderer_id/component_id/0', 'content')
48
48
 
49
49
  subject.write({}, 0)
50
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: java
6
6
  authors:
7
7
  - Robert Kenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec