attrio 0.7.2 → 0.7.3

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: c37cd18841fadc28823ecaa640d6305070784769
4
- data.tar.gz: fbff0c3dac7fba2297dc760ba7483110cd15343c
3
+ metadata.gz: 985c988564ba5cca6a41f17e2cfc280b538a2c42
4
+ data.tar.gz: fd129f77df647aba00e7ec1925a2f2a78f12c3dd
5
5
  SHA512:
6
- metadata.gz: abd5ad3981872e97d9d9c82702949583663265c4a20aef0c3844aa0793adaefb847a8e864e5884464c1a9ee960e56fb9d86eafba735f3dd0000d83fd117bed52
7
- data.tar.gz: 5cc8f267baabd969c5d4d54a8eb0ee37260b542777f8a8a28987d63de7ddc3ab256f4ef9967d64e6bd7834d16a27b6bed23f25027d9ef1ddde7d1fe785099248
6
+ metadata.gz: 96f4056d4239a873183dac22992f8ac0a364ce30d73d68a375a542663af961a647a5464bd5207b283363ade6b5dfcf5c49b863af3b3d3e6f2bea39a4e44e45a8
7
+ data.tar.gz: 2be78234462d056685caa1f444d9504b99899b8ebfab417111c9fdf6bdbcd71bc43e9035f9f335ca45d1a48b1628cfe51f9bb6dc153f031013b3c0344524d877
data/README.md CHANGED
@@ -361,7 +361,7 @@ end
361
361
 
362
362
  ## Credits
363
363
 
364
- ![JetRockets](http://www.jetrockets.ru/public/logo.png)
364
+ ![JetRockets](http://www.jetrockets.ru/jetrockets.png)
365
365
 
366
366
  Webmaster is maintained by [JetRockets](http://www.jetrockets.ru/en).
367
367
 
@@ -5,8 +5,9 @@ module Attrio
5
5
  class Array < Base
6
6
  def self.typecast(value, options = {})
7
7
  begin
8
- array = (!value.is_a?(Array) && value.respond_to?(:split)) ? value.split(options[:split]) : Attrio::Helpers.to_a(value).flatten!
8
+ array = (!value.is_a?(::Array) && value.respond_to?(:split)) ? value.split(options[:split]): Attrio::Helpers.to_a(value).flatten
9
9
  if options[:element].present?
10
+
10
11
  type = Attrio::AttributesParser.cast_type(self.element_type(options[:element]))
11
12
  options = self.element_options(options[:element])
12
13
 
@@ -4,7 +4,7 @@ module Attrio
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 7
7
- PATCH = 2
7
+ PATCH = 3
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attrio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Alexandrov