admin-vmc-plugin 0.0.4 → 0.0.5

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.
@@ -27,9 +27,12 @@ module VMCAdmin
27
27
  headers[k.downcase] = v
28
28
  end
29
29
 
30
- content = headers["content-type"] || :json
31
- accept = headers["accept"] || :json
32
-
30
+ content = headers["content-type"]
31
+ accept = headers["accept"]
32
+
33
+ content ||= :json if body
34
+ accept ||= :json unless [:Delete, :Head].include?(mode)
35
+
33
36
  res =
34
37
  client.base.request_path(
35
38
  Net::HTTP.const_get(mode),
@@ -1,3 +1,3 @@
1
1
  module VMCAdmin
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin-vmc-plugin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-09 00:00:00 -08:00
18
+ date: 2012-11-20 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -29,9 +29,9 @@ dependencies:
29
29
  hash: 15
30
30
  segments:
31
31
  - 0
32
- - 3
33
- - 14
34
- version: 0.3.14
32
+ - 4
33
+ - 0
34
+ version: 0.4.0
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: