ingestor 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,13 +55,9 @@ module Ingestor
55
55
 
56
56
  record = finder ? finder.call(attrs) : nil
57
57
 
58
- if record && record.class.ancestors.count{|r| r.to_s =~ /ActiveModel|ActiveRecord/} > 0
59
- process_record(attrs,record)
60
- options[:after].call(record) if options[:after]
61
- record
62
- else
63
- Ingestor::LOG.warn("Processing skipped, ActiveModel type record not returned for #{attrs}")
64
- end
58
+ process_record(attrs,record)
59
+ options[:after].call(record) if options[:after]
60
+ record
65
61
  end
66
62
 
67
63
  def process_record(attrs,record)
@@ -1,3 +1,3 @@
1
1
  module Ingestor
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,32 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ingestor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Cory O'Daniel
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-11-13 00:00:00.000000000 Z
12
+ date: 2014-01-09 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: docile
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rubyzip
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - <
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - <
39
44
  - !ruby/object:Gem::Version
@@ -41,48 +46,55 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: thor
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: nokogiri
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>'
67
+ - - ! '>'
60
68
  - !ruby/object:Gem::Version
61
69
  version: 1.5.6
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>'
75
+ - - ! '>'
67
76
  - !ruby/object:Gem::Version
68
77
  version: 1.5.6
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: activesupport
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: multi_json
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ~>
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ~>
95
108
  - !ruby/object:Gem::Version
@@ -147,26 +160,27 @@ files:
147
160
  - spec/spec_helper.rb
148
161
  homepage: http://github.com/coryodaniel/ingestor
149
162
  licenses: []
150
- metadata: {}
151
163
  post_install_message:
152
164
  rdoc_options: []
153
165
  require_paths:
154
166
  - lib
155
167
  required_ruby_version: !ruby/object:Gem::Requirement
168
+ none: false
156
169
  requirements:
157
- - - '>='
170
+ - - ! '>='
158
171
  - !ruby/object:Gem::Version
159
172
  version: '0'
160
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
+ none: false
161
175
  requirements:
162
- - - '>='
176
+ - - ! '>='
163
177
  - !ruby/object:Gem::Version
164
178
  version: '0'
165
179
  requirements: []
166
180
  rubyforge_project:
167
- rubygems_version: 2.0.6
181
+ rubygems_version: 1.8.25
168
182
  signing_key:
169
- specification_version: 4
183
+ specification_version: 3
170
184
  summary: Ingesting local and remote data files into ActiveRecord
171
185
  test_files:
172
186
  - spec/cassettes/remote-zipped-files.yml
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: ebbcd702acac5ab4cc68de903353a86a8b45986c
4
- data.tar.gz: 6c988a13dacacbbfadb7e549e8533ecde2b2b84c
5
- SHA512:
6
- metadata.gz: 26bfdebcf5450d0b27debd828ece5744a06d3020a95bf86dc8cf8db8e27f7e8b5e5b37ae28d67702d58247a2c0fed6c42dbe682b3a95eaf2b1585aa02a06ba1a
7
- data.tar.gz: cd17329c4865444f1329fdbf213af79bfc5bca430db4061f3f24b06553ec8481882521bab30223cd7e4a6872e5e8b679e1c5964138639705ab5c32db81f8c9f9