rails_admin_import 1.2.0 → 1.3.0

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: d22596961dbc1568f035e4f5c6e5896fcfb01474
4
- data.tar.gz: 407a068d2bf2d62e096ec46c4c061b559db98bec
3
+ metadata.gz: b7246d47915d0a166fcdb67b2f8a4051aad8b062
4
+ data.tar.gz: 9fd8f2d8688550b778525573f44f17090e3af2de
5
5
  SHA512:
6
- metadata.gz: d1d2338cbf97015e11c114b1ee6d68994c8517942497ce839f029ac02e36d133f8bd9866634e23e5e2825d9a88033c25e5508016a209f39d48d593edcf2c376f
7
- data.tar.gz: 82fa136b73f126c8dcabaa7e83e472b0815b0231286d505be16718c15a7b8f9aa425fee723e67424419dd5e94a51182adbd6133238f4382b2d4f36df5ce96f80
6
+ metadata.gz: 53ae1aff8958f4d071952e3d065620e64a0b5c1e004d1320d901f97d09dbc203e5f214c28b5e00a9c236d30a116e55eda04fe3a043f52920a05824cb21a05108
7
+ data.tar.gz: 0597e2e2231b56665fc2ef4aae0663c515fad752669fad15cbc6ca72b6f9e8bd62a2e1df313b2da6810628d7e8ea90877a23263a0b7eeebbbe3cd851c2a644a6
data/CHANGELOG.md CHANGED
@@ -1,17 +1,20 @@
1
1
  # Change Log
2
2
 
3
- ## [1.2.0] - 2015-08-27
4
- ### Changed
3
+ # 1.3.0 / 2015-11-24
4
+
5
+ - Use `where.first` instead of `find_by` so update works for Mongoid
6
+
7
+ ## 1.2.0 / 2015-08-27
8
+
5
9
  - Existing records can now be updated based on a belongs_to foreign key. Thanks Diego Carrion!
6
10
  - Add Excel file format support
7
11
  - Autoload the Excel import and encoding detection gems
8
12
 
9
- ## [1.1.0] - 2015-08-04
10
- ### Changed
13
+ ## 1.1.0 / 2015-08-04
14
+
11
15
  - `csv_options` config added. Thanks Maksim Burnin!
12
16
 
13
- ## [1.0.0] - 2015-06-09
14
- ### Changed
17
+ ## 1.0.0 / 2015-06-09
15
18
 
16
19
  Major rework of the gem by new maintainer.
17
20
 
@@ -23,8 +26,7 @@ Major rework of the gem by new maintainer.
23
26
  - Added tests
24
27
 
25
28
 
26
- ## [0.1.9] - 2014-05-22
27
- ### Changed
29
+ ## 0.1.9 / 2014-05-22
28
30
 
29
31
  - Updated/corrected README
30
32
  - Merged ImportLogger work
@@ -174,7 +174,7 @@ module RailsAdminImport
174
174
 
175
175
  model = import_model.model
176
176
  object = if update.present?
177
- model.find_by(update => record[update])
177
+ model.where(update => record[update]).first
178
178
  end
179
179
 
180
180
  if object.nil?
@@ -1,3 +1,3 @@
1
1
  module RailsAdminImport
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_import
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steph Skardal
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-27 00:00:00.000000000 Z
12
+ date: 2015-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -81,20 +81,6 @@ dependencies:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '1.0'
84
- - !ruby/object:Gem::Dependency
85
- name: rubygems-tasks
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
84
  description:
99
85
  email:
100
86
  - steph@endpoint.com