maid 0.10.0.pre.alpha.3 → 0.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0be19c0367daaad7154c2649987ff99d97702a964ca2c6af5331fd876da16d7a
4
- data.tar.gz: cb3598e65e48db7529b0584c041eb3f87fdbf66b57030d83f2ac981251de74a3
3
+ metadata.gz: 386fffc38404ce847ae5650376f84be904056ad5d6acd86cea9311cedade94c1
4
+ data.tar.gz: 49c5f4a3b21d583d2edd09d73d862c495c2e8d5eb36c510401bc5ff216316c57
5
5
  SHA512:
6
- metadata.gz: d887908840f3369f2250226d888563444431f95cd662a50cdaddde49b0883bfb82958788516e9dc56d5329a8eefbdf470c761c1645d004cba2193c050bab60c2
7
- data.tar.gz: a6349bb2e1d6e1b7dbd8358c7cf7e5f1955f2ae873d5b3286212c955e3ae11bb3ab743f3291f25c633bbda571caa0f0e90364a151f150789c2c8020698ab84ab
6
+ metadata.gz: 334f18ddb7a90a62a6b3c6136930c1724e08358ab7fb0dcca7011570b1b93bffa24958a07756c52f303f617aeea8cc02142d4d6163b75cfeaad3b71c32aeb34e
7
+ data.tar.gz: 397ca948024144b6beaa7f7139df13a66ff84b2240a3ffd8a716d67286334f5e3da6520e25e6d5df2ba8a3e5f8f417ec64fd29e42f4a955ef5fb24471b3a7dc3
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: "<Short description of the issue>"
5
+ labels: bug
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **👋 Before reporting a bug, please make sure you're running the latest available version of maid (`gem install maid`).**
11
+
12
+ **👋 If you're using Ruby 2.7+, please make sure you're running maid v0.10.0+ (`gem install maid --pre`)**
13
+
14
+ **Describe the bug**
15
+ A clear and concise description of what the bug is.
16
+
17
+ **To Reproduce**
18
+ Steps to trigger the issue.
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Logs**
24
+ If applicable, add logs to help explain your problem. You can find the logs at `~/.maid/maid.log`.
25
+
26
+ **Environment (please complete the information):**
27
+ - Maid version (`maid --version`): `<enter the command's output here>`
28
+ - OS, distribution (Linux), and version: <examples: OSX 12.0.0/Linux Mint 20.3>
29
+ - Ruby version (`ruby --version`): `<enter the command's output here>`
30
+
31
+ **Minimal `rules.rb` to reproduce the issue:**
32
+ ```ruby
33
+ # Rule(s)
34
+ ```
35
+
36
+ **Additional context**
37
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: feature
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -38,8 +38,8 @@ jobs:
38
38
  token: ${{ secrets.BOT_GH_TOKEN }}
39
39
  # Uncomment for pre-releases, see
40
40
  # https://github.com/maid/maid/wiki/Release-Process
41
- prerelease: true
42
- release-as: v0.10.0-alpha.3
41
+ # prerelease: true
42
+ # release-as: v0.10.0-alpha.3
43
43
  - name: Set up Ruby
44
44
  uses: ruby/setup-ruby@v1
