pinky 0.3.0-java → 2.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/pinky/exceptions.rb +3 -0
- data/lib/pinky/model_fetch_methods.rb +1 -1
- data/lib/pinky.rb +0 -3
- data/pinky.gemspec +2 -2
- metadata +5 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
2.0.0
|
data/lib/pinky/exceptions.rb
CHANGED
@@ -19,7 +19,7 @@ module Pinky
|
|
19
19
|
response = HTTParty.get pinky_request_url(query),
|
20
20
|
:query => pinky_request_query_params(query),
|
21
21
|
:headers => pinky_request_headers(query)
|
22
|
-
raise
|
22
|
+
raise ItemFetchException.new [response.code, response.body] unless response.success?
|
23
23
|
response_hash = hash_from_pinky_response(response) rescue nil
|
24
24
|
if response_hash.is_a?(Array)
|
25
25
|
raise TooManyFoundException.new "More than one model was returned" if response_hash.size > 1
|
data/lib/pinky.rb
CHANGED
data/pinky.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "pinky"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "2.0.0"
|
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-
|
13
|
+
s.date = "2013-10-03"
|
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 = [
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: pinky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 2.0.0
|
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-
|
12
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -172,6 +172,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
172
172
|
requirements:
|
173
173
|
- - ! '>='
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
+
segments:
|
176
|
+
- 0
|
177
|
+
hash: 2
|
175
178
|
version: !binary |-
|
176
179
|
MA==
|
177
180
|
none: false
|