magellan-cli 0.7.6 → 0.7.7

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: 39a2518f311bac8449c9a2deb205ace8b022ab89
4
- data.tar.gz: ddb7b05fa8d5e68601e5aa36d3646a29fbc2727f
3
+ metadata.gz: 016146efdc342a98f2297f442fa7c34d7ce49c3d
4
+ data.tar.gz: b53cc0168ff9fb5238864c5ae6264d32a5ab1e04
5
5
  SHA512:
6
- metadata.gz: d8f7923f9c7810cd2a759b360ba34e0766c5a20cbced5ca1398f6f0a8ceff4d46dc3453e64d547da0ea78f2bca622c04112d75513f42e0f3d33ddc8748eb64e6
7
- data.tar.gz: 931bac737533317d2278d247a085257e6c8a6c13b9a09732569932c7978ae6980b9827917b77d139dcfd31f04d472f3de3e5d347b8ebd0c119794ac51e6e93e9
6
+ metadata.gz: 3fcd9f07e89954c33fd96bd06795362d2d34774a5fcf3b4b5766a6199818fb095ec63a04d0ef32b10f86d81e21557e5df2ee82907a9ee9d342a2d22f481b06be
7
+ data.tar.gz: 51ce3c723a3edcdabd9b7a7cea2fb1bdb4eb58beb0eec1131e5428956bcfff194c4182baffbeb781e8e9e2ecf6d9ea9a0a6aa1ebc4937d74f7579019621f4720
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.7.6)
4
+ magellan-cli (0.7.7)
5
5
  activesupport (~> 4.1.4)
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -202,6 +202,7 @@ module Magellan
202
202
  if msg =~ /\A#{Regexp.escape(res_name)}/
203
203
  msg = "The #{msg}"
204
204
  end
205
+ msg.gsub! /this page/, "this #{res_name}"
205
206
  fatal(msg)
206
207
  end
207
208
  end
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.7.6"
3
+ VERSION = "0.7.7"
4
4
  end
5
5
  end
@@ -55,6 +55,15 @@ describe Magellan::Cli::Resources::Project do
55
55
  expect($stdout).to receive(:puts)
56
56
  cmd.show(1)
57
57
  end
58
+
59
+ it "not authorized" do
60
+ allow(res).to receive(:body).and_return('{"message":"You are not authorized to access this page."}')
61
+ allow(res).to receive(:status).and_return(404)
62
+ expect(httpclient).to receive(:get).with("#{base_url}/admin/project/1.json").and_return(res)
63
+ expect{
64
+ cmd.show(1)
65
+ }.to raise_error(Magellan::Cli::Error, "You are not authorized to access this project.")
66
+ end
58
67
  end
59
68
 
60
69
  describe :delete do
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.6
4
+ version: 0.7.7
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-24 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient