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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f084296bc0a527e28edcbccfc59b6135f47226b
4
- data.tar.gz: 4fa074148e3b64a15eb9d7dba401b1f3b6fa3080
3
+ metadata.gz: a7ca509fe9d7787a6e962d60ed9f30609397a06a
4
+ data.tar.gz: d1da80c411566ee821dd958b96e9644fdd0f041f
5
5
  SHA512:
6
- metadata.gz: b8c4fd9d514208c9f4df1d6b391c3686462cb2b9793064619a254bf3ef9f66106af437f3dffc717fc320c381b16e5999162b3b41c7f8584925b15a034a14a7d4
7
- data.tar.gz: c86d561a2617290a4503ce326e375f6d18566e7146df569aac21c2fd110c53988c8327cff4aff283d681c2e7abb2c95cd5c98478c4b66d37cc047656a9facd44
6
+ metadata.gz: db63fa4bca01b5b7510eb5d2908040f6f218a3181ed6f047c3bedc397b09094c13eaf6b03c6f818bbc4472143038eae764fb00c3f7adf90118eadf4e959ea8d2
7
+ data.tar.gz: d107c24c85c8ddf0bfc75fb0bdcc8046fd0689990af46e234d2f425a4de2d83c42280f83f80da89590963447fb89071e821ad58b76a452a0bab9d461c2c040db
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
1
  --format documentation
2
- --color
3
2
  --require spec_helper
@@ -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
 
@@ -1,13 +1,18 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-05-15 11:22:04 +0900 using RuboCop version 0.40.0.
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: 289
10
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
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
@@ -1,9 +1,13 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.0
5
- - 2.2.0
6
- - 2.3.0
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
@@ -5,3 +5,8 @@ gemspec
5
5
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.2.2')
6
6
  gem 'activesupport', '< 5.0.0'
7
7
  end
8
+
9
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.1.0')
10
+ gem 'public_suffix', '< 3.0.0'
11
+ gem 'rubocop', '< 0.51.0'
12
+ end
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2016 emsk
3
+ Copyright (c) 2015-2017 emsk
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
 
@@ -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.10.0'
25
- spec.add_runtime_dependency 'faraday_middleware', '~> 0.10.1'
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.15'
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', '~> 11.3'
30
- spec.add_development_dependency 'redcarpet', '~> 3.3'
31
- spec.add_development_dependency 'rspec', '~> 3.5'
32
- spec.add_development_dependency 'rubocop', '~> 0.45.0'
33
- spec.add_development_dependency 'simplecov', '~> 0.12'
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', '~> 2.1'
36
- spec.add_development_dependency 'yard', '~> 0.9.5'
35
+ spec.add_development_dependency 'webmock', '~> 3.1'
36
+ spec.add_development_dependency 'yard', '~> 0.9.9'
37
37
  end
@@ -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 = ENV['BACKLOG_SPACE_ID']
65
- @api_key = ENV['BACKLOG_API_KEY']
66
- @client_id = ENV['BACKLOG_OAUTH_CLIENT_ID']
67
- @client_secret = ENV['BACKLOG_OAUTH_CLIENT_SECRET']
68
- @refresh_token = ENV['BACKLOG_OAUTH_REFRESH_TOKEN']
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.jp"
155
+ "https://#{space_id}.backlog.#{top_level_domain}"
153
156
  end
154
157
 
155
158
  def request_headers
@@ -1,3 +1,3 @@
1
1
  module BacklogKit
2
- VERSION = '0.15.0'.freeze
2
+ VERSION = '0.16.0'.freeze
3
3
  end
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.15.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: 2016-11-23 00:00:00.000000000 Z
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.10.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.10.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.10.1
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.10.1
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.15
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.15
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: '11.3'
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: '11.3'
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.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.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.5'
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.5'
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.45.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.45.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.12'
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.12'
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: '2.1'
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: '2.1'
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.5
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.5
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.8
275
+ rubygems_version: 2.6.10
276
276
  signing_key:
277
277
  specification_version: 4
278
278
  summary: Wrapper for the Backlog API v2.