socialcastr 0.2.2 → 0.2.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.
@@ -11,7 +11,7 @@ class String
11
11
  end
12
12
 
13
13
  def all_spaces?
14
- self =~ /^[\s\n\t]*$/
14
+ self.gsub(/^[\s\n\t]*$/m, '').empty?
15
15
  end
16
16
  end
17
17
 
@@ -101,12 +101,8 @@ module Socialcastr
101
101
 
102
102
  if container_type
103
103
  if container_type == ARRAY
104
- # @values[-1] ||= []
105
- # @values[-1].push element
106
104
  @values[-1] ? @values[-1].push(element) : @values[-1] = [element]
107
105
  else # Hash
108
- # @values[-1] ||= {}
109
- # @values[-1][name] = element
110
106
  @values[-1] ? @values[-1][name]=element : @values[-1] = { name => element }
111
107
  end
112
108
  else # Root Node
@@ -1,3 +1,3 @@
1
1
  module Socialcastr
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcastr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Riccardo Cambiassi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-01 00:00:00 +01:00
18
+ date: 2011-06-02 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency