ripplr 0.0.3.beta → 0.0.4.beta

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ module Ripplr
12
12
  end
13
13
 
14
14
  def indexes_as
15
- index_data = { :key => self.key }
15
+ index_data = { :id => self.key }
16
16
 
17
17
  self.class.query_fields.each do |field|
18
18
  index_data.merge! field.indexes_as(self)
@@ -1,3 +1,3 @@
1
1
  module Ripplr
2
- VERSION = "0.0.3.beta"
2
+ VERSION = "0.0.4.beta"
3
3
  end
@@ -27,7 +27,7 @@ describe Ripplr::Queryable do
27
27
  Given { lawnmower.stub(:key).and_return "ABCDEF012345" }
28
28
  When (:result) { lawnmower.indexes_as }
29
29
  Then { result.should == {
30
- :key => "ABCDEF012345",
30
+ :id => "ABCDEF012345",
31
31
  :title_text => "Lawnmower",
32
32
  :description_text => "It’s a variation of the classic dumbbell row so it trains the muscles of your back."
33
33
  }
@@ -41,7 +41,7 @@ describe Ripplr::Queryable do
41
41
  Given { entry.stub(:key).and_return "XYZ1020" }
42
42
  When (:result) { entry.indexes_as }
43
43
  Then { result.should == {
44
- :key => "XYZ1020",
44
+ :id => "XYZ1020",
45
45
  :description_text => "4x8 BB Power Clean @ 135lbs.",
46
46
  :created_at_dt => time
47
47
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripplr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.beta
4
+ version: 0.0.4.beta
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: