rip_hashrocket 0.0.7 → 0.0.8

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.
@@ -1,3 +1,3 @@
1
1
  module RipHashrocket
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -47,9 +47,9 @@ end
47
47
 
48
48
  class String
49
49
  def replace_rockets(s)
50
- s.gsub(/:([a-z_\-.]*)(\s{0,})=>(\s{0,})/) do |n|
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
@@ -1,3 +1,11 @@
1
1
  {:a => 'a', :b => 'b', :c => 'c'}
2
2
  {:d => 'd', :e => 'e', :f => 'f'}
3
3
 
4
+
5
+ :name => "Someone",
6
+ :address1 => "10 Somewhere Place",
7
+ :city => "ACity",
8
+ :state => "CA",
9
+ :country => "US",
10
+ :zip => "91634",
11
+
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: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Pellow