setka-workflow 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e0098fac4579ad93428e7e9381e6a4c08143a023
4
+ data.tar.gz: a88666ec495738c7dae0f8b6613e5184b1997c3d
5
+ SHA512:
6
+ metadata.gz: 7003d0b32b22269d743023462f4068da3d73004f9e1207e5d07d5e6f38e1b3226173d015c6c1451e5ca8f5147d514789e4bad5629541e5918405f85f10e347ca
7
+ data.tar.gz: 6ae7842f6ef285f22dbc44d8ed307f6a941812d3e1df92433e6a1d6023c87bf7ce62e9998ed0dc037161d68743b0ebfeca20d1e515c37a463d57ac303802957e
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.0
5
+ before_install: gem install bundler -v 1.14.6
@@ -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 crossonrails@gmail.com. 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,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :spec do
6
+ gem 'rake'
7
+ gem 'rspec', '~> 3.5.0'
8
+ gem 'simplecov',
9
+ :require => false,
10
+ :platforms => [:mri, :mri_18, :mri_19, :jruby, :mingw]
11
+ gem 'webmock'
12
+ end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Dmitry Kovalevsky
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,150 @@
1
+ # Setka Workflow API Ruby Library
2
+
3
+ This gem implements the Setka Workflow API for integration an external publishing platform written in the Ruby language with Setka Workflow.
4
+
5
+ [Full API documentation](http://www.rubydoc.info/gems/setka-workflow).
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'setka-workflow'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install setka-workflow
22
+
23
+ ## Requirements
24
+
25
+ * Ruby 2.0+.
26
+
27
+ ## Configuration
28
+
29
+ *Access token* is an unique key to authorize in Workflow Integration API. It is generated after the creation of the space and can be obtained from the Settings page (Integration section) in Setka Workflow.
30
+
31
+ *Space name* is the part of URL segment next after the hostname. For example in the URL `https://workflow.setka.io/foobar/tickets` `foobar` is the space name.
32
+
33
+ 1. Configuring by passing a block with `space_name` and `access_token`.
34
+
35
+ ```ruby
36
+ require 'setka-workflow'
37
+
38
+ Setka::Workflow.configure do |config|
39
+ config.access_token = ACCESS_TOKEN
40
+ config.space_name = SPACE_NAME
41
+ end
42
+ ```
43
+
44
+ This kind of configuration is global. In order to reset the configuration `Workflow.reset!` should be executed.
45
+
46
+ 2. Instantiating an client object on behalf which operations are executed.
47
+
48
+ ```ruby
49
+ client = Setka::Workflow::Client.new(access_token: ACCESS_TOKEN, space_name: SPACE_NAME)
50
+ ```
51
+
52
+ ## Usage
53
+
54
+ ### Ticket operations
55
+
56
+ ```ruby
57
+ # To publish the ticket:
58
+
59
+ # ticket_id = 112329
60
+
61
+ Setka::Workflow::Ticket.publish(ticket_id)
62
+
63
+ # To unpublish the ticket:
64
+
65
+ # ticket_id = 112330
66
+
67
+ Setka::Workflow::Ticket.unpublish(ticket_id)
68
+
69
+ # To update the ticket:
70
+
71
+ # ticket_id = 112331
72
+
73
+ Setka::Workflow::Ticket.update(ticket_id)
74
+
75
+ # To sync analytics of the tickets:
76
+
77
+ # body = {
78
+ # tickets: [
79
+ # {
80
+ # id: 18712,
81
+ # views_count: 5123
82
+ # },
83
+ # {
84
+ # id: 18713,
85
+ # views_count: 2023,
86
+ # comments_count: 98
87
+ # }
88
+ # ]
89
+ # }
90
+
91
+ Setka::Workflow::Ticket.sync_analytics(body)
92
+ ```
93
+
94
+ ### Category operations
95
+
96
+ ```ruby
97
+ # To create a category:
98
+
99
+ # body = { name: 'Cats & Dogs' }
100
+
101
+ Setka::Workflow::Category.create(body)
102
+
103
+ # To update the category:
104
+
105
+ # category_id = 412
106
+ # body = { name: 'Hamsters' }
107
+
108
+ Setka::Workflow::Category.update(category_id, body)
109
+
110
+ # To delete the category:
111
+
112
+ # category_id = 413
113
+
114
+ Setka::Workflow::Category.delete(category_id)
115
+ ```
116
+
117
+ ### Multiple clients
118
+
119
+ ```ruby
120
+ # Clients creation
121
+
122
+ animals_client = Setka::Workflow::Client.new(access_token: 'animals_access_token', space_name: 'animals')
123
+ humans_client = Setka::Workflow::Client.new(access_token: 'humans_access_token', space_name: 'humans')
124
+
125
+ # Publishing the ticket in animals space
126
+
127
+ Setka::Workflow::Ticket.publish(41123, client: animals_client)
128
+
129
+ # Updating the category in humans space
130
+
131
+ body = { name: 'Professions' }
132
+
133
+ Setka::Workflow::Category.update(882, body, client: animals_client)
134
+ ```
135
+
136
+ ## Development
137
+
138
+ 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.
139
+
140
+ 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).
141
+
142
+ ## Contributing
143
+
144
+ Bug reports and pull requests are welcome on GitHub at https://github.com/setkaio/workflow-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.
145
+
146
+
147
+ ## License
148
+
149
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
150
+
@@ -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 'setka-workflow'
5
+ require 'pry-byebug'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require 'pry'
12
+ # Pry.start
13
+
14
+ Pry.start
@@ -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 @@
1
+ require 'setka/workflow'
@@ -0,0 +1,43 @@
1
+ require 'setka/workflow/version'
2
+
3
+ module Setka
4
+ module Workflow
5
+ autoload :Client, 'setka/workflow/client'
6
+ autoload :Request, 'setka/workflow/request'
7
+ autoload :Response, 'setka/workflow/response'
8
+ autoload :Configuration, 'setka/workflow/configuration'
9
+ autoload :Resource, 'setka/workflow/resource'
10
+ autoload :Ticket, 'setka/workflow/ticket'
11
+ autoload :Category, 'setka/workflow/category'
12
+
13
+ BASE_ENDPOINT = 'workflow.setka.io'.freeze
14
+ API_VERSION = 3
15
+
16
+ Error = Class.new(StandardError)
17
+ ConfigurationError = Class.new(Error)
18
+ WrongParamError = Class.new(Error)
19
+ InvalidAccessToken = Class.new(Error)
20
+ InternalServerError = Class.new(Error)
21
+
22
+ def self.reset!
23
+ @client = nil
24
+ end
25
+
26
+ def self.client
27
+ @client ||= Setka::Workflow::Client.new
28
+ end
29
+
30
+ def self.configure(&block)
31
+ reset!
32
+ client.configure(&block)
33
+ end
34
+
35
+ def self.logger
36
+ @logger ||= Logger.new(STDOUT)
37
+ end
38
+
39
+ def self.logger=(logger)
40
+ @logger = logger
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,25 @@
1
+ module Setka
2
+ module Workflow
3
+ class Category < Resource
4
+ class << self
5
+ def create(body, options = {})
6
+ collection(:post, nil, body, options)
7
+ end
8
+
9
+ def update(id, body, options = {})
10
+ member(:patch, id, nil, body, options)
11
+ end
12
+
13
+ def delete(id, options = {})
14
+ member(:delete, id, nil, nil, options)
15
+ end
16
+
17
+ private
18
+
19
+ def resource_plural
20
+ :categories
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,85 @@
1
+ require 'forwardable'
2
+ require 'logger'
3
+
4
+ module Setka
5
+ module Workflow
6
+ class Client
7
+ extend Forwardable
8
+
9
+ def_delegators :configuration, :credentials,
10
+ *Configuration.configurable_attributes,
11
+ *(Configuration.configurable_attributes.map { |attr| "#{attr}=" })
12
+
13
+ def initialize(attrs = {})
14
+ self.configuration.attributes = attrs
15
+ end
16
+
17
+ def post(path, body, options)
18
+ invoke_verb(:post, uri(path), body, with_auth(options))
19
+ end
20
+
21
+ def patch(path, body = nil, options)
22
+ invoke_verb(:patch, uri(path), body, with_auth(options))
23
+ end
24
+
25
+ def delete(path, body = nil, options)
26
+ invoke_verb(:delete, uri(path), body, with_auth(options))
27
+ end
28
+
29
+ def configure
30
+ yield configuration if block_given?
31
+ end
32
+
33
+ def configuration
34
+ @configuration ||= Configuration.new
35
+ end
36
+
37
+ private
38
+
39
+ def invoke_verb(name, uri, body, options)
40
+ configuration.credentials?
41
+
42
+ request = Request.new(name, uri, body, options)
43
+ response = request.execute
44
+
45
+ return '' unless response
46
+
47
+ if response.code.to_i == 401
48
+ Setka::Workflow.logger.error("[401 #{name.to_s.upcase} #{uri}]: "\
49
+ "#{response.body['message']}.")
50
+
51
+ raise InvalidAccessToken, response.body[:message]
52
+ end
53
+
54
+ if response.code.to_i == 500
55
+ Setka::Workflow.logger.error("[500 #{name.to_s.upcase} #{uri}]: "\
56
+ "#{response.body['message']}.")
57
+
58
+ raise InternalServerError, response.body[:message]
59
+ end
60
+
61
+ unless [200, 201].include? response.code.to_i
62
+ Setka::Workflow.logger.error(
63
+ "[#{response.code} #{name.to_s.upcase} #{uri}]: "\
64
+ "#{response.body['message']}."
65
+ )
66
+
67
+ raise Error, response.body
68
+ end
69
+
70
+ response.body
71
+ end
72
+
73
+ def uri(path)
74
+ URI::HTTPS.build(
75
+ host: BASE_ENDPOINT,
76
+ path: "/eapi/v#{API_VERSION}/#{space_name}/#{path}"
77
+ )
78
+ end
79
+
80
+ def with_auth(options)
81
+ options.merge(headers: { authorization: "token #{access_token}" })
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,67 @@
1
+ module Setka
2
+ module Workflow
3
+ class Configuration
4
+ CONFIGURABLE_ATTRIBUTES = [
5
+ :access_token,
6
+ :space_name
7
+ ]
8
+
9
+ attr_reader *CONFIGURABLE_ATTRIBUTES
10
+
11
+ def self.configurable_attributes
12
+ CONFIGURABLE_ATTRIBUTES
13
+ end
14
+
15
+ def initialize(attrs = {})
16
+ self.attributes = attrs
17
+ end
18
+
19
+ def attributes=(attrs = {})
20
+ attrs.each do |key, value|
21
+ if CONFIGURABLE_ATTRIBUTES.include?(key)
22
+ validate_string_value(key, value)
23
+
24
+ instance_variable_set("@#{key}", value)
25
+ end
26
+ end
27
+ end
28
+
29
+ def access_token=(value)
30
+ validate_string_value(:access_token, value)
31
+
32
+ @access_token = value
33
+ end
34
+
35
+ def space_name=(value)
36
+ validate_string_value(:space_name, value)
37
+
38
+ @space_name = value
39
+ end
40
+
41
+ def credentials
42
+ { access_token: access_token, space_name: space_name }
43
+ end
44
+
45
+ def credentials?
46
+ validate_credentials_presence
47
+ end
48
+
49
+ private
50
+
51
+ def validate_credentials_presence
52
+ unless credentials.values.all?
53
+ message = credentials.select {|_, v| v.nil? }
54
+ .map {|k, _| "#{k} is not specified"}
55
+ .join(', ')
56
+
57
+ raise ConfigurationError.new(message)
58
+ end
59
+ end
60
+
61
+ def validate_string_value(key, value)
62
+ raise ConfigurationError.new("#{key} must be a filled string") unless
63
+ value.is_a?(String) && value.length > 0
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,45 @@
1
+ require 'faraday'
2
+ require 'faraday_middleware'
3
+
4
+ module Setka
5
+ module Workflow
6
+ class Request
7
+ def initialize(http_verb, uri, body, options)
8
+ @http_verb = http_verb
9
+ @uri = uri
10
+
11
+ if body
12
+ raise WrongParamError.new('Body param must be a hash') unless
13
+ body.is_a?(Hash)
14
+
15
+ @body = body
16
+ end
17
+
18
+ @options = options
19
+ end
20
+
21
+ def execute
22
+ Response.new(execute_core)
23
+ end
24
+
25
+ private
26
+
27
+ def execute_core
28
+ connection.send @http_verb, @uri.path do |req|
29
+ req.body = @body if @body && @body.any?
30
+ req.headers.update @options[:headers] if @options[:headers]
31
+ end
32
+ end
33
+
34
+ def connection
35
+ Faraday.new do |conn|
36
+ conn.request :json
37
+ conn.response :json, content_type: /\bjson$/
38
+
39
+ conn.adapter Faraday.default_adapter
40
+ conn.url_prefix = "#{@uri.scheme}://#{@uri.host}"
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,37 @@
1
+ module Setka
2
+ module Workflow
3
+ class Resource
4
+ class << self
5
+ def member(http_verb, id, action = nil, body = nil, options)
6
+ actual_client(options).send(http_verb, path(action, id), body, options)
7
+ end
8
+
9
+ def collection(http_verb, action = nil, body = nil, options)
10
+ actual_client(options).send(http_verb, path(action), body, options)
11
+ end
12
+
13
+ def actual_client(options)
14
+ if options[:client]
15
+ raise ConfigurationError.new('Wrong client is specified') unless
16
+ options[:client].is_a?(Setka::Workflow::Client)
17
+
18
+ options[:client]
19
+ else
20
+ Setka::Workflow.client
21
+ end
22
+ end
23
+
24
+ private
25
+
26
+ def path(action, id = nil)
27
+ id_clause = "/#{id}" if id
28
+ action_clause = "/#{action}" if action
29
+
30
+ "#{resource_plural}#{id_clause}#{action_clause}.json"
31
+ end
32
+
33
+ def resource_plural; end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,13 @@
1
+ module Setka
2
+ module Workflow
3
+ class Response
4
+ attr_reader :code, :headers, :body
5
+
6
+ def initialize(raw_response)
7
+ @code = raw_response.status
8
+ @body = raw_response.body
9
+ @headers = raw_response.headers
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,29 @@
1
+ module Setka
2
+ module Workflow
3
+ class Ticket < Resource
4
+ class << self
5
+ def publish(id, options = {})
6
+ member(:patch, id, :publish, nil, options)
7
+ end
8
+
9
+ def unpublish(id, options = {})
10
+ member(:patch, id, :unpublish, nil, options)
11
+ end
12
+
13
+ def update(id, body, options = {})
14
+ member(:patch, id, nil, body, options)
15
+ end
16
+
17
+ def sync_analytics(body, options = {})
18
+ collection(:patch, :sync_analytics, body, options)
19
+ end
20
+
21
+ private
22
+
23
+ def resource_plural
24
+ :tickets
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,5 @@
1
+ module Setka
2
+ module Workflow
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'setka/workflow/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'setka-workflow'
8
+ spec.version = Setka::Workflow::VERSION.dup
9
+ spec.authors = ['Dmitry Kovalevsky']
10
+ spec.email = ['kovalevsky@setka.io']
11
+
12
+ spec.summary = %q{Ruby wrapper for Setka Workflow Integration API}
13
+ spec.homepage = %q{https://github.com/setkaio/setka-workflow-ruby}
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_dependency 'faraday', '~> 0.9'
25
+ spec.add_dependency 'faraday_middleware'
26
+
27
+ spec.add_development_dependency 'bundler', '~> 1.14'
28
+ spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'pry-byebug'
30
+ end
metadata ADDED
@@ -0,0 +1,135 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: setka-workflow
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dmitry Kovalevsky
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-09-01 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.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
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.14'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.14'
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: pry-byebug
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
+ description:
84
+ email:
85
+ - kovalevsky@setka.io
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/setka-workflow.rb
101
+ - lib/setka/workflow.rb
102
+ - lib/setka/workflow/category.rb
103
+ - lib/setka/workflow/client.rb
104
+ - lib/setka/workflow/configuration.rb
105
+ - lib/setka/workflow/request.rb
106
+ - lib/setka/workflow/resource.rb
107
+ - lib/setka/workflow/response.rb
108
+ - lib/setka/workflow/ticket.rb
109
+ - lib/setka/workflow/version.rb
110
+ - setka-workflow.gemspec
111
+ homepage: https://github.com/setkaio/setka-workflow-ruby
112
+ licenses:
113
+ - MIT
114
+ metadata: {}
115
+ post_install_message:
116
+ rdoc_options: []
117
+ require_paths:
118
+ - lib
119
+ required_ruby_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ requirements: []
130
+ rubyforge_project:
131
+ rubygems_version: 2.5.1
132
+ signing_key:
133
+ specification_version: 4
134
+ summary: Ruby wrapper for Setka Workflow Integration API
135
+ test_files: []