sitejabber 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ad8030ec3f801aae75eeead98beb47c4c653c716bbd90596e86da04ccfbdd8bb
4
+ data.tar.gz: 5a0bd98560fb273e029f35340796e8ddbe61675eb1be0a4c64b88f5a3fa39b55
5
+ SHA512:
6
+ metadata.gz: 1171f478aeaad9a95f3f7937f5db6e8fd904d8a14251c37fda025a22971f0f66eff355a01d76cf6bcc502fb7c1fa75573121a73c85bdcc5d3cbe66e30200d1eb
7
+ data.tar.gz: baaac78c7da31af3e28b8193f51e536d88a85a65910114ad93fafc3dfc21866c64ff17ac9adb329d3b2f55d16d1b6f10c34f9bbfaea51370d8492b44e64dc711
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.1
7
+ before_install: gem install bundler -v 1.16.3
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at TODO: Write your email address. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in sitejabber.gemspec
6
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Goldbelly Inc.
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.
@@ -0,0 +1,43 @@
1
+ # Sitejabber
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/sitejabber`. 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 'sitejabber'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install sitejabber
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/goldbely/sitejabber-ruby. 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
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Sitejabber project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/goldbely/sitejabber-ruby/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "sitejabber"
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(__FILE__)
@@ -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,44 @@
1
+ # Ruby bindings
2
+ require "faraday"
3
+
4
+ # Version
5
+ require "sitejabber/version"
6
+
7
+ # Support classes
8
+ require "sitejabber/api"
9
+ require "sitejabber/api_resource"
10
+ require "sitejabber/authenticator"
11
+ require "sitejabber/auth/token"
12
+ require "sitejabber/error_checker"
13
+ require "sitejabber/errors"
14
+ require "sitejabber/request"
15
+
16
+ # Resources
17
+ require "sitejabber/resources"
18
+
19
+ module Sitejabber
20
+ # Values
21
+ @api_url = "https://api.sitejabber.com/v1/"
22
+
23
+ class << self
24
+ attr_accessor :api_email
25
+ attr_accessor :api_password
26
+ attr_accessor :api_key
27
+ attr_accessor :default_domain
28
+ attr_accessor :redis
29
+
30
+ attr_reader :api_url
31
+
32
+ def with_redis
33
+ raise Sitejabber::Error.new( "Sitejabber.redis is not set" ) unless redis
34
+
35
+ if redis.respond_to? :with
36
+ redis.with do |r|
37
+ yield r
38
+ end
39
+ else
40
+ yield redis
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,24 @@
1
+ require "faraday"
2
+
3
+ module Sitejabber
4
+ class Api
5
+ class << self
6
+ def request request
7
+ params = {
8
+ client_token: Sitejabber.api_key,
9
+ }.merge request.params
10
+
11
+ conn = Faraday.new request.base_url, headers: request.headers, params: params
12
+
13
+ response = conn.send request.verb, request.path
14
+
15
+ error = ErrorChecker.new( response.status, response.body, response.headers ).error_if_appropriate
16
+ raise error if error
17
+
18
+ JSON.parse response.body
19
+ rescue JSON::ParserError
20
+ {}
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,43 @@
1
+ module Sitejabber
2
+ class ApiResource
3
+ MUTEX = Mutex.new
4
+
5
+ def initialize; end
6
+
7
+ def request path, verb: "get", params: {}, options: {}
8
+ MUTEX.synchronize do
9
+ begin
10
+ _renew_token if Auth::Token.expired?
11
+
12
+ _call_api path, verb, params, options
13
+ rescue AuthenticationError => ae
14
+ if [ 203, 204, 206, 207 ].include? ae.error_info[ "errorCode" ]
15
+ # Invalid token/session, try again
16
+ _renew_token
17
+ _call_api path, verb, params, options
18
+ else
19
+ raise ae
20
+ end
21
+ end
22
+ end
23
+ end
24
+
25
+ private
26
+
27
+ def _call_api path, verb, params, options
28
+ opts = options.dup
29
+ opts[ :headers ] ||= {}
30
+ opts[ :headers ].merge! "user_token" => Auth::Token.get
31
+
32
+ request = Request.new path, options: opts, params: params, verb: verb
33
+
34
+ Api.request request
35
+ end
36
+
37
+ def _renew_token
38
+ response = Authenticator.new.request_token
39
+
40
+ Auth::Token.set response[ "token" ], response[ "expire" ]
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,52 @@
1
+ module Sitejabber
2
+ module Auth
3
+ class Token
4
+ class << self
5
+ def get
6
+ Sitejabber.with_redis do |r|
7
+ r.get _redis_key( "token" )
8
+ end
9
+ end
10
+
11
+ def set value, expires_at
12
+ Sitejabber.with_redis do |r|
13
+ r.mset _redis_key( "token" ), value, _redis_key( "expires_at" ), expires_at
14
+ end
15
+ end
16
+
17
+ def destroy
18
+ Sitejabber.with_redis do |r|
19
+ r.del _redis_key( "token" ), _redis_key( "expires_at" )
20
+ end
21
+ end
22
+
23
+ def expired?
24
+ expiration = _token_expires_at
25
+
26
+ return true unless expiration
27
+
28
+ # TODO: is this timezone compatible?
29
+ expiration <= Time.now
30
+ end
31
+
32
+ def valid?
33
+ !expired?
34
+ end
35
+
36
+ private
37
+
38
+ def _token_expires_at
39
+ Sitejabber.with_redis do |r|
40
+ value = r.get _redis_key( "expires_at" )
41
+
42
+ DateTime.parse( value ) if value.present?
43
+ end
44
+ end
45
+
46
+ def _redis_key key
47
+ "sitejabber:auth:#{key}"
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,18 @@
1
+ module Sitejabber
2
+ class Authenticator
3
+ def initialize
4
+ unless Sitejabber.api_email && Sitejabber.api_password
5
+ raise Sitejabber::Error, "Sitejabber.api_email / Sitejabber.api_password are not set."
6
+ end
7
+ end
8
+
9
+ def request_token
10
+ request = Request.new "login", params: {
11
+ email: Sitejabber.api_email,
12
+ password: Sitejabber.api_password,
13
+ }
14
+
15
+ Api.request request
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,53 @@
1
+ module Sitejabber
2
+ class ErrorChecker
3
+ attr_reader :http_status, :body, :headers
4
+
5
+ def initialize http_status, body, headers
6
+ @http_status = http_status.to_i
7
+ @body = body
8
+ @headers = headers
9
+ end
10
+
11
+ def error_if_appropriate
12
+ if http_status >= 500
13
+ ServerError.new http_status, body
14
+ elsif http_status >= 400
15
+ ClientError.new http_status, body
16
+ elsif http_status >= 300
17
+ ServerError.new http_status, body
18
+ elsif response_hash[ "errorCode" ]
19
+ error_class.new http_status, body, error_info
20
+ end
21
+ end
22
+
23
+ protected
24
+
25
+ def error_class
26
+ code = response_hash[ "errorCode" ].to_i
27
+
28
+ if code < 200
29
+ OAuthTokenRequestError
30
+ elsif code < 300
31
+ AuthenticationError
32
+ elsif code < 429
33
+ ClientError
34
+ elsif code == 429
35
+ RateLimitError
36
+ else
37
+ APIError
38
+ end
39
+ end
40
+
41
+ def error_info
42
+ response_hash.slice "errorCode", "errorReason"
43
+ end
44
+
45
+ def response_hash
46
+ @response_hash ||= begin
47
+ JSON.parse body
48
+ rescue JSON::ParserError
49
+ {}
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,28 @@
1
+ module Sitejabber
2
+ class Error < StandardError; end
3
+
4
+ class APIError < ::Sitejabber::Error
5
+ attr_reader :http_status, :body, :error_info
6
+
7
+ def initialize http_status, body, error_info = {}
8
+ @http_status = http_status
9
+ @body = body
10
+ @error_info = error_info
11
+ end
12
+ end
13
+
14
+ # An error while attempting to request an access token
15
+ class OAuthTokenRequestError < APIError; end
16
+
17
+ # API rate limit
18
+ class RateLimitError < APIError; end
19
+
20
+ # Any error with a 5xx HTTP status code
21
+ class ServerError < APIError; end
22
+
23
+ # Any error with a 4xx HTTP status code
24
+ class ClientError < APIError; end
25
+
26
+ # All API authentication failures
27
+ class AuthenticationError < ClientError; end
28
+ end
@@ -0,0 +1,44 @@
1
+ module Sitejabber
2
+ class Request
3
+ attr_reader :raw_params, :raw_options, :raw_path, :raw_verb
4
+
5
+ def initialize path, params: {}, options: {}, verb: "get"
6
+ @raw_params = params
7
+ @raw_options = options
8
+ @raw_path = path
9
+ @raw_verb = verb
10
+ end
11
+
12
+ def params
13
+ raw_params
14
+ end
15
+
16
+ def base_url
17
+ Sitejabber.api_url
18
+ end
19
+
20
+ def headers
21
+ {
22
+ "Content-Type": "application/json",
23
+ }.merge( raw_options[ :headers ] || {})
24
+ end
25
+
26
+ def options
27
+ raw_options
28
+
29
+ # TODO: verify certificate
30
+ # raw_options.merge(
31
+ # use_ssl: true,
32
+ # ssl: { verify: true }.merge( raw_options[ :ssl ] || {} ),
33
+ # )
34
+ end
35
+
36
+ def path
37
+ raw_path
38
+ end
39
+
40
+ def verb
41
+ raw_verb
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,7 @@
1
+ require "sitejabber/resources/business"
2
+ require "sitejabber/resources/comment"
3
+ require "sitejabber/resources/message"
4
+ require "sitejabber/resources/product"
5
+ require "sitejabber/resources/product_review"
6
+ require "sitejabber/resources/review"
7
+ require "sitejabber/resources/review_request"
@@ -0,0 +1,17 @@
1
+ module Sitejabber
2
+ class Business < ApiResource
3
+ attr_reader :domain
4
+
5
+ def initialize domain = nil
6
+ @domain = domain || Sitejabber.default_domain
7
+ end
8
+
9
+ def bulk domains
10
+ request "businesses/bulk", params: { businesses: domains.to_json }
11
+ end
12
+
13
+ def get
14
+ request "businesses/#{domain}"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Sitejabber
2
+ class Comment < ApiResource
3
+ attr_reader :domain
4
+
5
+ def initialize domain = nil
6
+ @domain = domain || Sitejabber.default_domain
7
+ end
8
+
9
+ def index params
10
+ request "businesses/#{domain}/review/comments", params: params
11
+ end
12
+
13
+ def create params
14
+ request "businesses/#{domain}/review/comments/add", params: params, verb: "post"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Sitejabber
2
+ class Message < ApiResource
3
+ attr_reader :domain
4
+
5
+ def initialize domain = nil
6
+ @domain = domain || Sitejabber.default_domain
7
+ end
8
+
9
+ def index params
10
+ request "businesses/#{domain}/messages", params: params
11
+ end
12
+
13
+ def create params
14
+ request "businesses/#{domain}/messsages/send", params: params, verb: "post"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,29 @@
1
+ module Sitejabber
2
+ class Product < ApiResource
3
+ attr_reader :domain
4
+
5
+ def initialize domain = nil
6
+ @domain = domain || Sitejabber.default_domain
7
+ end
8
+
9
+ def index params
10
+ request "businesses/#{domain}/products", params: params
11
+ end
12
+
13
+ def create params
14
+ request "businesses/#{domain}/products/add", params: params, verb: "post"
15
+ end
16
+
17
+ def destroy params
18
+ request "businesses/#{domain}/products/remove", params: params, verb: "post"
19
+ end
20
+
21
+ def create_image params
22
+ request "businesses/#{domain}/product/images/add", params: params, verb: "post"
23
+ end
24
+
25
+ def destroy_image params
26
+ request "businesses/#{domain}/product/images/remove", params: params, verb: "post"
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,25 @@
1
+ module Sitejabber
2
+ class ProductReview < ApiResource
3
+ attr_reader :domain
4
+
5
+ def initialize domain = nil
6
+ @domain = domain || Sitejabber.default_domain
7
+ end
8
+
9
+ def index params
10
+ request "businesses/#{domain}/product/reviews", params: params
11
+ end
12
+
13
+ def create params
14
+ request "businesses/#{domain}/product/reviews/add", params: params, verb: "post"
15
+ end
16
+
17
+ def vote params
18
+ request "businesses/#{domain}/product/reviews/vote", params: params, verb: "post"
19
+ end
20
+
21
+ def top_rated params
22
+ request "businesses/#{domain}/product/reviews/top-rated", params: params, verb: "post"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ module Sitejabber
2
+ class Review < ApiResource
3
+ attr_reader :domain
4
+
5
+ def initialize domain = nil
6
+ @domain = domain || Sitejabber.default_domain
7
+ end
8
+
9
+ def index params = {}
10
+ request "businesses/#{domain}/reviews", params: params
11
+ end
12
+
13
+ def create params
14
+ request "businesses/#{domain}/reviews/add", params: params, verb: "post"
15
+ end
16
+
17
+ def publish params
18
+ request "businesses/#{domain}/reviews/publish", params: params, verb: "post"
19
+ end
20
+
21
+ def flag params
22
+ request "businesses/#{domain}/reviews/flag", params: params, verb: "post"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ module Sitejabber
2
+ class ReviewRequest < ApiResource
3
+ attr_reader :domain
4
+
5
+ def initialize domain = nil
6
+ @domain = domain || Sitejabber.default_domain
7
+ end
8
+
9
+ def create params
10
+ request "businesses/#{domain}/review/request/add", params: params, verb: "post"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module Sitejabber
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,32 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "sitejabber/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "sitejabber"
7
+ spec.version = Sitejabber::VERSION
8
+ spec.authors = ["Federico Moretti"]
9
+ spec.email = ["federico@goldbely.com"]
10
+
11
+ spec.summary = %q{Sitejabber API integration.}
12
+ spec.description = %q{Basic Sitejabber API integration.}
13
+ spec.homepage = "https://github.com/Goldbely/sitejabber-ruby"
14
+ spec.license = "MIT"
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ # Runtime
26
+ spec.add_runtime_dependency "faraday"
27
+
28
+ # Dev
29
+ spec.add_development_dependency "bundler", "~> 1.16"
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rspec", "~> 3.0"
32
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sitejabber
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Federico Moretti
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-12-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
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: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ description: Basic Sitejabber API integration.
70
+ email:
71
+ - federico@goldbely.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/console
85
+ - bin/setup
86
+ - lib/sitejabber.rb
87
+ - lib/sitejabber/api.rb
88
+ - lib/sitejabber/api_resource.rb
89
+ - lib/sitejabber/auth/token.rb
90
+ - lib/sitejabber/authenticator.rb
91
+ - lib/sitejabber/error_checker.rb
92
+ - lib/sitejabber/errors.rb
93
+ - lib/sitejabber/request.rb
94
+ - lib/sitejabber/resources.rb
95
+ - lib/sitejabber/resources/business.rb
96
+ - lib/sitejabber/resources/comment.rb
97
+ - lib/sitejabber/resources/message.rb
98
+ - lib/sitejabber/resources/product.rb
99
+ - lib/sitejabber/resources/product_review.rb
100
+ - lib/sitejabber/resources/review.rb
101
+ - lib/sitejabber/resources/review_request.rb
102
+ - lib/sitejabber/version.rb
103
+ - sitejabber.gemspec
104
+ homepage: https://github.com/Goldbely/sitejabber-ruby
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.7.6
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Sitejabber API integration.
128
+ test_files: []