backlog_kit 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +0 -1
- data/.rubocop.yml +3 -3
- data/.rubocop_todo.yml +8 -3
- data/.travis.yml +8 -4
- data/Gemfile +5 -0
- data/LICENSE +1 -1
- data/README.md +2 -0
- data/backlog_kit.gemspec +10 -10
- data/lib/backlog_kit/client.rb +9 -6
- data/lib/backlog_kit/version.rb +1 -1
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7ca509fe9d7787a6e962d60ed9f30609397a06a
|
4
|
+
data.tar.gz: d1da80c411566ee821dd958b96e9644fdd0f041f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db63fa4bca01b5b7510eb5d2908040f6f218a3181ed6f047c3bedc397b09094c13eaf6b03c6f818bbc4472143038eae764fb00c3f7adf90118eadf4e959ea8d2
|
7
|
+
data.tar.gz: d107c24c85c8ddf0bfc75fb0bdcc8046fd0689990af46e234d2f425a4de2d83c42280f83f80da89590963447fb89071e821ad58b76a452a0bab9d461c2c040db
|
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
@@ -3,6 +3,9 @@ inherit_from: .rubocop_todo.yml
|
|
3
3
|
AllCops:
|
4
4
|
DisplayCopNames: true
|
5
5
|
|
6
|
+
Layout/MultilineMethodCallIndentation:
|
7
|
+
EnforcedStyle: indented
|
8
|
+
|
6
9
|
Metrics/BlockLength:
|
7
10
|
Exclude:
|
8
11
|
- 'Rakefile'
|
@@ -22,9 +25,6 @@ Style/BracesAroundHashParameters:
|
|
22
25
|
Style/DoubleNegation:
|
23
26
|
Enabled: false
|
24
27
|
|
25
|
-
Style/MultilineMethodCallIndentation:
|
26
|
-
EnforcedStyle: indented
|
27
|
-
|
28
28
|
Style/NumericLiterals:
|
29
29
|
Enabled: false
|
30
30
|
|
data/.rubocop_todo.yml
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2017-11-03 12:25:10 +0900 using RuboCop version 0.51.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
10
|
-
|
9
|
+
# Offense count: 3
|
10
|
+
Lint/UriEscapeUnescape:
|
11
|
+
Exclude:
|
12
|
+
- 'lib/backlog_kit/client.rb'
|
13
|
+
|
14
|
+
# Offense count: 304
|
15
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
11
16
|
# URISchemes: http, https
|
12
17
|
Metrics/LineLength:
|
13
18
|
Max: 176
|
data/.travis.yml
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.0.0
|
4
|
-
- 2.1.
|
5
|
-
- 2.2.
|
6
|
-
- 2.3.
|
3
|
+
- 2.0.0
|
4
|
+
- 2.1.10
|
5
|
+
- 2.2.8
|
6
|
+
- 2.3.5
|
7
|
+
- 2.4.2
|
8
|
+
before_install:
|
9
|
+
- gem update --system
|
10
|
+
- gem update bundler
|
7
11
|
env:
|
8
12
|
global:
|
9
13
|
- secure: lDkZSBZKCnmOcxrP13WTrPM7wT9ox4PFB0l6EjdA++Czus1gqFMQV5HCQzWcnsS9mUdcKWhUBjdchC8vzEXnpvhuwPf508kF+jYuaI9t8kOug48Iwp+rQ9Tmhue8AEj0XYJ8Z0TRrDmIFa46Ni+3OQTy9ptnRjumqELa+sZoqu9P9GmFhUJFQuuqV+UrJVU8wyhJemK8rWo7AoqlLsiIxI/YxGxOoobCjBWboslgGbvAQxcIJYCHxE0ZwImYEC1vZ2NDOHn/R5NFXpjAlteMOIyh0CvW4NYUi0I4ypdiuiI+3AWcqrlgitggWwkei3cz/u7/F8cGmrhBLCr+ZSqrePjVfvC5HetoFanLPKB+koJbEwfL17ACKRSBiJ4yV3YG86Lds7CTIJyhNcwJziQM4Vq7s7BS5Iz6xASYgaFtKn7GG5p9vJ57DCdyrxkAOl/FljFWVovNiFL5xnj7VXYiTKgOPnL+gtWwt9vmqUy6iYO6velNkIwOQ+FhpgLNp39HQc+m9c73UVqEN9BE/4PnVujq/g2+LQWkSvjCaOCJpldITmNPF6h2iTmTaS4F4BO3/+WTH4Fr3A6uzEpDjHzNM8dA/NU2ByF7wM3YIeo0COQQSuJjldR2Ft1bCsBHM04smAkl3J5+1BGA9XrbUt7jSZHfDIGFGXNWUhlBtSuStz0=
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -85,6 +85,7 @@ client = BacklogKit::Client.new(
|
|
85
85
|
| ENV Variable | Description |
|
86
86
|
| :----------- | :---------- |
|
87
87
|
| `BACKLOG_SPACE_ID` | Your Backlog SPACE ID. |
|
88
|
+
| `BACKLOG_TOP_LEVEL_DOMAIN` | Your Backlog TOP LEVEL DOMAIN. |
|
88
89
|
| `BACKLOG_API_KEY` | Your Backlog API KEY. |
|
89
90
|
| `BACKLOG_OAUTH_CLIENT_ID` | CLIENT ID of your Backlog application. |
|
90
91
|
| `BACKLOG_OAUTH_CLIENT_SECRET` | CLIENT SECRET of your Backlog application. |
|
@@ -108,6 +109,7 @@ BacklogKit's API documentation is [here](http://www.rubydoc.info/gems/backlog_ki
|
|
108
109
|
* Ruby 2.1
|
109
110
|
* Ruby 2.2
|
110
111
|
* Ruby 2.3
|
112
|
+
* Ruby 2.4
|
111
113
|
|
112
114
|
## Development
|
113
115
|
|
data/backlog_kit.gemspec
CHANGED
@@ -21,17 +21,17 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.required_ruby_version = '>= 2.0.0'
|
22
22
|
|
23
23
|
spec.add_runtime_dependency 'activesupport', '>= 4.2.7.1'
|
24
|
-
spec.add_runtime_dependency 'faraday', '~> 0.
|
25
|
-
spec.add_runtime_dependency 'faraday_middleware', '~> 0.
|
24
|
+
spec.add_runtime_dependency 'faraday', '~> 0.13.1'
|
25
|
+
spec.add_runtime_dependency 'faraday_middleware', '~> 0.12.2'
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
27
|
-
spec.add_development_dependency 'coveralls', '~> 0.8.
|
27
|
+
spec.add_development_dependency 'coveralls', '~> 0.8.21'
|
28
28
|
spec.add_development_dependency 'multi_json', '~> 1.12'
|
29
|
-
spec.add_development_dependency 'rake', '~>
|
30
|
-
spec.add_development_dependency 'redcarpet', '~> 3.
|
31
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
32
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
33
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
29
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
30
|
+
spec.add_development_dependency 'redcarpet', '~> 3.4'
|
31
|
+
spec.add_development_dependency 'rspec', '~> 3.7'
|
32
|
+
spec.add_development_dependency 'rubocop', '~> 0.51.0'
|
33
|
+
spec.add_development_dependency 'simplecov', '~> 0.14'
|
34
34
|
spec.add_development_dependency 'vcr', '~> 3.0'
|
35
|
-
spec.add_development_dependency 'webmock', '~>
|
36
|
-
spec.add_development_dependency 'yard', '~> 0.9.
|
35
|
+
spec.add_development_dependency 'webmock', '~> 3.1'
|
36
|
+
spec.add_development_dependency 'yard', '~> 0.9.9'
|
37
37
|
end
|
data/lib/backlog_kit/client.rb
CHANGED
@@ -43,6 +43,7 @@ module BacklogKit
|
|
43
43
|
|
44
44
|
attr_accessor(
|
45
45
|
:space_id,
|
46
|
+
:top_level_domain,
|
46
47
|
:api_key,
|
47
48
|
:client_id,
|
48
49
|
:client_secret,
|
@@ -56,16 +57,18 @@ module BacklogKit
|
|
56
57
|
#
|
57
58
|
# @param options [Hash] Initialize options
|
58
59
|
# @option options [String] :space_id Backlog space id
|
60
|
+
# @option options [String] :top_level_domain Backlog top level domain
|
59
61
|
# @option options [String] :api_key Backlog api key
|
60
62
|
# @option options [String] :client_id Backlog OAuth client id
|
61
63
|
# @option options [String] :client_secret Backlog OAuth client secret
|
62
64
|
# @option options [String] :refresh_token Backlog OAuth refresh token
|
63
65
|
def initialize(options = {})
|
64
|
-
@space_id
|
65
|
-
@
|
66
|
-
@
|
67
|
-
@
|
68
|
-
@
|
66
|
+
@space_id = ENV['BACKLOG_SPACE_ID']
|
67
|
+
@top_level_domain = ENV['BACKLOG_TOP_LEVEL_DOMAIN'] || 'jp'
|
68
|
+
@api_key = ENV['BACKLOG_API_KEY']
|
69
|
+
@client_id = ENV['BACKLOG_OAUTH_CLIENT_ID']
|
70
|
+
@client_secret = ENV['BACKLOG_OAUTH_CLIENT_SECRET']
|
71
|
+
@refresh_token = ENV['BACKLOG_OAUTH_REFRESH_TOKEN']
|
69
72
|
|
70
73
|
options.each do |key, value|
|
71
74
|
instance_variable_set(:"@#{key}", value)
|
@@ -149,7 +152,7 @@ module BacklogKit
|
|
149
152
|
end
|
150
153
|
|
151
154
|
def host
|
152
|
-
"https://#{space_id}.backlog
|
155
|
+
"https://#{space_id}.backlog.#{top_level_domain}"
|
153
156
|
end
|
154
157
|
|
155
158
|
def request_headers
|
data/lib/backlog_kit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backlog_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- emsk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.13.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.13.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday_middleware
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.12.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.12.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.8.
|
75
|
+
version: 0.8.21
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.8.
|
82
|
+
version: 0.8.21
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: multi_json
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,70 +100,70 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '12.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '12.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: redcarpet
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '3.
|
117
|
+
version: '3.4'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '3.
|
124
|
+
version: '3.4'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
131
|
+
version: '3.7'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '3.
|
138
|
+
version: '3.7'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
145
|
+
version: 0.51.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
152
|
+
version: 0.51.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0.
|
159
|
+
version: '0.14'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0.
|
166
|
+
version: '0.14'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: vcr
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,28 +184,28 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '3.1'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '3.1'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: yard
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: 0.9.
|
201
|
+
version: 0.9.9
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: 0.9.
|
208
|
+
version: 0.9.9
|
209
209
|
description: Client library for the Nulab's Backlog API version 2 written in Ruby.
|
210
210
|
email:
|
211
211
|
- emsk1987@gmail.com
|
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
272
272
|
version: '0'
|
273
273
|
requirements: []
|
274
274
|
rubyforge_project:
|
275
|
-
rubygems_version: 2.6.
|
275
|
+
rubygems_version: 2.6.10
|
276
276
|
signing_key:
|
277
277
|
specification_version: 4
|
278
278
|
summary: Wrapper for the Backlog API v2.
|