charmkit 0.4.2 → 0.4.3

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: d00fbd867145c222acc4d9352a4969d0aa405257
4
- data.tar.gz: 1e6a86849fe915d2b18ee28136d1eff6a9f27995
3
+ metadata.gz: 99c52f3b6ceb4f3486f2e42cb4c1365d0dcf359f
4
+ data.tar.gz: 48cafde12a86682be177075b98de869b949c9962
5
5
  SHA512:
6
- metadata.gz: e7d99c2a2dbba161818f949b1e739787e03a322018ff645255cf1a226189360d91f7df3fc403f2d4e3e7f54d3406f65d7c20e622ec9b013b1d59517cf3739c29
7
- data.tar.gz: 5f13cbc2404d7789de62bee4d23c59fc966b5b0c9180e853c5c7e19da8a44c1c4062c6b890a78c2ea962be12ee8a72cc5dfe2faf4669a5e387bb914a516be417
6
+ metadata.gz: 55d152384700cea0c8ac3c21c4b0c69cc7276c2414d317c7408ea54e6eba041b1b67215c4f59cafa9accf3846043bcef8077d001093a100dad84097cb0d5fefe
7
+ data.tar.gz: ce23e1e417274974496113f6fcb0200028f3dbff3b51c68c32186bbccd06239070426b0d2424efb2ce965f1f8c930eb41bed420ed0d16bd33aa214961de1c999
data/charmkit.gemspec CHANGED
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
+ spec.add_dependency "tty-command"
25
+
24
26
  spec.add_development_dependency "bundler", "~> 1.13"
25
27
  spec.add_development_dependency "rake", "~> 10.0"
26
28
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -1,17 +1,10 @@
1
- require 'open3'
1
+ require 'tty-command'
2
2
 
3
3
  module Charmkit
4
4
  module Helpers
5
5
  def run(*cmd)
6
- stdout_s, stderr_s, status = Open3.capture3(*cmd)
7
- if not status.success?
8
- raise StandardError, "Failed to run command: #{stderr_s}"
9
- end
10
- return {
11
- :out => stdout_s,
12
- :err => stderr_s,
13
- :status => status
14
- }
6
+ runner = TTY::Command.new
7
+ return runner.run(*cmd)
15
8
  end
16
9
  end
17
10
  end
@@ -6,7 +6,7 @@ module Charmkit
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 4
9
- PATCH = 2
9
+ PATCH = 3
10
10
  PRE = nil
11
11
 
12
12
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charmkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Stokes
@@ -10,6 +10,20 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tty-command
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement