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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d74d896289384086dcb27783da7d132e5008940a
4
- data.tar.gz: b574e6ef8b9c52cba40dfab69e77a46dca16d4a2
3
+ metadata.gz: 7bdacff16da928df216105f81c3384d104e3ab72
4
+ data.tar.gz: 647835add38af219928c9c4325a330f05a7c23f2
5
5
  SHA512:
6
- metadata.gz: 16d7fd51da85e19267839afe8770a08876ac7546e9a59f92f3a5c2114c1d652b7dd0e35ccb27b70a0c19dfd419f51ed9b6a83258d9a6717703136ec70fd0da3e
7
- data.tar.gz: 79b6d6643dcb844a6d41d183cb6dd1924ede9e07fdacc328a0e5faf13481ce38066337a687da7933b89c9695665d497457e3cbf8d3a06c21898f3dd151a809b3
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.shift
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
- flash_type_class = $1.strip
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"
@@ -1,3 +1,3 @@
1
1
  module RSpectacular
2
- VERSION = '0.23.0'
2
+ VERSION = '0.23.1'
3
3
  end
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec