rails-idle 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-idle/collector/views.rb +2 -12
- data/lib/rails-idle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b45f973305f9ea1fc194d0f9d136ba0a07e3bf08
|
4
|
+
data.tar.gz: 3cafcd4f43d69fb96159bb0a9129ebbf7ac4361e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8e22c570a2f8bae1ea880d221491e55d5f5f7cfb8345509caba4f8bfed5d20fdee1ef5284f17d4cfc4f6c48b7f5cbe9d47a351c40d60823b0cd5cf724648c52
|
7
|
+
data.tar.gz: f0013894656f7354eb60cfa5435a10845d13cbf282f8055576a22e9a1978b2f45d540e6c7425d489c033d7c6515139210828e8dd0db5ba7b3c53ca79e277be47
|
@@ -69,24 +69,14 @@ module RailsIdle
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def modify_prefix(identifier, orig_prefix = '')
|
72
|
-
view_paths.
|
72
|
+
view_paths.each_with_index do |path, idx|
|
73
73
|
orig_prefix.replace path
|
74
|
-
return identifier.gsub(path
|
74
|
+
return identifier.gsub(path + '/', '') if identifier.start_with?(path)
|
75
75
|
end
|
76
76
|
orig_prefix.replace ''
|
77
77
|
nil
|
78
78
|
end
|
79
79
|
|
80
|
-
# def extract_view(orig_prefix, modified_prefix)
|
81
|
-
# idx = 1
|
82
|
-
# view = ''
|
83
|
-
# while (idx <= orig_prefix.size && idx <= modified_prefix.size && orig_prefix[-idx] == modified_prefix[-idx])
|
84
|
-
# view = modified_prefix[-idx] + view
|
85
|
-
# idx += 1
|
86
|
-
# end
|
87
|
-
# view
|
88
|
-
# end
|
89
|
-
|
90
80
|
end
|
91
81
|
end
|
92
82
|
end
|
data/lib/rails-idle/version.rb
CHANGED