freshly 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 +9 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +55 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/freshly.gemspec +32 -0
- data/lib/freshly.rb +15 -0
- data/lib/freshly/client.rb +18 -0
- data/lib/freshly/client/tickets.rb +49 -0
- data/lib/freshly/configurable.rb +30 -0
- data/lib/freshly/connection.rb +45 -0
- data/lib/freshly/default.rb +69 -0
- data/lib/freshly/error.rb +72 -0
- data/lib/freshly/response/raise_error.rb +22 -0
- data/lib/freshly/version.rb +3 -0
- metadata +175 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b9ac1edd925e48223e6fcb1f12c05c3a8a51df3e
|
4
|
+
data.tar.gz: 63d832f0f9852207ea09d3973d5a6bdced198891
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8fed0a387c9c92c93a0faea0e094483fa9a1399f4226be797e8846711796d3e99e0b9b85d42088279776b515fba9d1c4dfe31bf907c4abd14f2aa90f530c5f76
|
7
|
+
data.tar.gz: d3372df6da4ad4db5795a860cbbeb4556f6d54532dc4781bba4b94571ac6a7e3cda218a204518240331eada3a8c6d0cd2db1faf94b773f5707fd15b3d12d5fe1
|
data/.gitignore
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 mail@samjohnduke.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) 2016 Sam John Duke
|
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,55 @@
|
|
1
|
+
# Freshly
|
2
|
+
Freshly is a Ruby API wrapper for the Freshdesk API v2
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
Add this line to your application's Gemfile:
|
7
|
+
|
8
|
+
```ruby
|
9
|
+
gem 'freshly'
|
10
|
+
```
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
$ bundle
|
15
|
+
|
16
|
+
Or install it yourself as:
|
17
|
+
|
18
|
+
$ gem install freshly
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
Create a new API client using your Freshdesk API key
|
23
|
+
|
24
|
+
```
|
25
|
+
client = Freshly::Client.new api_key: {api_key}, api_endpoint: {api_endpoint}
|
26
|
+
```
|
27
|
+
|
28
|
+
or
|
29
|
+
|
30
|
+
```
|
31
|
+
client = Freshly::Client.new
|
32
|
+
client.configure do |opts|
|
33
|
+
opts.api_key = {api_key}
|
34
|
+
opts.api_endpoint = {api_endpoint}
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
|
39
|
+
Resources that are available are
|
40
|
+
- Tickets
|
41
|
+
|
42
|
+
## Development
|
43
|
+
|
44
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
45
|
+
|
46
|
+
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).
|
47
|
+
|
48
|
+
## Contributing
|
49
|
+
|
50
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/freshly. 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.
|
51
|
+
|
52
|
+
|
53
|
+
## License
|
54
|
+
|
55
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "freshly"
|
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
data/freshly.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'freshly/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "freshly"
|
8
|
+
spec.version = Freshly::VERSION
|
9
|
+
spec.authors = ["Sam John Duke"]
|
10
|
+
spec.email = ["mail@samjohnduke.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Ruby api wrapper for the freshdesk api v2}
|
13
|
+
spec.description = %q{Ruby api wrapper for the freshdesk api v2}
|
14
|
+
spec.homepage = "https://github.com/samjohnduke/freshly"
|
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_development_dependency "bundler", "~> 1.11"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
25
|
+
spec.add_development_dependency "vcr"
|
26
|
+
spec.add_development_dependency "webmock"
|
27
|
+
|
28
|
+
spec.add_dependency "faraday"
|
29
|
+
spec.add_dependency "faraday_middleware"
|
30
|
+
spec.add_dependency "json"
|
31
|
+
|
32
|
+
end
|
data/lib/freshly.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "freshly/version"
|
2
|
+
require "freshly/default"
|
3
|
+
require "freshly/client"
|
4
|
+
|
5
|
+
##
|
6
|
+
# Why is this empty
|
7
|
+
#
|
8
|
+
# Other api wrappers open include a way to query directly from the root
|
9
|
+
# namespace. It might be useful for somethings however I don't think this is
|
10
|
+
# a good practise. It encourages a user to just pickup and start using the
|
11
|
+
# library without considering what they are doing. I am not forcing someone
|
12
|
+
# to make an arduous amount of work, just making a simple thought about what
|
13
|
+
# they are trying to achieve
|
14
|
+
module Freshly
|
15
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "freshly/connection"
|
2
|
+
require "freshly/configurable"
|
3
|
+
require "freshly/client/tickets"
|
4
|
+
|
5
|
+
module Freshly
|
6
|
+
class Client
|
7
|
+
include Freshly::Configurable
|
8
|
+
include Freshly::Connection
|
9
|
+
include Freshly::Client::Tickets
|
10
|
+
|
11
|
+
def initialize opts={}
|
12
|
+
Freshly::Configurable.keys.each do |key|
|
13
|
+
instance_variable_set(:"@#{key}", opts[key] || Freshly::Default.send(:"#{key}"))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module Freshly
|
2
|
+
class Client
|
3
|
+
module Tickets
|
4
|
+
|
5
|
+
def tickets options={}
|
6
|
+
paginate "tickets", options
|
7
|
+
end
|
8
|
+
|
9
|
+
def ticket options={}
|
10
|
+
get "ticket", options
|
11
|
+
end
|
12
|
+
|
13
|
+
def create_ticket options={}
|
14
|
+
post "tickets", options
|
15
|
+
end
|
16
|
+
|
17
|
+
def edit_ticket id, options={}
|
18
|
+
ticket = Ticket.new(id)
|
19
|
+
put ticket.path, options
|
20
|
+
end
|
21
|
+
|
22
|
+
def delete_ticket id, options={}
|
23
|
+
ticket = Ticket.new(id)
|
24
|
+
destroy ticket.path, options
|
25
|
+
end
|
26
|
+
|
27
|
+
def restore_ticket id, options={}
|
28
|
+
ticket = Ticket.new(id)
|
29
|
+
put "#{ticket.path}/restore", options
|
30
|
+
end
|
31
|
+
|
32
|
+
def reply_to_ticket id, options={}
|
33
|
+
ticket = Ticket.new(id)
|
34
|
+
post "#{ticket.path}/reply", options
|
35
|
+
end
|
36
|
+
|
37
|
+
def ticket_notes id, options={}
|
38
|
+
ticket = Ticket.new(id)
|
39
|
+
paginate "#{ticket.path}/notes", options
|
40
|
+
end
|
41
|
+
|
42
|
+
def ticket_time_entries id, options={}
|
43
|
+
ticket = Ticket.new(id)
|
44
|
+
paginate "#{ticket.path}/time_entries", options
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Freshly
|
2
|
+
module Configurable
|
3
|
+
attr_accessor :api_key, :api_endpoint, :media_type,
|
4
|
+
:auto_paginate, :per_page, :user_agent,
|
5
|
+
:connection_options, :middleware
|
6
|
+
|
7
|
+
class << self
|
8
|
+
def keys
|
9
|
+
@keys ||= [
|
10
|
+
:api_key,
|
11
|
+
:api_endpoint,
|
12
|
+
:auto_paginate,
|
13
|
+
:connection_options,
|
14
|
+
:media_type,
|
15
|
+
:per_page,
|
16
|
+
:user_agent,
|
17
|
+
:middleware
|
18
|
+
]
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def configure
|
23
|
+
yield self
|
24
|
+
end
|
25
|
+
|
26
|
+
def api_endpoint
|
27
|
+
File.join(@api_endpoint, "api/v2")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module Freshly
|
2
|
+
module Connection
|
3
|
+
attr_reader :last_response
|
4
|
+
|
5
|
+
def get url, opts={}
|
6
|
+
request :get, url, opts
|
7
|
+
end
|
8
|
+
|
9
|
+
def post url, opts={}
|
10
|
+
request :post, url, opts
|
11
|
+
end
|
12
|
+
|
13
|
+
def put url, opts={}
|
14
|
+
request :put, url, opts
|
15
|
+
end
|
16
|
+
|
17
|
+
def destroy url, opts={}
|
18
|
+
request :delete, url, opts
|
19
|
+
end
|
20
|
+
|
21
|
+
def paginate url, opts={}
|
22
|
+
get url, opts
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def conn
|
28
|
+
@conn ||= Faraday.new(conn_opts)
|
29
|
+
end
|
30
|
+
|
31
|
+
def conn_opts
|
32
|
+
conn_opts = connection_options
|
33
|
+
conn_opts[:url] = api_endpoint
|
34
|
+
conn_opts[:builder] = middleware
|
35
|
+
conn_opts[:headers][:Authorization] = "Basic "+Base64.encode64("#{api_key}:X")
|
36
|
+
conn_opts
|
37
|
+
end
|
38
|
+
|
39
|
+
def request method, url, opts={}
|
40
|
+
@last_response = conn.send(method, url, opts)
|
41
|
+
@last_response.body
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
require 'freshly/response/raise_error'
|
4
|
+
|
5
|
+
module Freshly
|
6
|
+
module Default
|
7
|
+
|
8
|
+
# Default User Agent header string
|
9
|
+
USER_AGENT = "Freshly #{Freshly::VERSION}".freeze
|
10
|
+
|
11
|
+
# Default media type
|
12
|
+
MEDIA_TYPE = "application/json".freeze
|
13
|
+
|
14
|
+
# In Faraday 0.9, Faraday::Builder was renamed to Faraday::RackBuilder
|
15
|
+
RACK_BUILDER_CLASS = defined?(Faraday::RackBuilder) ? Faraday::RackBuilder : Faraday::Builder
|
16
|
+
|
17
|
+
# Default Faraday middleware stack
|
18
|
+
MIDDLEWARE = RACK_BUILDER_CLASS.new do |builder|
|
19
|
+
builder.use Freshly::Response::RaiseError
|
20
|
+
builder.response :json, :content_type => /\bjson$/
|
21
|
+
builder.adapter Faraday.default_adapter
|
22
|
+
end
|
23
|
+
|
24
|
+
PER_PAGE = 100
|
25
|
+
|
26
|
+
AUTO_PAGINATE = false
|
27
|
+
|
28
|
+
class << self
|
29
|
+
|
30
|
+
def api_key
|
31
|
+
ENV["FRESHLY_API_KEY"]
|
32
|
+
end
|
33
|
+
|
34
|
+
def api_endpoint
|
35
|
+
ENV["FRESHLY_API_ENDPOINT"]
|
36
|
+
end
|
37
|
+
|
38
|
+
def auto_paginate
|
39
|
+
AUTO_PAGINATE
|
40
|
+
end
|
41
|
+
|
42
|
+
def connection_options
|
43
|
+
{
|
44
|
+
:headers => {
|
45
|
+
:accept => media_type,
|
46
|
+
:user_agent => user_agent
|
47
|
+
}
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
def media_type
|
52
|
+
MEDIA_TYPE
|
53
|
+
end
|
54
|
+
|
55
|
+
def user_agent
|
56
|
+
ENV["FRESHLY_USER_AGENT"] || USER_AGENT
|
57
|
+
end
|
58
|
+
|
59
|
+
def middleware
|
60
|
+
MIDDLEWARE
|
61
|
+
end
|
62
|
+
|
63
|
+
def per_page
|
64
|
+
ENV["PER_PAGE"] || PER_PAGE
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
module Freshly
|
2
|
+
class Error < StandardError
|
3
|
+
attr_reader :response
|
4
|
+
|
5
|
+
def self.from_response response
|
6
|
+
status = response[:status].to_i
|
7
|
+
body = response[:body].to_s
|
8
|
+
headers = response[:response_headers]
|
9
|
+
|
10
|
+
if klass = case status
|
11
|
+
when 400 then Freshly::BadRequest
|
12
|
+
when 401 then Freshly::AuthenticationFailed
|
13
|
+
when 403 then Freshly::AccessDenied
|
14
|
+
when 404 then Freshly::NotFound
|
15
|
+
when 405 then Freshly::MethodNotAllowed
|
16
|
+
when 406 then Freshly::NotAcceptable
|
17
|
+
when 409 then Freshly::Conflict
|
18
|
+
when 415 then Freshly::UnsupportedMediaType
|
19
|
+
when 429 then Freshly::RateLimitExceeded
|
20
|
+
when 400..499 then Freshly::ClientError
|
21
|
+
when 500 then Freshly::InternalServerError
|
22
|
+
when 501 then Freshly::NotImplemented
|
23
|
+
when 502 then Freshly::BadGateway
|
24
|
+
when 503 then Freshly::ServiceUnavailable
|
25
|
+
when 500..599 then Freshly::ServerError
|
26
|
+
end
|
27
|
+
|
28
|
+
klass.new(response)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def initialize(response=nil)
|
33
|
+
@response = response
|
34
|
+
super(build_error_message)
|
35
|
+
end
|
36
|
+
|
37
|
+
def build_error_message
|
38
|
+
"something went wrong"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class BadRequest < Error; end
|
43
|
+
|
44
|
+
class AuthenticationFailed < Error; end
|
45
|
+
|
46
|
+
class AccessDenied < Error; end
|
47
|
+
|
48
|
+
class NotFound < Error; end
|
49
|
+
|
50
|
+
class MethodNotAllowed < Error; end
|
51
|
+
|
52
|
+
class NotAcceptable < Error; end
|
53
|
+
|
54
|
+
class Conflict < Error; end
|
55
|
+
|
56
|
+
class UnsupportedMediaType < Error; end
|
57
|
+
|
58
|
+
class RateLimitExceeded < Error; end
|
59
|
+
|
60
|
+
class ClientError < Error; end
|
61
|
+
|
62
|
+
class InternalServerError < Error; end
|
63
|
+
|
64
|
+
class NotImplemented < Error; end
|
65
|
+
|
66
|
+
class BadGateway < Error; end
|
67
|
+
|
68
|
+
class ServiceUnavailable < Error; end
|
69
|
+
|
70
|
+
class ServerError < Error; end
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'freshly/error'
|
3
|
+
|
4
|
+
module Freshly
|
5
|
+
# Faraday response middleware
|
6
|
+
module Response
|
7
|
+
|
8
|
+
# This class raises an exception based
|
9
|
+
# HTTP status codes returned by the API
|
10
|
+
class RaiseError < Faraday::Response::Middleware
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def on_complete(response)
|
15
|
+
if error = Freshly::Error.from_response(response)
|
16
|
+
raise error
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: freshly
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sam John Duke
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: vcr
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: faraday
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: faraday_middleware
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: json
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Ruby api wrapper for the freshdesk api v2
|
126
|
+
email:
|
127
|
+
- mail@samjohnduke.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".travis.yml"
|
134
|
+
- CODE_OF_CONDUCT.md
|
135
|
+
- Gemfile
|
136
|
+
- LICENSE.txt
|
137
|
+
- README.md
|
138
|
+
- Rakefile
|
139
|
+
- bin/console
|
140
|
+
- bin/setup
|
141
|
+
- freshly.gemspec
|
142
|
+
- lib/freshly.rb
|
143
|
+
- lib/freshly/client.rb
|
144
|
+
- lib/freshly/client/tickets.rb
|
145
|
+
- lib/freshly/configurable.rb
|
146
|
+
- lib/freshly/connection.rb
|
147
|
+
- lib/freshly/default.rb
|
148
|
+
- lib/freshly/error.rb
|
149
|
+
- lib/freshly/response/raise_error.rb
|
150
|
+
- lib/freshly/version.rb
|
151
|
+
homepage: https://github.com/samjohnduke/freshly
|
152
|
+
licenses:
|
153
|
+
- MIT
|
154
|
+
metadata: {}
|
155
|
+
post_install_message:
|
156
|
+
rdoc_options: []
|
157
|
+
require_paths:
|
158
|
+
- lib
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
requirements: []
|
170
|
+
rubyforge_project:
|
171
|
+
rubygems_version: 2.5.2
|
172
|
+
signing_key:
|
173
|
+
specification_version: 4
|
174
|
+
summary: Ruby api wrapper for the freshdesk api v2
|
175
|
+
test_files: []
|