quick_blox 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/quick_blox/configuration.rb +23 -0
- data/lib/quick_blox/exceptions/base.rb +7 -0
- data/lib/quick_blox/exceptions/missing_application_session.rb +7 -0
- data/lib/quick_blox/exceptions/missing_configuration.rb +9 -0
- data/lib/quick_blox/exceptions/resource_not_found.rb +9 -0
- data/lib/quick_blox/exceptions/response.rb +21 -0
- data/lib/quick_blox/session.rb +99 -0
- data/lib/quick_blox/user.rb +85 -0
- data/lib/quick_blox/user_session.rb +57 -0
- data/lib/quick_blox/version.rb +3 -0
- data/lib/quick_blox.rb +21 -0
- data/quick_blox.gemspec +27 -0
- metadata +136 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 38af5a3d2524456d964136e1a98345c63e92db3b
|
4
|
+
data.tar.gz: f02c1fc9dee70edd4c7d51cd9edd950dd177df7f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f1956f1b19c8d2080b31a87a60bd61ee397ef07d6a2bd64daf82bcd742974495923f53aba3f6abe16af5fb8b4579639790979a59a2d6d99034d89af6f302fd13
|
7
|
+
data.tar.gz: f866173640e8bdfb738e392aab2e75c2fdd4c5124c3bdde46399bb9f52e1e1463aeb1bd031b887ced80122a4afba8a6130cde4e23f45dec1bcbafad83b4e3524
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at mykhaylo.skubenych@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Mykhaylo Skubenych
|
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,41 @@
|
|
1
|
+
# QuickBlox
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/quick_blox`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'quick_blox'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install quick_blox
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/quick_blox. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "quick_blox"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
module QuickBlox
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :host,
|
4
|
+
:application_id,
|
5
|
+
:auth_key,
|
6
|
+
:auth_secret,
|
7
|
+
:api_version
|
8
|
+
|
9
|
+
def initialize
|
10
|
+
@api_version = '0.1.0'
|
11
|
+
end
|
12
|
+
|
13
|
+
def options=(options)
|
14
|
+
options.each do |k,v|
|
15
|
+
instance_variable_set(:"@#{k}",v)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def to_hash
|
20
|
+
Hash[instance_variables.map { |name| [name.to_s.gsub("@","").to_sym, instance_variable_get(name)] } ]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module QuickBlox
|
2
|
+
module Exceptions
|
3
|
+
class Response < Base
|
4
|
+
attr_reader :code
|
5
|
+
|
6
|
+
def initialize(messages)
|
7
|
+
@messages = messages
|
8
|
+
end
|
9
|
+
|
10
|
+
def to_s
|
11
|
+
result_message = []
|
12
|
+
@messages.each do |k,v|
|
13
|
+
v.each do |message|
|
14
|
+
result_message << "QB: #{ k }: #{ message }"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
result_message.join('. ')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
require 'base64'
|
2
|
+
require 'cgi'
|
3
|
+
require 'openssl'
|
4
|
+
require 'hmac-sha1'
|
5
|
+
|
6
|
+
module QuickBlox
|
7
|
+
class Session
|
8
|
+
|
9
|
+
attr_accessor :_id
|
10
|
+
attr_accessor :application_id
|
11
|
+
attr_accessor :created_at
|
12
|
+
attr_accessor :device_id
|
13
|
+
attr_accessor :nonce
|
14
|
+
attr_accessor :token
|
15
|
+
attr_accessor :ts
|
16
|
+
attr_accessor :updated_at
|
17
|
+
attr_accessor :user_id
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
def initialize
|
21
|
+
raise QuickBlox::Exceptions::MissingConfiguration unless QuickBlox.configuration
|
22
|
+
|
23
|
+
timestamp = Time.now.in_time_zone('UTC').to_i
|
24
|
+
nonce = timestamp-425346
|
25
|
+
signature = HMAC::SHA1.hexdigest(QuickBlox.configuration.auth_secret, "application_id=#{ QuickBlox.configuration.application_id }&auth_key=#{ QuickBlox.configuration.auth_key }&nonce=#{ nonce }×tamp=#{ timestamp }")
|
26
|
+
|
27
|
+
RestClient::Request.execute(
|
28
|
+
method: :post,
|
29
|
+
url: "#{ QuickBlox.configuration.host }/session.json",
|
30
|
+
payload: {
|
31
|
+
application_id: QuickBlox.configuration.application_id,
|
32
|
+
auth_key: QuickBlox.configuration.auth_key,
|
33
|
+
signature: signature,
|
34
|
+
timestamp: timestamp,
|
35
|
+
nonce: nonce
|
36
|
+
}.to_json,
|
37
|
+
headers: {
|
38
|
+
'Content-Type': 'application/json',
|
39
|
+
'QuickBlox-REST-API-Version': QuickBlox.configuration.api_version,
|
40
|
+
}
|
41
|
+
){ |response, request, result|
|
42
|
+
|
43
|
+
response = JSON.parse(response)
|
44
|
+
|
45
|
+
case result.code.to_i
|
46
|
+
when 201
|
47
|
+
response['session'].each do |k, v|
|
48
|
+
self.instance_variable_set "@#{k}", v
|
49
|
+
end
|
50
|
+
when 422
|
51
|
+
raise QuickBlox::Exceptions::Response, response['errors']
|
52
|
+
end
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
def info
|
57
|
+
RestClient::Request.execute(
|
58
|
+
method: :get,
|
59
|
+
url: "#{ QuickBlox.configuration.host }/session.json",
|
60
|
+
headers: {
|
61
|
+
'Content-Type': 'application/json',
|
62
|
+
'QuickBlox-REST-API-Version': QuickBlox.configuration.api_version,
|
63
|
+
'QB-Token': self.token
|
64
|
+
}
|
65
|
+
){ |response, request, result|
|
66
|
+
response = JSON.parse(response)
|
67
|
+
case result.code.to_i
|
68
|
+
when 201
|
69
|
+
response['session'].each do |k, v|
|
70
|
+
self.instance_variable_set "@#{k}", v
|
71
|
+
end
|
72
|
+
when 422
|
73
|
+
raise QuickBlox::Exceptions::Response, response['errors']
|
74
|
+
end
|
75
|
+
}
|
76
|
+
self
|
77
|
+
end
|
78
|
+
|
79
|
+
def destroy
|
80
|
+
RestClient::Request.execute(
|
81
|
+
method: :delete,
|
82
|
+
url: "#{ QuickBlox.configuration.host }/session.json",
|
83
|
+
headers: {
|
84
|
+
'Content-Type': 'application/json',
|
85
|
+
'QuickBlox-REST-API-Version': QuickBlox.configuration.api_version,
|
86
|
+
'QB-Token': self.token
|
87
|
+
}
|
88
|
+
){ |response, request, result|
|
89
|
+
case result.code.to_i
|
90
|
+
when 200
|
91
|
+
|
92
|
+
else
|
93
|
+
response = JSON.parse(response)
|
94
|
+
raise QuickBlox::Exceptions::Response, response['errors']
|
95
|
+
end
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
module QuickBlox
|
2
|
+
class User
|
3
|
+
|
4
|
+
attr_accessor :id, :owner_id, :full_name, :email, :login, :phone, :website, :created_at, :updated_at, :last_request_at,
|
5
|
+
:external_user_id, :facebook_id, :twitter_id, :blob_id, :custom_data, :twitter_digits_id, :user_tags
|
6
|
+
|
7
|
+
def self.create(application_session, options)
|
8
|
+
|
9
|
+
raise QuickBlox::Exceptions::MissingConfiguration unless QuickBlox.configuration
|
10
|
+
|
11
|
+
RestClient::Request.execute(
|
12
|
+
method: :post,
|
13
|
+
url: "#{ QuickBlox.configuration.host }/users.json",
|
14
|
+
payload: {
|
15
|
+
user: {
|
16
|
+
login: options[:login],
|
17
|
+
password: options[:password]
|
18
|
+
}
|
19
|
+
}.to_json,
|
20
|
+
headers: {
|
21
|
+
'Content-Type': 'application/json',
|
22
|
+
'QuickBlox-REST-API-Version': QuickBlox.configuration.api_version,
|
23
|
+
'QB-Token': application_session.token
|
24
|
+
}
|
25
|
+
){ |response, request, result|
|
26
|
+
response = JSON.parse(response)
|
27
|
+
|
28
|
+
case result.code.to_i
|
29
|
+
when 201
|
30
|
+
instance = QuickBlox::User.new
|
31
|
+
response['user'].each do |k, v|
|
32
|
+
instance.instance_variable_set "@#{k}", v
|
33
|
+
end
|
34
|
+
return instance
|
35
|
+
else
|
36
|
+
raise QuickBlox::Exceptions::Response, response['errors']
|
37
|
+
end
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.show(application_session, user_id)
|
42
|
+
RestClient::Request.execute(
|
43
|
+
method: :get,
|
44
|
+
url: "#{ QuickBlox.configuration.host }/users/#{ user_id }.json",
|
45
|
+
headers: {
|
46
|
+
'QuickBlox-REST-API-Version': QuickBlox.configuration.api_version,
|
47
|
+
'QB-Token': application_session.token
|
48
|
+
}
|
49
|
+
){ |response, request, result|
|
50
|
+
response = JSON.parse(response)
|
51
|
+
|
52
|
+
case result.code.to_i
|
53
|
+
when 200
|
54
|
+
instance = QuickBlox::User.new
|
55
|
+
response['user'].each do |k, v|
|
56
|
+
instance.instance_variable_set "@#{k}", v
|
57
|
+
end
|
58
|
+
return instance
|
59
|
+
when 404
|
60
|
+
raise QuickBlox::Exceptions::ResourceNotFound
|
61
|
+
else
|
62
|
+
raise QuickBlox::Exceptions::Response, response['errors']
|
63
|
+
end
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
def destroy(application_session)
|
68
|
+
RestClient::Request.execute(
|
69
|
+
method: :delete,
|
70
|
+
url: "#{ QuickBlox.configuration.host }/users/#{ self.id }.json",
|
71
|
+
headers: {
|
72
|
+
'QuickBlox-REST-API-Version': QuickBlox.configuration.api_version,
|
73
|
+
'QB-Token': application_session.token
|
74
|
+
}
|
75
|
+
){ |response, request, result|
|
76
|
+
case result.code.to_i
|
77
|
+
when 200
|
78
|
+
|
79
|
+
else
|
80
|
+
raise QuickBlox::Exceptions::Response, response['errors']
|
81
|
+
end
|
82
|
+
}
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module QuickBlox
|
2
|
+
class UserSession < Session
|
3
|
+
|
4
|
+
attr_accessor :user
|
5
|
+
|
6
|
+
def self.new(application_session, options={})
|
7
|
+
|
8
|
+
raise QuickBlox::Exceptions::MissingConfiguration unless QuickBlox.configuration
|
9
|
+
|
10
|
+
RestClient::Request.execute(
|
11
|
+
method: :post,
|
12
|
+
url: "#{ QuickBlox.configuration.host }/login.json",
|
13
|
+
payload: {
|
14
|
+
login: options[:login],
|
15
|
+
password: options[:password]
|
16
|
+
}.to_json,
|
17
|
+
headers: {
|
18
|
+
'Content-Type': 'application/json',
|
19
|
+
'QuickBlox-REST-API-Version': QuickBlox.configuration.api_version,
|
20
|
+
'QB-Token': application_session.token
|
21
|
+
}
|
22
|
+
){ |response, request, result|
|
23
|
+
response = JSON.parse(response)
|
24
|
+
|
25
|
+
case result.code.to_i
|
26
|
+
when 200, 201, 202
|
27
|
+
user = QuickBlox::User.new
|
28
|
+
response['user'].each do |k, v|
|
29
|
+
user.instance_variable_set "@#{k}", v
|
30
|
+
end
|
31
|
+
else
|
32
|
+
raise QuickBlox::Exceptions::Response, response['errors']
|
33
|
+
end
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
def destroy(application_session)
|
38
|
+
RestClient::Request.execute(
|
39
|
+
method: :delete,
|
40
|
+
url: "#{ QuickBlox.configuration.host }/login.json",
|
41
|
+
headers: {
|
42
|
+
'Content-Type': 'application/json',
|
43
|
+
'QuickBlox-REST-API-Version': QuickBlox.configuration.api_version,
|
44
|
+
'QB-Token': application_session.token
|
45
|
+
}
|
46
|
+
){ |response, request, result|
|
47
|
+
case result.code.to_i
|
48
|
+
when 200
|
49
|
+
|
50
|
+
else
|
51
|
+
response = JSON.parse(response)
|
52
|
+
raise QuickBlox::Exceptions::Response, response['errors']
|
53
|
+
end
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
data/lib/quick_blox.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require "quick_blox/version"
|
2
|
+
require "quick_blox/configuration"
|
3
|
+
require "quick_blox/session"
|
4
|
+
require "quick_blox/user"
|
5
|
+
require "quick_blox/user_session"
|
6
|
+
require "quick_blox/exceptions/base"
|
7
|
+
require "quick_blox/exceptions/missing_application_session"
|
8
|
+
require "quick_blox/exceptions/missing_configuration"
|
9
|
+
require "quick_blox/exceptions/resource_not_found"
|
10
|
+
require "quick_blox/exceptions/response"
|
11
|
+
|
12
|
+
module QuickBlox
|
13
|
+
class << self
|
14
|
+
attr_accessor :configuration
|
15
|
+
|
16
|
+
def configure
|
17
|
+
self.configuration ||= QuickBlox::Configuration.new
|
18
|
+
yield(configuration)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/quick_blox.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'quick_blox/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "quick_blox"
|
8
|
+
spec.version = QuickBlox::VERSION
|
9
|
+
spec.authors = ["Mykhaylo Skubenych"]
|
10
|
+
spec.email = ["mykhaylo.skubenych@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Quickblox ruby sdk.}
|
13
|
+
spec.description = %q{Quickblox ruby sdk.}
|
14
|
+
spec.homepage = "https://github.com/mskubenich/quick-blox"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency "rest-client"
|
23
|
+
spec.add_dependency "ruby-hmac"
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: quick_blox
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mykhaylo Skubenych
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest-client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ruby-hmac
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.12'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.12'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
description: Quickblox ruby sdk.
|
84
|
+
email:
|
85
|
+
- mykhaylo.skubenych@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- CODE_OF_CONDUCT.md
|
94
|
+
- Gemfile
|
95
|
+
- LICENSE.txt
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
100
|
+
- lib/quick_blox.rb
|
101
|
+
- lib/quick_blox/configuration.rb
|
102
|
+
- lib/quick_blox/exceptions/base.rb
|
103
|
+
- lib/quick_blox/exceptions/missing_application_session.rb
|
104
|
+
- lib/quick_blox/exceptions/missing_configuration.rb
|
105
|
+
- lib/quick_blox/exceptions/resource_not_found.rb
|
106
|
+
- lib/quick_blox/exceptions/response.rb
|
107
|
+
- lib/quick_blox/session.rb
|
108
|
+
- lib/quick_blox/user.rb
|
109
|
+
- lib/quick_blox/user_session.rb
|
110
|
+
- lib/quick_blox/version.rb
|
111
|
+
- quick_blox.gemspec
|
112
|
+
homepage: https://github.com/mskubenich/quick-blox
|
113
|
+
licenses:
|
114
|
+
- MIT
|
115
|
+
metadata: {}
|
116
|
+
post_install_message:
|
117
|
+
rdoc_options: []
|
118
|
+
require_paths:
|
119
|
+
- lib
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
requirements: []
|
131
|
+
rubyforge_project:
|
132
|
+
rubygems_version: 2.4.8
|
133
|
+
signing_key:
|
134
|
+
specification_version: 4
|
135
|
+
summary: Quickblox ruby sdk.
|
136
|
+
test_files: []
|