spreadsheet_model 0.3.3 → 0.3.4

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: 9f62c026036ee840186938e7f4deaf09f56a6ba2
4
- data.tar.gz: 33ad2c4688541958f524c29468df843392e88a68
3
+ metadata.gz: ab22b5aedfa5a23f20869f244cd27568eff44ff2
4
+ data.tar.gz: c6ae62f88094e37d7709756f9e1b9466bf79c2ab
5
5
  SHA512:
6
- metadata.gz: 39a82a8273359b3574f7f27875a85dfad342c9b4d2b09e752431f0e849315c65a8e1d72ef9393a40d36ecfef80c13286628ffba054ec945efaefeab55e51fa0f
7
- data.tar.gz: bb997b749907bdbbabc25acb2e2f74c460fe2ba2bad07a0bad68f50824b361a1db8edee7c5bd9ce8da7f9109a51d2098d6f38b0553635e97e113f2f6036c1c87
6
+ metadata.gz: 441cd0cbd0346f8842e859a0be71ae7d6c22a60ae4d040b1336d6666ae8df046a1e8f16c0ac381d6419c1dacd694f1d91752db76bda5f85fcb668e13be292abc
7
+ data.tar.gz: 9db6360d48bde8db19a16209b5ba7a7a30fe8d2a78477b35c014065af6d80418b4876fe85a3d5cdf309a0f5e0542a5d29446b3c08b2f45595ceb38f55a1c33b0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spreadsheet_model (0.3.3)
4
+ spreadsheet_model (0.3.4)
5
5
  activemodel
6
6
  activesupport
7
7
  google_drive (~> 1.0)
@@ -1,3 +1,3 @@
1
1
  module SpreadsheetModel
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -16,7 +16,7 @@ module SpreadsheetModel
16
16
 
17
17
  def self.attr_accessor(*args)
18
18
  super
19
- @@column_names = args
19
+ @column_names = args
20
20
  end
21
21
 
22
22
  def [](name)
@@ -141,7 +141,7 @@ module SpreadsheetModel
141
141
 
142
142
  def self.row_to_instance(row)
143
143
  return nil unless row
144
- attributes = row.select { |key, _| @@column_names.include?(key.to_sym) }
144
+ attributes = row.select { |key, _| @column_names.include?(key.to_sym) }
145
145
 
146
146
  if attributes['type'].to_s.present?
147
147
  instance = attributes['type'].constantize.new(attributes)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreadsheet_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - zucay