rip_hashrocket 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rip_hashrocket/version.rb +1 -1
- data/lib/rip_hashrocket.rb +2 -2
- data/test_rb_files/test1.rb +8 -0
- metadata +3 -3
data/lib/rip_hashrocket.rb
CHANGED
@@ -47,9 +47,9 @@ end
|
|
47
47
|
|
48
48
|
class String
|
49
49
|
def replace_rockets(s)
|
50
|
-
s.gsub(/:([
|
50
|
+
s.gsub(/:([0-9a-z_\-.]*)(\s{0,})=>(\s{0,})/) do |n|
|
51
51
|
#puts "n: #{n}"
|
52
|
-
n.include?('-') ? n : "#{$1}:
|
52
|
+
n.include?('-') ? n : "#{$1}:#{$2.size>1||$2=='\t'?$2:''}#{$3}"
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
data/test_rb_files/test1.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rip_hashrocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ben Pellow
|