scriptster 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 551e2e0a9a146fcef001e12bc824a0e802b390e0
4
- data.tar.gz: 286aaacba36201700bd8e4ace12f49a530f32f98
2
+ SHA256:
3
+ metadata.gz: 8237912a659b224c99d79da5222fe28b0fc888a951a9519317b14b7c178c48f4
4
+ data.tar.gz: 38dc08b78e51a96775b6e51d472a7b1e913feca441d18458fae905476381d8ca
5
5
  SHA512:
6
- metadata.gz: d16e10d4d6a8442f06b5782075e167cf29906a3e0ab2377b168d98fbd81eb96d27bcc639349c61bc06ea38ef3885c178d5aeebe5f8165cb18d0066706fc86b07
7
- data.tar.gz: 0ea04e268a4994bd1b9beba50dfeeae794c8ee0f1416344b389b96dd3303a0fb48de0acc0dd40361fe298b0f22844c107ac30fb54577de848995a0f40dd42b09
6
+ metadata.gz: a2da4fa1a3682a5b1105ea3e25186e84b0bd01decd46f887791579d0ee051e87c452c1c2e1dc5d52fb4bd9c840a7b1ca7bc29adee3f92fa882290e3dd50e421f
7
+ data.tar.gz: 4b9a5690279c978e3b200cf9e8a78f1e04470947bd3941a643c446cede650343fc16be126120ff6a4c0902e4ec3383f3b6ebe273801b329b29a034d691ac6927
data/README.md CHANGED
@@ -47,9 +47,10 @@ in practice:
47
47
  Scriptster::log :info, "Checking branches"
48
48
 
49
49
  git_cmd = Scriptster::cmd "git branch",
50
- :show_out = true,
51
- :show_err = true
50
+ :show_out => true,
51
+ :show_err => true
52
52
 
53
+ branch = "develop"
53
54
  branch_exists = git_cmd.out.split("\n").grep(/#{branch}/).length > 0
54
55
  Scriptster::log(:warn, "Branch '#{branch}' not found") unless branch_exists
55
56
  ```
@@ -80,6 +80,7 @@ module Scriptster
80
80
  # The function will block until the command has finished.
81
81
  def run
82
82
  Open3.popen3(@cmd) do |stdin, stdout, stderr, wait_thr|
83
+ stdin.close # leaving stdin open when we don't use it can cause some commands to hang
83
84
  stdout_buffer=""
84
85
  stderr_buffer=""
85
86
 
@@ -1,4 +1,4 @@
1
1
  module Scriptster
2
2
  # The version of this library
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scriptster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radek Pazdera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2018-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tco
@@ -127,11 +127,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.2.2
130
+ rubygems_version: 2.7.6
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Making your Ruby scipts hip.
134
134
  test_files:
135
135
  - spec/scriptster_spec.rb
136
136
  - spec/utils.rb
137
- has_rdoc: