rstub 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/rstub/file_parser.rb +4 -7
- data/rstub.gemspec +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: 2126ad8e35d573f5a9b88d585ce31341534dff89
|
4
|
+
data.tar.gz: d810f9685175f2bd772785f624ad6b08d741161b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c42cc72b88d04182b91b4e2c34a0815d9b7972cd0ec04eb1970eb6f26219220550bc03e078cb74436411a42873c036bbe442522ea427a20ca5e3e7ec5d03a7a3
|
7
|
+
data.tar.gz: d2e3ed6d02ac3dd9a5a16a8365e556a9aab62a833071e0aebf5d912fe010ae4fba7b0cd2d62d8a318b961c6f19bdd8b1c349f01635680cba3a7c1f695a02b804
|
data/Gemfile
CHANGED
data/lib/rstub/file_parser.rb
CHANGED
@@ -32,16 +32,13 @@ class FileParser
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def determine_delimiters(file)
|
35
|
-
self.stub_regex, self.end_stub_regex = if /\w+\.
|
36
|
-
[/#\s*stub\s*/i,
|
37
|
-
/#\s*endstub\s*/i]
|
38
|
-
elsif /\w+\.html/i =~ file
|
35
|
+
self.stub_regex, self.end_stub_regex = if /\w+\.html/i =~ file
|
39
36
|
[/<!--\s+STUB\s+-->/i,
|
40
37
|
/<!--\s+ENDSTUB\s+-->/i]
|
41
38
|
else
|
42
|
-
#
|
43
|
-
|
44
|
-
|
39
|
+
# defaults to Ruby delimiters
|
40
|
+
[/#\s*stub\s*/i,
|
41
|
+
/#\s*endstub\s*/i]
|
45
42
|
end
|
46
43
|
end
|
47
44
|
end
|
data/rstub.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rstub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Kim
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.4.8
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: A gem to stub out code
|