magellan-cli 0.6.1 → 0.6.2

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: c2ba540ea2529d783f14d3628225f37692e04f3c
4
- data.tar.gz: 26ca454236298f588565961a29c716cc11848222
3
+ metadata.gz: bab0dd77260b7d366397bd02fb6f4766b4ba7f47
4
+ data.tar.gz: 152e8e61b2bcdac3c7dc7fe1fe27e8a1688a67f1
5
5
  SHA512:
6
- metadata.gz: 74efcf40e995664628987dc865a6ecc3be7d834100ae7be1ffcb98af2d37538e0ab035f9a06e867338792ffd3b63d4b27a95d8de665560dcf36b17b6a39675c9
7
- data.tar.gz: bf52789d27406ab0ae831e59a96997c24ffac4a09dedc401f09443c9fad88904efa1c80aafc7c62caf1900943e5c753e6cea03eac19dd8a0b4c2cfe80bc0cc49
6
+ metadata.gz: 8b4c3d9947f0f1ddf908e590292578c6710f00cfff5090e9dcf9abcbf4a057d4fabd947a6c0480e77a4877be67fbf139cf54d74be9199542ecdcc86baa761af4
7
+ data.tar.gz: 0404b4013395496b738756d993c63f2e94c9deb72850d51128547b80d7afb9b419897bdd3eac96119209cee3fe80a0b6b2aabff6c42572e843174fd0d6a4cb31
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.6.1)
4
+ magellan-cli (0.6.2)
5
5
  activesupport (~> 4.1.4)
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -98,7 +98,7 @@ module Magellan
98
98
  # @return [Object] レスポンスのBODYをJSONとしてパースした結果オブジェクト
99
99
  def get_json(rel_path, params = {})
100
100
  http_access do |api|
101
- api.get_json(rel_path, params = {})
101
+ api.get_json(rel_path, params)
102
102
  end
103
103
  end
104
104
 
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  end
@@ -29,4 +29,17 @@ describe Magellan::Cli::Resources::Organization do
29
29
  end
30
30
  end
31
31
 
32
+ describe :delete do
33
+ let(:org_id){ 5 }
34
+ let(:org_name){ "org5" }
35
+ let(:organization_list_response) { [ { "id" => org_id, "name" => org_name } ] }
36
+ before do
37
+ allow(http_conn).to receive(:get_json).with("/admin/magellan~auth~organization.json", {"f[name][2][o]"=>"is", "f[name][2][v]"=> org_name}).and_return(organization_list_response)
38
+ allow(http_conn).to receive(:delete).with("/admin/magellan~auth~organization/5/delete")
39
+ end
40
+ it do
41
+ cmd.delete(org_name)
42
+ end
43
+ end
44
+
32
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magellan-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm2000