pitcher 0.0.2 → 0.0.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: 2e3ee77f4fb83a1cbe86eae678d661dbaab44cde
4
- data.tar.gz: cd544bc218bdc783f4cf16dd9fb7c04932a537c4
3
+ metadata.gz: 328e98f99eb2f6629c7226a3947675f808a7d7ce
4
+ data.tar.gz: e6d57af8766c452ea6a0fd10803072265865e265
5
5
  SHA512:
6
- metadata.gz: 2801d727896f0b0e6764f7c24ffa1a7166da8c2e5fb564948d325564ec348c4e68f4442856af034299908bf7ba44842726e97638b6238f6848b6e4a58ee0bddf
7
- data.tar.gz: bf91c34dd16816eb2813074b5d4df15d3e37b2105d32710ade15587ec4ed04bf634b93657f439f3142f80bbafb2665ef6f3dc1088b3179d983aebc88d413d480
6
+ metadata.gz: 7d6f5e90415f8bbfa31c7d77ba9898c579b71e8cf4630bc5fb60ad74c83b082f8b216431c86a512e999fe97fab9cc51e14e964726df95b2adb6759ea38931a80
7
+ data.tar.gz: 93c4137e9aca2a0e2aedd812c0e068df50c15c36d0844ca3eea1000c75105a64b40ea310c18418a8865fd2e34e64b42c32a7afbfe0b12a1cc0eff621ab77c7ec
data/bin/pitcher CHANGED
@@ -1,29 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'pitcher'
4
- require 'pitcher/settings'
5
4
 
6
5
  pitcher = Pitcher::Pitcher.new
7
-
8
6
  pitcheropts = Pitcher::PitcherOpts.new
9
7
  options = pitcheropts::parse(ARGV)
10
-
11
-
12
- if (!options[:settings] || !options[:csv])
13
- puts 'The --settings and --csv paramters are required'
14
- exit
15
- end
16
-
17
- if (options[:settings])
18
- settings = Settings.new(options[:settings])
19
- p settings
20
- else
21
- exit
22
- end
23
-
24
- if (options[:csv])
25
- csv = pitcher.load_csv(options[:csv])
26
- pitcher.create_message(csv,settings)
27
- else
28
- exit
29
- end
8
+ csv = pitcher.load_csv(options[:csv])
9
+ pitcher.create_message(csv,options)
@@ -1,3 +1,3 @@
1
1
  module Pitcher
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/pitcher.rb CHANGED
@@ -48,12 +48,13 @@ module Pitcher
48
48
  def send_message(message)
49
49
  # Initialize the SOAP client with the catcher service url
50
50
  client = Savon.client(
51
- wsdl: 'https://worldcat.org/webservices/contentdm/catcher/6.0/CatcherService.wsdl',
51
+ wsdl: 'https://worldcat.org/webservices/contentdm/catcher?wsdl',
52
52
  pretty_print_xml: true,
53
- log: true
53
+ log: true,
54
+ follow_redirects: true
54
55
  )
55
56
  # Create the hash that will be sent as a message to the service with the creds and data above
56
57
  client.call(:process_conten_tdm, message: message)
57
58
  end
58
59
  end
59
- end
60
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pitcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Little
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-07 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '10'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: savon
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -60,14 +60,14 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
+ - bin/pitcher
64
+ - lib/pitcher.rb
63
65
  - lib/pitcher/options.rb
64
66
  - lib/pitcher/settings.rb
65
67
  - lib/pitcher/version.rb
66
- - lib/pitcher.rb
67
- - bin/pitcher
68
68
  homepage: ''
69
69
  licenses:
70
- - BSD
70
+ - BSD-3-Clause
71
71
  metadata: {}
72
72
  post_install_message:
73
73
  rdoc_options: []
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.0.2
88
+ rubygems_version: 2.5.1
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: CLI utility to work with CONTENTdm's Catcher API