runfile-tasks 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abebf00a93220e0bf6605b917c844daf8a5ef3ef
4
- data.tar.gz: 523f6137b921d7903e4604e8d83114feb5faf553
3
+ metadata.gz: 2187202a45ac9756f01c747b8f4c3e40fa524233
4
+ data.tar.gz: 862edabd4175ffd9b12051140a62b42e2e039c21
5
5
  SHA512:
6
- metadata.gz: 821b70deec211fafda1ef03e5e0a0eaaf170f0bdb5279ff4c05b3920db1be8e918dc5efe2f58534061928e89fa8c6255e44027c28d6075aa5d163616a500e6d0
7
- data.tar.gz: a4de31834c7950a555c0cfad8e1d333bafca32a0edecaa4f00699fbc3ab2727161e0d4624228d08995d7cba45ab7dd17331c33e21f0f1e15aa0316711f420461
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
- ## Install
6
+ Install
7
+ --------------------------------------------------
7
8
 
8
9
  Install the gem or require it in your Gemfile:
9
10
 
10
- gem 'runfile-tasks'
11
+ ```ruby
12
+ gem 'runfile-tasks'
13
+ ```
11
14
 
12
15
  In your Runfile, you can include either all tasks:
13
16
 
14
- require 'runfile-tasks'
17
+ ```ruby
18
+ require 'runfile-tasks'
19
+ ```
15
20
 
16
21
  Or pick and choose from the various task categories:
17
22
 
18
- require 'runfile-tasks/testing'
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
- ## Usage
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
- ## Task Index
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 or a single spec file matching a regex.
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
@@ -1,3 +1,3 @@
1
1
  module RunfileTasks
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  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.1
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-10 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: runfile