td 0.16.8 → 0.16.9
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.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/lib/td/config.rb +1 -1
- data/lib/td/version.rb +1 -1
- data/spec/td/config_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6aea3ef4a96f7d2d1042cbf337e5f95288022f39
|
|
4
|
+
data.tar.gz: 7ab665de173e7ce66dfa7b4622cb4513dcef6426
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 114f5e1e8763474cb53cdead4f511dd30a988457c8d72e0115fe20f4a013aae7fdbee3c13e8a627381145e05db4d5bf584690bdf863bc9d6fe35bbae66be9b35
|
|
7
|
+
data.tar.gz: 61f72c29b14c70627680248852303d878a92ea571e140c4e5c60318944248367f6509df81b1c19553e4a271ee8ce4f9bc54747610f8263f7ef4cc3fa6d053581
|
data/ChangeLog
CHANGED
data/lib/td/config.rb
CHANGED
|
@@ -185,7 +185,7 @@ class Config
|
|
|
185
185
|
|
|
186
186
|
def self.workflow_endpoint
|
|
187
187
|
case self.endpoint_domain
|
|
188
|
-
when /\Aapi(-(?:staging|development))?(-[a-z0-9]+)?\.(connect\.)?(eu01\.)?treasuredata\.(com|co\.jp)\z/i
|
|
188
|
+
when /\Aapi(-(?:staging|development))?(-[a-z0-9]+)?\.(connect\.)?((?:eu01|ap02)\.)?treasuredata\.(com|co\.jp)\z/i
|
|
189
189
|
"https://api#{$1}-workflow#{$2}.#{$3}#{$4}treasuredata.#{$5}"
|
|
190
190
|
else
|
|
191
191
|
raise ConfigError, "Workflow is not supported for '#{self.endpoint}'"
|
data/lib/td/version.rb
CHANGED
data/spec/td/config_spec.rb
CHANGED
|
@@ -28,6 +28,10 @@ describe TreasureData::Config do
|
|
|
28
28
|
let(:api_endpoint){ 'api.eu01.treasuredata.com' }
|
|
29
29
|
it { is_expected.to eq 'https://api-workflow.eu01.treasuredata.com' }
|
|
30
30
|
end
|
|
31
|
+
context 'api.ap02.treasuredata.com' do
|
|
32
|
+
let(:api_endpoint){ 'api.ap02.treasuredata.com' }
|
|
33
|
+
it { is_expected.to eq 'https://api-workflow.ap02.treasuredata.com' }
|
|
34
|
+
end
|
|
31
35
|
|
|
32
36
|
context 'api-hoge.connect.treasuredata.com' do
|
|
33
37
|
let(:api_endpoint){ 'api-hoge.connect.treasuredata.com' }
|
|
@@ -50,6 +54,10 @@ describe TreasureData::Config do
|
|
|
50
54
|
let(:api_endpoint){ 'api-staging.eu01.treasuredata.com' }
|
|
51
55
|
it { is_expected.to eq 'https://api-staging-workflow.eu01.treasuredata.com' }
|
|
52
56
|
end
|
|
57
|
+
context 'api-staging.ap02.treasuredata.com' do
|
|
58
|
+
let(:api_endpoint){ 'api-staging.ap02.treasuredata.com' }
|
|
59
|
+
it { is_expected.to eq 'https://api-staging-workflow.ap02.treasuredata.com' }
|
|
60
|
+
end
|
|
53
61
|
|
|
54
62
|
context 'api-development.treasuredata.com' do
|
|
55
63
|
let(:api_endpoint){ 'api-development.treasuredata.com' }
|
|
@@ -63,6 +71,10 @@ describe TreasureData::Config do
|
|
|
63
71
|
let(:api_endpoint){ 'api-development.eu01.treasuredata.com' }
|
|
64
72
|
it { is_expected.to eq 'https://api-development-workflow.eu01.treasuredata.com' }
|
|
65
73
|
end
|
|
74
|
+
context 'api-development.ap02.treasuredata.com' do
|
|
75
|
+
let(:api_endpoint){ 'api-development.ap02.treasuredata.com' }
|
|
76
|
+
it { is_expected.to eq 'https://api-development-workflow.ap02.treasuredata.com' }
|
|
77
|
+
end
|
|
66
78
|
|
|
67
79
|
context 'ybi.jp-east.idcfcloud.com' do
|
|
68
80
|
let(:api_endpoint){ 'ybi.jp-east.idcfcloud.com' }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: td
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.16.
|
|
4
|
+
version: 0.16.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Treasure Data, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-04-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: msgpack
|