argos-ruby 1.2.3 → 1.2.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6d81b4bb58e504df7d458fe87544910e327dfd1
4
- data.tar.gz: e87b06d9f868a023c48d23c1d48b62ffc364872e
3
+ metadata.gz: 8017d65ed93ced9c7870caa378cf60f3d9c6cec5
4
+ data.tar.gz: 1367b8b06d4fa33ada9826f5876d1badf18554bb
5
5
  SHA512:
6
- metadata.gz: 8172746732affef98be2a58174e30989c7743732ab3f57bbe1df2289a66d281d40e500489619b09658ece4d75d7d518328b5a97f50b61dd58b5d2f0ad415465a
7
- data.tar.gz: 7b41c164def0bd79e06dbfddf6312fb423044656e92e571b05a333716e50aac24876f00ed4163c28d718792d7ab40a283d1a5a63fa8938562a032ccdef2be606
6
+ metadata.gz: ed466838fd2a430ed490a08261cbc91078b3892f78ffd4e88cb95acf1a22294291b30b93fe898d508fa96eaf27758df7f702492742f90d1989c258c35b64fa43
7
+ data.tar.gz: 45427c315a422bb09c418a0e500642dd1e9bbf97161a03e3069f8cc46bd61b76d64722376b4f68c5b998f14c16791d0c8c3b1e6cdf89dee1f14a4d1b5792d3a9
data/Gemfile CHANGED
@@ -1,11 +1,8 @@
1
+ # http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
1
2
  source "https://rubygems.org"
2
- gem "yajl-ruby", require: "yajl" # git: "git://github.com/brianmario/yajl-ruby.git"
3
- gem "uuidtools"
4
- gem "hashie" #git: "git://github.com/intridea/hashie.git"
5
- #gem "json-schema", git: "git://github.com/hoxworth/json-schema.git"
3
+ gem "codeclimate-test-reporter", group: :test, require: nil
4
+
6
5
  gem "savon", github: "savonrb/savon", branch: "version3"
7
6
 
