parse-ruby-client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -11,3 +11,5 @@ group :development do
11
11
  gem "jeweler", "~> 1.6.4"
12
12
  gem "rcov", ">= 0"
13
13
  end
14
+
15
+ gem "patron"
data/Gemfile.lock CHANGED
@@ -6,6 +6,7 @@ GEM
6
6
  bundler (~> 1.0)
7
7
  git (>= 1.2.5)
8
8
  rake
9
+ patron (0.4.17)
9
10
  rake (0.9.2.2)
10
11
  rcov (0.9.11)
11
12
  shoulda (2.11.3)
@@ -16,5 +17,6 @@ PLATFORMS
16
17
  DEPENDENCIES
17
18
  bundler (~> 1.0.0)
18
19
  jeweler (~> 1.6.4)
20
+ patron
19
21
  rcov
20
22
  shoulda
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -5,6 +5,8 @@
5
5
  ## See https://parse.com/docs/rest for full documentation on the API.
6
6
  ##
7
7
  ## ----------------------------------------------------------------------
8
+ require "rubygems"
9
+ require "bundler/setup"
8
10
 
9
11
  require 'json'
10
12
  require 'patron'
@@ -17,3 +19,5 @@ $:.unshift(cwd.to_s) unless $:.include?(cwd.to_s) || $:.include?(cwd.expand_path
17
19
  require 'parse/object'
18
20
  require 'parse/query'
19
21
  require 'parse/datatypes'
22
+ require 'parse/util'
23
+ require 'parse/protocol'
@@ -44,6 +44,7 @@ module Parse
44
44
  # The JSON key used in the top-level response object
45
45
  # to indicate that the response contains an array of objects.
46
46
  RESPONSE_KEY_RESULTS = "results"
47
+ KEY_RESULTS = RESPONSE_KEY_RESULTS
47
48
 
48
49
  # The JSON key used to identify an operator in the increment/decrement
49
50
  # API call.
data/lib/parse/query.rb CHANGED
@@ -71,7 +71,7 @@ module Parse
71
71
  query = { "where" => CGI.escape(@where.to_json) }
72
72
 
73
73
  response = Parse.client.request uri, :get, nil, query
74
- Parse.client.parse_response class_name, response
74
+ Parse.parse_json class_name, response
75
75
  end
76
76
 
77
77
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parse-ruby-client"
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alan deLevie", "Adam Alpern"]
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  "Rakefile",
25
25
  "VERSION",
26
26
  "example.rb",
27
- "lib/parse.rb",
27
+ "lib/parse-ruby-client.rb",
28
28
  "lib/parse/client.rb",
29
29
  "lib/parse/datatypes.rb",
30
30
  "lib/parse/error.rb",
@@ -37,6 +37,7 @@ Gem::Specification.new do |s|
37
37
  "pkg/parse-ruby-client-1-0.0.1.gem",
38
38
  "pkg/parse-ruby-client.gem",
39
39
  "test/helper.rb",
40
+ "test/test_client.rb",
40
41
  "test/test_parse-ruby-client.rb"
41
42
  ]
42
43
  s.homepage = "http://github.com/adelevie/parse-ruby-client"
@@ -49,17 +50,20 @@ Gem::Specification.new do |s|
49
50
  s.specification_version = 3
50
51
 
51
52
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
+ s.add_runtime_dependency(%q<patron>, [">= 0"])
52
54
  s.add_development_dependency(%q<shoulda>, [">= 0"])
53
55
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
54
56
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
55
57
  s.add_development_dependency(%q<rcov>, [">= 0"])
56
58
  else
59
+ s.add_dependency(%q<patron>, [">= 0"])
57
60
  s.add_dependency(%q<shoulda>, [">= 0"])
58
61
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
59
62
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
60
63
  s.add_dependency(%q<rcov>, [">= 0"])
61
64
  end
62
65
  else
66
+ s.add_dependency(%q<patron>, [">= 0"])
63
67
  s.add_dependency(%q<shoulda>, [">= 0"])
