barthes 0.0.41 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/barthes/cli.rb +1 -0
- data/lib/barthes/runner.rb +10 -2
- data/lib/barthes/version.rb +1 -1
- metadata +2 -2
data/lib/barthes/cli.rb
CHANGED
@@ -18,6 +18,7 @@ module Barthes
|
|
18
18
|
on 'r', 'reporters', 'reporters to use', argument: :optional, as: Array
|
19
19
|
on 'j', 'junit-xml', 'junit xml output path', argument: :optional
|
20
20
|
on 'g', 'tags', 'tags to filter actions', argument: :optional, as: Array
|
21
|
+
on 'n', 'no-tags', 'tags to filter no actions', argument: :optional, as: Array
|
21
22
|
end
|
22
23
|
@opt.to_hash
|
23
24
|
end
|
data/lib/barthes/runner.rb
CHANGED
@@ -126,9 +126,17 @@ module Barthes
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def tagged?(env)
|
129
|
-
return true if Barthes::Config[:tags].nil?
|
129
|
+
return true if Barthes::Config[:tags].nil? && Barthes::Config[:'no-tags'].nil?
|
130
130
|
tags = env['tags'] || []
|
131
|
-
|
131
|
+
if Barthes::Config[:tags].nil?
|
132
|
+
if (Barthes::Config[:'no-tags'] & tags).size > 0
|
133
|
+
flag = false
|
134
|
+
else
|
135
|
+
flag = true
|
136
|
+
end
|
137
|
+
else
|
138
|
+
flag = (Barthes::Config[:tags] & tags).size > 0
|
139
|
+
end
|
132
140
|
end
|
133
141
|
end
|
134
142
|
end
|
data/lib/barthes/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barthes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.42
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|