cdss-ruby 0.1.0 → 1.0.1

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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/CHANGELOG.md +4 -0
  4. data/README.md +1 -1
  5. data/cdss-ruby.gemspec +44 -0
  6. data/docs/Cdss/AdminCalls.html +1 -1
  7. data/docs/Cdss/Analysis.html +1 -1
  8. data/docs/Cdss/Client.html +1 -1
  9. data/docs/Cdss/Climate.html +1 -1
  10. data/docs/Cdss/Concerns/LogReadingAttributes.html +1 -1
  11. data/docs/Cdss/Concerns/WellReadingAttributes.html +1 -1
  12. data/docs/Cdss/Concerns.html +1 -1
  13. data/docs/Cdss/GroundWater.html +1 -1
  14. data/docs/Cdss/Models/AdminCall.html +1 -1
  15. data/docs/Cdss/Models/Analysis.html +1 -1
  16. data/docs/Cdss/Models/CallAnalysis.html +1 -1
  17. data/docs/Cdss/Models/ClimateStation.html +1 -1
  18. data/docs/Cdss/Models/DiversionRecord.html +1 -1
  19. data/docs/Cdss/Models/Reading.html +1 -1
  20. data/docs/Cdss/Models/ReferenceTable.html +1 -1
  21. data/docs/Cdss/Models/RouteAnalysis.html +1 -1
  22. data/docs/Cdss/Models/SourceRoute.html +1 -1
  23. data/docs/Cdss/Models/Station.html +1 -1
  24. data/docs/Cdss/Models/Structure.html +1 -1
  25. data/docs/Cdss/Models/WaterClass.html +1 -1
  26. data/docs/Cdss/Models/WaterRight.html +1 -1
  27. data/docs/Cdss/Models/Well.html +1 -1
  28. data/docs/Cdss/Models.html +1 -1
  29. data/docs/Cdss/Parser.html +1 -1
  30. data/docs/Cdss/Parsers/AdminCallsParser.html +1 -1
  31. data/docs/Cdss/Parsers/AnalysisParser.html +1 -1
  32. data/docs/Cdss/Parsers/BaseParser.html +1 -1
  33. data/docs/Cdss/Parsers/ClimateParser.html +1 -1
  34. data/docs/Cdss/Parsers/ReadingParser.html +1 -1
  35. data/docs/Cdss/Parsers/ReferenceTablesParser.html +1 -1
  36. data/docs/Cdss/Parsers/StationParser.html +1 -1
  37. data/docs/Cdss/Parsers/StructuresParser.html +1 -1
  38. data/docs/Cdss/Parsers/WaterRightsParser.html +1 -1
  39. data/docs/Cdss/Parsers/WellParser.html +1 -1
  40. data/docs/Cdss/Parsers.html +1 -1
  41. data/docs/Cdss/ReferenceTables.html +1 -1
  42. data/docs/Cdss/Structures.html +1 -1
  43. data/docs/Cdss/SurfaceWater.html +1 -1
  44. data/docs/Cdss/Telemetry.html +1 -1
  45. data/docs/Cdss/Utils.html +1 -1
  46. data/docs/Cdss/WaterRights.html +1 -1
  47. data/docs/Cdss.html +2 -2
  48. data/docs/_index.html +1 -1
  49. data/docs/file.README.html +92 -20
  50. data/docs/index.html +92 -20
  51. data/docs/top-level-namespace.html +1 -1
  52. data/lib/cdss/client.rb +1 -0
  53. data/lib/cdss/parsers/admin_calls_parser.rb +1 -0
  54. data/lib/cdss/parsers/analysis_parser.rb +2 -2
  55. data/lib/cdss/parsers/base_parser.rb +3 -2
  56. data/lib/cdss/version.rb +1 -1
  57. data/lib/cdss.rb +3 -2
  58. metadata +7 -47
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15ae6061a3db3c8ead6608a242d547acec504d2eb5b2bc635c951cecb077e938
4
- data.tar.gz: 3df958bf305f3323ef4439624f61e7f945c108e6b1e51f1d07f9a8d925730297
3
+ metadata.gz: 05f345cc530ad50d8184c25729e75f3023b7bf60c9b3035dd858c59eff56a9e2
4
+ data.tar.gz: e244322e2019375f0768db1b427a2e9949c30c1ed06697a8820b78c073ef19a1
5
5
  SHA512:
6
- metadata.gz: 54ed6ca04a155d58d3ad74c18425e5658b728c7b58c2d5c8289c9bc0947a103468e7b74d8bd59d056c2f6c18790ffa2e5f8eb74c973aae44bbcaca39848d4b62
7
- data.tar.gz: 9dd2ba9da24e945278f265e223e687ec141d702a190efe163f0944bef3e1c2ff32a7af9a8beb18d6d0bafdc0e4509a5545063b7672e07f5f4b9657b27c29ca7b
6
+ metadata.gz: 1358f1a71bf586fa3f0d10223d26c0dcf92c04be14ac1913419fc9f2228852caca3911e8123123fb336cf161321413c44f3eadbd7fa35c8fdf8f4e1821b214ce
7
+ data.tar.gz: edc281cbdfcc2ffa8a221217ff581be91550dbff95aafbfca0066eb146c420de69b602ef386efcdbf0972843df055b6c6d90bf5731dd79e65ad7a1e8dfbc0b8f
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ require:
3
3
  - rubocop-minitest
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.7
6
+ TargetRubyVersion: '3.2.0'
7
7
  NewCops: enable
8
8
 
9
9
  # Allow development dependencies in gemspec
data/CHANGELOG.md CHANGED
@@ -2,4 +2,8 @@
2
2
 
3
3
  ## [0.1.0] - 2024-10-30
4
4
 