8
- group :development, :test do
9
- gem "rspec"
10
- gem "simplecov"
11
- end
7
+ gemspec
8
+
data/README.md CHANGED
@@ -16,7 +16,9 @@ Developed by staff at the [Norwegian Polar Data Centre](http://data.npolar.no),
16
16
  $ argos-soap -o getXsd # does not require authentication
17
17
  $ argos-soap --download archive/tracking/CLS --username=USERNAME --password=PASSWORD --debug
18
18
  $ argos-soap -o getXml --username=USERNAME --password=PASSWORD
19
+
19
20
  ```
21
+
20
22
  See [argos-soap](https://github.com/npolar/argos-ruby/wiki/argos-soap) for more usage examples.
21
23
 
22
24
  ### Legacy file parsing
@@ -36,7 +38,10 @@ $ xsltproc lib/argos/_xslt/argos-json.xslt spec/argos/_soap/getXml.xml
36
38
  ## Install
37
39
  ```sh
38
40
  $ gem install argos-ruby
41
+ $ cd `gem environment gemdir`/gems/argos-ruby-1.2.4
42
+ $ bundle install
39
43
  ```
44
+ Note: The extra step is a [bug](https://github.com/npolar/argos-ruby/issues/1)
40
45
 
41
46
  ## Links
42
47
  * https://github.com/npolar/api.npolar.no/wiki/Tracking-API-JSON
data/argos-ruby.gemspec CHANGED
@@ -1,6 +1,10 @@
1
1
  # encoding: utf-8
2
2
  # https://github.com/radar/guides/blob/master/gem-development.md
3
- require File.expand_path(File.dirname(__FILE__)+"/lib/argos")
3
+
4
+ lib = File.expand_path("#{__dir__}/lib")
5
+
6
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
+ require "argos/version"
4
8
 
5
9
  Gem::Specification.new do |s|
6
10
  s.name = "argos-ruby"
@@ -9,12 +13,20 @@ Gem::Specification.new do |s|
9
13
  s.authors = ["Espen Egeland", "Conrad Helgeland"]
10
14
  s.email = ["data*npolar.no"]
11
15
  s.homepage = "http://github.com/npolar/argos-ruby"
12
- s.summary = %q{Argos satellite tracking library and command-line tools}
16
+ s.summary = %q{Argos CLS satellite tracking library and command-line tools}
13
17
  s.description = %q{Argos (http://www.argos-system.org/) webservice client and Argos legacy file (DS/DAT and DIAG/DIA) parser.}
14
18
  s.license = "GPL-3.0"
19
+
15
20
  s.add_development_dependency 'rspec', '~> 3'
21
+ s.add_development_dependency 'simplecov'
22
+
23
+ s.add_dependency 'yajl-ruby'
24
+ s.add_dependency 'uuidtools'
25
+ s.add_dependency 'hashie'
26
+ s.add_dependency 'json-schema'
27
+
16
28
  s.files = `git ls-files`.split("\n")
17
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
29
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
30
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
31
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
32
  s.require_paths = ["lib"]
@@ -37,7 +37,11 @@ module Argos
37
37
 
38
38
  platforms = soap.platforms
39
39
 
40
+ # inactive (no last collect)
41
+ inactive = program["platform"]
42
+
40
43
  active = program["platform"].select {|platform|
44
+ platform.key? "lastCollectDate" and platform.key? "lastLocationDate"}.select {|platform|
41
45
 
42
46
  lastCollectDate = DateTime.parse(platform["lastCollectDate"])
43
47
  lastLocationDate = DateTime.parse(platform["lastLocationDate"])
@@ -47,10 +51,9 @@ module Argos
47
51
  (lastCollectDate > twentydays or lastLocationDate > twentydays)
48
52
 
49
53
  }
50
-
51
-
54
+ # inactive = platforms where last collect date is missing or > 20 days
52
55
  inactive = program["platform"] - active
53
-
56
+
54
57
  active.each_with_index do |a,m|
55
58
  log.debug "Active [#{m+1}/#{active.size}]: #{a.reject{|k,v| k =~ /location/i }.to_json}"
56
59
  end
@@ -0,0 +1,3 @@
1
+ module Argos
2
+ VERSION = "1.2.4"
3
+ end
data/lib/argos.rb CHANGED
@@ -26,8 +26,6 @@ require_relative "argos/download"
26
26
  #
27
27
  # For information about Argos, see: http://www.argos-system.org
28
28
  module Argos
29
- VERSION = "1.2.3"
30
-
31
29
  def self.library_version
32
30
  "argos-ruby-#{VERSION}"
33
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Espen Egeland
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-22 00:00:00.000000000 Z
12
+ date: 2014-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -25,6 +25,76 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '3'
28
+ - !ruby/object:Gem::Dependency
29
+ name: simplecov
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: yajl-ruby
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: uuidtools
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: hashie
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: json-schema
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
28
98
  description: Argos (http://www.argos-system.org/) webservice client and Argos legacy
29
99
  file (DS/DAT and DIAG/DIA) parser.
30
100
  email:
@@ -37,7 +107,6 @@ extra_rdoc_files: []
37
107
  files:
38
108
  - ".gitignore"
39
109
  - Gemfile
40
- - Gemfile.lock
41
110
  - LICENSE
42
111
  - README.md
43
112
  - argos-ruby.gemspec
@@ -54,6 +123,7 @@ files:
54
123
  - lib/argos/exception.rb
55
124
  - lib/argos/soap.rb
56
125
  - lib/argos/soap_command.rb
126
+ - lib/argos/version.rb
57
127
  - spec/argos/_diag/990660_A.DIA
58
128
  - spec/argos/_diag/Prog_header.ds
59
129
  - spec/argos/_diag/dup.diag
@@ -106,6 +176,6 @@ rubyforge_project:
106
176
  rubygems_version: 2.2.2
107
177
  signing_key:
108
178
  specification_version: 4
109
- summary: Argos satellite tracking library and command-line tools
179
+ summary: Argos CLS satellite tracking library and command-line tools
110
180
  test_files: []
111
181
  has_rdoc:
data/Gemfile.lock DELETED
@@ -1,59 +0,0 @@
1
- GIT
2
- remote: git://github.com/savonrb/savon.git
3
- revision: 61e13c61b68e5d3fa80826c31d54d696ab77290d
4
- branch: version3
5
- specs:
6
- savon (3.0.0)
7
- builder (>= 3.0.0)
8
- httpclient (~> 2.3)
9
- logging (~> 1.8)
10
- nokogiri (>= 1.4.0)
11
- nori (~> 2.2.0)
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- builder (3.2.2)
17
- diff-lcs (1.2.5)
18
- docile (1.1.5)
19
- hashie (3.3.1)
20
- httpclient (2.4.0)
21
- little-plugger (1.1.3)
22
- logging (1.8.2)
23
- little-plugger (>= 1.1.3)
24
- multi_json (>= 1.8.4)
25
- mini_portile (0.6.0)
26
- multi_json (1.10.1)
27
- nokogiri (1.6.3.1)
28
- mini_portile (= 0.6.0)
29
- nori (2.2.0)
30
- rspec (3.1.0)
31
- rspec-core (~> 3.1.0)
32
- rspec-expectations (~> 3.1.0)
33
- rspec-mocks (~> 3.1.0)
34
- rspec-core (3.1.7)
35
- rspec-support (~> 3.1.0)
36
- rspec-expectations (3.1.2)
37
- diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.1.0)
39
- rspec-mocks (3.1.3)
40
- rspec-support (~> 3.1.0)
41
- rspec-support (3.1.2)
42
- simplecov (0.9.1)
43
- docile (~> 1.1.0)
44
- multi_json (~> 1.0)
45
- simplecov-html (~> 0.8.0)
46
- simplecov-html (0.8.0)
47
- uuidtools (2.1.5)
48
- yajl-ruby (1.2.1)
49
-
50
- PLATFORMS
51
- ruby
52
-
53
- DEPENDENCIES
54
- hashie
55
- rspec
56
- savon!
57
- simplecov
58
- uuidtools
59
- yajl-ruby