argos-ruby 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/argos.rb +2 -1
- data/lib/argos/soap.rb +0 -17
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b574bef7417fb259d9cc785b69b0fa00874d3446
|
4
|
+
data.tar.gz: 5cc306ff7719b98b0c06e0d3de72641d486adc23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9622821907633d068c5b782df52b4e8b55f6b60a8335f3f5a1dd717b19cb2cedc6144a2fcfe1834237e3eb4ae49f869d9af47507dff38be04f4d5cdf1cf2315a
|
7
|
+
data.tar.gz: c08e857fddc4d9d791d9c7376d6b8778c40dcc1b6722f86143aef87abbd496fccae936de02997db7a60a9d6d83cc1834e5b86b66d04051afde39ee75635bffb0
|
data/README.md
CHANGED
@@ -13,6 +13,7 @@ Developed by staff at the [Norwegian Polar Data Centre](http://data.npolar.no),
|
|
13
13
|
## Webservice
|
14
14
|
|
15
15
|
```sh
|
16
|
+
$ argos-soap -o getXsd # does not require authentication
|
16
17
|
$ argos-soap --download archive/tracking/CLS --username=USERNAME --password=PASSWORD --debug
|
17
18
|
$ argos-soap -o getXml --username=USERNAME --password=PASSWORD
|
18
19
|
```
|
data/lib/argos.rb
CHANGED
@@ -6,6 +6,7 @@ require "digest/sha1"
|
|
6
6
|
require "json"
|
7
7
|
require "logger"
|
8
8
|
require "cgi"
|
9
|
+
require "savon"
|
9
10
|
|
10
11
|
require_relative "argos/exception"
|
11
12
|
require_relative "argos/ascii"
|
@@ -25,7 +26,7 @@ require_relative "argos/download"
|
|
25
26
|
#
|
26
27
|
# For information about Argos, see: http://www.argos-system.org
|
27
28
|
module Argos
|
28
|
-
VERSION = "1.2.
|
29
|
+
VERSION = "1.2.2"
|
29
30
|
|
30
31
|
def self.library_version
|
31
32
|
"argos-ruby-#{VERSION}"
|
data/lib/argos/soap.rb
CHANGED
@@ -1,20 +1,3 @@
|
|
1
|
-
root = File.dirname(File.realpath(__FILE__))+"/../.."
|
2
|
-
|
3
|
-
Dir.chdir root do
|
4
|
-
begin
|
5
|
-
require "savon"
|
6
|
-
rescue LoadError
|
7
|
-
# Prepend Savon lib to path, bundler seems not work
|
8
|
-
unless defined? Savon
|
9
|
-
# Cannot use #find_name returns []
|
10
|
-
# raise Bundler.rubygems.find_name('savon').to_json #.first.full_gem_path
|
11
|
-
savonbundle = `bundle show savon`.chomp
|
12
|
-
$LOAD_PATH.unshift(savonbundle+"/lib")
|
13
|
-
require_relative "#{savonbundle}/lib/savon"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
1
|
module Argos
|
19
2
|
class Soap
|
20
3
|
|