obfusk-util 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: 8adf3c9ae768f80d1e557b744a4dea1245efcce0
4
- data.tar.gz: e31cde1403fc3bbd9997a80468b531cf901b404f
3
+ metadata.gz: 30f9d007dcb9e565a07d90b2294e5277238e3962
4
+ data.tar.gz: 6a32009fc08b0c4ac6afa7941860405d3855453e
5
5
  SHA512:
6
- metadata.gz: 53faf1797b5f2be9f729ecb4b7f9f6386e0a050e1ce5872aa5cbec3861fea5cec19c60390631b12ed2c0d3573bc15a370cb787e4a7ef93c39417e8d1faa6d908
7
- data.tar.gz: cf380054eca3d5717dd75db728b5164e22413f5af8a64327045c70770091a58646b374e9496e7aeda4b9d8ceef9899d9bb371840b0f7c687d1b3070715172f34
6
+ metadata.gz: 2d0ec221df62096ced64e7ee2c35f0e0832c38e1448d09cd589c5a368aba15c8e112760068462c5132fecae47f3ed053b4fa4a2a41eb3f2dffbcf85249863274
7
+ data.tar.gz: 159554003b57938c2ceb3f939e37a48b8a598be5a274527f698ff6cf4d228dc173ac77af7fc84c60e8a4a4d081abac019fed68c9735b9509d30702660728a093
data/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  File : README.md
4
4
  Maintainer : Felix C. Stegerman <flx@obfusk.net>
5
- Date : 2014-02-19
5
+ Date : 2014-02-20
6
6
 
7
7
  Copyright : Copyright (C) 2014 Felix C. Stegerman
8
- Version : v0.4.2
8
+ Version : v0.4.3
9
9
 
10
10
  []: }}}1
11
11
 
@@ -197,17 +197,18 @@ end
197
197
  ```ruby
198
198
  require 'obfusk/util/sh'
199
199
 
200
- sh('echo "$0" ">>$1<<" ">>$FOO<<"', '"one"', 'FOO' => 'foo').stdout
200
+ Obfusk::Util::sh('echo "$0" ">>$1<<" ">>$FOO<<"',
201
+ '"one"', 'FOO' => 'foo').stdout
201
202
  # => %Q{bash >>"one"<< >>foo<<}
202
203
 
203
- sh('echo step1; false; echo step3',
204
+ Obfusk::Util::sh('echo step1; false; echo step3',
204
205
  print: true, exit: true, merge: true).stdout
205
206
  # => "+ echo step1\nstep1\n+ false\n"
206
207
 
207
- sh? 'false'
208
+ Obfusk::Util::sh? 'false'
208
209
  # => false
209
210
 
210
- sh! 'false'
211
+ Obfusk::Util::sh! 'false'
211
212
  # => RunError
212
213
  ```
213
214
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # File : obfusk/util/sh.rb
4
4
  # Maintainer : Felix C. Stegerman <flx@obfusk.net>
5
- # Date : 2014-02-19
5
+ # Date : 2014-02-20
6
6
  #
7
7
  # Copyright : Copyright (C) 2014 Felix C. Stegerman
8
8
  # Licence : LGPLv3+
@@ -23,8 +23,10 @@ module Obfusk; module Util
23
23
  end
24
24
 
25
25
  # @raise RunError when exitstatus non-zero
26
+ # @return [Sh] self
26
27
  def ok!
27
28
  ::Obfusk::Util.chk_exitstatus cmd, status.exitstatus
29
+ self
28
30
  end
29
31
 
30
32
  # ... TODO ...
@@ -1,5 +1,5 @@
1
1
  # my namespace
2
2
  module Obfusk; module Util
3
- VERSION = '0.4.2'
4
- DATE = '2014-02-19'
3
+ VERSION = '0.4.3'
4
+ DATE = '2014-02-20'
5
5
  end; end
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # File : obfusk/util/sh_spec.rb
4
4
  # Maintainer : Felix C. Stegerman <flx@obfusk.net>
5
- # Date : 2014-02-19
5
+ # Date : 2014-02-20
6
6
  #
7
7
  # Copyright : Copyright (C) 2014 Felix C. Stegerman
8
8
  # Licence : LGPLv3+
@@ -111,8 +111,8 @@ describe 'obfusk/util/sh' do
111
111
  end # }}}1
112
112
 
113
113
  context 'sh!' do # {{{1
