magellan-cli 0.5.5 → 0.5.6

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: 03189f4a29db6e906722930292cd0a8c04a0f427
4
- data.tar.gz: d04ed9c6aed9d01a96952406d351284a76f92628
3
+ metadata.gz: d33b126e435338ecc9d7bed90c0cb6ce9a2ff65c
4
+ data.tar.gz: a15fe182f8df117629a52aa7a96c08b297b9179b
5
5
  SHA512:
6
- metadata.gz: 6072a300a3dead9f8c23f3a9ca6f42476ffedad62957d5c9fd29f6f3993b3136e0a60f599c4b7fe76daf2040db7522f1318ab985a87581613c17bda914eff299
7
- data.tar.gz: 673aa8ed35d8ef3912ef4ef1b316c92ffe425cf956a25e083affdc8dc1fffa979e3141bf589c789107644a1be7ff360860bb8348d477372cdd14ff8c3d0d3edc
6
+ metadata.gz: b6bd31bd8b98aaf2e553adcb1b854b80c49e9f9970e1dd07d4655b827ba9addc2b5227eeacc6b52abff1e729878c5607eefa8d5b054a17c1a21047b19ef27a79
7
+ data.tar.gz: f363a3026b60feff98b6f49bf49f2acd8c2a2460c33eaeec00ce844f5c6d6604318ddf62a340526c37c4cb6b647cec0dc5f91477eff71e1d22874e2195c0d2c9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.5.5)
4
+ magellan-cli (0.5.6)
5
5
  activesupport (~> 4.1.4)
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -34,12 +34,12 @@ GEM
34
34
  docile (1.1.5)
35
35
  faraday (0.9.1)
36
36
  multipart-post (>= 1.2, < 3)
37
- groovenauts-thor (0.19.1)
37
+ groovenauts-thor (0.19.1.1)
38
38
  httpclient (2.6.0.1)
39
39
  i18n (0.7.0)
40
40
  json (1.8.2)
41
- jwt (1.2.0)
42
- libmagellan (0.2.2)
41
+ jwt (1.2.1)
42
+ libmagellan (0.2.3)
43
43
  activesupport
44
44
  mqtt (~> 0.3.1)
45
45
  signet (~> 0.5.0)
@@ -49,7 +49,7 @@ GEM
49
49
  mqtt (0.3.1)
50
50
  multi_json (1.10.1)
51
51
  multipart-post (2.0.0)
52
- nokogiri (1.6.5)
52
+ nokogiri (1.6.6.2)
53
53
  mini_portile (~> 0.6.0)
54
54
  pry (0.9.12.6)
55
55
  coderay (~> 1.0)
@@ -86,7 +86,7 @@ GEM
86
86
  simplecov-html (~> 0.8.0)
87
87
  simplecov-html (0.8.0)
88
88
  slop (3.5.0)
89
- text-table (1.2.3)
89
+ text-table (1.2.4)
90
90
  thread_safe (0.3.4)
91
91
  tzinfo (1.2.2)
92
92
  thread_safe (~> 0.1)
@@ -17,9 +17,11 @@ module Magellan
17
17
 
18
18
  desc "create VERSION", I18n.t(:create, scope: [:resources, :client_version, :cmd], resource_name: resource_name)
19
19
  def create(version)
20
+ project = load_selection!(Project)
20
21
  stage = load_selection!(Stage)
21
22
  params = {
22
23
  parameter_name => {
24
+ "project_id" => project["id"],
23
25
  "stage_title_id" => stage["id"],
24
26
  "version" => version,
25
27
  }
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.5.5"
3
+ VERSION = "0.5.6"
4
4
  end
5
5
  end
@@ -23,7 +23,7 @@ describe Magellan::Cli::Resources::ClientVersion do
23
23
  let(:client_version_list_response) { [ { "id" => 1, "version" => "1.1.0" } ] }
24
24
  before do
25
25
  allow(cmd).to receive(:load_selections).and_return({Magellan::Cli::Resources::Project.parameter_name => {"id" => 1, "name" => "ProjectA"}, Magellan::Cli::Resources::Stage.parameter_name => {"id" => 1, "name" => "StageA"} })
26
- expect(cmd).to receive(:post_json).with("/admin/client_version/new.json", { "client_version" => { "stage_title_id" => 1, "version" => "1.1.0" } })
26
+ expect(cmd).to receive(:post_json).with("/admin/client_version/new.json", { "client_version" => { "project_id" => 1, "stage_title_id" => 1, "version" => "1.1.0" } })
27
27
  # TODO: stub in details
28
28
  # expect(cmd).to receive(:get_json).with(any_args).and_return(client_version_list_response)
29
29
  # expect(cmd).to receive(:update_selections).with("client_version" => { "id" => 1, "version" => "1.0.0" })
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.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm2000
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-04 00:00:00.000000000 Z
11
+ date: 2015-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient