embulk-input-jira 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -5
- data/CHANGELOG.md +4 -0
- data/embulk-input-jira.gemspec +2 -2
- data/lib/embulk/input/jira_api/client.rb +3 -1
- data/spec/embulk/input/jira_api/client_spec.rb +8 -7
- data/spec/embulk_spec.rb +2 -1
- data/spec/spec_helper.rb +7 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 908532d5b539ee1ca384c6eb1e95e3a9b4457d59
|
4
|
+
data.tar.gz: 85ff33b3ffec8721a19ea7c7c9664629d80529c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d5f22354f2809e1f759cf1e4a4bcdedbcc807722d43a906232d8eed2e861ba57b92b1bde59d97ddab56ca677c1aa6ddbb15532103e6a95fcde06e43bcb0a5a6
|
7
|
+
data.tar.gz: 040700492e0710e4e25ed0b6c54557df1b29c34513ba5f41fed08680be8a1362a81416a134c04887203cb30b4f855201759e71f72610a2062221b3b2af2ea1ac
|
data/.travis.yml
CHANGED
@@ -13,7 +13,8 @@ before_install:
|
|
13
13
|
rvm get head
|
14
14
|
rvm use jruby-9.0.5.0 --install
|
15
15
|
ruby -v
|
16
|
-
|
16
|
+
gem i bundler
|
17
|
+
bundle install
|
17
18
|
|
18
19
|
rvm: jruby-9.0.5.0
|
19
20
|
|
@@ -27,10 +28,10 @@ matrix:
|
|
27
28
|
exclude:
|
28
29
|
- jdk: oraclejdk8 # Ignore all matrix at first, use `include` to allow build
|
29
30
|
include:
|
30
|
-
- {rvm: jruby-9.0.
|
31
|
-
- {rvm: jruby-9.0.
|
32
|
-
- {rvm: jruby-9.0.
|
33
|
-
- {rvm: jruby-9.0.
|
31
|
+
- {rvm: jruby-9.0.5.0, gemfile: gemfiles/embulk-0.8.0-latest}
|
32
|
+
- {rvm: jruby-9.0.5.0, gemfile: gemfiles/embulk-0.8.7}
|
33
|
+
- {rvm: jruby-9.0.5.0, gemfile: gemfiles/embulk-0.8.8}
|
34
|
+
- {rvm: jruby-9.0.5.0, gemfile: gemfiles/embulk-latest}
|
34
35
|
|
35
36
|
|
36
37
|
allow_failures:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.2.2 - 2017-08-29
|
2
|
+
|
3
|
+
* [fixed] Added retry block to fix jiralicious authentication session [#48](https://github.com/treasure-data/embulk-input-jira/pull/48)
|
4
|
+
|
1
5
|
## 0.2.1 - 2016-04-13
|
2
6
|
|
3
7
|
* [fixed] Fix to retry when JIRA returns 503 reponse [#45](https://github.com/treasure-data/embulk-input-jira/pull/45)
|
data/embulk-input-jira.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "embulk-input-jira"
|
3
|
-
spec.version = "0.2.
|
3
|
+
spec.version = "0.2.2"
|
4
4
|
spec.authors = ["uu59", "yoshihara"]
|
5
5
|
spec.summary = "Jira input plugin for Embulk"
|
6
6
|
spec.description = "Loads records from Jira."
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.add_dependency 'parallel', ['~> 1.6.0']
|
17
17
|
spec.add_dependency 'perfect_retry', ['~> 0.3']
|
18
18
|
spec.add_development_dependency 'bundler', ['~> 1.0']
|
19
|
-
spec.add_development_dependency 'rake', ['
|
19
|
+
spec.add_development_dependency 'rake', ['< 11.0']
|
20
20
|
spec.add_development_dependency 'rspec', "~> 3.2.0"
|
21
21
|
spec.add_development_dependency 'embulk', ["~> 0.8.7"]
|
22
22
|
spec.add_development_dependency 'simplecov'
|
@@ -128,13 +128,14 @@ describe Embulk::Input::JiraApi::Client do
|
|
128
128
|
let(:block) { proc{ MultiJson.load("<title>#{title}</title>")} }
|
129
129
|
before { allow(Embulk.logger).to receive(:warn) }
|
130
130
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
end
|
131
|
+
# Disable this test to enable retry for 401
|
132
|
+
# context "Unauthorized" do
|
133
|
+
# let(:title) { "Unauthorized (401)" }
|
134
|
+
#
|
135
|
+
# it do
|
136
|
+
# expect { subject }.to raise_error(Embulk::ConfigError)
|
137
|
+
# end
|
138
|
+
# end
|
138
139
|
|
139
140
|
context "Unavailable" do
|
140
141
|
let(:title) { "Atlassian Cloud Notifications - Page Unavailable"}
|
data/spec/embulk_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -3,18 +3,19 @@ require "bundler/setup"
|
|
3
3
|
|
4
4
|
Bundler.require(:runtime, :development)
|
5
5
|
|
6
|
-
require "embulk/command/embulk_run"
|
7
6
|
require "embulk"
|
8
7
|
Embulk.setup
|
9
8
|
|
10
9
|
Dir["./spec/support/**/*.rb"].each{|file| require file }
|
11
10
|
|
12
|
-
require "codeclimate-test-reporter"
|
13
|
-
CodeClimate::TestReporter.start
|
14
|
-
|
15
11
|
if ENV["COVERAGE"]
|
16
|
-
|
17
|
-
|
12
|
+
if ENV["CI"]
|
13
|
+
require "codeclimate-test-reporter"
|
14
|
+
CodeClimate::TestReporter.start
|
15
|
+
else
|
16
|
+
require 'simplecov'
|
17
|
+
SimpleCov.start 'test_frameworks'
|
18
|
+
end
|
18
19
|
end
|
19
20
|
|
20
21
|
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-jira
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uu59
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,17 +70,17 @@ dependencies:
|
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "<"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '11.0'
|
76
76
|
name: rake
|
77
77
|
prerelease: false
|
78
78
|
type: :development
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - "<"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '11.0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.
|
222
|
+
rubygems_version: 2.6.6
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Jira input plugin for Embulk
|