magellan-cli 0.7.4 → 0.7.5

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: 8837c48a25aaa438bece6b35bff3b7f9cdf5510f
4
- data.tar.gz: 23e784964ad970648a0f26f32932b8c559419bed
3
+ metadata.gz: 66841e41672c874e98cec2d212f62a2c58ef7f35
4
+ data.tar.gz: 7791ac28ef42d6184070379ecd71a9518c555ec3
5
5
  SHA512:
6
- metadata.gz: 61a705b8f92a3c5a9f41cac08ce9c5684579f8a0bcb6837a92f84106fdc0d823b15d4fb710b0cc57152c70e830891e2cd62a6b99b660dffc35ed596254077293
7
- data.tar.gz: 4f628308d86e54518cfd3aff48590f82cb06c89be1ab9020bca4e81b460f4d561dd869635c00083b925af4e20b00e44c452f7460067e2a550307713600911130
6
+ metadata.gz: 5cc5fd4b7abbd7aeed50e36368a98fc2135b7c0cbd722c435fbededdfbc718f35d8cc4aad960482f93543d0d91289e6e3ac0729b8bf164f6cfd27211ad8dca43
7
+ data.tar.gz: 52cce928eba021a3859028bc5e10ce3f6f7dad3cb2171129880ad85ed1558a0d6b6c9f755b1d389cdff3073ebb62ac81332923b943e41bcdda0fb2d5744cc055
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.7.4)
4
+ magellan-cli (0.7.5)
5
5
  activesupport (~> 4.1.4)
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -91,7 +91,7 @@ GEM
91
91
  simplecov-html (0.8.0)
92
92
  slop (3.5.0)
93
93
  text-table (1.2.4)
94
- thread_safe (0.3.4)
94
+ thread_safe (0.3.5)
95
95
  tzinfo (1.2.2)
96
96
  thread_safe (~> 0.1)
97
97
 
@@ -16,7 +16,7 @@ module Magellan
16
16
  def update(attrs)
17
17
  s = load_selection!(self.class)
18
18
  attrs = JSON.parse(File.readable?(attrs) ? File.read(attrs) : attrs)
19
- put_json("/admin/#{resource_key}/#{s['id']}/edit", {"magellan_auth_authority" => attrs})
19
+ put_json("/admin/#{resource_key}/#{s['id']}/edit.json", {"magellan_auth_authority" => attrs})
20
20
  end
21
21
 
22
22
  desc "create PROJECT_ROLE STAGE_ROLE STAGE_TYPE", I18n.t(:create, scope: [:resources, :authority, :cmd], resource_name: resource_name)
@@ -67,7 +67,7 @@ module Magellan
67
67
  def delete(id)
68
68
  q = build_query("id" => id).update(default_query)
69
69
  r = get_first_result!(self.class.resource_name, id, "/admin/#{resource_key}.json", q)
70
- super("/admin/#{resource_key}/#{r['id']}/delete")
70
+ super("/admin/#{resource_key}/#{r['id']}/delete.json")
71
71
  log_success("OK")
72
72
  end
73
73
  end
@@ -63,7 +63,7 @@ module Magellan
63
63
  def delete(version)
64
64
  q = build_query("version" => version).update(default_query)
65
65
  r = get_first_result!(self.class.resource_name, version, "/admin/#{resource_key}.json", q)
66
- super("/admin/#{resource_key}/#{r['id']}/delete")
66
+ super("/admin/#{resource_key}/#{r['id']}/delete.json")
67
67
  log_success("OK")
68
68
  end
69
69
 
@@ -17,7 +17,7 @@ module Magellan
17
17
  def update(attrs)
18
18
  s = load_selection!(self.class)
19
19
  attrs = JSON.parse(File.readable?(attrs) ? File.read(attrs) : attrs)
20
- put_json("/admin/project/#{s['id']}/edit", {"project" => attrs})
20
+ put_json("/admin/project/#{s['id']}/edit.json", {"project" => attrs})
21
21
  end
22
22
 
23
23
  desc "create NAME", I18n.t(:create, scope: [:resources, :common, :cmd], resource_name: resource_name)
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.7.4"
3
+ VERSION = "0.7.5"
4
4
  end
5
5
  end
@@ -35,7 +35,7 @@ describe Magellan::Cli::Resources::Organization do
35
35
  let(:organization_list_response) { [ { "id" => org_id, "name" => org_name } ] }
36
36
  before do
37
37
  allow(http_conn).to receive(:get_json).with("/admin/magellan~auth~organization.json", {"f[name][5][o]"=>"is", "f[name][5][v]"=> org_name}).and_return(organization_list_response)
38
- allow(http_conn).to receive(:delete).with("/admin/magellan~auth~organization/5/delete")
38
+ allow(http_conn).to receive(:delete).with("/admin/magellan~auth~organization/5/delete.json")
39
39
  end
40
40
  it do
41
41
  cmd.delete(org_name)
@@ -65,7 +65,7 @@ describe Magellan::Cli::Resources::Team do
65
65
  "f[organization][16][v]"=>1
66
66
  }
67
67
  allow(http_conn).to receive(:get_json).with("/admin/magellan~auth~team.json", expected_params).and_return(team_list_response)
68
- allow(http_conn).to receive(:delete).with("/admin/magellan~auth~team/5/delete")
68
+ allow(http_conn).to receive(:delete).with("/admin/magellan~auth~team/5/delete.json")
69
69
  end
70
70
  it do
71
71
  cmd.delete(team_name)
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.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm2000