CanCanCanSee 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86d21722071025a2fc592a06223de22c8deea06d
4
- data.tar.gz: c26b027ed491f44a851aef4fb4056646038b4584
3
+ metadata.gz: 35a48d90c2a5099af44bef0b0675393b4b0761ee
4
+ data.tar.gz: 900c5562c8c51b9cd9f2d2139cac6fa40fc3c896
5
5
  SHA512:
6
- metadata.gz: 76eed1e2c3cd149ba0e410b56c9bf2f91b78a159508876acc1d18470117ee859721008fb2a535076fe7948ff119c8ec1990e0c66a7b2952ab0addf418cc46991
7
- data.tar.gz: be1b40685f55a70eb03d13568811a6947329e658348503e90e7aac694ba4be01b8651f096bd59d577749a390c839fdb1c527b2adc111218b09050a0b766fb93f
6
+ metadata.gz: 93a09e4af3a2bc95e90f393c06350a0a9584a961828f5224f979af80151b7a6020810034d2ca924a0e6d0af81506375f45dceaaea6b058ac6d1f3ebe18322993
7
+ data.tar.gz: e516ac8bc2cbc9ccd2215c25f0ca92c6e207964763a715252eb1a0e2cc2223b53919e68b2a8352695d8c4f1990e4131906d039dbc7e7f0ebbcc850c108430508
@@ -1,3 +1,3 @@
1
1
  module CanCanCanSee
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
data/lib/CanCanCanSee.rb CHANGED
@@ -48,7 +48,7 @@ module CanCanCanSee
48
48
  #capture in between text
49
49
  chunk_start = /when/ =~ @current_file
50
50
  #=> 119
51
- chunk_end = /when/ =~ @current_file[(chunk_start + 1)..-1]
51
+ chunk_end = ((/when/ =~ @current_file[(chunk_start + 1)..-1]) + chunk_start)
52
52
  #=> 2554
53
53
  role_text = @current_file[chunk_start..chunk_end]
54
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CanCanCanSee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Schwaderer