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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8852b79f7c805890bb95af6c1c48c1d7050b4dd
4
- data.tar.gz: 5b56626ea677a9836d5ae2668a922f5139a8161d
3
+ metadata.gz: a9542fb37646813378d5b5f35a3ccf4efcc20b7e
4
+ data.tar.gz: 0985fd4325305cb33f3b73c528809f329ac7406a
5
5
  SHA512:
6
- metadata.gz: d38bc615d650149ad85f4f5bc9bbc8a4f42362244f32c9e3bdeaad04d36dde5c9620bd6c2e62e49fd4cdfd1891411dc6b23cd31700bf7f231e9821261c3da23f
7
- data.tar.gz: 625ec6632cf0d7eaca59cefaae5c74e422289b1c4322a8a345ab47e43a9204cfd2aad479c5c571a20e7872a53c22b7c189f674a9935820f576918d28b21b1471
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::test_tasks
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)
@@ -69,14 +69,20 @@ module RunGemDev
69
69
  end
70
70
 
71
71
  # Add minitest task
72
- def self.test_tasks
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
- name = args['<name>'] || "*"
77
- cmd = "ruby -Itest test/test_#{name}.rb"
78
- say "!txtgrn!Running: !txtpur!#{cmd}"
79
- system cmd
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
 
@@ -1,5 +1,5 @@
1
1
  module RunGemDev
2
2
 
3
3
  # Version constant, used by gemspec
4
- VERSION = "0.1.3"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.3
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-29 00:00:00.000000000 Z
11
+ date: 2015-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: runfile