vimaly 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.travis.yml +5 -0
- data/CHANGELOG.md +12 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/vimaly/bin.rb +12 -0
- data/lib/vimaly/client.rb +176 -0
- data/lib/vimaly/ticket.rb +118 -0
- data/lib/vimaly/ticket_type.rb +12 -0
- data/lib/vimaly/version.rb +3 -0
- data/lib/vimaly.rb +9 -0
- data/vimaly.gemspec +31 -0
- metadata +173 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d14adbbb6cfb6bcd28a369de71608726014a378b
|
4
|
+
data.tar.gz: bcc970b7e562eed22ae9b180a1e9737aa2bf103d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6b422a4e99ebb3dc15fc35bf4ef43c90c85582d951ee335cfd1069c35a184c0c741801e9b211125caedcc855fb3bb794343dda60dae0bf9d0780cdee727c9a51
|
7
|
+
data.tar.gz: d2c65390339e2c1791865126c9951d484cedfe6a4bae5c5bfb55acaaa65020a90a1b02628e9bcf0cd5c11e9bafae2b24b9fa4a7b8729e6206c35c29f4bee1b60
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## 0.1.0 (not yet released)
|
4
|
+
|
5
|
+
* initial copy from the `investapp`
|
6
|
+
|
7
|
+
## 0.2.0
|
8
|
+
|
9
|
+
* Support the ability to retrieve all tickets for a bin, and to run a matcher through this
|
10
|
+
* Support custom fields on ticket
|
11
|
+
* Add an integration test (site configured)
|
12
|
+
|
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 boettger@mt7.de. 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 Thorsten Böttger
|
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,43 @@
|
|
1
|
+
# Vimaly
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/vimaly.svg)](http://badge.fury.io/rb/vimaly)
|
4
|
+
[![Build Status](https://travis-ci.org/sharesight/vimaly.svg?branch=master)](https://travis-ci.org/sharesight/vimaly)
|
5
|
+
|
6
|
+
The `vimaly` gem provides a wrapper around the
|
7
|
+
[Vimaly API](https://vimaly.com/public/rest-help.html)
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'vimaly'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install vimaly
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
TODO: Write usage instructions here
|
28
|
+
|
29
|
+
## Development
|
30
|
+
|
31
|
+
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.
|
32
|
+
|
33
|
+
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).
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sharesight/vimaly. 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.
|
38
|
+
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
43
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "vimaly"
|
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/lib/vimaly/bin.rb
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module Vimaly
|
6
|
+
class Client
|
7
|
+
|
8
|
+
VIMALY_ROOT_URL = "https://o1.vimaly.com"
|
9
|
+
CUSTOM_FIELD_TYPES = [::NilClass, ::String, ::Float, ::Integer, ::Array, ::Date]
|
10
|
+
|
11
|
+
def initialize(company_id, username, password, logger=nil)
|
12
|
+
@company_id = company_id
|
13
|
+
@username = username
|
14
|
+
@password = password
|
15
|
+
@logger = logger
|
16
|
+
|
17
|
+
@bin_tickets = {}
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_ticket(title, description, format: 'text', ticket_type_name: 'bug', bin_name: /please panic/i, **others)
|
21
|
+
ticket = Ticket.new({
|
22
|
+
title: title,
|
23
|
+
description: description,
|
24
|
+
format: format,
|
25
|
+
ticket_type: ticket_type(ticket_type_name),
|
26
|
+
bin: bin(bin_name) }.
|
27
|
+
merge(others)
|
28
|
+
)
|
29
|
+
|
30
|
+
ticket_to_json = ticket.to_json(custom_field_name_map)
|
31
|
+
response = post("/tickets/#{next_ticket_id}", ticket_to_json)
|
32
|
+
case response.status
|
33
|
+
when 200..299
|
34
|
+
true
|
35
|
+
else
|
36
|
+
log_warn "status: #{response.status}"
|
37
|
+
log_warn " #{response.inspect}"
|
38
|
+
false
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def update_ticket(id, other_fields)
|
43
|
+
ticket = Ticket.new(other_fields)
|
44
|
+
|
45
|
+
response = put("/tickets/#{id}", ticket.to_json(custom_field_name_map, true))
|
46
|
+
case response.status
|
47
|
+
when 200..299
|
48
|
+
true
|
49
|
+
else
|
50
|
+
log_warn "status: #{response.status}"
|
51
|
+
log_warn " #{response.inspect}"
|
52
|
+
false
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def bin(name_or_regex)
|
57
|
+
case name_or_regex
|
58
|
+
when String
|
59
|
+
bins.detect { |bin| bin.name == name_or_regex }
|
60
|
+
when Regexp
|
61
|
+
bins.detect { |bin| bin.name =~ name_or_regex }
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def bins
|
66
|
+
@bins ||= begin
|
67
|
+
get('/bins').map do |bin_data|
|
68
|
+
Bin.new(bin_data['_id'], bin_data['name'])
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
def ticket_type(name_or_regex)
|
74
|
+
case name_or_regex
|
75
|
+
when String
|
76
|
+
ticket_types.detect { |tt| tt.name == name_or_regex }
|
77
|
+
when Regexp
|
78
|
+
ticket_types.detect { |tt| tt.name =~ name_or_regex }
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
def ticket_types
|
83
|
+
@ticket_types ||= begin
|
84
|
+
get('/ticket-types').map do |bin_data|
|
85
|
+
TicketType.new(bin_data['_id'], bin_data['name'])
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def tickets_in_named_bin(bin_name)
|
91
|
+
named_bin = bin(bin_name)
|
92
|
+
raise "Bin #{bin_name} not found" unless named_bin
|
93
|
+
tickets_in_bin(named_bin.id)
|
94
|
+
end
|
95
|
+
|
96
|
+
def tickets_in_bin(bin_id)
|
97
|
+
ticket_type_map = Hash[ticket_types.map { |t| [t.id, t] }]
|
98
|
+
bin_map = Hash[bins.map { |b| [b.id, b] }]
|
99
|
+
|
100
|
+
@bin_tickets[bin_id] ||= begin
|
101
|
+
get("/tickets?bin_id=#{bin_id}").map do |ticket_data|
|
102
|
+
Ticket.from_vimaly(ticket_data, ticket_type_map, bin_map, custom_fields)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
def matching_tickets_in_named_bin(bin_name, title_matcher)
|
108
|
+
named_bin = bin(bin_name)
|
109
|
+
raise "Bin #{bin_name} not found" unless named_bin
|
110
|
+
matching_tickets_in_bin(named_bin.id, title_matcher)
|
111
|
+
end
|
112
|
+
|
113
|
+
def matching_tickets_in_bin(bin_id, title_matcher)
|
114
|
+
tickets = tickets_in_bin(bin_id)
|
115
|
+
case title_matcher
|
116
|
+
when String
|
117
|
+
tickets.select { |t| t.title == title_matcher }
|
118
|
+
when Regexp
|
119
|
+
tickets.select { |t| t.title =~ title_matcher }
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Get custom fields as a hash of id => {id, name, type}
|
124
|
+
def custom_fields
|
125
|
+
@custom_fields ||= begin
|
126
|
+
Hash[get('/custom-fields').map do |cf|
|
127
|
+
[cf['_id'], { id: cf['_id'], name: cf['name'], type: CUSTOM_FIELD_TYPES[cf['type'].to_i] }]
|
128
|
+
end]
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
private
|
133
|
+
|
134
|
+
def custom_field_name_map
|
135
|
+
@custom_field_name_map ||= Hash[custom_fields.values.map {|v| [v[:name], v] }]
|
136
|
+
end
|
137
|
+
|
138
|
+
def next_ticket_id
|
139
|
+
get('/ids?amount=1')[0]
|
140
|
+
end
|
141
|
+
|
142
|
+
def get(api_path)
|
143
|
+
response = faraday.get("/rest/1/#{@company_id}#{api_path}") do |request|
|
144
|
+
request.headers.update({ accept: 'application/json', content_type: 'application/json' })
|
145
|
+
end
|
146
|
+
unless response.success?
|
147
|
+
raise("Vimaly #{api_path} call failed")
|
148
|
+
end
|
149
|
+
JSON.parse(response.body)
|
150
|
+
end
|
151
|
+
|
152
|
+
def post(api_path, json)
|
153
|
+
faraday.post("/rest/1/#{@company_id}#{api_path}", json) do |request|
|
154
|
+
request.headers.update({ accept: 'application/json', content_type: 'application/json' })
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
def put(api_path, json)
|
159
|
+
faraday.put("/rest/1/#{@company_id}#{api_path}", json) do |request|
|
160
|
+
request.headers.update({ accept: 'application/json', content_type: 'application/json' })
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
def faraday
|
165
|
+
@faraday ||= Faraday.new(VIMALY_ROOT_URL).tap do |connection|
|
166
|
+
connection.basic_auth(@username, @password)
|
167
|
+
connection.request(:json)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
def log_warn(s)
|
172
|
+
@logger.warn(s) if @logger
|
173
|
+
end
|
174
|
+
|
175
|
+
end
|
176
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
module Vimaly
|
2
|
+
class Ticket
|
3
|
+
|
4
|
+
# title, description, format, ticket_type, bin, id=nil
|
5
|
+
def initialize(*params)
|
6
|
+
if params.first.is_a?(Hash)
|
7
|
+
@ticket_fields = params.first
|
8
|
+
else
|
9
|
+
@ticket_fields = {}
|
10
|
+
[:title, :description, :format, :ticket_type, :bin, :id].each_with_index do |param_key, idx|
|
11
|
+
break if idx>=params.size
|
12
|
+
@ticket_fields[param_key] = params[idx]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.from_vimaly(src_hash, ticket_types, bins, custom_fields)
|
18
|
+
ticket_fields = Hash[
|
19
|
+
src_hash.map do |vimaly_name, field_value|
|
20
|
+
case(vimaly_name)
|
21
|
+
when 'rtformat'
|
22
|
+
[:format, field_value]
|
23
|
+
when 'name'
|
24
|
+
[:title, field_value]
|
25
|
+
when 'ticketType_id'
|
26
|
+
[:ticket_type, ticket_types[field_value.to_i]]
|
27
|
+
when 'bin_id'
|
28
|
+
[:bin, bins[field_value.to_i]]
|
29
|
+
when 'customFields'
|
30
|
+
nil
|
31
|
+
else
|
32
|
+
[vimaly_name.to_sym, field_value]
|
33
|
+
end
|
34
|
+
end.compact
|
35
|
+
]
|
36
|
+
|
37
|
+
(src_hash['customFields'] || []).each do |custom_field_id, value|
|
38
|
+
ticket_fields[custom_fields[custom_field_id][:name]] = value
|
39
|
+
end
|
40
|
+
|
41
|
+
Vimaly::Ticket::new(ticket_fields)
|
42
|
+
end
|
43
|
+
|
44
|
+
def to_vimaly(custom_field_name_map, for_update=false)
|
45
|
+
vimaly_fields = Hash[@ticket_fields.map do |field_name, field_value|
|
46
|
+
case(field_name)
|
47
|
+
when :format
|
48
|
+
['rtformat', field_value]
|
49
|
+
when :title
|
50
|
+
['name', field_value]
|
51
|
+
when :description
|
52
|
+
['description', normalise(field_value)]
|
53
|
+
when :ticket_type
|
54
|
+
['ticketType_id', field_value.id]
|
55
|
+
when :bin
|
56
|
+
['bin_id', field_value.id]
|
57
|
+
else
|
58
|
+
if for_update
|
59
|
+
fdef = custom_field_name_map[field_name.to_s]
|
60
|
+
["customFields.#{fdef[:id]}", cast_to_vimaly(field_value, fdef[:type])]
|
61
|
+
else
|
62
|
+
nil
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end.compact
|
66
|
+
]
|
67
|
+
|
68
|
+
unless for_update
|
69
|
+
custom_fields = @ticket_fields.select {|fn, _v| ![:format, :title, :description, :ticket_type, :bin].include?(fn) }
|
70
|
+
if custom_fields && !custom_fields.empty?
|
71
|
+
vimaly_fields['customFields'] =
|
72
|
+
Hash[custom_fields.map do |field_name, field_value|
|
73
|
+
fdef = custom_field_name_map[field_name.to_s]
|
74
|
+
[fdef[:id], cast_to_vimaly(field_value, fdef[:type])]
|
75
|
+
end]
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
vimaly_fields
|
80
|
+
end
|
81
|
+
|
82
|
+
def cast_to_vimaly(value, type)
|
83
|
+
case type.to_s
|
84
|
+
when 'String'
|
85
|
+
value.to_s
|
86
|
+
when 'Float'
|
87
|
+
value.to_f
|
88
|
+
when 'Integer'
|
89
|
+
value.to_i
|
90
|
+
when 'Array'
|
91
|
+
value
|
92
|
+
when 'Date'
|
93
|
+
Date.parse(value.to_s).strftime('%Y-%m-%dT%H:%M:%S.%LZ')
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
def to_json(custom_field_name_map, for_update=false)
|
98
|
+
to_vimaly(custom_field_name_map, for_update).to_json
|
99
|
+
end
|
100
|
+
|
101
|
+
def [](name)
|
102
|
+
@ticket_fields[name]
|
103
|
+
end
|
104
|
+
|
105
|
+
def method_missing(name)
|
106
|
+
return @ticket_fields[name] if @ticket_fields.key?(name)
|
107
|
+
|
108
|
+
super
|
109
|
+
end
|
110
|
+
|
111
|
+
private
|
112
|
+
|
113
|
+
def normalise(text)
|
114
|
+
text.length > 40_000 ? (text[0...39_950] + '...[truncated]') : text
|
115
|
+
end
|
116
|
+
|
117
|
+
end
|
118
|
+
end
|
data/lib/vimaly.rb
ADDED
data/vimaly.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'vimaly/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "vimaly"
|
8
|
+
spec.version = Vimaly::VERSION
|
9
|
+
spec.authors = ["Thorsten Boettger"]
|
10
|
+
spec.email = ["boettger@mt7.de"]
|
11
|
+
|
12
|
+
spec.summary = %q{Wrapper for the Vimaly API}
|
13
|
+
spec.description = %q{Wrapper for the Vimaly API}
|
14
|
+
spec.homepage = "https://github.com/sharesight/vimaly"
|
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 "faraday"
|
23
|
+
spec.add_dependency "faraday_middleware"
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "pry"
|
28
|
+
spec.add_development_dependency "maxitest", '~> 1'
|
29
|
+
spec.add_development_dependency "shoulda-context"
|
30
|
+
spec.add_development_dependency "webmock"
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vimaly
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thorsten Boettger
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-14 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: 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.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: pry
|
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: maxitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: shoulda-context
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
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: webmock
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Wrapper for the Vimaly API
|
126
|
+
email:
|
127
|
+
- boettger@mt7.de
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".travis.yml"
|
134
|
+
- CHANGELOG.md
|
135
|
+
- CODE_OF_CONDUCT.md
|
136
|
+
- Gemfile
|
137
|
+
- LICENSE.txt
|
138
|
+
- README.md
|
139
|
+
- Rakefile
|
140
|
+
- bin/console
|
141
|
+
- bin/setup
|
142
|
+
- lib/vimaly.rb
|
143
|
+
- lib/vimaly/bin.rb
|
144
|
+
- lib/vimaly/client.rb
|
145
|
+
- lib/vimaly/ticket.rb
|
146
|
+
- lib/vimaly/ticket_type.rb
|
147
|
+
- lib/vimaly/version.rb
|
148
|
+
- vimaly.gemspec
|
149
|
+
homepage: https://github.com/sharesight/vimaly
|
150
|
+
licenses:
|
151
|
+
- MIT
|
152
|
+
metadata: {}
|
153
|
+
post_install_message:
|
154
|
+
rdoc_options: []
|
155
|
+
require_paths:
|
156
|
+
- lib
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
requirements: []
|
168
|
+
rubyforge_project:
|
169
|
+
rubygems_version: 2.6.8
|
170
|
+
signing_key:
|
171
|
+
specification_version: 4
|
172
|
+
summary: Wrapper for the Vimaly API
|
173
|
+
test_files: []
|