crowbar-client 3.1.9 → 3.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c3b0945cc84a892928ce8a17d0036b1e0b43d51
4
- data.tar.gz: 9ee92ad11d364e8b17bc157730af4d7f0763a6f8
3
+ metadata.gz: 22661458d795d50caead7ff41fab34c8f50a44f3
4
+ data.tar.gz: c3434dbf3feed9719041c015a320bd13839fc926
5
5
  SHA512:
6
- metadata.gz: e8e4ad8d942f1f288fc3edffd6853db5c7c43650415583a6f2faed09c8f8886d4376873304c71430667633167fb9ce89039a322a376d17836b8eb18684914bba
7
- data.tar.gz: 5208d20b6adbb5cbcc5e8c569c389131051dc2a4c6904016a0c2994a650460309dc54340cb3c3cc925f25b8a4e1074b1f7f7e13efc0f86820626f105cafd1960
6
+ metadata.gz: d7df1302b285ddd39869d2a66e3a6768d2518f73278f98d5d9d134867f89bbd6ef8d030a4ad24db8ce72cb1852275dccaeeb669ee8a8f9141a8236c0747c5995
7
+ data.tar.gz: cf06bcade327275c9c4202dc5f9ce0ae2c296cda86a7e734ebeefb193fa0ed0cecd8f07eb84fab0f4a63ce319ccac06a4b7d3c2636bcf8badf87f8c7fc5d3de1
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.0](https://github.com/crowbar/crowbar-client/releases/tag/v3.2.0) - 2017-02-10
4
+
5
+ * ENHANCEMENT
6
+ * Remove experimental marker from upgrade subcommand (@rsalevsky)
7
+ * BUGFIX
8
+ * Fix json encoding for post request (@rhafer)
9
+ * Print nodes status only when nodes attribute is given (@jsuchome)
10
+ * Fix content-type sent from crowbarctl to v2 APIs (@skazi0)
11
+
3
12
  ## [3.1.9](https://github.com/crowbar/crowbar-client/releases/tag/v3.1.9) - 2017-02-03
4
13
 
5
14
  * ENHANCEMENT
@@ -149,11 +149,9 @@ module Crowbar
149
149
  "Installer specific commands, call without params for help"
150
150
  subcommand "installer", Crowbar::Client::App::Installer
151
151
 
152
- if !(Crowbar::Client::Util::ApiVersion.default == 1.0) || Config.options.experimental
153
- desc "upgrade [COMMANDS]",
154
- "Upgrade specific commands, call without params for help"
155
- subcommand "upgrade", Crowbar::Client::App::Upgrade
156
- end
152
+ desc "upgrade [COMMANDS]",
153
+ "Upgrade specific commands, call without params for help"
154
+ subcommand "upgrade", Crowbar::Client::App::Upgrade
157
155
 
158
156
  desc "database [COMMANDS]",
159
157
  "Database specific commands, call without params for help"
@@ -71,10 +71,10 @@ module Crowbar
71
71
  banner: "<filter>",
72
72
  desc: "Filter by criteria, display only data that contains filter"
73
73
 
74
- def status(nodes = false)
74
+ def status(component = nil)
75
75
  Command::Upgrade::Status.new(
76
76
  *command_params(
77
- nodes: nodes
77
+ nodes: component == "nodes"
78
78
  )
79
79
  ).execute
80
80
  rescue => e
@@ -50,7 +50,7 @@ module Crowbar
50
50
  when :post
51
51
  [
52
52
  method,
53
- content
53
+ content.to_json
54
54
  ]
55
55
  when :put
56
56
  [
@@ -33,7 +33,7 @@ module Crowbar
33
33
  else
34
34
  {
35
35
  "Accept" => "application/vnd.crowbar.v#{version}+json",
36
- "Content-Type" => "application/vnd.crowbar.v#{version}+json"
36
+ "Content-Type" => "application/json"
37
37
  }
38
38
  end
39
39
  end
@@ -28,12 +28,12 @@ module Crowbar
28
28
  #
29
29
  # Minor version
30
30
  #
31
- MINOR = 1
31
+ MINOR = 2
32
32
 
33
33
  #
34
34
  # Patch version
35
35
  #
36
- PATCH = 9
36
+ PATCH = 0
37
37
 
38
38
  #
39
39
  # Optional suffix
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowbar-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.9
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Boerger
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-02-03 00:00:00.000000000 Z
13
+ date: 2017-02-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler