ripplr 0.0.2.beta → 0.0.3.beta

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ripplr (0.0.1.alpha)
4
+ ripplr (0.0.2.beta)
5
5
  ripple (>= 0.9.5)
6
6
 
7
7
  GEM
@@ -12,7 +12,7 @@ module Ripplr
12
12
  end
13
13
 
14
14
  def indexes_as
15
- index_data = { :id => self.key }
15
+ index_data = { :key => self.key }
16
16
 
17
17
  self.class.query_fields.each do |field|
18
18
  index_data.merge! field.indexes_as(self)
@@ -23,14 +23,12 @@ module Ripplr
23
23
  class << self
24
24
  def included(base)
25
25
  base.module_eval do
26
- extend ActsAsMethods
27
-
28
-
26
+ extend QueryableClassMethods
29
27
  end
30
28
  end
31
29
  end
32
30
 
33
- module ActsAsMethods
31
+ module QueryableClassMethods
34
32
  def query_fields
35
33
  @query_fields ||= Array.new
36
34
  @query_fields
@@ -1,3 +1,3 @@
1
1
  module Ripplr
2
- VERSION = "0.0.2.beta"
2
+ VERSION = "0.0.3.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
- :id => "ABCDEF012345",
30
+ :key => "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
- :id => "XYZ1020",
44
+ :key => "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.2.beta
4
+ version: 0.0.3.beta
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: