fast_attributes 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df43794163ccd923b67e1f17a133965d0939b244
4
- data.tar.gz: 76aee962119c46c15b1cc85ab3685cc772fd56be
3
+ metadata.gz: 3a1d80b95f685bd4f784b487c2f8f77fa32ac70e
4
+ data.tar.gz: 51b53422f3dd3c82a67e1ec07fc29102bfca6393
5
5
  SHA512:
6
- metadata.gz: 363c14fc2f8a0a645ea63780f1a272cffc26ed702f66a1f51fa2b4d7d345a59f95bfbddc552a53d1b3309ba1feaaea35646c862e73356350ebc4ed18b618c1c8
7
- data.tar.gz: 2fcc1830c83bd3721e57da383ca767da1c87292225c5db4406d940dee361d112fa205721d1251b0c069fe7ced1b848f8bc87cb6594c234e2aabd4d4c8d1bd901
6
+ metadata.gz: a7253c0f32e55877e353dd9faf04812f49663b4f45eb447e53f5f8879119ccf9348a0cd689ce01236ffc338d628ccd504ced69a56e8177b4f1d43eb7668ce1c9
7
+ data.tar.gz: 7ed3cc4165363858a85707ba2596444921989715ee767a3d41cfd530954469201fe51db2bb6c17ba247f7a859c54827f24df009e3b9778dccc4dd392aa98c497
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- **0.5.0 (July 16, 201)**
1
+ **0.5.0 (July 16, 2014)**
2
2
  * Allow to control any switch statements during typecasting using new DSL.
3
3
 
4
4
  The default typecasting rule which `fast_attributes` generates for `String` is:
@@ -57,5 +57,5 @@ module FastAttributes
57
57
  set_type_casting Date, 'Date.parse(%s)'
58
58
  set_type_casting Time, 'Time.parse(%s)'
59
59
  set_type_casting DateTime, 'DateTime.parse(%s)'
60
- set_type_casting BigDecimal, 'Float(%s);BigDecimal(%s)'
60
+ set_type_casting BigDecimal, 'Float(%s);BigDecimal(%s.to_s)'
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module FastAttributes
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_attributes
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
  - Kostiantyn Stepaniuk