opentideconstants 0.0.0 → 0.1.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.
@@ -0,0 +1,15 @@
1
+ class OpenTideConstants
2
+ VERSION = "0.1.0".freeze
3
+
4
+ # Format majors this SDK reads.
5
+ SUPPORTED_FORMAT_MAJORS = [1].freeze
6
+ # The newest format version this SDK reads. A release whose
7
+ # release.min_reader_version is newer fails with reader_too_old.
8
+ SUPPORTED_FORMAT_VERSION = "1.0".freeze
9
+ DEFAULT_BASE_URL = "https://data.opentideconstants.org/".freeze
10
+ # The cache root subdirectory.
11
+ CACHE_LAYOUT_VERSION = "v1".freeze
12
+ # A valid datestamp: the date, then an optional counter of 2 or more, with
13
+ # at most 9 digits.
14
+ DATESTAMP_RE = /\A[0-9]{8}(\.[2-9]|\.[1-9][0-9]{1,8})?\z/.freeze
15
+ end
@@ -1,4 +1,25 @@
1
- # Placeholder. The OpenTideConstants SDK is not released yet: https://opentideconstants.org
2
- module OpenTideConstants
3
- VERSION = "0.0.0"
1
+ # The OpenTideConstants SDK for Ruby: download, check, cache and query the
2
+ # OpenTideConstants releases of open tidal harmonic constants.
3
+ #
4
+ # require "opentideconstants"
5
+ #
6
+ # otc = OpenTideConstants.new # the latest release (cached)
7
+ # st = otc.station_by_alias(:noaa, "9414290")
8
+ # st.recommended_set.constituent("M2").amplitude_m
9
+ #
10
+ # Standard library only. See https://opentideconstants.org
11
+ class OpenTideConstants
4
12
  end
13
+
14
+ require_relative "opentideconstants/version"
15
+ require_relative "opentideconstants/errors"
16
+ require_relative "opentideconstants/models"
17
+ require_relative "opentideconstants/fold"
18
+ require_relative "opentideconstants/release"
19
+ require_relative "opentideconstants/reader"
20
+ require_relative "opentideconstants/http"
21
+ require_relative "opentideconstants/cache"
22
+ require_relative "opentideconstants/downloader"
23
+ require_relative "opentideconstants/client"
24
+
25
+ require_relative "opentideconstants/predict"
@@ -0,0 +1,5 @@
1
+ {
2
+ "language": "ruby",
3
+ "version": "0.1.0",
4
+ "supported_format_version": "1.0"
5
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentideconstants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Ritter
@@ -9,8 +9,9 @@ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
- description: Reserves the name. The OpenTideConstants SDK is not released yet. See
13
- https://opentideconstants.org
12
+ description: 'The Ruby SDK for OpenTideConstants: open tidal harmonic constants with
13
+ stable station ids, provenance, validation and per-set licences. Native Ruby prediction;
14
+ standard library core, optional tzinfo local time.'
14
15
  executables: []
15
16
  extensions: []
16
17
  extra_rdoc_files: []
@@ -18,12 +19,42 @@ files:
18
19
  - LICENSE
19
20
  - README.md
20
21
  - lib/opentideconstants.rb
22
+ - lib/opentideconstants/bgzf.rb
23
+ - lib/opentideconstants/cache.rb
24
+ - lib/opentideconstants/cache_json.rb
25
+ - lib/opentideconstants/canonical.rb
26
+ - lib/opentideconstants/canonical_types.rb
27
+ - lib/opentideconstants/client.rb
28
+ - lib/opentideconstants/downloader.rb
29
+ - lib/opentideconstants/errors.rb
30
+ - lib/opentideconstants/fold.rb
31
+ - lib/opentideconstants/historical_fingerprint.rb
32
+ - lib/opentideconstants/http.rb
33
+ - lib/opentideconstants/models.rb
34
+ - lib/opentideconstants/name_fold.json
35
+ - lib/opentideconstants/predict.rb
36
+ - lib/opentideconstants/predict/astro.rb
37
+ - lib/opentideconstants/predict/daily-facts.json
38
+ - lib/opentideconstants/predict/daily.rb
39
+ - lib/opentideconstants/predict/engine.rb
40
+ - lib/opentideconstants/predict/harmonic.rb
41
+ - lib/opentideconstants/predict/local.rb
42
+ - lib/opentideconstants/predict/results.rb
43
+ - lib/opentideconstants/predict/retained.rb
44
+ - lib/opentideconstants/reader.rb
45
+ - lib/opentideconstants/release.rb
46
+ - lib/opentideconstants/version.rb
47
+ - supported-formats.json
21
48
  homepage: https://opentideconstants.org
22
49
  licenses:
23
50
  - MIT
24
51
  metadata:
25
52
  homepage_uri: https://opentideconstants.org
53
+ documentation_uri: https://opentideconstants.org/sdk/
26
54
  source_code_uri: https://github.com/opentideconstants/sdk
55
+ bug_tracker_uri: https://github.com/opentideconstants/sdk/issues
56
+ changelog_uri: https://github.com/opentideconstants/sdk/blob/main/ruby/CHANGELOG.md
57
+ rubygems_mfa_required: 'true'
27
58
  rdoc_options: []
28
59
  require_paths:
29
60
  - lib
@@ -31,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
31
62
  requirements:
32
63
  - - ">="
33
64
  - !ruby/object:Gem::Version
34
- version: '2.7'
65
+ version: '3.3'
35
66
  required_rubygems_version: !ruby/object:Gem::Requirement
36
67
  requirements:
37
68
  - - ">="
@@ -40,5 +71,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
71
  requirements: []
41
72
  rubygems_version: 3.6.9
42
73
  specification_version: 4
43
- summary: Placeholder for the OpenTideConstants SDK
74
+ summary: Download, check, cache and query OpenTideConstants releases of tidal harmonic
75
+ constants
44
76
  test_files: []