45
45
  with:
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.10.0-alpha.3"
2
+ ".": "0.10.0"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.0](https://github.com/maid/maid/compare/v0.10.0-alpha.3...v0.10.0) (2023-05-01)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * release 0.10.0 ([1f35afd](https://github.com/maid/maid/commit/1f35afd2030bd74a5175ced5cd9766273162dea4))
9
+
3
10
  ## [0.10.0-alpha.3](https://github.com/maid/maid/compare/v0.10.0-alpha.2...v0.10.0-alpha.3) (2023-04-04)
4
11
 
5
12
 
data/SECURITY.md ADDED
@@ -0,0 +1,29 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ ### Maid gem
6
+ | Version | Supported |
7
+ | ------------ | ------------------ |
8
+ | >= 0.10.0 | :heavy_check_mark: |
9
+ | 0.7.0 | :heavy_check_mark: |
10
+ | < 0.7.0 | :x: |
11
+
12
+ ### Ruby
13
+ | Version | Supported |
14
+ | ------------ | ------------------ |
15
+ | >= 3.0 | :heavy_check_mark: |
16
+ | 2.7 | :warning: |
17
+ | <= 2.6 | :x: |
18
+
19
+ > :warning: Ruby 2.7 became EOL on 2023-03-31 and might be dropped in the near
20
+ > future. We strongly recommend using Ruby 3+.
21
+
22
+ ## Reporting a Vulnerability
23
+
24
+ To report a vulnerability, please open an issue. We will investigate and
25
+ respond in a timely manner.
26
+
27
+ If the vulnerability is accepted, we will work on a patch. Bear in mind that
28
+ this is a community effort and we can't commit to specific timeframes other
29
+ than best effort.
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://nominatim.openstreetmap.org/reverse?accept-language=en&addressdetails=1&format=json&lat=-33.85608611111111&lon=151.219925
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx
23
+ Date:
24
+ - Fri, 21 Apr 2023 12:28:49 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Keep-Alive:
32
+ - timeout=20
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Allow-Methods:
36
+ - OPTIONS,GET
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: !binary |-
40
+ eyJwbGFjZV9pZCI6Mjk4ODA4MzUxLCJsaWNlbmNlIjoiRGF0YSDCqSBPcGVuU3RyZWV0TWFwIGNvbnRyaWJ1dG9ycywgT0RiTCAxLjAuIGh0dHBzOi8vb3NtLm9yZy9jb3B5cmlnaHQiLCJvc21fdHlwZSI6InJlbGF0aW9uIiwib3NtX2lkIjo5NTk5NzIzLCJsYXQiOiItMzMuODU2Mzc3NjUiLCJsb24iOiIxNTEuMjE1NTcxODMwNzQ1MDYiLCJkaXNwbGF5X25hbWUiOiJOb3J0aGVybiBCb2FyZHdhbGssIFF1YXkgUXVhcnRlciwgU3lkbmV5LCBDb3VuY2lsIG9mIHRoZSBDaXR5IG9mIFN5ZG5leSwgTmV3IFNvdXRoIFdhbGVzLCAyMDAwLCBBdXN0cmFsaWEiLCJhZGRyZXNzIjp7InJvYWQiOiJOb3J0aGVybiBCb2FyZHdhbGsiLCJuZWlnaGJvdXJob29kIjoiUXVheSBRdWFydGVyIiwic3VidXJiIjoiU3lkbmV5IiwiY2l0eSI6IlN5ZG5leSIsIm11bmljaXBhbGl0eSI6IkNvdW5jaWwgb2YgdGhlIENpdHkgb2YgU3lkbmV5Iiwic3RhdGUiOiJOZXcgU291dGggV2FsZXMiLCJJU08zMTY2LTItbHZsNCI6IkFVLU5TVyIsInBvc3Rjb2RlIjoiMjAwMCIsImNvdW50cnkiOiJBdXN0cmFsaWEiLCJjb3VudHJ5X2NvZGUiOiJhdSJ9LCJib3VuZGluZ2JveCI6WyItMzMuODU2Njc0MiIsIi0zMy44NTYxMDk2IiwiMTUxLjIxNDU1NzkiLCIxNTEuMjE1OTA4NCJdfQ==
41
+ recorded_at: Fri, 21 Apr 2023 12:28:49 GMT
42
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://nominatim.openstreetmap.org/reverse?accept-language=en&addressdetails=1&format=json&lat=-33.85608611111111&lon=151.219925
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx
23
+ Date:
24
+ - Fri, 21 Apr 2023 12:29:51 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Keep-Alive:
32
+ - timeout=20
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Allow-Methods:
36
+ - OPTIONS,GET
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: !binary |-
40
+ eyJwbGFjZV9pZCI6Mjk4ODA4MzUxLCJsaWNlbmNlIjoiRGF0YSDCqSBPcGVuU3RyZWV0TWFwIGNvbnRyaWJ1dG9ycywgT0RiTCAxLjAuIGh0dHBzOi8vb3NtLm9yZy9jb3B5cmlnaHQiLCJvc21fdHlwZSI6InJlbGF0aW9uIiwib3NtX2lkIjo5NTk5NzIzLCJsYXQiOiItMzMuODU2Mzc3NjUiLCJsb24iOiIxNTEuMjE1NTcxODMwNzQ1MDYiLCJkaXNwbGF5X25hbWUiOiJOb3J0aGVybiBCb2FyZHdhbGssIFF1YXkgUXVhcnRlciwgU3lkbmV5LCBDb3VuY2lsIG9mIHRoZSBDaXR5IG9mIFN5ZG5leSwgTmV3IFNvdXRoIFdhbGVzLCAyMDAwLCBBdXN0cmFsaWEiLCJhZGRyZXNzIjp7InJvYWQiOiJOb3J0aGVybiBCb2FyZHdhbGsiLCJuZWlnaGJvdXJob29kIjoiUXVheSBRdWFydGVyIiwic3VidXJiIjoiU3lkbmV5IiwiY2l0eSI6IlN5ZG5leSIsIm11bmljaXBhbGl0eSI6IkNvdW5jaWwgb2YgdGhlIENpdHkgb2YgU3lkbmV5Iiwic3RhdGUiOiJOZXcgU291dGggV2FsZXMiLCJJU08zMTY2LTItbHZsNCI6IkFVLU5TVyIsInBvc3Rjb2RlIjoiMjAwMCIsImNvdW50cnkiOiJBdXN0cmFsaWEiLCJjb3VudHJ5X2NvZGUiOiJhdSJ9LCJib3VuZGluZ2JveCI6WyItMzMuODU2Njc0MiIsIi0zMy44NTYxMDk2IiwiMTUxLjIxNDU1NzkiLCIxNTEuMjE1OTA4NCJdfQ==
41
+ recorded_at: Fri, 21 Apr 2023 12:29:51 GMT
42
+ recorded_with: VCR 6.1.0
data/lib/maid/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Maid
4
- VERSION = '0.10.0-alpha.3'
4
+ VERSION = '0.10.0'
5
5
  SUMMARY = 'Be lazy. Let Maid clean up after you, based on rules you define. ' \
6
6
  'Think of it as "Hazel for hackers".'
7
7
  end
data/maid.gemspec CHANGED
@@ -61,6 +61,8 @@ Gem::Specification.new do |s|
61
61
  s.add_development_dependency('rubocop-rspec')
62
62
  s.add_development_dependency('simplecov')
63
63
  s.add_development_dependency('timecop', '~> 0.9.6')
64
+ s.add_development_dependency('vcr', '~> 6.1.0')
65
+ s.add_development_dependency('webmock', '~> 3.18.1')
64
66
  s.add_development_dependency('yard', '>= 0.9.11')
65
67
 
66
68
  # In Vagrant, polling won't cross over the OS boundary if you develop in the host OS but run your tests in the
@@ -95,7 +95,7 @@ describe 'Dependency expectations' do
95
95
  end
96
96
  end
97
97
 
98
- describe Geocoder do
98
+ describe Geocoder, vcr: { record: :new_episodes } do
99
99
  it 'translates latitude and longitude into street addresses' do
100
100
  city = Geocoder.search('-33.85608611111111,151.219925').map { |location| location.city }.uniq.compact
101
101
  expect(city).to eq(['Sydney'])
@@ -723,7 +723,7 @@ module Maid
723
723
 
724
724
  describe '#location_city' do
725
725
  context 'given a JPEG image' do
726
- it 'reports the known location' do
726
+ it 'reports the known location', vcr: { record: :new_episodes } do
727
727
  sydney_path = File.join(file_fixtures_path, 'sydney.jpg')
728
728
  expect(@maid.location_city(sydney_path)).to eq('Sydney, New South Wales, AU')
729
729
  end
data/spec/spec_helper.rb CHANGED
@@ -16,6 +16,7 @@ require 'rspec'
16
16
  require 'timecop'
17
17
  require 'fakefs/spec_helpers'
18
18
  require 'pry-byebug'
19
+ require 'vcr'
19
20
 
20
21
  require 'maid'
21
22
 
@@ -65,3 +66,10 @@ RSpec::Matchers.define :have_deprecated_method do |expected|
65
66
  expect(actual).to receive(:__deprecated_run_action__).with(expected, anything) # rubocop:disable RSpec/MessageSpies
66
67
  end
67
68
  end
69
+
70
+ VCR.configure do |config|
71
+ config.cassette_library_dir = 'fixtures/vcr_cassettes'
72
+ config.hook_into :webmock
73
+ # For autogenerating VCR cassettes' names based on the tests' metadata
74
+ config.configure_rspec_metadata!
75
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0.pre.alpha.3
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Oakes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-18 00:00:00.000000000 Z
12
+ date: 2023-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: deprecated
@@ -407,6 +407,34 @@ dependencies:
407
407
  - - "~>"
408
408
  - !ruby/object:Gem::Version
409
409
  version: 0.9.6
410
+ - !ruby/object:Gem::Dependency
411
+ name: vcr
412
+ requirement: !ruby/object:Gem::Requirement
413
+ requirements:
414
+ - - "~>"
415
+ - !ruby/object:Gem::Version
416
+ version: 6.1.0
417
+ type: :development
418
+ prerelease: false
419
+ version_requirements: !ruby/object:Gem::Requirement
420
+ requirements:
421
+ - - "~>"
422
+ - !ruby/object:Gem::Version
423
+ version: 6.1.0
424
+ - !ruby/object:Gem::Dependency
425
+ name: webmock
426
+ requirement: !ruby/object:Gem::Requirement
427
+ requirements:
428
+ - - "~>"
429
+ - !ruby/object:Gem::Version
430
+ version: 3.18.1
431
+ type: :development
432
+ prerelease: false
433
+ version_requirements: !ruby/object:Gem::Requirement
434
+ requirements:
435
+ - - "~>"
436
+ - !ruby/object:Gem::Version
437
+ version: 3.18.1
410
438
  - !ruby/object:Gem::Dependency
411
439
  name: yard
412
440
  requirement: !ruby/object:Gem::Requirement
@@ -461,6 +489,8 @@ extra_rdoc_files: []
461
489
  files:
462
490
  - ".act-env"
463
491
  - ".act-secrets.example"
492
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
493
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
464
494
  - ".github/workflows/coverage.yml"
465
495
  - ".github/workflows/lint.yml"
466
496
  - ".github/workflows/release.yml"
@@ -482,8 +512,11 @@ files:
482
512
  - LICENSE
483
513
  - README.md
484
514
  - Rakefile
515
+ - SECURITY.md
485
516
  - Vagrantfile
486
517
  - bin/maid
518
+ - fixtures/vcr_cassettes/Dependency_expectations/Geocoder/translates_latitude_and_longitude_into_street_addresses.yml
519
+ - fixtures/vcr_cassettes/Maid_Tools/_location_city/given_a_JPEG_image/reports_the_known_location.yml
487
520
  - lib/maid.rb
488
521
  - lib/maid/app.rb
489
522
  - lib/maid/downloading.rb
@@ -552,9 +585,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
552
585
  version: 2.7.0
553
586
  required_rubygems_version: !ruby/object:Gem::Requirement
554
587
  requirements:
555
- - - ">"
588
+ - - ">="
556
589
  - !ruby/object:Gem::Version
557
- version: 1.3.1
590
+ version: '0'
558
591
  requirements: []
559
592
  rubygems_version: 3.4.6
560
593
  signing_key: