acts_as_metadata 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acts_as_metadata (0.3.0)
4
+ acts_as_metadata (0.3.1)
5
5
  rails (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Gropher"]
10
10
  s.email = ["grophen@gmail.com"]
11
- s.homepage = ""
11
+ s.homepage = "https://github.com/Gropher/acts-as-metadata"
12
12
  s.summary = %q{Additional on-demand fields for ActiveRecord models}
13
13
  s.description = %q{This gem allows to add additional database-stored fields to your models}
14
14
 
@@ -70,6 +70,7 @@ class MetadataType < ActiveRecord::Base
70
70
 
71
71
  def values_json=(value)
72
72
  self.values = JSON.parse(value) rescue []
73
+ values.each {|v| v.is_a?(Array) ? v.each(&:strip!) : v.strip! } if values.is_a? Array
73
74
  end
74
75
 
75
76
  def default_json
@@ -1,3 +1,3 @@
1
1
  module ActsAsMetadata
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-16 00:00:00.000000000 Z
12
+ date: 2012-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -82,7 +82,7 @@ files:
82
82
  - lib/metadata/version.rb
83
83
  - spec/acts_as_metadata_spec.rb
84
84
  - spec/spec_helper.rb
85
- homepage: ''
85
+ homepage: https://github.com/Gropher/acts-as-metadata
86
86
  licenses: []
87
87
  post_install_message:
88
88
  rdoc_options: []