digdag_client 0.0.2 → 0.0.3

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: 0dbabc15b8369b816ae8ce56d519e0660007b396
4
- data.tar.gz: 9a66fc8b390ab4eb68636f3ffe71744603a2d98d
3
+ metadata.gz: 79111f57083522c6ccfc8fa093c63a71002577ad
4
+ data.tar.gz: 53cb96f19577040610aafc7b2000f50394833b63
5
5
  SHA512:
6
- metadata.gz: 5eddd85a7d42c786b85f9d064a1cd5efaff83b9bf78f6b54ebec4db24b2021701dcbd46863d93cdc83b518c23dd185c17d0e7499b7b789df5b4cfaa3267ee0dd
7
- data.tar.gz: da5f07535976b9a32f51eb4474c155fdd16348d5ec235f199417d2be925132f4abe723b560aa379a3d44c7f8e7f5f1d660eab5596c524719c48220cafee2e5fe
6
+ metadata.gz: a357abb37ca7165398ef86c77f040307a9d1020245371841612b7aa96dee8d18197aafb1055a6394a67edbdc056f2423c4f7392095ecbbf767c7094545a31e82
7
+ data.tar.gz: 55d30956b1c472167057f83d6f31291801d5fa49dc49bb69a4ddc0ae281a1a22c2daa11ef936b3c2ccc7f9a7eb2e39c8102beceff012724765598933a5020ebf
data/README.md CHANGED
@@ -17,7 +17,24 @@ gem install digdag_client
17
17
 
18
18
  ```
19
19
  require 'digdag_client'
20
+
21
+ client = Digdag::Client.new
22
+ client.get_sessions
23
+ ```
24
+
25
+ default endpoint: http://localhost:65432/
26
+
27
+ ## Change endpoint
28
+
29
+
20
30
  ```
31
+ client = Digdag::Client.new(
32
+ endpoint: 'http://localhost:8000/'
33
+ )
34
+ ```
35
+
36
+ # Document
37
+ http://www.rubydoc.info/gems/digdag_client/0.0.2/Digdag/Client
21
38
 
22
39
  # Implemented
23
40
 
@@ -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.12'])
6
+ spec.add_runtime_dependency('faraday', ['~>0.9.2'])
7
7
  spec.add_runtime_dependency('faraday_middleware', ['~> 0.11'])
8
8
 
9
9
  spec.name = "digdag_client"
@@ -25,7 +25,7 @@ module Digdag
25
25
  get("projects/#{id}/revisions")
26
26
  end
27
27
 
28
- def get_workflow(id, params)
28
+ def get_workflow_by_project(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(id, params={})
48
+ def get_workflows_by_project(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(id)
62
+ def get_schedules_by_project(id)
63
63
  get("projects/#{id}/sessions")['sessions']
64
64
  end
65
65
 
66
- def get_sessions
66
+ def get_sessions_by_project
67
67
  # TODO
68
68
  end
69
69
 
70
- def get_archive
70
+ def get_archive_by_project
71
71
  # TODO
72
72
  end
73
73
 
@@ -1,3 +1,3 @@
1
1
  module Digdag
2
- VERSION = '0.0.2'.freeze unless defined?(::Digdag::VERSION)
2
+ VERSION = '0.0.3'.freeze unless defined?(::Digdag::VERSION)
3
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.2
4
+ version: 0.0.3
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-21 00:00:00.000000000 Z
11
+ date: 2017-07-31 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.12'
19
+ version: 0.9.2
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.12'
26
+ version: 0.9.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement