rexleparser 0.3.2 → 0.3.3

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.
Files changed (2) hide show
  1. data/lib/rexleparser.rb +5 -2
  2. metadata +3 -5
data/lib/rexleparser.rb CHANGED
@@ -155,8 +155,11 @@ class RexleParser
155
155
  end
156
156
 
157
157
  def get_attributes(raw_attributes)
158
- r = raw_attributes.scan(/([\w:]+\='[^']*)'|([\w:]+\="[^"]*)"/).map(&:compact).flatten.inject({}) do |r, x|
159
-
158
+
159
+ r1 = /([\w\-:]+\='[^']*)'/
160
+ r2 = /([\w\-:]+\="[^"]*)"/
161
+
162
+ r = raw_attributes.scan(/#{r1}|#{r2}/).map(&:compact).flatten.inject({}) do |r, x|
160
163
  attr_name, val = x.split(/=/)
161
164
  r.merge(attr_name.to_sym => val[1..-1])
162
165
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rexleparser
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.2
5
+ version: 0.3.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-04-13 00:00:00 +01:00
14
- default_executable:
13
+ date: 2012-06-24 00:00:00 Z
15
14
  dependencies: []
16
15
 
17
16
  description:
@@ -24,7 +23,6 @@ extra_rdoc_files: []
24
23
 
25
24
  files:
26
25
  - lib/rexleparser.rb
27
- has_rdoc: true
28
26
  homepage:
29
27
  licenses: []
30
28
 
@@ -48,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
46
  requirements: []
49
47
 
50
48
  rubyforge_project:
51
- rubygems_version: 1.5.2
49
+ rubygems_version: 1.8.23
52
50
  signing_key:
53
51
  specification_version: 3
54
52
  summary: rexleparser