magellan-cli 0.7.0 → 0.7.1

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: c2d8dac5043639dd08a260c4e4f4bd55848171a4
4
- data.tar.gz: 1a070335aa0cfa2be3e34143b036a55974d4bbcb
3
+ metadata.gz: f77c5031315c63fbe3cca5882bab0f0e2c40a77d
4
+ data.tar.gz: 0ede35a0ea73bd4d5b889d8b59ab2cf439443045
5
5
  SHA512:
6
- metadata.gz: da01dfe25e7aea0be034862c7cf068ee778923e21ae684ecfa02f14380c3327d9c17a9d1da0c9f7d8fe5fff2f23d310ec5c7c1336806d6e28c3c0453b8b855b0
7
- data.tar.gz: afaf729d422cf01fb4efac5691b591f9e602666889f014dac5bee51c12dd7f11095169e3ef04cafa42295b04a5e8841c097c954bc4933bc71be76841ee6465a9
6
+ metadata.gz: 779eb8b284712a6c0d4c2ccee7740995ce815ff4bb1589ce0c59d37f04a1f3b7364e50a8435c9904c000169b3341bc5a6e636e5b96b3bc48a05c18f9ee9af099
7
+ data.tar.gz: 0e472548dcba042f98b7f877aa0fca00dc4e50dfcc8813bb0e25db74173cfd3e8c3d5f64b55bfb45971e9206bfdafc48019f8556ea5cc586bdddb9ea5a2b46ff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.7.0)
4
+ magellan-cli (0.7.1)
5
5
  activesupport (~> 4.1.4)
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -9,7 +9,7 @@ module Magellan
9
9
  self.resource_key = "magellan~auth~authority"
10
10
  self.resource_dependency = { "team" => Team.parameter_name }
11
11
  self.hidden_fields = %w[auth_type created_at updated_at].map(&:freeze).freeze
12
- self.field_associations = {"team_id" => {name: "team", class: "Organization"},
12
+ self.field_associations = {"team_id" => {name: "team", class: "Team"},
13
13
  "auth_id" => {name: "project", class: "Project"} }
14
14
 
15
15
  desc "update ATTRIBUTES", I18n.t(:update, scope: [:resources, :common, :cmd], resource_name: resource_name)
@@ -48,7 +48,10 @@ module Magellan
48
48
  "stage_type" => stage_type_map[stage_type],
49
49
  }
50
50
  }
51
- post_json("/admin/#{resource_key}/new.json", params)
51
+ ret = post_json("/admin/#{resource_key}/new.json", params)
52
+ if ret and ret["id"]
53
+ select ret["id"]
54
+ end
52
55
  end
53
56
 
54
57
  desc "select ID", I18n.t(:select, scope: [:resources, :authority, :cmd], resource_name: resource_name)
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magellan-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm2000
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-09 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient