fast_attributes 0.5.0.rc2 → 0.5.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/LICENSE.txt +1 -1
- data/README.md +2 -3
- data/lib/fast_attributes/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df43794163ccd923b67e1f17a133965d0939b244
|
|
4
|
+
data.tar.gz: 76aee962119c46c15b1cc85ab3685cc772fd56be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 363c14fc2f8a0a645ea63780f1a272cffc26ed702f66a1f51fa2b4d7d345a59f95bfbddc552a53d1b3309ba1feaaea35646c862e73356350ebc4ed18b618c1c8
|
|
7
|
+
data.tar.gz: 2fcc1830c83bd3721e57da383ca767da1c87292225c5db4406d940dee361d112fa205721d1251b0c069fe7ced1b848f8bc87cb6594c234e2aabd4d4c8d1bd901
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
**0.5.0 (
|
|
2
|
-
* Allow to control any switch statements during typecasting
|
|
1
|
+
**0.5.0 (July 16, 201)**
|
|
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:
|
|
5
5
|
```ruby
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -125,12 +125,11 @@ book.author
|
|
|
125
125
|
|
|
126
126
|
Notice, that second parameter is a string. It's necessary because this code is compiled into a ruby method in runtime. The placeholder `%s` represents a value which this method accepts.
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
It's possible to refer to a placeholder several times.
|
|
129
129
|
```ruby
|
|
130
130
|
Size = Class.new(Array)
|
|
131
131
|
FastAttributes.set_type_casting Size, <<-EOS
|
|
132
|
-
|
|
133
|
-
Size[_value, _value]
|
|
132
|
+
Size[%s, %s]
|
|
134
133
|
EOS
|
|
135
134
|
|
|
136
135
|
class Square
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kostiantyn Stepaniuk
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-07-
|
|
11
|
+
date: 2014-07-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -122,9 +122,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
122
122
|
version: 1.9.2
|
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
requirements:
|
|
125
|
-
- - "
|
|
125
|
+
- - ">="
|
|
126
126
|
- !ruby/object:Gem::Version
|
|
127
|
-
version:
|
|
127
|
+
version: '0'
|
|
128
128
|
requirements: []
|
|
129
129
|
rubyforge_project:
|
|
130
130
|
rubygems_version: 2.2.2
|