pinky 0.2.6-java → 0.2.7-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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
@@ -8,6 +8,7 @@ module Pinky
8
8
  lookup_value = send(find_by)
9
9
  association_model = lookup_value.nil? ? nil : klass.find(:id => lookup_value) rescue nil
10
10
  raise NotFoundException.new if association_model.nil? && !opts[:allow_nil]
11
+ association_model
11
12
  end
12
13
  end
13
14
  end
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pinky"
8
- s.version = "0.2.6"
8
+ s.version = "0.2.7"
9
9
  s.platform = "java"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Joel Friedman"]
13
- s.date = "2013-02-21"
13
+ s.date = "2013-03-22"
14
14
  s.description = "Cache your api objects in member easier, with associations."
15
15
  s.email = "asher.friedman@gmail.com"
16
16
  s.extra_rdoc_files = [
@@ -21,7 +21,7 @@ module Pinky
21
21
 
22
22
  it 'looks up employee by employee_id' do
23
23
  member = member_klass.new 123
24
- Employee.should_receive(:find).with(:id => 123)
24
+ Employee.should_receive(:find).with(:id => 123).and_return stub
25
25
  FooBar.should_not_receive(:find)
26
26
 
27
27
  member.employee
@@ -29,7 +29,7 @@ module Pinky
29
29
 
30
30
  it 'looks up FooBar by employee_id' do
31
31
  member = member_klass.new 999
32
- FooBar.should_receive(:find).with(:id => 999)
32
+ FooBar.should_receive(:find).with(:id => 999).and_return stub
33
33
  Employee.should_not_receive(:find)
34
34
 
35
35
  member.foobar
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: pinky
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.6
5
+ version: 0.2.7
6
6
  platform: java
7
7
  authors:
8
8
  - Joel Friedman
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -208,11 +208,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
208
  requirements:
209
209
  - - ! '>='
210
210
  - !ruby/object:Gem::Version
211
+ version: !binary |-
212
+ MA==
211
213
  segments:
212
214
  - 0
213
215
  hash: 2
214
- version: !binary |-
215
- MA==
216
216
  none: false
217
217
  required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  requirements: