digdag_client 0.0.3 → 0.0.4

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: 79111f57083522c6ccfc8fa093c63a71002577ad
4
- data.tar.gz: 53cb96f19577040610aafc7b2000f50394833b63
3
+ metadata.gz: fa7ab06202cd782c6ea41f73e7e90f0466a637da
4
+ data.tar.gz: bcad5e3e44a2bee6c64b703939a50e902d864722
5
5
  SHA512:
6
- metadata.gz: a357abb37ca7165398ef86c77f040307a9d1020245371841612b7aa96dee8d18197aafb1055a6394a67edbdc056f2423c4f7392095ecbbf767c7094545a31e82
7
- data.tar.gz: 55d30956b1c472167057f83d6f31291801d5fa49dc49bb69a4ddc0ae281a1a22c2daa11ef936b3c2ccc7f9a7eb2e39c8102beceff012724765598933a5020ebf
6
+ metadata.gz: 95d76bbd4860c9ddb499554c9928086d93fa86a3d851b39aa3b748df9b2dfbc9ac7fe7befbe15236b85bf4b2435cb4bfb8225bb71f2716a56f66c25009c5972b
7
+ data.tar.gz: 0a86e82cc2c2567f427bff6f69345b05b0ed4503c20b1d720bc37d644bdaf61b828fbefbc8f32e75d39f98f3c7c8d73adabd2f40793a7ab003c7292880cff8d4
@@ -3,7 +3,7 @@ require File.expand_path('../lib/digdag_client/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
 
6
- spec.add_runtime_dependency('faraday', ['~>0.9.2'])
6
+ spec.add_runtime_dependency('faraday', ['~>0.9'])
7
7
  spec.add_runtime_dependency('faraday_middleware', ['~> 0.11'])
8
8
 
9
9
  spec.name = "digdag_client"
@@ -16,7 +16,7 @@ module Digdag
16
16
  options[:task] = params[:task]
17
17
  end
18
18
 
19
- get("/logs/#{attempt_id}/files", params)
19
+ get("logs/#{attempt_id}/files", params)
20
20
  end
21
21
 
22
22
  def get_file(attempt_id, file_name)
@@ -25,7 +25,7 @@ module Digdag
25
25
  get("projects/#{id}/revisions")
26
26
  end
27
27
 
28
- def get_workflow_by_project(id, params)
28
+ def get_workflow(id, params)
29
29
  options = {}
30
30
  options[:name] = params[:name]
31
31
 
@@ -45,7 +45,7 @@ module Digdag
45
45
  get("projects/#{id}/workflows/#{name}", options)
46
46
  end
47
47
 
48
- def get_workflows_by_project(id, params={})
48
+ def get_workflows(id, params={})
49
49
  options = {}
50
50
 
51
51
  if params[:name]
@@ -59,15 +59,15 @@ module Digdag
59
59
  get("projects/#{id}/workflows", options)['workflows']
60
60
  end
61
61
 
62
- def get_schedules_by_project(id)
62
+ def get_schedules(id)
63
63
  get("projects/#{id}/sessions")['sessions']
64
64
  end
65
65
 
66
- def get_sessions_by_project
66
+ def get_sessions
67
67
  # TODO
68
68
  end
69
69
 
70
- def get_archive_by_project
70
+ def get_archive
71
71
  # TODO
72
72
  end
73
73
 
@@ -2,13 +2,13 @@ module Digdag
2
2
  class Client
3
3
  module Version
4
4
  def get_version
5
- get('/version')
5
+ get('version')
6
6
  end
7
7
 
8
8
  def check_client_version(params={})
9
9
  options = {}
10
10
  options[:client] = params[:client]
11
- get('/version/check', options)
11
+ get('version/check', options)
12
12
  end
13
13
  end
14
14
  end
@@ -7,7 +7,7 @@ module Digdag
7
7
  options[:project] = params[:project]
8
8
  options[:name] = params[:name]
9
9
 
10
- get('/workflow', options)
10
+ get('workflow', options)
11
11
  end
12
12
 
13
13
  def get_workflows(params={})
@@ -20,11 +20,11 @@ module Digdag
20
20
  options[:last_id] = params[:last_id]
21
21
  end
22
22
 
23
- get('/workflows', options)["workflows"]
23
+ get('workflows', options)["workflows"]
24
24
  end
25
25
 
26
26
  def get_workflow(id)
27
- get("/workflows/#{id}")
27
+ get("workflows/#{id}")
28
28
  end
29
29
  end
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module Digdag
2
- VERSION = '0.0.3'.freeze unless defined?(::Digdag::VERSION)
3
- end
2
+ VERSION = '0.0.4'.freeze unless defined?(::Digdag::VERSION)
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digdag_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - saicologic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-31 00:00:00.000000000 Z
11
+ date: 2018-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.2
19
+ version: '0.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.2
26
+ version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement