run-gem-dev 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/lib/run-gem-dev/tasks.rb +11 -5
- data/lib/run-gem-dev/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9542fb37646813378d5b5f35a3ccf4efcc20b7e
|
4
|
+
data.tar.gz: 0985fd4325305cb33f3b73c528809f329ac7406a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d57f0791ef1bc9b4dba50d980893599820f69baa12f2cc1ed88411de05edfbe52e3f290ffdf37d7e139800ba4ce846c18d39e77ad4604fc8dfff565db6e5ea9
|
7
|
+
data.tar.gz: 3074f9913b78cdbf183ec0745878e7b3f3c474314d00697b61878bc48425723e1171fbcd73d83454a7c8d077c95d30b94c989f6d970f23a8b3ca9ba06c029abe
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ version "0.1.0"
|
|
24
24
|
RunGemDev::gem_tasks 'my-gem-name'
|
25
25
|
|
26
26
|
# Add test task (minitest)
|
27
|
-
RunGemDev::
|
27
|
+
RunGemDev::minitest_tasks
|
28
28
|
|
29
29
|
# Add rdoc task
|
30
30
|
RunGemDev::rdoc_tasks
|
@@ -42,8 +42,4 @@ RunGemDev::rdoc_tasks
|
|
42
42
|
run gem yank [<version>]
|
43
43
|
run test [<name>]
|
44
44
|
run rdoc [-- <options>...]
|
45
|
-
run addtest <command>
|
46
45
|
|
47
|
-
## Todo
|
48
|
-
|
49
|
-
- Add `init` (scaffold gemspec and folders)
|
data/lib/run-gem-dev/tasks.rb
CHANGED
@@ -69,14 +69,20 @@ module RunGemDev
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# Add minitest task
|
72
|
-
def self.
|
72
|
+
def self.minitest_tasks(pattern="./test/test_*.rb")
|
73
73
|
usage "test [<name>]"
|
74
74
|
help "Run all tests or a single test file."
|
75
75
|
action :test do |args|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
76
|
+
if args['<name>']
|
77
|
+
file = pattern.sub "*", args['<name>']
|
78
|
+
say "!txtgrn!Using: !txtpur!#{file}"
|
79
|
+
require file
|
80
|
+
else
|
81
|
+
Dir[pattern].each do |file|
|
82
|
+
say "!txtgrn!Using: !txtpur!#{file}"
|
83
|
+
require file
|
84
|
+
end
|
85
|
+
end
|
80
86
|
end
|
81
87
|
end
|
82
88
|
|
data/lib/run-gem-dev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run-gem-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: runfile
|