maid 0.11.1 → 0.11.2

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: b0e37d0f17194d3ab84ab03c7520c4a7d610da6a94d0b0da9eda781da477a9e4
4
- data.tar.gz: 40b6bace47a3acc2946cc30dac5139fb389a564a223eaecfb079a615020110a5
3
+ metadata.gz: 479757df2dd129b8ef466d7bf3af093bc778b8c83cdea5fc595b5ad01da5c26d
4
+ data.tar.gz: 96858a78a26b66854433e7b8e60c60d1c2c7fbdc40ec8bae66f9cb7ee89ad831
5
5
  SHA512:
6
- metadata.gz: 2f4a77cfca1a267cb193f005a55f1d366b87b545d2385db9c845fade9ecfd8b57c276f4823018958ea1dd4de3ffd8d3ee5d28afea04a5e6d833e31d1e1933b49
7
- data.tar.gz: b0e2db3844fd69f0cd94316eb8eede4243c8bc7499568bf5add17f7b7ed31f0cc723d0f448d75ce85a6f54ae1724acd79eebb5f41dc23342dee31b522e87c858
6
+ metadata.gz: 54abf67a7d658986d21f500d54949a344e7dbd39f1879ab8f39d92dd03eb10cdd465f0a8730398cbd6767e48001f5deb3511685ba6a76bd179e80da27c5f6862
7
+ data.tar.gz: 468c5bcd0cbbe7e4ee4470e14378d791e73b4864ab4c6615d2a190b905a2d819260832af60ac4b75c89da50baab95504761062811a11f71e4bee33f36db4711a
@@ -21,11 +21,13 @@ jobs:
21
21
  - name: Install dependencies
22
22
  run: bundle install
23
23
 
24
- - name: Upload coverage to Code Climate
25
- uses: paambaati/codeclimate-action@v3.2.0
26
- with:
27
- coverageCommand: bundle exec rake
24
+ - name: Generate coverage report
25
+ run: bundle exec rake
28
26
  env:
29
- CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_KEY }}
30
27
  COVERAGE: true
31
28
  ISOLATED: true
29
+
30
+ - uses: qltysh/qlty-action/coverage@v2
31
+ with:
32
+ token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
33
+ files: coverage/.resultset.json
@@ -7,6 +7,9 @@ on:
7
7
  branches:
8
8
  - master
9
9
  pull_request:
10
+ types:
11
+ - opened
12
+ - edited
10
13
  branches:
11
14
  - master
12
15
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.11.2](https://github.com/maid/maid/compare/v0.11.1...v0.11.2) (2025-11-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Logger:** Provide default logger ([#354](https://github.com/maid/maid/issues/354)) ([2002e58](https://github.com/maid/maid/commit/2002e5846f84fa71addbda0f3909ade871e253c3))
7
+
1
8
  ## [0.11.1](https://github.com/maid/maid/compare/v0.11.0...v0.11.1) (2025-08-16)
2
9
 
3
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maid (0.11.1)
4
+ maid (0.11.2)
5
5
  deprecated (~> 3.0.0)
6
6
  dimensions (>= 1.0.0, < 2.0)
7
7
  escape (>= 0.0.1, < 0.1.0)
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # Maid
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/maid.svg)](https://badge.fury.io/rb/maid)
4
+ ![GitHub Release](https://img.shields.io/github/v/release/maid/maid)
4
5
  [![Test](https://github.com/maid/maid/actions/workflows/test.yml/badge.svg)](https://github.com/maid/maid/actions/workflows/test.yml)
5
- [![Code Climate](https://codeclimate.com/github/maid/maid.svg)](https://codeclimate.com/github/maid/maid)
6
- [![Test Coverage](https://api.codeclimate.com/v1/badges/3898063fb5b3caf24044/test_coverage)](https://codeclimate.com/github/maid/maid/test_coverage)
6
+ [![Maintainability](https://qlty.sh/gh/maid/projects/maid/maintainability.svg)](https://qlty.sh/gh/maid/projects/maid)
7
+ [![Code Coverage](https://qlty.sh/gh/maid/projects/maid/coverage.svg)](https://qlty.sh/gh/maid/projects/maid)
7
8
  [![StackOverflow](http://img.shields.io/badge/stackoverflow-maid-blue.svg)](http://stackoverflow.com/questions/tagged/maid)
8
9
 
9
10
  **Be lazy!** Let Maid clean up after you, based on rules you define.
data/lib/maid/maid.rb CHANGED
@@ -28,7 +28,8 @@ class Maid::Maid
28
28
  def initialize(options = {})
29
29
  options = DEFAULTS.merge(options.reject { |_k, v| v.nil? })
30
30
 
31
- @logger = options[:logger].new(device: options[:log_device])
31
+ @log_device = options[:log_device]
32
+ @logger = (options[:logger] || DEFAULTS[:logger]).new(device: @log_device)
32
33
 
33
34
  @rules_path = options[:rules_path]
34
35
  @trash_path = options[:trash_path] || default_trash_path
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.11.1'
4
+ VERSION = '0.11.2'
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Oakes
8
8
  - Coaxial
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-16 00:00:00.000000000 Z
11
+ date: 2025-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deprecated