onebody-updateagent 0.5.4 → 0.6.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 0.6.0
data/bin/update_onebody CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby
1
+ #!/usr/bin/env ruby -wKU
2
2
 
3
3
  require 'optparse'
4
4
  require 'yaml'
@@ -2,7 +2,7 @@ require 'date'
2
2
  require 'rubygems'
3
3
  require 'fastercsv'
4
4
  require 'highline/import'
5
- require 'activeresource'
5
+ require 'active_resource'
6
6
  require 'digest/sha1'
7
7
  require 'net/smtp'
8
8
 
@@ -235,7 +235,7 @@ class UpdateAgent
235
235
  options = {:attrs => @attributes.join(','), :legacy_id => some_ids.join(',')}
236
236
  options.merge!(:debug => true) if @options['debug']
237
237
  response = resource.post(:hashify, {}, options.to_xml)
238
- hashes = Hash.from_xml(response.body)['records'].to_a
238
+ hashes = Array(Hash.from_xml(response.body)['objects'])
239
239
  hashes.each do |record|
240
240
  row = data_by_id[record['legacy_id'].to_i]
241
241
  if @options['debug']
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebody-updateagent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 5
9
- - 4
10
- version: 0.5.4
8
+ - 6
9
+ - 0
10
+ version: 0.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Morgan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-14 00:00:00 -05:00
18
+ date: 2010-12-06 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency