runfile-tasks 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/lib/runfile-tasks/testing/rspec.rb +3 -2
- data/lib/runfile-tasks/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: 2187202a45ac9756f01c747b8f4c3e40fa524233
|
4
|
+
data.tar.gz: 862edabd4175ffd9b12051140a62b42e2e039c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 252b06d4ac8df5165ca7473f384deda1fd4b34181d342a1172c641dc656742e54d62e4519709a9ace0c62432dc12f6d88acf2433684f5d57e19438a0d6c7258d
|
7
|
+
data.tar.gz: 3e1264dd47af7a0be843a7949ec6cdeb01f2f3b40df8828500e73a584717fe2d4d7b27202fb24255426f6707a0277af08f4ba8ceebdea804cd02306cd44aee64
|
data/README.md
CHANGED
@@ -1,21 +1,28 @@
|
|
1
1
|
Runfile Tasks
|
2
|
-
|
2
|
+
==================================================
|
3
3
|
|
4
4
|
A library of tasks ready to be included in your [Runfile]
|
5
5
|
|
6
|
-
|
6
|
+
Install
|
7
|
+
--------------------------------------------------
|
7
8
|
|
8
9
|
Install the gem or require it in your Gemfile:
|
9
10
|
|
10
|
-
|
11
|
+
```ruby
|
12
|
+
gem 'runfile-tasks'
|
13
|
+
```
|
11
14
|
|
12
15
|
In your Runfile, you can include either all tasks:
|
13
16
|
|
14
|
-
|
17
|
+
```ruby
|
18
|
+
require 'runfile-tasks'
|
19
|
+
```
|
15
20
|
|
16
21
|
Or pick and choose from the various task categories:
|
17
22
|
|
18
|
-
|
23
|
+
```ruby
|
24
|
+
require 'runfile-tasks/testing'
|
25
|
+
```
|
19
26
|
|
20
27
|
|
21
28
|
Requiring the task packs does not make the available in your Runfile
|
@@ -23,7 +30,9 @@ immediately. You need to activate any of the tasks you want as described
|
|
23
30
|
below.
|
24
31
|
|
25
32
|
|
26
|
-
|
33
|
+
Usage
|
34
|
+
--------------------------------------------------
|
35
|
+
|
27
36
|
|
28
37
|
Include any of the tasks you need in your Runfile like this:
|
29
38
|
|
@@ -46,7 +55,8 @@ end
|
|
46
55
|
```
|
47
56
|
|
48
57
|
|
49
|
-
|
58
|
+
Task Index
|
59
|
+
--------------------------------------------------
|
50
60
|
|
51
61
|
### Testing Tasks
|
52
62
|
|
@@ -60,7 +70,8 @@ require 'runfile-tasks/testing'
|
|
60
70
|
|
61
71
|
Commands Added:
|
62
72
|
|
63
|
-
- `run spec [NAME]` - Run all specs
|
73
|
+
- `run spec [NAME] [TAG]` - Run all specs, a single spec file, or all specs
|
74
|
+
matching a tag.
|
64
75
|
|
65
76
|
```ruby
|
66
77
|
# Runfile
|
@@ -11,8 +11,8 @@ module RunfileTasks
|
|
11
11
|
command: 'rspec'
|
12
12
|
}.merge opts
|
13
13
|
|
14
|
-
usage "#{opts[:action]} [<name>]"
|
15
|
-
help "Run all specs or a single spec file matching a regex."
|
14
|
+
usage "#{opts[:action]} [<name>] [<tag>]"
|
15
|
+
help "Run all specs or a single spec file matching a regex. You can provide a tag to run only specific tests."
|
16
16
|
action opts[:action].to_sym do |args|
|
17
17
|
if args['<name>']
|
18
18
|
files = Dir[opts[:pattern]]
|
@@ -23,6 +23,7 @@ module RunfileTasks
|
|
23
23
|
else
|
24
24
|
cmd = "#{opts[:command]}"
|
25
25
|
end
|
26
|
+
cmd = "#{cmd} --tag #{args['<tag>']}" if args['<tag>']
|
26
27
|
say "!txtgrn!Running: !txtpur!#{cmd}"
|
27
28
|
system cmd
|
28
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runfile-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
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: 2016-06-
|
11
|
+
date: 2016-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: runfile
|