64
68
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
65
69
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
Binary file
data/test/helper.rb CHANGED
@@ -12,7 +12,7 @@ require 'shoulda'
12
12
 
13
13
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
14
  $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'parse-ruby-client-1'
15
+ require 'parse-ruby-client'
16
16
 
17
17
  class Test::Unit::TestCase
18
18
  end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestClient < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,9 +12,20 @@ bindir: bin
12
12
  cert_chain: []
13
13
  date: 2012-02-05 00:00:00.000000000Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: patron
17
+ requirement: &70137258765420 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *70137258765420
15
26
  - !ruby/object:Gem::Dependency
16
27
  name: shoulda
17
- requirement: &70311876454920 !ruby/object:Gem::Requirement
28
+ requirement: &70137258764800 !ruby/object:Gem::Requirement
18
29
  none: false
19
30
  requirements:
20
31
  - - ! '>='
@@ -22,10 +33,10 @@ dependencies:
22
33
  version: '0'
23
34
  type: :development
24
35
  prerelease: false
25
- version_requirements: *70311876454920
36
+ version_requirements: *70137258764800
26
37
  - !ruby/object:Gem::Dependency
27
38
  name: bundler
28
- requirement: &70311876453900 !ruby/object:Gem::Requirement
39
+ requirement: &70137258740360 !ruby/object:Gem::Requirement
29
40
  none: false
30
41
  requirements:
31
42
  - - ~>
@@ -33,10 +44,10 @@ dependencies:
33
44
  version: 1.0.0
34
45
  type: :development
35
46
  prerelease: false
36
- version_requirements: *70311876453900
47
+ version_requirements: *70137258740360
37
48
  - !ruby/object:Gem::Dependency
38
49
  name: jeweler
39
- requirement: &70311876434760 !ruby/object:Gem::Requirement
50
+ requirement: &70137258739700 !ruby/object:Gem::Requirement
40
51
  none: false
41
52
  requirements:
42
53
  - - ~>
@@ -44,10 +55,10 @@ dependencies:
44
55
  version: 1.6.4
45
56
  type: :development
46
57
  prerelease: false
47
- version_requirements: *70311876434760
58
+ version_requirements: *70137258739700
48
59
  - !ruby/object:Gem::Dependency
49
60
  name: rcov
50
- requirement: &70311876433780 !ruby/object:Gem::Requirement
61
+ requirement: &70137258738920 !ruby/object:Gem::Requirement
51
62
  none: false
52
63
  requirements:
53
64
  - - ! '>='
@@ -55,7 +66,7 @@ dependencies:
55
66
  version: '0'
56
67
  type: :development
57
68
  prerelease: false
58
- version_requirements: *70311876433780
69
+ version_requirements: *70137258738920
59
70
  description: A simple Ruby client for the parse.com REST API
60
71
  email: adelevie@gmail.com
61
72
  executables: []
@@ -71,7 +82,7 @@ files:
71
82
  - Rakefile
72
83
  - VERSION
73
84
  - example.rb
74
- - lib/parse.rb
85
+ - lib/parse-ruby-client.rb
75
86
  - lib/parse/client.rb
76
87
  - lib/parse/datatypes.rb
77
88
  - lib/parse/error.rb
@@ -84,6 +95,7 @@ files:
84
95
  - pkg/parse-ruby-client-1-0.0.1.gem
85
96
  - pkg/parse-ruby-client.gem
86
97
  - test/helper.rb
98
+ - test/test_client.rb
87
99
  - test/test_parse-ruby-client.rb
88
100
  homepage: http://github.com/adelevie/parse-ruby-client
89
101
  licenses:
@@ -100,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
112
  version: '0'
101
113
  segments:
102
114
  - 0
103
- hash: -1143289306669216906
115
+ hash: -1562453630510493430
104
116
  required_rubygems_version: !ruby/object:Gem::Requirement
105
117
  none: false
106
118
  requirements: