agile_utils 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/agile_utils.gemspec +1 -1
- data/lib/agile_utils/version.rb +1 -1
- data/test/lib/agile_utils/test_file_util.rb +0 -9
- data/test/lib/agile_utils/test_helper.rb +14 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf388b8e883700bf5974b7ddbd6778b4f055ec1e
|
4
|
+
data.tar.gz: 2ab8b168134d360684bfacb8c38a715a5ef26bbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c28c494ec95aa339592ef7ba630149dd2d96ff83c91e3ad4b190f0cc5836ad8bd7c91b20cfe48836d7945c8e6ecbd73e80b2d467d801b53b6f827348230755b
|
7
|
+
data.tar.gz: fd4bbfbbc93a73a57c9a2a2e3be53f93a104282feafc80248f7f90f4ff89b45e9c92fa0df3270a99d1ed4c54bab67d0d78013c41df1113564d8e9dad8c35b6a6
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
## agile_utils
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/agile_utils.svg)](http://badge.fury.io/rb/agile_utils)
|
4
|
+
[![Dependency Status](https://gemnasium.com/agilecreativity/agile_utils.png)](https://gemnasium.com/agilecreativity/agile_utils)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/agilecreativity/agile_utils.png)](https://codeclimate.com/github/agilecreativity/agile_utils)
|
4
6
|
|
5
7
|
My collection of ruby library that I have used in more than one project.
|
6
8
|
To promote the code re-use I move them all to this gem.
|
@@ -44,6 +46,10 @@ AgileUtils::FileUtils.tar_gzip_files()
|
|
44
46
|
|
45
47
|
### Changelogs
|
46
48
|
|
49
|
+
#### 0.0.9
|
50
|
+
|
51
|
+
- Update minitest to latest version
|
52
|
+
|
47
53
|
#### 0.0.8
|
48
54
|
|
49
55
|
- Move '--theme' option out as it is not a shared option
|
data/agile_utils.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'awesome_print', '~> 1.2'
|
27
27
|
spec.add_development_dependency 'minitest-spec-context', '~> 0.0.3'
|
28
28
|
spec.add_development_dependency 'guard-minitest', '~> 2.2'
|
29
|
-
spec.add_development_dependency 'minitest', '~>
|
29
|
+
spec.add_development_dependency 'minitest', '~> 5.3'
|
30
30
|
spec.add_development_dependency 'guard', '~> 2.6'
|
31
31
|
spec.add_development_dependency 'pry', '~> 0.9'
|
32
32
|
spec.add_development_dependency 'gem-ctags', '~> 1.0'
|
data/lib/agile_utils/version.rb
CHANGED
@@ -19,13 +19,4 @@ describe AgileUtils do
|
|
19
19
|
assert File.exists?("test/fixtures/output.tar.gz"), "Output file must be generated"
|
20
20
|
end
|
21
21
|
end
|
22
|
-
|
23
|
-
# context '#delete' do
|
24
|
-
# it 'removes the files' do
|
25
|
-
# @files.wont_be_empty
|
26
|
-
# AgileUtils::FileUtil.delete(@files)
|
27
|
-
#
|
28
|
-
# end
|
29
|
-
# end
|
30
|
-
|
31
22
|
end
|
@@ -2,14 +2,25 @@ require_relative '../../test_helper'
|
|
2
2
|
describe AgileUtils::Helper do
|
3
3
|
context '#shell' do
|
4
4
|
it 'returns result for valid command' do
|
5
|
-
#TODO: very system specific, please mock/stub this out!
|
6
|
-
# or use something like FakeFS?
|
7
5
|
result = AgileUtils::Helper.shell(%w(ls))
|
8
6
|
result.wont_be_nil
|
9
7
|
end
|
10
|
-
|
11
8
|
it 'raises error on invalid command' do
|
12
9
|
assert_raises(RuntimeError) { AgileUtils::Helper.shell(%w(bad-command)) }
|
13
10
|
end
|
14
11
|
end
|
12
|
+
|
13
|
+
context '#which' do
|
14
|
+
it 'works with valid executable' do
|
15
|
+
# TODO: mock or stub the call
|
16
|
+
AgileUtils::Helper.which('ruby').wont_be_nil
|
17
|
+
end
|
18
|
+
it 'works with invalid executable' do
|
19
|
+
AgileUtils::Helper.which('bad-or-invalid-executable!').must_be_nil
|
20
|
+
end
|
21
|
+
it 'works with the binary name only' do
|
22
|
+
# TODO: mock or stub the call
|
23
|
+
AgileUtils::Helper.which('/bin/bash').must_be_nil
|
24
|
+
end
|
25
|
+
end
|
15
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agile_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burin Choomnuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '5.3'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '5.3'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: guard
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|