parse-server-sdk 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3783ec33ccb4f5061e4bfeab695c3886d15ee334
4
+ data.tar.gz: c348eb2eecc510449d2fe52bbc25b4c6210c9b0f
5
+ SHA512:
6
+ metadata.gz: fdffc85e2d9b9d97813b564d1a7fc7b5e550f8a7f6fe58e11e3a6484e24913c5fbc79479aa702da614164f468d707e1a077d2ab4198737ec11f3d393aa15c6e9
7
+ data.tar.gz: 126b85e74abc473be81b70f920e54d6a376cf2902c0a554268212f89ee17ae1e4ac6c193b11a7433d580200c0bbc86edb3543ec4705c89e20a376e4b1a07497a
data/.gitignore ADDED
@@ -0,0 +1,45 @@
1
+ .DS_Store
2
+ *.gem
3
+ *.rbc
4
+ /.config
5
+ /coverage/
6
+ /InstalledFiles
7
+ /pkg/
8
+ /spec/reports/
9
+ /spec/examples.txt
10
+ /test/tmp/
11
+ /test/version_tmp/
12
+ /tmp/
13
+
14
+ ## Specific to RubyMotion:
15
+ .dat*
16
+ .repl_history
17
+ build/
18
+
19
+ ## Documentation cache and generated files:
20
+ /.yardoc/
21
+ /_yardoc/
22
+ /doc/
23
+ /rdoc/
24
+
25
+ ## Environment normalization:
26
+ /.bundle/
27
+ /vendor/bundle
28
+ /lib/bundler/man/
29
+
30
+ # for a library or gem, you might want to ignore these files since the code is
31
+ # intended to run in multiple environments; otherwise, check them in:
32
+ # Gemfile.lock
33
+ # .ruby-version
34
+ # .ruby-gemset
35
+
36
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
37
+ .rvmrc
38
+ bin/.env
39
+ bin/config.json
40
+ .byebug_history
41
+ /.env
42
+ /node_modules
43
+ /bin/parse-dashboard-config.json
44
+ logs
45
+ /Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in parse-server-sdk.gemspec
4
+ gemspec
5
+
6
+ group :test, :development do
7
+ gem 'dotenv'
8
+ gem 'rake'
9
+ gem 'byebug'
10
+ gem 'minitest'
11
+ gem 'pry'
12
+ gem 'pry-stack_explorer'
13
+ gem 'pry-nav'
14
+ gem 'yard'
15
+ gem 'redcarpet'
16
+ gem 'thin' # for yard server
17
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Anthony Persaud, Modernistik LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # Parse Server SDK for Ruby
2
+
3
+ This gem is a wrapper to Parse Stack, the core piece of the SDK, and several useful plugins. It will also be more inline with keeping track with the released Parse Server version and the features it supports. This bundle then adds several other dependencies not required by the base framework. The features of this bundle include:
4
+
5
+ * [Parse Stack](https://github.com/modernistik/parse-stack) - the core framework
6
+ * [Asynchronous Operations](https://github.com/modernistik/parse-stack-async) - async saves and deletes with callbacks
7
+
8
+ If you do not need all the features above, we recommend to start with just using [Parse Stack](https://github.com/modernistik/parse-stack) on its own and only add the components as you see fit.
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'parse-server-sdk', require: 'parse-server-sdk'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install parse-server-sdk
25
+
26
+ ## Usage
27
+ For more information about how to use this SDK, please see the documentation for each of the respective components as linked above.
28
+
29
+ ```ruby
30
+ # Loads all the subcomponents.
31
+ require 'parse-server-sdk'
32
+
33
+ Parse.setup app_id: 'myAppId', master_key: 'masterKey', server_url: 'http://localhost:1337/parse'
34
+
35
+ user = Parse::User.first
36
+ user.login(passwd)
37
+ user.username = 'frank-sinatra'
38
+ user.save # only updates username field in Parse
39
+ user.save # no-op thanks to dirty tracking!
40
+
41
+ class MyCustomClass < Parse::Object
42
+ property :title
43
+ end
44
+
45
+ Parse.auto_upgrade! # update your remote schema
46
+
47
+ obj = MyCustomClass.new
48
+ obj.title = "My Title"
49
+ obj.new? # => true
50
+ obj.save
51
+ obj.id # => a Parse object id
52
+
53
+ # and so on.
54
+ # See https://github.com/modernistik/parse-stack for documentation
55
+ ```
56
+
57
+ ## Contributing
58
+
59
+ Bug reports and pull requests are welcome on GitHub at https://github.com/modernistik/parse-stack.
60
+
61
+
62
+ ## License
63
+
64
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require 'dotenv'
5
+ require 'byebug'
6
+ require "parse/server/sdk"
7
+ Dotenv.load
8
+
9
+ Parse.setup # cache: 'redis://localhost:6379'
10
+
11
+ puts "[ParseServerURL] #{Parse.client.server_url}"
12
+ puts "[ParseAppID] #{Parse.client.app_id}"
13
+ Parse.auto_generate_models!.each do |model|
14
+ puts "Generated #{model}"
15
+ end
16
+
17
+ # You can add fixtures and/or initialization code here to make experimenting
18
+ # with your gem easier. You can also use a different console, if you like.
19
+
20
+ # (If you use this, don't forget to add pry to your Gemfile!)
21
+ # require "pry"
22
+ # Pry.start
23
+
24
+ require "irb"
25
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,2 @@
1
+ require_relative './parse/server/sdk/version'
2
+ require_relative './parse/server/sdk'
@@ -0,0 +1,5 @@
1
+ require "parse/server/sdk/version"
2
+ # Loads the main framework
3
+ require 'parse/stack'
4
+ # Load the async plugin
5
+ require 'parse/stack/async'
@@ -0,0 +1,8 @@
1
+ module Parse
2
+ module Server
3
+ # The minimum compatible version matching the Parse Server release.
4
+ module SDK
5
+ VERSION = "2.3.2"
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'parse/server/sdk/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "parse-server-sdk"
8
+ spec.version = Parse::Server::SDK::VERSION
9
+ spec.authors = ["Anthony Persaud"]
10
+ spec.email = ["persaud@modernistik.com"]
11
+
12
+ spec.summary = %q{Parse Server Ruby SDK bundle.}
13
+ spec.description = %q{Parse Server Ruby SDK bundle. This is a wrapper gem for several Ruby frameworks and plugins that work with Parse Server.}
14
+ spec.homepage = "https://www.modernistik.com"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_runtime_dependency "parse-stack", '~> 1'
34
+ spec.add_runtime_dependency "parse-stack-async", '< 2'
35
+
36
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parse-server-sdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.3.2
5
+ platform: ruby
6
+ authors:
7
+ - Anthony Persaud
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-01-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: parse-stack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: parse-stack-async
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "<"
39
+ - !ruby/object:Gem::Version
40
+ version: '2'
41
+ description: Parse Server Ruby SDK bundle. This is a wrapper gem for several Ruby
42
+ frameworks and plugins that work with Parse Server.
43
+ email:
44
+ - persaud@modernistik.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - bin/console
55
+ - bin/setup
56
+ - lib/parse-server-sdk.rb
57
+ - lib/parse/server/sdk.rb
58
+ - lib/parse/server/sdk/version.rb
59
+ - parse-server-sdk.gemspec
60
+ homepage: https://www.modernistik.com
61
+ licenses:
62
+ - MIT
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.6.8
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: Parse Server Ruby SDK bundle.
84
+ test_files: []