morph 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +2 -0
  3. data/lib/morph.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da524dc60329ec656ad28aa17e38231481fefa80
4
- data.tar.gz: 62c9c6fb10ecff9c410d6fd146c2de2eaa0ccc4b
3
+ metadata.gz: f2b8819bada6d3885cdc74db61abc8e7b71b3e15
4
+ data.tar.gz: ed1a490e45a8e6a3e89019cd3d549f5b086e9c83
5
5
  SHA512:
6
- metadata.gz: ea4e19f7beeffd219d1f11b5c0979e214fb55997eff9180994e3a633e7b92d87ca81005554b93352020ae86a28e8c9b576ab158e42696206f8f8cc907404694a
7
- data.tar.gz: 1d2d29875aa3c306007dd48a807dacb3f8253bca6e84f12e74911e4ac15138fce6614dd4a5b510f543ca76f0e5503486ec567c9fa2bda5c050330db8b3a25e7d
6
+ metadata.gz: f629a91770fb3342b34bc11d259a3eb1a952ca3c88e3853d6ff75fbabca40abe3dcd4da4e1b5ece50bd6f61d1553c6d4e1a2feb91270d1d39b7c7480809ffce9
7
+ data.tar.gz: dba929059e40edbed9f1c682b5387d85db75b85c1ea3b43e386aff253b4849042056f12c60f4fd3766c033a11cb5256f55149f3c4684b4466353bff793faba74
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.5.1. replace Fixnum with Integer to prevent deprecation warning in Ruby 2.4
2
+
1
3
  v0.5.0. set accessor methods when attribute value is blank, instead of ignoring
2
4
 
3
5
  v0.4.0. add from_json() and register_listener() methods
@@ -132,7 +132,7 @@ module Chas
132
132
  end
133
133
 
134
134
  module Morph
135
- VERSION = '0.5.0' unless defined? Morph::VERSION
135
+ VERSION = '0.5.1' unless defined? Morph::VERSION
136
136
 
137
137
  class << self
138
138
  def classes
@@ -303,7 +303,7 @@ module Morph
303
303
  value = value.to_time if defined?(XMLRPC::DateTime) && value.is_a?(XMLRPC::DateTime)
304
304
 
305
305
  case value
306
- when String, Date, Time, TrueClass, FalseClass, Fixnum, Float
306
+ when String, Date, Time, TrueClass, FalseClass, Integer, Float
307
307
  object.morph(attribute, value)
308
308
  when Array
309
309
  attribute = attribute.pluralize
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob McKinnon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport