seven1m-onebody-updateagent 0.1.1 → 0.1.2

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/bin/update_onebody CHANGED
@@ -5,7 +5,7 @@ require 'yaml'
5
5
 
6
6
  options = {:confirm => true, :force => false}
7
7
  opt_parser = OptionParser.new do |opts|
8
- opts.banner = "Usage: ruby updateagent.rb -c path/to/config.yml [options] path/to/people.csv"
8
+ opts.banner = "Usage: update_onebody -c path/to/config.yml [options] path/to/people.csv"
9
9
  opts.on("-y", "--no-confirm", "Assume 'yes' to any questions") do |v|
10
10
  options[:confirm] = false
11
11
  end
@@ -147,7 +147,8 @@ class UpdateAgent
147
147
  print '.'; STDOUT.flush
148
148
  options = {:attrs => @attributes.join(','), :legacy_id => some_ids.join(',')}
149
149
  options.merge!(:debug => true) if DEBUG
150
- hashes = resource.get(:hashify, options)
150
+ response = resource.post(:hashify, {}, options.to_xml)
151
+ hashes = Hash.from_xml(response.body)['records']
151
152
  hashes.each do |record|
152
153
  row = data_by_id[record['legacy_id'].to_i]
153
154
  row['remote_hash'] = record['hash'] if DEBUG
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seven1m-onebody-updateagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Morgan
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-13 00:00:00 -07:00
12
+ date: 2009-04-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fastercsv
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,6 +24,7 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: highline
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -32,6 +34,7 @@ dependencies:
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
36
  name: activeresource
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements: