rancher-api 0.3.8 → 0.4.0

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: 69a6c3ad0e66f587ef7c090231e136dae1eff7e2
4
- data.tar.gz: 6a53f3f8f6787d21182880156c801d44326f2021
3
+ metadata.gz: 41e9ea6dc2fd3f0013b51ffb2747c422171202df
4
+ data.tar.gz: 27918c5db8f5178f148f04f30a705d1ca6fb537d
5
5
  SHA512:
6
- metadata.gz: 224e0a6906eb746047c3c88e3570bc6a8b1e7ddc691c0bfd43d854615ce3d916c8ed25199e7bbc4a634d713c55ca9d3e0f7f0a6c4fac42ab69b185799e35b113
7
- data.tar.gz: 8251f67c299f13a58b4e826c5e51779543fec14daca31fe370654b44c148c93ea44989a00089a0e78bd28c86e89ccec2d9c2ccfa7c15a2e276716fe35ffa4198
6
+ metadata.gz: 7d59d0c4e8f3fcca5552a8e1928769ea7a8a154179ec4e4ee57587042fb8e5cf2e8618f7c11acb224de37540f4a98cd314383920f2cca0630ed895c880ae9766
7
+ data.tar.gz: c9a8131560d0a92e8f58cca58470d9f6448310a9b9914d758238ba61d8b6046f8d84dc6e4dc91b0ff0e1de43a5ffd36a0b2c4e0363e2c229310303a272da5cf6
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.2
1
+ 2.3.1
data/CHANGELOG.md CHANGED
@@ -2,12 +2,15 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [0.4.0] - 2016-07-14
6
+
7
+ - update dependencies to work with Rails 5
8
+ - update README.md
5
9
 
6
10
  ## [0.3.8] - 2016-03-15
7
11
 
8
12
  - add Ipaddress class and association to Host class
9
13
 
10
-
11
14
  ## [0.3.7] - 2016-03-15
12
15
 
13
16
  - fix an issue with RANCHER_URL env variable (append `/v1/` to the RANCHER_URL env variable if it exists). This way RANCHER_URL becomes truly `rancher-compose`-compatible.
data/Gemfile.lock CHANGED
@@ -1,39 +1,40 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rancher-api (0.3.8)
4
+ rancher-api (0.4.0)
5
5
  faraday_middleware
6
6
  faye-websocket