114
- it 'true => nil' do
115
- expect( ou.sh! 'true' ).to eq(nil)
114
+ it 'true => Sh' do
115
+ expect( ou.sh! 'true' ).to be_an_instance_of(ou::Sh)
116
116
  end
117
117
  it 'false => RunError' do
118
118
  expect { ou.sh! 'false' } .to \
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obfusk-util
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
  - Felix C. Stegerman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: |
@@ -46,44 +46,44 @@ executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - ".yardopts"
49
+ - .yardopts
50
50
  - README.md
51
51
  - Rakefile
52
52
  - obfusk-util.gemspec
53
- - lib/obfusk/util/run.rb
53
+ - lib/obfusk/util/die.rb
54
+ - lib/obfusk/util/sh.rb
54
55
  - lib/obfusk/util/misc.rb
55
- - lib/obfusk/util/opt.rb
56
+ - lib/obfusk/util/term.rb
57
+ - lib/obfusk/util/spec.rb
58
+ - lib/obfusk/util/fs.rb
59
+ - lib/obfusk/util/message.rb
60
+ - lib/obfusk/util/process.rb
61
+ - lib/obfusk/util/all.rb
56
62
  - lib/obfusk/util/os.rb
57
- - lib/obfusk/util/valid.rb
63
+ - lib/obfusk/util/run.rb
64
+ - lib/obfusk/util/opt.rb
65
+ - lib/obfusk/util/cmd.rb
58
66
  - lib/obfusk/util/module.rb
59
- - lib/obfusk/util/all.rb
60
- - lib/obfusk/util/process.rb
61
- - lib/obfusk/util/fs.rb
62
- - lib/obfusk/util/sh.rb
67
+ - lib/obfusk/util/struct.rb
68
+ - lib/obfusk/util/valid.rb
63
69
  - lib/obfusk/util/data.rb
64
- - lib/obfusk/util/spec.rb
65
- - lib/obfusk/util/message.rb
66
70
  - lib/obfusk/util/version.rb
67
- - lib/obfusk/util/die.rb
68
- - lib/obfusk/util/term.rb
69
- - lib/obfusk/util/struct.rb
70
- - lib/obfusk/util/cmd.rb
71
71
  - spec/obfusk/util/die_spec.rb
72
- - spec/obfusk/util/valid_spec.rb
73
- - spec/obfusk/util/sh_spec.rb
74
- - spec/obfusk/util/message_spec.rb
75
- - spec/obfusk/util/term_spec.rb
76
- - spec/obfusk/util/os_spec.rb
77
- - spec/obfusk/util/spec_spec.rb
78
- - spec/obfusk/util/opt_spec.rb
79
72
  - spec/obfusk/util/struct_spec.rb
80
- - spec/obfusk/util/module_spec.rb
73
+ - spec/obfusk/util/process_spec.rb
81
74
  - spec/obfusk/util/fs_spec.rb
82
- - spec/obfusk/util/misc_spec.rb
83
75
  - spec/obfusk/util/cmd_spec.rb
84
- - spec/obfusk/util/data_spec.rb
85
- - spec/obfusk/util/process_spec.rb
76
+ - spec/obfusk/util/spec_spec.rb
86
77
  - spec/obfusk/util/run_spec.rb
78
+ - spec/obfusk/util/opt_spec.rb
79
+ - spec/obfusk/util/misc_spec.rb
80
+ - spec/obfusk/util/term_spec.rb
81
+ - spec/obfusk/util/sh_spec.rb
82
+ - spec/obfusk/util/module_spec.rb
83
+ - spec/obfusk/util/os_spec.rb
84
+ - spec/obfusk/util/valid_spec.rb
85
+ - spec/obfusk/util/message_spec.rb
86
+ - spec/obfusk/util/data_spec.rb
87
87
  homepage: https://github.com/obfusk/rb-obfusk-util
88
88
  licenses:
89
89
  - LGPLv3+
@@ -94,12 +94,12 @@ require_paths:
94
94
  - lib
95
95
  required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ">="
97
+ - - '>='
98
98
  - !ruby/object:Gem::Version
99
99
  version: 1.9.1
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ">="
102
+ - - '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
@@ -109,4 +109,3 @@ signing_key:
109
109
  specification_version: 4
110
110
  summary: miscellaneous utility library for ruby
111
111
  test_files: []
112
- has_rdoc: