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 CHANGED
@@ -1 +1 @@
1
- 0.2.11
1
+ 2.0.0
@@ -4,4 +4,7 @@ module Pinky
4
4
 
5
5
  class TooManyFoundException < StandardError
6
6
  end
7
+
8
+ class ItemFetchException < StandardError
9
+ end
7
10
  end
@@ -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 Exception.new 'Error fetching from results' unless response.success?
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
@@ -1,8 +1,5 @@
1
1
  require 'json'
2
2
  require 'httparty'
3
3
  require 'date'
4
- require 'uuid'
5
-
6
- require 'hot_bunnies'
7
4
 
8
5
  Dir[File.join(File.dirname(__FILE__), 'pinky', '**', '*.rb')].sort.each { |f| require f }
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.3.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-04-22"
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.3.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-04-22 00:00:00.000000000 Z
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