magellan-cli 0.5.3 → 0.5.4

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: e376d8606b10e07ef39118cf792f277fe3bea4b0
4
- data.tar.gz: 384542ebb224be59570cdfbf8070683753dde5fa
3
+ metadata.gz: 6822ae7470f8d854e23be149d385edff69982f52
4
+ data.tar.gz: f9e5d1b59d98afcb59c092975b8425951001c0ee
5
5
  SHA512:
6
- metadata.gz: a6b8495712afa5a10cb0e81d64bf139acc2016fe36a042f697fd31d83ee97e97c43b8e40516485f664a21d4ba91223a7ccd494554e109a6c73d3f3ca856edf20
7
- data.tar.gz: ac1be6b59fbcd12181f3a66054f7528530114ebd40ae19e272bbc4ffcb3e0708dd833f047a01f8b646169c6af1d61d59d04b93bf90b6c2f3989d33abd6a380b5
6
+ metadata.gz: 4a0831855a1eb4cf2b6838e588a515885309d303cf9bb254ebf35abdcaca15ab7ca159ff15188cc7cce825e3e8f4be0b38c79087de44ffead7f7bd41d2456944
7
+ data.tar.gz: 9b8adb3ab02f677517c895ce2798e190f138f86108de78f8b3b5977264e331ee3a5d3a76d4d8b5b2873cfcad51291645ff08f2c75223b7a0cbd4c70861917c82
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.5.3)
4
+ magellan-cli (0.5.4)
5
5
  activesupport (~> 4.1.4)
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -39,7 +39,7 @@ module Magellan
39
39
  no_commands do
40
40
  def puts_res(res)
41
41
  color = (res.code =~ /\A2\d\d\z/) ? "32" : "31"
42
- puts "\e[#{color}m#{res.body.strip}\e[0m"
42
+ puts "\e[#{color}m#{res.body}\e[0m"
43
43
  end
44
44
  end
45
45
 
@@ -7,7 +7,7 @@ module Magellan
7
7
 
8
8
  desc "pub TOPIC PAYLOAD", I18n.t(:pub, scope: [:messaging, :mqtt])
9
9
  def pub(topic, payload)
10
- core.publish(topic, try_reading_file(payload))
10
+ core.publish(topic, try_reading_file(payload).dup)
11
11
  end
12
12
 
13
13
  desc "get [TOPIC]", I18n.t(:get, scope: [:messaging, :mqtt])
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
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.5.3
4
+ version: 0.5.4
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-03 00:00:00.000000000 Z
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient