rspectacular 0.23.0 → 0.23.1
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 +4 -4
- data/lib/rspectacular/selectors.rb +2 -2
- data/lib/rspectacular/selectors/defaults.rb +3 -2
- data/lib/rspectacular/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: 7bdacff16da928df216105f81c3384d104e3ab72
|
|
4
|
+
data.tar.gz: 647835add38af219928c9c4325a330f05a7c23f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1eace16c79d4362f20abdea296662011d299f6c0864a97f9a906c6bba1a3a12ff2323043536b47905ba15b217a528bddc20231bdac9d315f2a9cb720592593b
|
|
7
|
+
data.tar.gz: 76e5eb029f230463a46214c75f58b60d2ee4d10ed2d24217696effa7a829fb4359e45d4a38f7ff565b9ff59dd6a1b310f18f2ffa07de432574d7ab55bec62b7f
|
|
@@ -13,8 +13,8 @@ def idsf(*args)
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def sf(*args)
|
|
16
|
-
string = args
|
|
17
|
-
selector = RSpectacular::Selectors.find { |regex, selector| string.match regex }
|
|
16
|
+
string = args[0]
|
|
17
|
+
selector = RSpectacular::Selectors.find { |regex, selector| string.match regex }[1]
|
|
18
18
|
|
|
19
19
|
if selector.present?
|
|
20
20
|
if selector.respond_to? :call
|
|
@@ -7,8 +7,9 @@ module RSpectacular
|
|
|
7
7
|
frame_element[:id]
|
|
8
8
|
end,
|
|
9
9
|
|
|
10
|
-
/the flash(.*)/ => lambda do
|
|
11
|
-
|
|
10
|
+
/the flash(.*)/ => lambda do |*args|
|
|
11
|
+
flash_type = args[0][/the flash(.*)/, 1]
|
|
12
|
+
flash_type_class = flash_type.strip
|
|
12
13
|
flash_type_class = flash_type_class.empty? ? '' : ".#{flash_type_class}"
|
|
13
14
|
|
|
14
15
|
".flash#{flash_type_class} p"
|
data/lib/rspectacular/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspectacular
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.23.
|
|
4
|
+
version: 0.23.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jfelchner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|