magicseaweed 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.
- checksums.yaml +7 -0
- data/.circleci/config.yml +21 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +8 -0
- data/.ruby-version +1 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +76 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +8 -0
- data/bin/console +8 -0
- data/bin/magicseaweed +6 -0
- data/bin/setup +6 -0
- data/lib/magicseaweed.rb +4 -0
- data/lib/magicseaweed/api_client.rb +74 -0
- data/lib/magicseaweed/cli.rb +15 -0
- data/lib/magicseaweed/forecast.rb +49 -0
- data/lib/magicseaweed/version.rb +5 -0
- data/magicseaweed.gemspec +31 -0
- metadata +174 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ebbb514871802d52b4a60abce613bb5391d7e28c0969a793797f0fab7aea0169
|
|
4
|
+
data.tar.gz: e079314ca6b3739146342e1439385c4d12c15477d14c675d3420ee4d53329114
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e58b87cd809c3f2dbfd0989f88a50eabae03793a8f2c34280dc1b2210c50a3934bbc99843e5c07c67a8af935a7012aa6e8695f470e562aea9a538d12855a35cd
|
|
7
|
+
data.tar.gz: ef6b3b36eca409d8ab629ebd645e4494554f3eca8bc45b04e18c4b089ef619d8c6f11b23b3e7aa071c2a7137e779e7d97a90f9dc8d556defd029b811abcc3c7e
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
version: 2.0
|
|
2
|
+
jobs:
|
|
3
|
+
build:
|
|
4
|
+
docker:
|
|
5
|
+
- image: ruby:2.6.1
|
|
6
|
+
steps:
|
|
7
|
+
- checkout
|
|
8
|
+
- run:
|
|
9
|
+
name: Update RubyGems & Bundler
|
|
10
|
+
command: |
|
|
11
|
+
gem update --system
|
|
12
|
+
gem install bundler
|
|
13
|
+
- run:
|
|
14
|
+
name: Install Dependencies
|
|
15
|
+
command: bin/setup
|
|
16
|
+
- run:
|
|
17
|
+
name: Run Rubocop
|
|
18
|
+
command: bundle exec rubocop
|
|
19
|
+
- run:
|
|
20
|
+
name: Run RSpec
|
|
21
|
+
command: rake spec
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.6.1
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
magicseaweed (0.1.0)
|
|
5
|
+
thor
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
addressable (2.6.0)
|
|
11
|
+
public_suffix (>= 2.0.2, < 4.0)
|
|
12
|
+
ast (2.4.0)
|
|
13
|
+
coderay (1.1.2)
|
|
14
|
+
crack (0.4.3)
|
|
15
|
+
safe_yaml (~> 1.0.0)
|
|
16
|
+
diff-lcs (1.3)
|
|
17
|
+
hashdiff (0.3.8)
|
|
18
|
+
jaro_winkler (1.5.2)
|
|
19
|
+
method_source (0.9.2)
|
|
20
|
+
parallel (1.13.0)
|
|
21
|
+
parser (2.6.0.0)
|
|
22
|
+
ast (~> 2.4.0)
|
|
23
|
+
powerpack (0.1.2)
|
|
24
|
+
pry (0.12.2)
|
|
25
|
+
coderay (~> 1.1.0)
|
|
26
|
+
method_source (~> 0.9.0)
|
|
27
|
+
public_suffix (3.0.3)
|
|
28
|
+
rainbow (3.0.0)
|
|
29
|
+
rake (10.5.0)
|
|
30
|
+
rspec (3.8.0)
|
|
31
|
+
rspec-core (~> 3.8.0)
|
|
32
|
+
rspec-expectations (~> 3.8.0)
|
|
33
|
+
rspec-mocks (~> 3.8.0)
|
|
34
|
+
rspec-core (3.8.0)
|
|
35
|
+
rspec-support (~> 3.8.0)
|
|
36
|
+
rspec-expectations (3.8.2)
|
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
38
|
+
rspec-support (~> 3.8.0)
|
|
39
|
+
rspec-mocks (3.8.0)
|
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
41
|
+
rspec-support (~> 3.8.0)
|
|
42
|
+
rspec-support (3.8.0)
|
|
43
|
+
rubocop (0.64.0)
|
|
44
|
+
jaro_winkler (~> 1.5.1)
|
|
45
|
+
parallel (~> 1.10)
|
|
46
|
+
parser (>= 2.5, != 2.5.1.1)
|
|
47
|
+
powerpack (~> 0.1)
|
|
48
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
49
|
+
ruby-progressbar (~> 1.7)
|
|
50
|
+
unicode-display_width (~> 1.4.0)
|
|
51
|
+
rubocop-rspec (1.32.0)
|
|
52
|
+
rubocop (>= 0.60.0)
|
|
53
|
+
ruby-progressbar (1.10.0)
|
|
54
|
+
safe_yaml (1.0.5)
|
|
55
|
+
thor (0.20.3)
|
|
56
|
+
unicode-display_width (1.4.1)
|
|
57
|
+
webmock (3.5.1)
|
|
58
|
+
addressable (>= 2.3.6)
|
|
59
|
+
crack (>= 0.3.2)
|
|
60
|
+
hashdiff
|
|
61
|
+
|
|
62
|
+
PLATFORMS
|
|
63
|
+
ruby
|
|
64
|
+
|
|
65
|
+
DEPENDENCIES
|
|
66
|
+
bundler (~> 2.0)
|
|
67
|
+
magicseaweed!
|
|
68
|
+
pry (~> 0.12.0)
|
|
69
|
+
rake (~> 10.0)
|
|
70
|
+
rspec (~> 3.0)
|
|
71
|
+
rubocop (~> 0.64.0)
|
|
72
|
+
rubocop-rspec (~> 1.0)
|
|
73
|
+
webmock (~> 3.5.0)
|
|
74
|
+
|
|
75
|
+
BUNDLED WITH
|
|
76
|
+
2.0.1
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Paul Williams
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Magicseaweed CLI · [](https://github.com/papa-whisky/magicseaweed/blob/master/LICENSE.txt) [](https://rubygems.org/gems/magicseaweed) [](https://circleci.com/gh/papa-whisky/magicseaweed/tree/master)
|
|
2
|
+
|
|
3
|
+
[](https://magicseaweed.com)
|
|
4
|
+
|
|
5
|
+
Check surf forecasts from [Magicseaweed](https://magicseaweed.com) in your terminal.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- [Ruby](https://www.ruby-lang.org/en) ~> 2.6
|
|
10
|
+
|
|
11
|
+
(I'm sure it will run in many earlier versions as well, but haven't tested.)
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```console
|
|
16
|
+
$ gem install magicseaweed
|
|
17
|
+
Successfully installed magicseaweed-0.1.0
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
To view a basic star-rating forecast for a given spot for the next five days:
|
|
23
|
+
|
|
24
|
+
```console
|
|
25
|
+
$ magicseaweed API_KEY SPOT_ID
|
|
26
|
+
Spot: SPOT_ID
|
|
27
|
+
Forecast:
|
|
28
|
+
Thu: ***, Fri: **, Sat: **, Sun: **, Mon:
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
To get an API key you'll need to contact Magicseaweed, there's more info on their [developer page](https://magicseaweed.com/developer/api).
|
|
32
|
+
|
|
33
|
+
## Development
|
|
34
|
+
|
|
35
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
36
|
+
|
|
37
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
38
|
+
|
|
39
|
+
## Contributing
|
|
40
|
+
|
|
41
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/papa-whisky/magicseaweed](https://github.com/papa-whisky/magicseaweed).
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
data/bin/magicseaweed
ADDED
data/bin/setup
ADDED
data/lib/magicseaweed.rb
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'json'
|
|
4
|
+
require 'net/http'
|
|
5
|
+
|
|
6
|
+
module Magicseaweed
|
|
7
|
+
# Call the Magicseaweed API
|
|
8
|
+
class APIClient
|
|
9
|
+
class Error < StandardError; end
|
|
10
|
+
|
|
11
|
+
HOST = 'magicseaweed.com'
|
|
12
|
+
|
|
13
|
+
def initialize(api_key:, units: nil)
|
|
14
|
+
@api_key = api_key
|
|
15
|
+
@units = units
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def get_forecast(spot_id:, fields: nil)
|
|
19
|
+
@spot_id = spot_id
|
|
20
|
+
@fields = fields
|
|
21
|
+
|
|
22
|
+
Net::HTTP.get_response(forecast_uri).then(&method(:handle_response))
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
private
|
|
26
|
+
|
|
27
|
+
attr_reader :api_key
|
|
28
|
+
attr_reader :units
|
|
29
|
+
attr_reader :spot_id
|
|
30
|
+
attr_reader :fields
|
|
31
|
+
|
|
32
|
+
def forecast_uri
|
|
33
|
+
URI::HTTPS.build(
|
|
34
|
+
host: HOST,
|
|
35
|
+
path: api_path + '/forecast',
|
|
36
|
+
query: spot_id_query + fields_query + units_query
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def api_path
|
|
41
|
+
"/api/#{api_key}"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def spot_id_query
|
|
45
|
+
"spot_id=#{spot_id}&"
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def fields_query
|
|
49
|
+
return '' unless fields
|
|
50
|
+
|
|
51
|
+
"fields=#{[fields].flatten.join(',')}&"
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def units_query
|
|
55
|
+
return '' unless units
|
|
56
|
+
|
|
57
|
+
"units=#{units}&"
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def handle_response(response)
|
|
61
|
+
raise Error, response.msg unless response.is_a? Net::HTTPSuccess
|
|
62
|
+
|
|
63
|
+
body = JSON.parse(response.body)
|
|
64
|
+
|
|
65
|
+
# The Magicseaweed API annoyingly returns error messages with a 200 status
|
|
66
|
+
# code, so check for that before returning the body
|
|
67
|
+
if body.is_a?(Hash) && body.key?('error_response')
|
|
68
|
+
raise Error, body['error_response']['error_msg']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
body
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'magicseaweed/forecast'
|
|
4
|
+
require 'thor'
|
|
5
|
+
|
|
6
|
+
module Magicseaweed
|
|
7
|
+
# Define commands for CLI
|
|
8
|
+
class CLI < Thor
|
|
9
|
+
desc 'forecast API_KEY SPOT_ID', 'print a forecast for SPOT_ID'
|
|
10
|
+
def forecast(api_key, spot_id)
|
|
11
|
+
forecast = Magicseaweed::Forecast.new(api_key: api_key, spot_id: spot_id)
|
|
12
|
+
puts forecast
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'magicseaweed/api_client'
|
|
4
|
+
|
|
5
|
+
module Magicseaweed
|
|
6
|
+
# Generate a forecast to be printed
|
|
7
|
+
class Forecast
|
|
8
|
+
def initialize(api_key:, spot_id:)
|
|
9
|
+
@api_key = api_key
|
|
10
|
+
@spot_id = spot_id
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def to_s
|
|
14
|
+
"Spot: #{spot_id}\nForecast:\n#{daily_ratings.join(', ')}"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
private
|
|
18
|
+
|
|
19
|
+
attr_reader :api_key
|
|
20
|
+
attr_reader :spot_id
|
|
21
|
+
|
|
22
|
+
def daily_ratings
|
|
23
|
+
midday_ratings.map do |rating|
|
|
24
|
+
day_of_week(rating['localTimestamp']) +
|
|
25
|
+
': ' +
|
|
26
|
+
('*' * rating['solidRating'])
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def midday_ratings
|
|
31
|
+
forecast.select do |forecast|
|
|
32
|
+
Time.at(forecast['localTimestamp']).utc.hour == 12
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def forecast
|
|
37
|
+
api_client
|
|
38
|
+
.get_forecast(spot_id: spot_id, fields: %i[localTimestamp solidRating])
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def api_client
|
|
42
|
+
Magicseaweed::APIClient.new(api_key: api_key)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def day_of_week(local_timestamp)
|
|
46
|
+
Time.at(local_timestamp).utc.strftime('%a')
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
+
require 'magicseaweed/version'
|
|
6
|
+
|
|
7
|
+
Gem::Specification.new do |s|
|
|
8
|
+
s.name = 'magicseaweed'
|
|
9
|
+
s.version = Magicseaweed::VERSION
|
|
10
|
+
s.summary = 'Magicseaweed surf reports via CLI.'
|
|
11
|
+
s.homepage = 'https://github.com/papa-whisky/magicseaweed'
|
|
12
|
+
s.author = 'Paul Williams'
|
|
13
|
+
s.email = 'paul@pdwilliams.net'
|
|
14
|
+
s.license = 'MIT'
|
|
15
|
+
|
|
16
|
+
s.executables = 'magicseaweed'
|
|
17
|
+
s.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
18
|
+
`git ls-files -z`.split("\x0")
|
|
19
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
s.add_dependency 'thor'
|
|
23
|
+
|
|
24
|
+
s.add_development_dependency 'bundler', '~> 2.0'
|
|
25
|
+
s.add_development_dependency 'pry', '~> 0.12.0'
|
|
26
|
+
s.add_development_dependency 'rake', '~> 10.0'
|
|
27
|
+
s.add_development_dependency 'rspec', '~> 3.0'
|
|
28
|
+
s.add_development_dependency 'rubocop', '~> 0.64.0'
|
|
29
|
+
s.add_development_dependency 'rubocop-rspec', '~> 1.0'
|
|
30
|
+
s.add_development_dependency 'webmock', '~> 3.5.0'
|
|
31
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: magicseaweed
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Paul Williams
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-04-13 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: thor
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bundler
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '2.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '2.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: pry
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 0.12.0
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 0.12.0
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rake
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '10.0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '10.0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: rspec
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '3.0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '3.0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rubocop
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 0.64.0
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: 0.64.0
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: rubocop-rspec
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - "~>"
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '1.0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - "~>"
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '1.0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: webmock
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - "~>"
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: 3.5.0
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - "~>"
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: 3.5.0
|
|
125
|
+
description:
|
|
126
|
+
email: paul@pdwilliams.net
|
|
127
|
+
executables:
|
|
128
|
+
- magicseaweed
|
|
129
|
+
extensions: []
|
|
130
|
+
extra_rdoc_files: []
|
|
131
|
+
files:
|
|
132
|
+
- ".circleci/config.yml"
|
|
133
|
+
- ".gitignore"
|
|
134
|
+
- ".rspec"
|
|
135
|
+
- ".rubocop.yml"
|
|
136
|
+
- ".ruby-version"
|
|
137
|
+
- Gemfile
|
|
138
|
+
- Gemfile.lock
|
|
139
|
+
- LICENSE.txt
|
|
140
|
+
- README.md
|
|
141
|
+
- Rakefile
|
|
142
|
+
- bin/console
|
|
143
|
+
- bin/magicseaweed
|
|
144
|
+
- bin/setup
|
|
145
|
+
- lib/magicseaweed.rb
|
|
146
|
+
- lib/magicseaweed/api_client.rb
|
|
147
|
+
- lib/magicseaweed/cli.rb
|
|
148
|
+
- lib/magicseaweed/forecast.rb
|
|
149
|
+
- lib/magicseaweed/version.rb
|
|
150
|
+
- magicseaweed.gemspec
|
|
151
|
+
homepage: https://github.com/papa-whisky/magicseaweed
|
|
152
|
+
licenses:
|
|
153
|
+
- MIT
|
|
154
|
+
metadata: {}
|
|
155
|
+
post_install_message:
|
|
156
|
+
rdoc_options: []
|
|
157
|
+
require_paths:
|
|
158
|
+
- lib
|
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
|
+
requirements:
|
|
161
|
+
- - ">="
|
|
162
|
+
- !ruby/object:Gem::Version
|
|
163
|
+
version: '0'
|
|
164
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
|
+
requirements:
|
|
166
|
+
- - ">="
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
version: '0'
|
|
169
|
+
requirements: []
|
|
170
|
+
rubygems_version: 3.0.2
|
|
171
|
+
signing_key:
|
|
172
|
+
specification_version: 4
|
|
173
|
+
summary: Magicseaweed surf reports via CLI.
|
|
174
|
+
test_files: []
|