7
- her (~> 0.7.6)
7
+ her (~> 0.8.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (4.2.6)
13
- activesupport (= 4.2.6)
12
+ activemodel (4.2.7)
13
+ activesupport (= 4.2.7)
14
14
  builder (~> 3.1)
15
- activesupport (4.2.6)
15
+ activesupport (4.2.7)
16
16
  i18n (~> 0.7)
17
17
  json (~> 1.7, >= 1.7.7)
18
18
  minitest (~> 5.1)
19
19
  thread_safe (~> 0.3, >= 0.3.4)
20
20
  tzinfo (~> 1.1)
21
21
  addressable (2.3.8)
22
+ awesome_print (1.7.0)
22
23
  builder (3.2.2)
23
24
  byebug (6.0.0)
24
25
  coderay (1.1.0)
25
26
  crack (0.4.2)
26
27
  safe_yaml (~> 1.0.0)
27
28
  diff-lcs (1.2.5)
28
- eventmachine (1.2.0)
29
+ eventmachine (1.2.0.1)
29
30
  faraday (0.9.2)
30
31
  multipart-post (>= 1.2, < 3)
31
32
  faraday_middleware (0.10.0)
32
33
  faraday (>= 0.7.4, < 0.10)
33
- faye-websocket (0.10.3)
34
+ faye-websocket (0.10.4)
34
35
  eventmachine (>= 0.12.0)
35
36
  websocket-driver (>= 0.5.1)
36
- her (0.7.6)
37
+ her (0.8.1)
37
38
  activemodel (>= 3.0.0, <= 4.3.0)
38
39
  activesupport (>= 3.0.0, <= 4.3.0)
39
40
  faraday (>= 0.8, < 1.0)
@@ -41,8 +42,8 @@ GEM
41
42
  i18n (0.7.0)
42
43
  json (1.8.3)
43
44
  method_source (0.8.2)
44
- minitest (5.8.4)
45
- multi_json (1.11.2)
45
+ minitest (5.9.0)
46
+ multi_json (1.12.1)
46
47
  multipart-post (2.0.0)
47
48
  pry (0.10.1)
48
49
  coderay (~> 1.1.0)
@@ -71,7 +72,7 @@ GEM
71
72
  webmock (1.21.0)
72
73
  addressable (>= 2.3.6)
73
74
  crack (>= 0.3.2)
74
- websocket-driver (0.6.3)
75
+ websocket-driver (0.6.4)
75
76
  websocket-extensions (>= 0.1.0)
76
77
  websocket-extensions (0.1.2)
77
78
 
@@ -79,6 +80,7 @@ PLATFORMS
79
80
  ruby
80
81
 
81
82
  DEPENDENCIES
83
+ awesome_print
82
84
  bundler (~> 1.10)
83
85
  byebug
84
86
  pry
@@ -89,4 +91,4 @@ DEPENDENCIES
89
91
  webmock (= 1.21.0)
90
92
 
91
93
  BUNDLED WITH
92
- 1.10.5
94
+ 1.12.5
data/README.md CHANGED
@@ -38,7 +38,7 @@ Or install it yourself as:
38
38
  ## Rancher Version
39
39
 
40
40
  Tested with:
41
- Rancher v0.63.1
41
+ Rancher v1.1.0
42
42
 
43
43
  ## Usage
44
44
 
@@ -180,8 +180,11 @@ puts container.execute(['bundle', 'exec', 'rake', 'db:create', 'db:migrate']).re
180
180
 
181
181
  ## Development
182
182
 
183
+ ### Console
183
184
  To load environment with pry run `pry -I lib -r rancher/api`
184
185
 
186
+ Then execute `Rancher::Api.setup!` to configure rancher credentials from environment variables and load models.
187
+
185
188
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
186
189
 
187
190
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
data/bin/console CHANGED
@@ -1,14 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "rancher/api"
3
+ require 'bundler/setup'
4
+ require 'rancher/api'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
8
8
 
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
9
+ Rancher::Api.configure do |config|
10
+ config.url = RANCHER_URL
11
+ config.access_key = RANCHER_ACCESS_KEY
12
+ config.secret_key = RANCHER_SECRET_KEY
13
+ end
12
14
 
13
- require "irb"
14
- IRB.start
15
+ # (If you use this, don't forget to add pry to your Gemfile!)
16
+ require 'pry'
17
+ Pry.start
@@ -1,3 +1,4 @@
1
+ # These are 'Stacks' in the UI
1
2
  module Rancher
2
3
  module Api
3
4
  class Environment
@@ -1,3 +1,4 @@
1
+ # These are 'Environments' in the UI
1
2
  module Rancher
2
3
  module Api
3
4
  class Project
@@ -1,5 +1,5 @@
1
1
  module Rancher
2
2
  module Api
3
- VERSION = "0.3.8"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
data/rancher-api.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'her', '~> 0.7.6'
30
+ spec.add_dependency 'her', '~> 0.8.1'
31
31
  spec.add_dependency 'faye-websocket'
32
32
  spec.add_dependency 'faraday_middleware'
33
33
 
@@ -38,4 +38,5 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency 'byebug'
39
39
  spec.add_development_dependency 'webmock', '1.21.0'
40
40
  spec.add_development_dependency 'vcr', '2.9.3'
41
+ spec.add_development_dependency 'awesome_print'
41
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rancher-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kurkin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-16 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: her
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.6
19
+ version: 0.8.1
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.7.6
26
+ version: 0.8.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faye-websocket
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
152
  version: 2.9.3
153
+ - !ruby/object:Gem::Dependency
154
+ name: awesome_print
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  description: Ruby gem to easily connect to Rancher API. Via this gem you can do anything
154
168
  that API lets you to do it
155
169
  email:
@@ -210,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
224
  version: '0'
211
225
  requirements: []
212
226
  rubyforge_project:
213
- rubygems_version: 2.4.5
227
+ rubygems_version: 2.5.1
214
228
  signing_key:
215
229
  specification_version: 4
216
230
  summary: Easily connect to Rancher API!