5
+ - First commit
6
+
7
+ ## [1.0.0] - 2025-2-27
8
+
5
9
  - Initial release
data/README.md CHANGED
@@ -97,5 +97,5 @@ The cdss-ruby gem is licensed under the MIT license.
97
97
 
98
98
  ## Like The Gem?
99
99
 
100
- If you like Tabtastic.vim follow the repository on [Github](https://github.com/mgm702/vim-tabtastic) and if you are feeling extra nice, follow the author [mgm702](http://mgm702.com) on [Twitter](https://twitter.com/mgm702) or [Github](https://github.com/mgm702).
100
+ If you like Cdss-ruby follow the repository on [Github](https://github.com/mgm702/cdss-ruby) and if you are feeling extra nice, follow the author [mgm702](http://mgm702.com) on [Twitter](https://twitter.com/mgm702) or [Github](https://github.com/mgm702).
101
101
 
data/cdss-ruby.gemspec ADDED
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/cdss/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "cdss-ruby"
7
+ spec.version = Cdss::VERSION
8
+ spec.authors = ["Matt Michnal "]
9
+ spec.email = ["mattm3646@gmail.com"]
10
+ spec.summary = "Ruby wrapper for various water resource APIs"
11
+ spec.description = "Access water station data from USGS, Colorado DWR, TWDB, and other water agencies"
12
+ spec.homepage = "https://github.com/mgm702/cdss-ruby"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = ">= 3.2.0"
15
+
16
+ spec.metadata = {
17
+ "allowed_push_host" => "https://rubygems.org",
18
+ "homepage_uri" => spec.homepage,
19
+ "source_code_uri" => "https://github.com/mgm702/cdss-ruby",
20
+ "changelog_uri" => "https://github.com/mgm702/cdss-ruby/blob/main/CHANGELOG.md",
21
+ "documentation_uri" => "https://mgm702.com/cdss-ruby/",
22
+ "rubygems_mfa_required" => "true"
23
+ }
24
+
25
+ # Specify which files should be added to the gem when it is released.
26
+ spec.files = Dir.chdir(__dir__) do
27
+ `git ls-files -z`.split("\x0").reject do |f|
28
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
29
+ end
30
+ end
31
+
32
+ spec.bindir = "exe"
33
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
34
+ spec.require_paths = ["lib"]
35
+
36
+ spec.add_dependency "dry-configurable", "~> 1.0"
37
+ spec.add_dependency "httparty", "~> 0.21"
38
+ spec.add_dependency "zeitwerk", "~> 2.6"
39
+
40
+ # Development dependencies
41
+ spec.add_development_dependency "minitest-reporters", "~> 1.5"
42
+ spec.add_development_dependency "vcr", "~> 6.0"
43
+ spec.add_development_dependency "webmock", "~> 3.18"
44
+ end
@@ -389,7 +389,7 @@
389
389
  </div>
390
390
 
391
391
  <div id="footer">
392
- Generated on Thu Feb 20 21:19:08 2025 by
392
+ Generated on Thu Feb 27 21:52:29 2025 by
393
393
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
394
394
  0.9.37 (ruby-3.2.2).
395
395
  </div>
@@ -962,7 +962,7 @@
962
962
  </div>
963
963
 
964
964
  <div id="footer">
965
- Generated on Thu Feb 20 21:19:08 2025 by
965
+ Generated on Thu Feb 27 21:52:29 2025 by
966
966
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
967
967
  0.9.37 (ruby-3.2.2).
968
968
  </div>
@@ -571,7 +571,7 @@
571
571
  </div>
572
572
 
573
573
  <div id="footer">
574
- Generated on Thu Feb 20 21:19:08 2025 by
574
+ Generated on Thu Feb 27 21:52:29 2025 by
575
575
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
576
576
  0.9.37 (ruby-3.2.2).
577
577
  </div>
@@ -1247,7 +1247,7 @@
1247
1247
  </div>
1248
1248
 
1249
1249
  <div id="footer">
1250
- Generated on Thu Feb 20 21:19:08 2025 by
1250
+ Generated on Thu Feb 27 21:52:29 2025 by
1251
1251
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1252
1252
  0.9.37 (ruby-3.2.2).
1253
1253
  </div>
@@ -396,7 +396,7 @@
396
396
  </div>
397
397
 
398
398
  <div id="footer">
399
- Generated on Thu Feb 20 21:19:08 2025 by
399
+ Generated on Thu Feb 27 21:52:29 2025 by
400
400
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
401
401
  0.9.37 (ruby-3.2.2).
402
402
  </div>
@@ -404,7 +404,7 @@
404
404
  </div>
405
405
 
406
406
  <div id="footer">
407
- Generated on Thu Feb 20 21:19:08 2025 by
407
+ Generated on Thu Feb 27 21:52:29 2025 by
408
408
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
409
409
  0.9.37 (ruby-3.2.2).
410
410
  </div>
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Thu Feb 20 21:19:08 2025 by
110
+ Generated on Thu Feb 27 21:52:29 2025 by
111
111
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
112
  0.9.37 (ruby-3.2.2).
113
113
  </div>
@@ -935,7 +935,7 @@
935
935
  </div>
936
936
 
937
937
  <div id="footer">
938
- Generated on Thu Feb 20 21:19:08 2025 by
938
+ Generated on Thu Feb 27 21:52:29 2025 by
939
939
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
940
940
  0.9.37 (ruby-3.2.2).
941
941
  </div>
@@ -242,7 +242,7 @@
242
242
  </div>
243
243
 
244
244
  <div id="footer">
245
- Generated on Thu Feb 20 21:19:08 2025 by
245
+ Generated on Thu Feb 27 21:52:29 2025 by
246
246
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
247
247
  0.9.37 (ruby-3.2.2).
248
248
  </div>
@@ -387,7 +387,7 @@
387
387
  </div>
388
388
 
389
389
  <div id="footer">
390
- Generated on Thu Feb 20 21:19:08 2025 by
390
+ Generated on Thu Feb 27 21:52:29 2025 by
391
391
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
392
392
  0.9.37 (ruby-3.2.2).
393
393
  </div>
@@ -130,7 +130,7 @@
130
130
  </div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Thu Feb 20 21:19:08 2025 by
133
+ Generated on Thu Feb 27 21:52:29 2025 by
134
134
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
135
  0.9.37 (ruby-3.2.2).
136
136
  </div>
@@ -239,7 +239,7 @@
239
239
  </div>
240
240
 
241
241
  <div id="footer">
242
- Generated on Thu Feb 20 21:19:08 2025 by
242
+ Generated on Thu Feb 27 21:52:29 2025 by
243
243
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
244
244
  0.9.37 (ruby-3.2.2).
245
245
  </div>
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
 
240
240
  <div id="footer">
241
- Generated on Thu Feb 20 21:19:08 2025 by
241
+ Generated on Thu Feb 27 21:52:29 2025 by
242
242
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
243
243
  0.9.37 (ruby-3.2.2).
244
244
  </div>
@@ -291,7 +291,7 @@
291
291
  </div>
292
292
 
293
293
  <div id="footer">
294
- Generated on Thu Feb 20 21:19:08 2025 by
294
+ Generated on Thu Feb 27 21:52:29 2025 by
295
295
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
296
296
  0.9.37 (ruby-3.2.2).
297
297
  </div>
@@ -329,7 +329,7 @@
329
329
  </div>
330
330
 
331
331
  <div id="footer">
332
- Generated on Thu Feb 20 21:19:08 2025 by
332
+ Generated on Thu Feb 27 21:52:29 2025 by
333
333
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
334
334
  0.9.37 (ruby-3.2.2).
335
335
  </div>
@@ -130,7 +130,7 @@
130
130
  </div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Thu Feb 20 21:19:08 2025 by
133
+ Generated on Thu Feb 27 21:52:29 2025 by
134
134
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
135
  0.9.37 (ruby-3.2.2).
136
136
  </div>
@@ -130,7 +130,7 @@
130
130
  </div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Thu Feb 20 21:19:08 2025 by
133
+ Generated on Thu Feb 27 21:52:29 2025 by
134
134
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
135
  0.9.37 (ruby-3.2.2).
136
136
  </div>
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
 
240
240
  <div id="footer">
241
- Generated on Thu Feb 20 21:19:08 2025 by
241
+ Generated on Thu Feb 27 21:52:29 2025 by
242
242
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
243
243
  0.9.37 (ruby-3.2.2).
244
244
  </div>
@@ -249,7 +249,7 @@
249
249
  </div>
250
250
 
251
251
  <div id="footer">
252
- Generated on Thu Feb 20 21:19:08 2025 by
252
+ Generated on Thu Feb 27 21:52:29 2025 by
253
253
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
254
254
  0.9.37 (ruby-3.2.2).
255
255
  </div>
@@ -239,7 +239,7 @@
239
239
  </div>
240
240
 
241
241
  <div id="footer">
242
- Generated on Thu Feb 20 21:19:08 2025 by
242
+ Generated on Thu Feb 27 21:52:29 2025 by
243
243
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
244
244
  0.9.37 (ruby-3.2.2).
245
245
  </div>
@@ -245,7 +245,7 @@
245
245
  </div>
246
246
 
247
247
  <div id="footer">
248
- Generated on Thu Feb 20 21:19:08 2025 by
248
+ Generated on Thu Feb 27 21:52:29 2025 by
249
249
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
250
250
  0.9.37 (ruby-3.2.2).
251
251
  </div>
@@ -241,7 +241,7 @@
241
241
  </div>
242
242
 
243
243
  <div id="footer">
244
- Generated on Thu Feb 20 21:19:08 2025 by
244
+ Generated on Thu Feb 27 21:52:29 2025 by
245
245
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
246
246
  0.9.37 (ruby-3.2.2).
247
247
  </div>
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Thu Feb 20 21:19:08 2025 by
110
+ Generated on Thu Feb 27 21:52:29 2025 by
111
111
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
112
  0.9.37 (ruby-3.2.2).
113
113
  </div>
@@ -2145,7 +2145,7 @@
2145
2145
  </div>
2146
2146
 
2147
2147
  <div id="footer">
2148
- Generated on Thu Feb 20 21:19:08 2025 by
2148
+ Generated on Thu Feb 27 21:52:29 2025 by
2149
2149
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2150
2150
  0.9.37 (ruby-3.2.2).
2151
2151
  </div>
@@ -191,7 +191,7 @@
191
191
  </div>
192
192
 
193
193
  <div id="footer">
194
- Generated on Thu Feb 20 21:19:08 2025 by
194
+ Generated on Thu Feb 27 21:52:29 2025 by
195
195
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
196
  0.9.37 (ruby-3.2.2).
197
197
  </div>
@@ -286,7 +286,7 @@
286
286
  </div>
287
287
 
288
288
  <div id="footer">
289
- Generated on Thu Feb 20 21:19:08 2025 by
289
+ Generated on Thu Feb 27 21:52:29 2025 by
290
290
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
291
291
  0.9.37 (ruby-3.2.2).
292
292
  </div>
@@ -197,7 +197,7 @@
197
197
  </div>
198
198
 
199
199
  <div id="footer">
200
- Generated on Thu Feb 20 21:19:08 2025 by
200
+ Generated on Thu Feb 27 21:52:29 2025 by
201
201
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
202
202
  0.9.37 (ruby-3.2.2).
203
203
  </div>
@@ -243,7 +243,7 @@
243
243
  </div>
244
244
 
245
245
  <div id="footer">
246
- Generated on Thu Feb 20 21:19:08 2025 by
246
+ Generated on Thu Feb 27 21:52:29 2025 by
247
247
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
248
248
  0.9.37 (ruby-3.2.2).
249
249
  </div>
@@ -191,7 +191,7 @@
191
191
  </div>
192
192
 
193
193
  <div id="footer">
194
- Generated on Thu Feb 20 21:19:08 2025 by
194
+ Generated on Thu Feb 27 21:52:29 2025 by
195
195
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
196
  0.9.37 (ruby-3.2.2).
197
197
  </div>
@@ -191,7 +191,7 @@
191
191
  </div>
192
192
 
193
193
  <div id="footer">
194
- Generated on Thu Feb 20 21:19:08 2025 by
194
+ Generated on Thu Feb 27 21:52:29 2025 by
195
195
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
196
  0.9.37 (ruby-3.2.2).
197
197
  </div>
@@ -191,7 +191,7 @@
191
191
  </div>
192
192
 
193
193
  <div id="footer">
194
- Generated on Thu Feb 20 21:19:08 2025 by
194
+ Generated on Thu Feb 27 21:52:29 2025 by
195
195
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
196
  0.9.37 (ruby-3.2.2).
197
197
  </div>
@@ -295,7 +295,7 @@
295
295
  </div>
296
296
 
297
297
  <div id="footer">
298
- Generated on Thu Feb 20 21:19:08 2025 by
298
+ Generated on Thu Feb 27 21:52:29 2025 by
299
299
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
300
300
  0.9.37 (ruby-3.2.2).
301
301
  </div>
@@ -209,7 +209,7 @@
209
209
  </div>
210
210
 
211
211
  <div id="footer">
212
- Generated on Thu Feb 20 21:19:08 2025 by
212
+ Generated on Thu Feb 27 21:52:29 2025 by
213
213
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
214
214
  0.9.37 (ruby-3.2.2).
215
215
  </div>
@@ -347,7 +347,7 @@
347
347
  </div>
348
348
 
349
349
  <div id="footer">
350
- Generated on Thu Feb 20 21:19:08 2025 by
350
+ Generated on Thu Feb 27 21:52:29 2025 by
351
351
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
352
352
  0.9.37 (ruby-3.2.2).
353
353
  </div>
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Thu Feb 20 21:19:08 2025 by
110
+ Generated on Thu Feb 27 21:52:29 2025 by
111
111
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
112
  0.9.37 (ruby-3.2.2).
113
113
  </div>
@@ -322,7 +322,7 @@
322
322
  </div>
323
323
 
324
324
  <div id="footer">
325
- Generated on Thu Feb 20 21:19:08 2025 by
325
+ Generated on Thu Feb 27 21:52:29 2025 by
326
326
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
327
327
  0.9.37 (ruby-3.2.2).
328
328
  </div>
@@ -1122,7 +1122,7 @@
1122
1122
  </div>
1123
1123
 
1124
1124
  <div id="footer">
1125
- Generated on Thu Feb 20 21:19:08 2025 by
1125
+ Generated on Thu Feb 27 21:52:29 2025 by
1126
1126
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1127
1127
  0.9.37 (ruby-3.2.2).
1128
1128
  </div>
@@ -788,7 +788,7 @@
788
788
  </div>
789
789
 
790
790
  <div id="footer">
791
- Generated on Thu Feb 20 21:19:08 2025 by
791
+ Generated on Thu Feb 27 21:52:29 2025 by
792
792
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
793
793
  0.9.37 (ruby-3.2.2).
794
794
  </div>
@@ -753,7 +753,7 @@
753
753
  </div>
754
754
 
755
755
  <div id="footer">
756
- Generated on Thu Feb 20 21:19:08 2025 by
756
+ Generated on Thu Feb 27 21:52:29 2025 by
757
757
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
758
758
  0.9.37 (ruby-3.2.2).
759
759
  </div>
data/docs/Cdss/Utils.html CHANGED
@@ -1266,7 +1266,7 @@
1266
1266
  </div>
1267
1267
 
1268
1268
  <div id="footer">
1269
- Generated on Thu Feb 20 21:19:08 2025 by
1269
+ Generated on Thu Feb 27 21:52:29 2025 by
1270
1270
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1271
1271
  0.9.37 (ruby-3.2.2).
1272
1272
  </div>
@@ -624,7 +624,7 @@
624
624
  </div>
625
625
 
626
626
  <div id="footer">
627
- Generated on Thu Feb 20 21:19:08 2025 by
627
+ Generated on Thu Feb 27 21:52:29 2025 by
628
628
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
629
629
  0.9.37 (ruby-3.2.2).
630
630
  </div>
data/docs/Cdss.html CHANGED
@@ -114,7 +114,7 @@
114
114
  <dt id="VERSION-constant" class="">VERSION =
115
115
 
116
116
  </dt>
117
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
117
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.0.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
118
118
 
119
119
  </dl>
120
120
 
@@ -282,7 +282,7 @@
282
282
  </div>
283
283
 
284
284
  <div id="footer">
285
- Generated on Thu Feb 20 21:19:08 2025 by
285
+ Generated on Thu Feb 27 21:52:29 2025 by
286
286
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
287
287
  0.9.37 (ruby-3.2.2).
288
288
  </div>
data/docs/_index.html CHANGED
@@ -483,7 +483,7 @@
483
483
  </div>
484
484
 
485
485
  <div id="footer">
486
- Generated on Thu Feb 20 21:19:08 2025 by
486
+ Generated on Thu Feb 27 21:52:29 2025 by
487
487
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
488
488
  0.9.37 (ruby-3.2.2).
489
489
  </div>
@@ -57,48 +57,120 @@
57
57
  <div class="clear"></div>
58
58
  </div>
59
59
 
60
- <div id="content"><div id='filecontents'>
61
- <h1 id="label-Cdss-3A-3ARuby">Cdss::Ruby</h1>
60
+ <div id="content"><div id='filecontents'><h1 id="cdss-ruby"><strong>cdss-ruby</strong></h1>
62
61
 
63
- <p>TODO: Delete this and the text below, and describe your gem</p>
62
+ <p><a href="https://github.com/mgm702/cdss-ruby/actions"><img src="https://github.com/mgm702/cdss-ruby/actions/workflows/main.yml/badge.svg" alt="Build Status" /></a>
63
+ <a href="https://badge.fury.io/rb/cdss-ruby"><img src="https://badge.fury.io/rb/cdss-ruby.svg" alt="Gem Version" /></a>
64
+ <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT license" /></a></p>
64
65
 
65
- <p>Welcome to your new gem! In this directory, you’ll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file <code>lib/cdss/ruby</code>. To experiment with that code, run <code>bin/console</code> for an interactive prompt.</p>
66
+ <p><a href="https://dwr.state.co.us/Tools"><strong>« CDSS »</strong></a></p>
66
67
 
67
- <h2 id="label-Installation">Installation</h2>
68
+ <p><a href="https://dwr.state.co.us/Rest/GET/Help"><strong>CDSS REST Web</strong></a></p>
68
69
 
69
- <p>TODO: Replace <code>UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG</code> with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don’t plan to release to RubyGems.org.</p>
70
+ <p>The goal of <a href="https://rubygems.org/gems/cdss-ruby"><strong><code>cdss-ruby</code></strong></a> is to provide functions that help Ruby users to navigate, explore, and make requests to the CDSS REST API web service.</p>
70
71
 
71
- <p>Install the gem and add to the application’s Gemfile by executing:</p>
72
+ <p>The Colorado’s Decision Support Systems (CDSS) is a water management system created and developed by the Colorado Water Conservation Board (CWCB) and the Colorado Division of Water Resources (DWR).</p>
72
73
 
73
- <pre class="code ruby"><code class="ruby">$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
74
- </code></pre>
74
+ <p>Thank you to those at CWCB and DWR for providing an accessible and well documented REST API!</p>
75
75
 
76
- <p>If bundler is not being used to manage dependencies, install the gem by executing:</p>
76
+ <blockquote>
77
+ <p>See <a href="https://github.com/anguswg-ucsb/cdssr"><strong><code>cdssr</code></strong></a>, for the <strong>R</strong> version of this package</p>
78
+ </blockquote>
77
79
 
78
- <pre class="code ruby"><code class="ruby">$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
79
- </code></pre>
80
+ <blockquote>
81
+ <p>See <a href="https://github.com/anguswg-ucsb/cdsspy"><strong><code>cdsspy</code></strong></a>, for the <strong>Python</strong> version of this package</p>
82
+ </blockquote>
80
83
 
81
- <h2 id="label-Usage">Usage</h2>
84
+ <hr />
82
85
 
83
- <p>TODO: Write usage instructions here</p>
86
+ <ul>
87
+ <li>
88
+ <p><a href="https://github.com/anguswg-ucsb/cdssr"><strong>cdssr (R)</strong></a></p>
89
+ </li>
90
+ <li>
91
+ <p><a href="https://anguswg-ucsb.github.io/cdssr/"><strong>cdssr documentation</strong></a></p>
92
+ </li>
93
+ <li>
94
+ <p><a href="https://github.com/anguswg-ucsb/cdsspy"><strong>cdsspy (Python)</strong></a></p>
95
+ </li>
96
+ <li>
97
+ <p><a href="https://pypi.org/project/cdsspy/"><strong>cdsspy documentation</strong></a></p>
98
+ </li>
99
+ <li>
100
+ <p><a href="https://github.com/mgm702/cdss-ruby"><strong>cdss-ruby (Ruby)</strong></a></p>
101
+ </li>
102
+ <li>
103
+ <p><a href="https://mgm702.com/cdss-ruby/"><strong>cdss-ruby documentation</strong></a></p>
104
+ </li>
105
+ </ul>
84
106
 
85
- <h2 id="label-Development">Development</h2>
107
+ <hr />
108
+
109
+ <h2 id="installation"><strong>Installation</strong></h2>
110
+
111
+ <p>Add this line to your application’s Gemfile:</p>
112
+
113
+ <p><code>ruby
114
+ gem 'cdss-ruby'
115
+ </code>
116
+ and then execute
117
+ <code>ruby
118
+ bundle install
119
+ </code></p>
120
+
121
+ <p>or install it yourself as:
122
+ <code>bash
123
+ gem install cdss-ruby
124
+ </code></p>
125
+
126
+ <h2 id="getting-started"><strong>Getting Started</strong></h2>
127
+
128
+ <p>Using the gem is simple. Create a client and start making requests:</p>
129
+
130
+ <p><code>ruby
131
+ irb(main):001:0&gt; @client = Cdss.client
132
+ =&gt; #&lt;Cdss::Client:0x0000000103f757c0 @api_key=nil, @options={}&gt;
133
+ irb(main):002:0&gt; @client.get_sw_stations
134
+ </code></p>
135
+
136
+ <h2 id="available-endpoints"><strong>Available Endpoints</strong></h2>
137
+
138
+ <p>The <code>cdss-ruby</code> gem provides access to all CDSS API endpoints through an intuitive interface. For detailed documentation on each endpoint and its methods, please visit our <a href="https://mgm702.com/cdss-ruby">documentation site</a>.
139
+ Here are some key modules:</p>
140
+
141
+ <ul>
142
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/AdminCalls.html">Cdss::AdminCalls</a> - Access administrative calls and structure data</li>
143
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/Climate.html">Cdss::Climate</a> - Get climate station data and time series</li>
144
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/GroundWater.html">Cdss::Groundwater</a> - Access groundwater well data and measurements</li>
145
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/ReferenceTables.html">Cdss::ReferenceTables</a> - Get reference tables</li>
146
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/SurfaceWater.html">Cdss::SurfaceWater</a> - Access surface water stations and time series</li>
147
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/Telemetry.html">Cdss::Telemetry</a> - Get telemetry station data and time series</li>
148
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/WaterRights.html">Cdss::WaterRights</a> - Access water rights net amounts and transactions</li>
149
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/Analysis.html">Cdss::Analysis</a> - Perform call analysis and get source route frameworks</li>
150
+ </ul>
151
+
152
+ <h2 id="development"><strong>Development</strong></h2>
86
153
 
87
154
  <p>After checking out the repo, run <code>bin/setup</code> to install dependencies. Then, run <code>rake test</code> to run the tests. You can also run <code>bin/console</code> for an interactive prompt that will allow you to experiment.</p>
88
155
 
89
156
  <p>To install this gem onto your local machine, run <code>bundle exec rake install</code>. To release a new version, update the version number in <code>version.rb</code>, and then run <code>bundle exec rake release</code>, which will create a git tag for the version, push git commits and the created tag, and push the <code>.gem</code> file to <a href="https://rubygems.org">rubygems.org</a>.</p>
90
157
 
91
- <h2 id="label-Contributing">Contributing</h2>
158
+ <h2 id="contributing">Contributing</h2>
159
+
160
+ <p>If you would like to contribute to this plugin, submit a Pull Request with an excellent commit message.
161
+ Contributions are more then welcome, however please make sure that your commit message is clear and understandable.</p>
162
+
163
+ <h2 id="license">License</h2>
92
164
 
93
- <p>Bug reports and pull requests are welcome on GitHub at <a href="https://github.com/mgm702/cdss-ruby">github.com/mgm702/cdss-ruby</a>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the <a href="https://github.com/mgm702/cdss-ruby/blob/main/CODE_OF_CONDUCT.md">code of conduct</a>.</p>
165
+ <p>The cdss-ruby gem is licensed under the MIT license.</p>
94
166
 
95
- <h2 id="label-Code+of+Conduct">Code of Conduct</h2>
167
+ <h2 id="like-the-gem">Like The Gem?</h2>
96
168
 
97
- <p>Everyone interacting in the Cdss::Ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the <a href="https://github.com/mgm702/cdss-ruby/blob/main/CODE_OF_CONDUCT.md">code of conduct</a>.</p>
169
+ <p>If you like Tabtastic.vim follow the repository on <a href="https://github.com/mgm702/vim-tabtastic">Github</a> and if you are feeling extra nice, follow the author <a href="http://mgm702.com">mgm702</a> on <a href="https://twitter.com/mgm702">Twitter</a> or <a href="https://github.com/mgm702">Github</a>.</p>
98
170
  </div></div>
99
171
 
100
172
  <div id="footer">
101
- Generated on Thu Feb 20 21:19:08 2025 by
173
+ Generated on Thu Feb 27 21:52:29 2025 by
102
174
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
103
175
  0.9.37 (ruby-3.2.2).
104
176
  </div>
data/docs/index.html CHANGED
@@ -57,48 +57,120 @@
57
57
  <div class="clear"></div>
58
58
  </div>
59
59
 
60
- <div id="content"><div id='filecontents'>
61
- <h1 id="label-Cdss-3A-3ARuby">Cdss::Ruby</h1>
60
+ <div id="content"><div id='filecontents'><h1 id="cdss-ruby"><strong>cdss-ruby</strong></h1>
62
61
 
63
- <p>TODO: Delete this and the text below, and describe your gem</p>
62
+ <p><a href="https://github.com/mgm702/cdss-ruby/actions"><img src="https://github.com/mgm702/cdss-ruby/actions/workflows/main.yml/badge.svg" alt="Build Status" /></a>
63
+ <a href="https://badge.fury.io/rb/cdss-ruby"><img src="https://badge.fury.io/rb/cdss-ruby.svg" alt="Gem Version" /></a>
64
+ <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT license" /></a></p>
64
65
 
65
- <p>Welcome to your new gem! In this directory, you’ll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file <code>lib/cdss/ruby</code>. To experiment with that code, run <code>bin/console</code> for an interactive prompt.</p>
66
+ <p><a href="https://dwr.state.co.us/Tools"><strong>« CDSS »</strong></a></p>
66
67
 
67
- <h2 id="label-Installation">Installation</h2>
68
+ <p><a href="https://dwr.state.co.us/Rest/GET/Help"><strong>CDSS REST Web</strong></a></p>
68
69
 
69
- <p>TODO: Replace <code>UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG</code> with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don’t plan to release to RubyGems.org.</p>
70
+ <p>The goal of <a href="https://rubygems.org/gems/cdss-ruby"><strong><code>cdss-ruby</code></strong></a> is to provide functions that help Ruby users to navigate, explore, and make requests to the CDSS REST API web service.</p>
70
71
 
71
- <p>Install the gem and add to the application’s Gemfile by executing:</p>
72
+ <p>The Colorado’s Decision Support Systems (CDSS) is a water management system created and developed by the Colorado Water Conservation Board (CWCB) and the Colorado Division of Water Resources (DWR).</p>
72
73
 
73
- <pre class="code ruby"><code class="ruby">$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
74
- </code></pre>
74
+ <p>Thank you to those at CWCB and DWR for providing an accessible and well documented REST API!</p>
75
75
 
76
- <p>If bundler is not being used to manage dependencies, install the gem by executing:</p>
76
+ <blockquote>
77
+ <p>See <a href="https://github.com/anguswg-ucsb/cdssr"><strong><code>cdssr</code></strong></a>, for the <strong>R</strong> version of this package</p>
78
+ </blockquote>
77
79
 
78
- <pre class="code ruby"><code class="ruby">$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
79
- </code></pre>
80
+ <blockquote>
81
+ <p>See <a href="https://github.com/anguswg-ucsb/cdsspy"><strong><code>cdsspy</code></strong></a>, for the <strong>Python</strong> version of this package</p>
82
+ </blockquote>
80
83
 
81
- <h2 id="label-Usage">Usage</h2>
84
+ <hr />
82
85
 
83
- <p>TODO: Write usage instructions here</p>
86
+ <ul>
87
+ <li>
88
+ <p><a href="https://github.com/anguswg-ucsb/cdssr"><strong>cdssr (R)</strong></a></p>
89
+ </li>
90
+ <li>
91
+ <p><a href="https://anguswg-ucsb.github.io/cdssr/"><strong>cdssr documentation</strong></a></p>
92
+ </li>
93
+ <li>
94
+ <p><a href="https://github.com/anguswg-ucsb/cdsspy"><strong>cdsspy (Python)</strong></a></p>
95
+ </li>
96
+ <li>
97
+ <p><a href="https://pypi.org/project/cdsspy/"><strong>cdsspy documentation</strong></a></p>
98
+ </li>
99
+ <li>
100
+ <p><a href="https://github.com/mgm702/cdss-ruby"><strong>cdss-ruby (Ruby)</strong></a></p>
101
+ </li>
102
+ <li>
103
+ <p><a href="https://mgm702.com/cdss-ruby/"><strong>cdss-ruby documentation</strong></a></p>
104
+ </li>
105
+ </ul>
84
106
 
85
- <h2 id="label-Development">Development</h2>
107
+ <hr />
108
+
109
+ <h2 id="installation"><strong>Installation</strong></h2>
110
+
111
+ <p>Add this line to your application’s Gemfile:</p>
112
+
113
+ <p><code>ruby
114
+ gem 'cdss-ruby'
115
+ </code>
116
+ and then execute
117
+ <code>ruby
118
+ bundle install
119
+ </code></p>
120
+
121
+ <p>or install it yourself as:
122
+ <code>bash
123
+ gem install cdss-ruby
124
+ </code></p>
125
+
126
+ <h2 id="getting-started"><strong>Getting Started</strong></h2>
127
+
128
+ <p>Using the gem is simple. Create a client and start making requests:</p>
129
+
130
+ <p><code>ruby
131
+ irb(main):001:0&gt; @client = Cdss.client
132
+ =&gt; #&lt;Cdss::Client:0x0000000103f757c0 @api_key=nil, @options={}&gt;
133
+ irb(main):002:0&gt; @client.get_sw_stations
134
+ </code></p>
135
+
136
+ <h2 id="available-endpoints"><strong>Available Endpoints</strong></h2>
137
+
138
+ <p>The <code>cdss-ruby</code> gem provides access to all CDSS API endpoints through an intuitive interface. For detailed documentation on each endpoint and its methods, please visit our <a href="https://mgm702.com/cdss-ruby">documentation site</a>.
139
+ Here are some key modules:</p>
140
+
141
+ <ul>
142
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/AdminCalls.html">Cdss::AdminCalls</a> - Access administrative calls and structure data</li>
143
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/Climate.html">Cdss::Climate</a> - Get climate station data and time series</li>
144
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/GroundWater.html">Cdss::Groundwater</a> - Access groundwater well data and measurements</li>
145
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/ReferenceTables.html">Cdss::ReferenceTables</a> - Get reference tables</li>
146
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/SurfaceWater.html">Cdss::SurfaceWater</a> - Access surface water stations and time series</li>
147
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/Telemetry.html">Cdss::Telemetry</a> - Get telemetry station data and time series</li>
148
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/WaterRights.html">Cdss::WaterRights</a> - Access water rights net amounts and transactions</li>
149
+ <li><a href="https://mgm702.com/cdss-ruby/Cdss/Analysis.html">Cdss::Analysis</a> - Perform call analysis and get source route frameworks</li>
150
+ </ul>
151
+
152
+ <h2 id="development"><strong>Development</strong></h2>
86
153
 
87
154
  <p>After checking out the repo, run <code>bin/setup</code> to install dependencies. Then, run <code>rake test</code> to run the tests. You can also run <code>bin/console</code> for an interactive prompt that will allow you to experiment.</p>
88
155
 
89
156
  <p>To install this gem onto your local machine, run <code>bundle exec rake install</code>. To release a new version, update the version number in <code>version.rb</code>, and then run <code>bundle exec rake release</code>, which will create a git tag for the version, push git commits and the created tag, and push the <code>.gem</code> file to <a href="https://rubygems.org">rubygems.org</a>.</p>
90
157
 
91
- <h2 id="label-Contributing">Contributing</h2>
158
+ <h2 id="contributing">Contributing</h2>
159
+
160
+ <p>If you would like to contribute to this plugin, submit a Pull Request with an excellent commit message.
161
+ Contributions are more then welcome, however please make sure that your commit message is clear and understandable.</p>
162
+
163
+ <h2 id="license">License</h2>
92
164
 
93
- <p>Bug reports and pull requests are welcome on GitHub at <a href="https://github.com/mgm702/cdss-ruby">github.com/mgm702/cdss-ruby</a>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the <a href="https://github.com/mgm702/cdss-ruby/blob/main/CODE_OF_CONDUCT.md">code of conduct</a>.</p>
165
+ <p>The cdss-ruby gem is licensed under the MIT license.</p>
94
166
 
95
- <h2 id="label-Code+of+Conduct">Code of Conduct</h2>
167
+ <h2 id="like-the-gem">Like The Gem?</h2>
96
168
 
97
- <p>Everyone interacting in the Cdss::Ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the <a href="https://github.com/mgm702/cdss-ruby/blob/main/CODE_OF_CONDUCT.md">code of conduct</a>.</p>
169
+ <p>If you like Tabtastic.vim follow the repository on <a href="https://github.com/mgm702/vim-tabtastic">Github</a> and if you are feeling extra nice, follow the author <a href="http://mgm702.com">mgm702</a> on <a href="https://twitter.com/mgm702">Twitter</a> or <a href="https://github.com/mgm702">Github</a>.</p>
98
170
  </div></div>
99
171
 
100
172
  <div id="footer">
101
- Generated on Thu Feb 20 21:19:08 2025 by
173
+ Generated on Thu Feb 27 21:52:29 2025 by
102
174
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
103
175
  0.9.37 (ruby-3.2.2).
104
176
  </div>
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Thu Feb 20 21:19:08 2025 by
103
+ Generated on Thu Feb 27 21:52:29 2025 by
104
104
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.37 (ruby-3.2.2).
106
106
  </div>
data/lib/cdss/client.rb CHANGED
@@ -11,6 +11,7 @@ module Cdss
11
11
  # client.get_climate_stations(county: "Denver")
12
12
  class Client
13
13
  include HTTParty
14
+
14
15
  base_uri Cdss.config.base_url
15
16
 
16
17
  include AdminCalls
@@ -4,6 +4,7 @@ module Cdss
4
4
  module Parsers
5
5
  module AdminCallsParser
6
6
  extend BaseParser
7
+
7
8
  class << self
8
9
  def parse_admin_calls(response)
9
10
  parse_collection(response) { |data| build_call(data) }
@@ -27,10 +27,10 @@ module Cdss
27
27
 
28
28
  private
29
29
 
30
- def parse_collection(response, &block)
30
+ def parse_collection(response, &)
31
31
  return [] unless response && response["ResultList"]
32
32
 
33
- response["ResultList"].map(&block)
33
+ response["ResultList"].map(&)
34
34
  end
35
35
 
36
36
  def parse_timestamp(value)
@@ -4,11 +4,12 @@ module Cdss
4
4
  module Parsers
5
5
  module BaseParser
6
6
  include Utils
7
- def parse_collection(response, &block)
7
+
8
+ def parse_collection(response, &)
8
9
  return [] unless response["ResultList"]
9
10
 
10
11
  if block_given?
11
- response["ResultList"].map(&block)
12
+ response["ResultList"].map(&)
12
13
  else
13
14
  response["ResultList"].map { |data| build_resource(data) }
14
15
  end
data/lib/cdss/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cdss
4
- VERSION = "0.1.0"
4
+ VERSION = "1.0.1"
5
5
  end
data/lib/cdss.rb CHANGED
@@ -11,6 +11,7 @@ module Cdss
11
11
  @loader.setup
12
12
 
13
13
  extend Dry::Configurable
14
+
14
15
  setting :user_agent, default: -> { "Cdss Ruby Gem/#{VERSION}" }
15
16
  setting :timeout, default: 30
16
17
  setting :base_url, default: "https://dwr.state.co.us/Rest/GET/api/v2"
@@ -20,8 +21,8 @@ module Cdss
20
21
  class << self
21
22
  attr_reader :loader
22
23
 
23
- def client(**options)
24
- Cdss::Client.new(**options)
24
+ def client(**)
25
+ Cdss::Client.new(**)
25
26
  end
26
27
  end
27
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdss-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Matt Michnal '
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-25 00:00:00.000000000 Z
11
+ date: 2026-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.21.0
33
+ version: '0.21'
34
34
  type: :runtime
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.21.0
40
+ version: '0.21'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: zeitwerk
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,34 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.6'
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '2.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '2.0'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '5.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '5.0'
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: minitest-reporters
85
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +66,6 @@ dependencies:
94
66
  - - "~>"
95
67
  - !ruby/object:Gem::Version
96
68
  version: '1.5'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '13.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '13.0'
111
69
  - !ruby/object:Gem::Dependency
112
70
  name: vcr
113
71
  requirement: !ruby/object:Gem::Requirement
@@ -149,6 +107,7 @@ files:
149
107
  - CODE_OF_CONDUCT.md
150
108
  - README.md
151
109
  - Rakefile
110
+ - cdss-ruby.gemspec
152
111
  - docs/Cdss.html
153
112
  - docs/Cdss/AdminCalls.html
154
113
  - docs/Cdss/Analysis.html
@@ -249,6 +208,7 @@ metadata:
249
208
  homepage_uri: https://github.com/mgm702/cdss-ruby
250
209
  source_code_uri: https://github.com/mgm702/cdss-ruby
251
210
  changelog_uri: https://github.com/mgm702/cdss-ruby/blob/main/CHANGELOG.md
211
+ documentation_uri: https://mgm702.com/cdss-ruby/
252
212
  rubygems_mfa_required: 'true'
253
213
  post_install_message:
254
214
  rdoc_options: []
@@ -258,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
258
218
  requirements:
259
219
  - - ">="
260
220
  - !ruby/object:Gem::Version
261
- version: 2.7.0
221
+ version: 3.2.0
262
222
  required_rubygems_version: !ruby/object:Gem::Requirement
263
223
  requirements:
264
224
  - - ">="