xplenty-api 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 05392101e682a9ca9670c788920800f0afc6228f
4
+ data.tar.gz: d714a059a105c27b3b1d4cacf0a6ca3cee2a2189
5
+ SHA512:
6
+ metadata.gz: 2ec1d82b24fd4f9f46663bae014db07ad73d4f60442fc959f23900f87fda0aa333ece0387cf1acecdec0cc1c68b4125769c28366fe046d6f4eaafbbd8c9ea31e
7
+ data.tar.gz: 75d5c0d12dd9fa79a712699bd3cc297204332c80c6d43260a26ea83ded28cfa593bd5b74b7447ab242f061dcb76451e844c096d995f7c43db545480592763f96
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xplenty-api (0.0.1)
5
- excon (~> 0.20.0)
4
+ xplenty-api (0.1.2)
5
+ excon (~> 0.58)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- excon (0.20.1)
10
+ excon (0.62.0)
11
11
  minitest (4.7.4)
12
12
  rake (10.0.4)
13
13
 
@@ -18,3 +18,6 @@ DEPENDENCIES
18
18
  minitest
19
19
  rake
20
20
  xplenty-api!
21
+
22
+ BUNDLED WITH
23
+ 1.16.3
data/README.md CHANGED
@@ -40,15 +40,10 @@ You will need to provide an active cluster when starting a new job. Save the clu
40
40
 
41
41
  This method returns the list of clusters that were created by users in your account.
42
42
  You can use this information to monitor and display your clusters and their statuses.
43
-
44
43
  ```ruby
45
44
  @xplenty.clusters # return all clusters
46
45
  ```
47
- XplentyAPI.listClusters() is shorthand for XplentyAPI.listClusters(new Properties()), which returns all clusters with no filtering.
48
- You can also pass property parameters which filter the clusters according to their status, and determine the order in which they'll be sorted.
49
- Only clusters which have the status passed in the PARAMETER_STATUS property will be returned, sorted according to the field passed in PARAMETER_SORT,
50
- in ascending or descending order according to the PARAMETER_DIRECTION property.
51
-
46
+ You can also pass parameters which filter the clusters according to their status, and determine the order in which they'll be sorted.
52
47
  ```ruby
53
48
  @xplenty.clusters(:status => 'terminated')
54
49
  @xplenty.clusters(:sort => 'created', :direction => 'desc')
@@ -77,10 +72,7 @@ This method returns information for all the jobs that have been created under yo
77
72
  ```ruby
78
73
  @xplenty.jobs
79
74
  ```
80
- XplentyAPI.listJobs() is shorthand for XplentyAPI.listJobs(new Properties()), which returns all jobs with no filtering.
81
75
  You can also pass property parameters which filter the jobs according to their status, and determine the order in which they'll be sorted.
82
- Only jobs which have the status passed in the PARAMETER_STATUS property will be returned, sorted according to the field passed in PARAMETER_SORT,
83
- in ascending or descending order according to the PARAMETER_DIRECTION property.
84
76
  ```ruby
85
77
  @xplenty.jobs(:status => 'idle')
86
78
  @xplenty.jobs(:status => 'completed', :sort => 'created_at', :direction => 'asc')
@@ -138,5 +130,13 @@ This call retrieves the list of users watching the specified job.
138
130
  ```ruby
139
131
  @xplenty.job_watchers(9032)
140
132
  ```
133
+ ## Contributing
134
+
135
+ 1. Fork it
136
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
137
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
138
+ 4. Push to the branch (`git push origin my-new-feature`)
139
+ 5. Create new Pull Request
140
+
141
141
  ## License
142
- Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
142
+ Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
@@ -1,5 +1,5 @@
1
1
  module Xplenty
2
2
  class API
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_runtime_dependency 'excon', '~>0.20.0'
19
+ s.add_runtime_dependency 'excon', '~> 0.58'
20
20
 
21
21
  s.add_development_dependency 'minitest'
22
22
  s.add_development_dependency 'rake'
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xplenty-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - xmpolaris (Chen ZhongXue)
@@ -10,54 +9,48 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-05-16 00:00:00.000000000 Z
12
+ date: 2018-08-19 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: excon
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
22
- version: 0.20.0
20
+ version: '0.58'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
30
- version: 0.20.0
27
+ version: '0.58'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: minitest
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: rake
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  description: Ruby Client for the Xplenty API
@@ -99,27 +92,26 @@ files:
99
92
  - xplenty.gemspec
100
93
  homepage: http://github.com/xplenty/xplenty.rb
101
94
  licenses: []
95
+ metadata: {}
102
96
  post_install_message:
103
97
  rdoc_options: []
104
98
  require_paths:
105
99
  - lib
106
100
  required_ruby_version: !ruby/object:Gem::Requirement
107
- none: false
108
101
  requirements:
109
- - - ! '>='
102
+ - - '>='
110
103
  - !ruby/object:Gem::Version
111
104
  version: '0'
112
105
  required_rubygems_version: !ruby/object:Gem::Requirement
113
- none: false
114
106
  requirements:
115
- - - ! '>='
107
+ - - '>='
116
108
  - !ruby/object:Gem::Version
117
109
  version: '0'
118
110
  requirements: []
119
111
  rubyforge_project:
120
- rubygems_version: 1.8.25
112
+ rubygems_version: 2.0.14.1
121
113
  signing_key:
122
- specification_version: 3
114
+ specification_version: 4
123
115
  summary: Ruby Client for the Xplenty API
124
116
  test_files:
125
117
  - test/test_cluster_watchers.rb