parse-stack 1.5.3 → 1.6.0

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.github/parse-ruby-sdk.png +0 -0
  3. data/Changes.md +25 -1
  4. data/Gemfile.lock +4 -4
  5. data/README.md +37 -31
  6. data/bin/console +3 -0
  7. data/lib/parse/api/all.rb +2 -1
  8. data/lib/parse/api/apps.rb +12 -0
  9. data/lib/parse/api/config.rb +5 -1
  10. data/lib/parse/api/files.rb +1 -0
  11. data/lib/parse/api/hooks.rb +1 -0
  12. data/lib/parse/api/objects.rb +4 -1
  13. data/lib/parse/api/push.rb +1 -0
  14. data/lib/parse/api/{schemas.rb → schema.rb} +7 -0
  15. data/lib/parse/api/server.rb +44 -0
  16. data/lib/parse/api/sessions.rb +1 -0
  17. data/lib/parse/api/users.rb +4 -1
  18. data/lib/parse/client.rb +109 -73
  19. data/lib/parse/client/authentication.rb +2 -1
  20. data/lib/parse/client/batch.rb +9 -1
  21. data/lib/parse/client/body_builder.rb +16 -1
  22. data/lib/parse/client/caching.rb +15 -13
  23. data/lib/parse/client/protocol.rb +27 -15
  24. data/lib/parse/client/response.rb +26 -8
  25. data/lib/parse/model/acl.rb +1 -1
  26. data/lib/parse/model/associations/belongs_to.rb +18 -19
  27. data/lib/parse/model/associations/collection_proxy.rb +6 -0
  28. data/lib/parse/model/associations/has_many.rb +5 -6
  29. data/lib/parse/model/bytes.rb +4 -1
  30. data/lib/parse/model/classes/user.rb +46 -44
  31. data/lib/parse/model/core/actions.rb +508 -460
  32. data/lib/parse/model/core/builder.rb +75 -0
  33. data/lib/parse/model/core/errors.rb +9 -0
  34. data/lib/parse/model/core/fetching.rb +42 -38
  35. data/lib/parse/model/core/properties.rb +46 -27
  36. data/lib/parse/model/core/querying.rb +231 -228
  37. data/lib/parse/model/core/schema.rb +76 -74
  38. data/lib/parse/model/date.rb +10 -2
  39. data/lib/parse/model/file.rb +16 -2
  40. data/lib/parse/model/geopoint.rb +9 -2
  41. data/lib/parse/model/model.rb +38 -7
  42. data/lib/parse/model/object.rb +60 -19
  43. data/lib/parse/model/pointer.rb +22 -1
  44. data/lib/parse/model/push.rb +6 -2
  45. data/lib/parse/query.rb +57 -11
  46. data/lib/parse/query/constraint.rb +5 -2
  47. data/lib/parse/query/constraints.rb +588 -589
  48. data/lib/parse/query/ordering.rb +2 -2
  49. data/lib/parse/stack.rb +1 -0
  50. data/lib/parse/stack/version.rb +1 -1
  51. data/lib/parse/webhooks.rb +30 -29
  52. data/lib/parse/webhooks/payload.rb +181 -168
  53. data/lib/parse/webhooks/registration.rb +1 -1
  54. data/parse-stack.gemspec +9 -9
  55. metadata +9 -12
@@ -9,7 +9,7 @@ require 'active_support/core_ext'
9
9
 
10
10
  module Parse
11
11
  # Interface to the CloudCode webhooks API.
12
- module Webhook
12
+ class Webhooks
13
13
  # Module to support registering Parse CloudCode webhooks.
14
14
  module Registration
15
15
  # The set of allowed trigger types.
data/parse-stack.gemspec CHANGED
@@ -36,13 +36,13 @@ Gem::Specification.new do |spec|
36
36
  spec.add_runtime_dependency "moneta", [">= 0.7", "< 1"]
37
37
  spec.add_runtime_dependency "rack", "< 3"
38
38
 
39
- spec.post_install_message = <<UPGRADE
40
-
41
- ** BREAKING CHANGES **
42
- The default `has_many` association form has changed from :array to :query.
43
- To use arrays, you must now pass `through: :array` option to `has_many`.
44
-
45
- Visit: https://github.com/modernistik/parse-stack/wiki/Changes-to-has_many-in-1.5.0
46
-
47
- UPGRADE
39
+ # spec.post_install_message = <<UPGRADE
40
+ #
41
+ # ** BREAKING CHANGES **
42
+ # The default `has_many` association form has changed from :array to :query.
43
+ # To use arrays, you must now pass `through: :array` option to `has_many`.
44
+ #
45
+ # Visit: https://github.com/modernistik/parse-stack/wiki/Changes-to-has_many-in-1.5.0
46
+ #
47
+ # UPGRADE
48
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse-stack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Persaud
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-31 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -172,6 +172,7 @@ executables: []
172
172
  extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
+ - ".github/parse-ruby-sdk.png"
175
176
  - ".gitignore"
176
177
  - ".travis.yml"
177
178
  - Changes.md
@@ -194,7 +195,8 @@ files:
194
195
  - lib/parse/api/hooks.rb
195
196
  - lib/parse/api/objects.rb
196
197
  - lib/parse/api/push.rb
197
- - lib/parse/api/schemas.rb
198
+ - lib/parse/api/schema.rb
199
+ - lib/parse/api/server.rb
198
200
  - lib/parse/api/sessions.rb
199
201
  - lib/parse/api/users.rb
200
202
  - lib/parse/client.rb
@@ -218,6 +220,8 @@ files:
218
220
  - lib/parse/model/classes/session.rb
219
221
  - lib/parse/model/classes/user.rb
220
222
  - lib/parse/model/core/actions.rb
223
+ - lib/parse/model/core/builder.rb
224
+ - lib/parse/model/core/errors.rb
221
225
  - lib/parse/model/core/fetching.rb
222
226
  - lib/parse/model/core/properties.rb
223
227
  - lib/parse/model/core/querying.rb
@@ -254,14 +258,7 @@ homepage: https://github.com/modernistik/parse-stack
254
258
  licenses:
255
259
  - MIT
256
260
  metadata: {}
257
- post_install_message: |2+
258
-
259
- ** BREAKING CHANGES **
260
- The default `has_many` association form has changed from :array to :query.
261
- To use arrays, you must now pass `through: :array` option to `has_many`.
262
-
263
- Visit: https://github.com/modernistik/parse-stack/wiki/Changes-to-has_many-in-1.5.0
264
-
261
+ post_install_message:
265
262
  rdoc_options: []
266
263
  require_paths:
267
264
  - lib
@@ -277,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
274
  version: '0'
278
275
  requirements: []
279
276
  rubyforge_project:
280
- rubygems_version: 2.5.1
277
+ rubygems_version: 2.6.6
281
278
  signing_key:
282
279
  specification_version: 4
283
280
  summary: Parse-Server Ruby Client and Relational Mapper