passive_queue 1.1.1 → 1.1.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: 9626aa3a54166dec9163d940f247127a3d58327cd505ce19c290987114b0042c
4
- data.tar.gz: bdb330ddf8cae62fda5f291154d47b22c9c04d40b658ecf57e21abdb27f972ab
3
+ metadata.gz: 612f6d6bafaf41d5d0f0562c7c8246891613af750e69d302e4ba2d8b3a5d05f6
4
+ data.tar.gz: bd84582afdb7f111871340f87c7cdb30c47150745f88daa47300fa8986e1722a
5
5
  SHA512:
6
- metadata.gz: 121494063566f43ca2185eefb38972d28cc94089122b3f81abea0797c000e99f8793b8ad93aa27460d4b9c7080192afab51c0dfdd2c8fe8c07275e521e245cee
7
- data.tar.gz: 60352ffec9bb812518ee83f37eb9b5d3fa33179df11a7848996f027a469a9d96e8b8ac258738cb041ee815b7c8a400f82c9cfd16b2d34c4ad35cc3373c2f7a0d
6
+ metadata.gz: f51a197d5eaf29c586a9ccd18b9fdf54ed0a9383307f4963d224d9dadce228dd5b17d42d0da932bc9ad6498ba06d0a0e2fb8798834451395c6b987860914630a
7
+ data.tar.gz: 462a735ab7d3593d9d6f893391617165a09e8fa5fa7432ce1c19ac4ca3569cabf5af399e91cd6737e7d212fe5260050237941a5884c7a8bbda3017f51e53cdca
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 4.0.4
1
+ 4.0.9
data/.yard-lint.yml CHANGED
@@ -55,6 +55,34 @@ Documentation/BlankLineBeforeDefinition:
55
55
  SingleBlankLine: true
56
56
  OrphanedDocs: true
57
57
 
58
+ Documentation/DuplicateNamespaceComment:
59
+ Description: Detects namespaces documented with a YARD comment in more than one file.
60
+ Enabled: true
61
+ Severity: error
62
+
63
+ Documentation/UnderfilledLines:
64
+ Description: Detects documentation prose that wraps too early and wastes horizontal space.
65
+ Enabled: true
66
+ Severity: error
67
+ # Aligned with RuboCop's Layout/LineLength so documentation prose wraps to the same
68
+ # width as code.
69
+ MaxLength: 120
70
+
71
+ Documentation/LineLength:
72
+ Description: Detects documentation lines that exceed the maximum length.
73
+ Enabled: true
74
+ Severity: error
75
+ # Aligned with RuboCop's Layout/LineLength.
76
+ MaxLength: 120
77
+
78
+ Documentation/TextSubstitution:
79
+ Description: Detects em/en-dashes in documentation and replaces them with hyphens.
80
+ Enabled: true
81
+ Severity: error
82
+ Substitutions:
83
+ "—": "-" # em-dash (U+2014)
84
+ "–": "-" # en-dash (U+2013)
85
+
58
86
  # Tags validators
59
87
  Tags/Order:
60
88
  Description: Tags must follow consistent ordering
@@ -177,7 +205,7 @@ Tags/RedundantParamDescription:
177
205
  Tags/InformalNotation:
178
206
  Description: Detects informal tag notation patterns like "Note:" instead of @note.
179
207
  Enabled: true
180
- Severity: warning
208
+ Severity: error
181
209
  CaseSensitive: false
182
210
  RequireStartOfLine: true
183
211
  Patterns:
data/CHANGELOG.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. Since this is Passive Queue, "changes" might be a strong word.
4
4
 
5
- ## [Unreleased]
5
+ ## [1.1.2] - 2026-11-10
6
+
7
+ ### Fixed
8
+ - `be passive --help` (and `-h` at any position) shows help instead of starting a meditation
9
+ - `config.meditation_duration` is used when `--duration` is not given
10
+ - `--zen` and `--philosophical` sessions now last the full `--duration` instead of about two thirds of it
6
11
 
7
12
  ## [1.1.1] - 2026-05-18
8
13
 
@@ -20,11 +25,6 @@ All notable changes to this project will be documented in this file. Since this
20
25
  - Trusted publishing workflow for automated gem releases
21
26
  - Continuous integration for documentation quality
22
27
 
23
- ## [1.0.1] - Unreleased
24
-
25
- ### Fixed
26
- - Potential technical overhead by adding RSpec to the gem?
27
-
28
28
  ## [1.0.0] - 2025-07-12
29
29
 
30
30
  ### Added
@@ -37,7 +37,6 @@ All notable changes to this project will be documented in this file. Since this
37
37
  - Infinite scalability through the power of void
38
38
  - Perfect compatibility with existing Rails applications
39
39
  - Zen quotes and philosophical thoughts for enlightenment
40
- - Rails generator for effortless non-setup
41
40
  - Complete test suite that tests nothing happening
42
41
 
43
42
  ### Changed
@@ -95,17 +94,6 @@ All notable changes to this project will be documented in this file. Since this
95
94
  - Quantum non-processing algorithms
96
95
  - AI-powered passivity recommendations
97
96
 
98
- ### [1.1.0] - The Mindfulness Patch
99
- - Additional zen quotes
100
- - Philosophical depth improvements
101
- - Enhanced CLI meditation experience
102
- - More ways to do nothing
103
-
104
- ### [1.0.1] - The Serenity Hotfix
105
- - Fixed a bug where something almost happened
106
- - Improved the accuracy of non-execution
107
- - Enhanced the beauty of emptiness
108
-
109
97
  ---
110
98
 
111
99
  *"A changelog that documents nothing is the most honest changelog of all."* - Ancient Developer Proverb
data/Gemfile.lint.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- yard (0.9.38)
5
- yard-lint (1.4.0)
4
+ yard (0.9.45)
5
+ yard-lint (1.10.1)
6
6
  yard (~> 0.9)
7
7
  zeitwerk (~> 2.6)
8
- zeitwerk (2.7.4)
8
+ zeitwerk (2.8.2)
9
9
 
10
10
  PLATFORMS
11
11
  ruby
@@ -15,9 +15,10 @@ DEPENDENCIES
15
15
  yard-lint
16
16
 
17
17
  CHECKSUMS
18
- yard (0.9.38) sha256=721fb82afb10532aa49860655f6cc2eaa7130889df291b052e1e6b268283010f
19
- yard-lint (1.4.0) sha256=7dd88fbb08fd77cb840bea899d58812817b36d92291b5693dd0eeb3af9f91f0f
20
- zeitwerk (2.7.4) sha256=2bef90f356bdafe9a6c2bd32bcd804f83a4f9b8bc27f3600fff051eb3edcec8b
18
+ bundler (4.0.17) sha256=214e21431b5665dd2f99df8a5511c6b151d7a72e8015c8b38f8b775b61cbb6c1
19
+ yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51
20
+ yard-lint (1.10.1) sha256=172ea1905304580bd515c093d82831ec4889e725100c49d5bf77e62101f49129
21
+ zeitwerk (2.8.2) sha256=7212a61311083c604184b1ea2574b9aa05cd14f855a0841c06985cabe9181d12
21
22
 
22
23
  BUNDLED WITH
23
- 4.0.3
24
+ 4.0.17
data/Gemfile.lock CHANGED
@@ -1,25 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- passive_queue (1.1.1)
4
+ passive_queue (1.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- docile (1.4.1)
10
9
  drb (2.2.3)
11
10
  minitest (6.0.6)
12
11
  drb (~> 2.0)
13
12
  prism (~> 1.5)
14
13
  prism (1.9.0)
15
- rack (3.2.6)
14
+ rack (3.2.8)
16
15
  rake (13.4.2)
17
- simplecov (0.22.0)
18
- docile (~> 1.1)
19
- simplecov-html (~> 0.11)
20
- simplecov_json_formatter (~> 0.1)
21
- simplecov-html (0.13.2)
22
- simplecov_json_formatter (0.1.4)
16
+ simplecov (1.3.2)
23
17
 
24
18
  PLATFORMS
25
19
  ruby
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <img src="https://raw.githubusercontent.com/mensfeld/passive_queue/refs/heads/main/html/logo.svg" alt="passive queue logo" width="200">
2
+ <img src="https://raw.githubusercontent.com/mensfeld/passive_queue/refs/heads/master/html/logo.svg" alt="passive queue logo" width="200">
3
3
  </div>
4
4
 
5
5
  # Passive Queue
@@ -61,7 +61,7 @@ Experience Passive Queue in action with our beautiful dashboard:
61
61
  Visit `/passive_queue` to witness the art of non-productivity in real-time with dark/light mode support!
62
62
 
63
63
  <div align="center">
64
- <img src="https://raw.githubusercontent.com/mensfeld/passive_queue/refs/heads/main/html/web-ui.png" alt="passive queue dashboard">
64
+ <img src="https://raw.githubusercontent.com/mensfeld/passive_queue/refs/heads/master/html/web-ui.png" alt="passive queue dashboard">
65
65
  </div>
66
66
 
67
67
  ## Simple, Transparent Pricing
@@ -170,7 +170,7 @@ bundle exec be passive --duration 30
170
170
  ```ruby
171
171
  # config/initializers/passive_queue.rb
172
172
  PassiveQueue.configure do |config|
173
- config.meditation_duration = 10 # seconds
173
+ config.meditation_duration = 10 # seconds; `be passive --duration` overrides it
174
174
  config.zen_level = :transcendent # :low, :medium, :high, :transcendent
175
175
  config.philosophical_depth = :deep # :shallow, :deep, :profound, :existential
176
176
  config.silence_mode = false # suppress all output
@@ -223,7 +223,7 @@ end
223
223
 
224
224
  ```ruby
225
225
  PassiveQueue.configure do |config|
226
- config.meditation_duration = 5 # Duration in seconds (default: 5)
226
+ config.meditation_duration = 5 # Duration in seconds (default: 5); `be passive --duration` overrides it
227
227
  config.zen_level = :medium # :low, :medium, :high, :transcendent
228
228
  config.philosophical_depth = :shallow # :shallow, :deep, :profound, :existential
229
229
  config.silence_mode = false # Suppress all enlightening output
@@ -342,7 +342,7 @@ be passive --zen # Enable zen quotes during meditation
342
342
  be passive --philosophical # Enable philosophical thoughts
343
343
  be passive --duration 10 # Set meditation duration (seconds)
344
344
  be passive --aggressive # ERROR: Conflicts with zen philosophy
345
- be passive --help # Show enlightening help message
345
+ be passive --help # Show enlightening help message (also: be --help, be help, be -h)
346
346
  ```
347
347
 
348
348
  Example CLI session:
@@ -359,7 +359,7 @@ $ be passive --zen --duration 10
359
359
 
360
360
  💭 A queue that does nothing is a queue that never fails.
361
361
 
362
- ✨ Meditation complete! You successfully did nothing for 10.02 seconds.
362
+ ✨ Meditation complete! You successfully did nothing for 10.0 seconds.
363
363
  Your passive queue energy has been restored.
364
364
  ```
365
365
 
@@ -463,4 +463,4 @@ Inspired by the zen philosophy of doing nothing and several attendees of the Rai
463
463
 
464
464
  **The Art of Non-Execution**
465
465
 
466
- © 2025 Maciej Mensfeld. All rights reserved. No jobs were harmed in the making of this product.
466
+ © 2025 Maciej Mensfeld. All rights reserved. No jobs were harmed in the making of this product.
@@ -1,6 +1,3 @@
1
- # ================================
2
- # lib/passive_queue/cli.rb
3
- # ================================
4
1
  module PassiveQueue
5
2
  # Command-line interface for PassiveQueue meditation and zen commands
6
3
  class CLI
@@ -20,10 +17,12 @@ module PassiveQueue
20
17
  # Parse arguments manually (no Thor dependency)
21
18
  options = parse_args(args)
22
19
 
20
+ return show_help if options[:help]
21
+
23
22
  case args.first
24
23
  when "passive", nil
25
24
  passive_command(options)
26
- when "help", "-h", "--help"
25
+ when "help"
27
26
  show_help
28
27
  else
29
28
  puts "Unknown command: #{args.first}"
@@ -37,13 +36,14 @@ module PassiveQueue
37
36
  # Parses command-line arguments into an options hash
38
37
  #
39
38
  # @param args [Array<String>] raw command-line arguments
40
- # @return [Hash] parsed options with zen, philosophical, aggressive, and duration keys
39
+ # @return [Hash] parsed options with zen, philosophical, aggressive, help, and duration keys
41
40
  def parse_args(args)
42
41
  options = {
43
42
  zen: false,
44
43
  philosophical: false,
45
44
  aggressive: false,
46
- duration: 5
45
+ help: false,
46
+ duration: nil
47
47
  }
48
48
 
49
49
  args.each_with_index do |arg, index|
@@ -54,6 +54,8 @@ module PassiveQueue
54
54
  options[:philosophical] = true
55
55
  when "--aggressive"
56
56
  options[:aggressive] = true
57
+ when "--help", "-h"
58
+ options[:help] = true
57
59
  when "--duration"
58
60
  options[:duration] = args[index + 1].to_i if args[index + 1]
59
61
  end
@@ -68,7 +70,7 @@ module PassiveQueue
68
70
  # @option options [Boolean] :zen enable zen quotes during meditation
69
71
  # @option options [Boolean] :philosophical enable philosophical thoughts
70
72
  # @option options [Boolean] :aggressive aggressively passive mode (not recommended)
71
- # @option options [Numeric] :duration meditation duration in seconds
73
+ # @option options [Numeric, nil] :duration meditation duration in seconds; nil uses config.meditation_duration
72
74
  # @return [void]
73
75
  def passive_command(options)
74
76
  if options[:aggressive]
@@ -117,7 +119,7 @@ module PassiveQueue
117
119
  puts "🤔 #{PassiveQueue.philosophical_thoughts.sample}"
118
120
  end
119
121
 
120
- sleep(interval) unless i == 2
122
+ sleep(interval)
121
123
  puts "" unless i == 2
122
124
  end
123
125
  end
@@ -158,7 +160,7 @@ module PassiveQueue
158
160
  --zen Enable zen quotes during meditation
159
161
  --philosophical Enable philosophical thoughts
160
162
  --aggressive Be aggressively passive (not recommended)
161
- --duration N Set meditation duration in seconds (default: 5)
163
+ --duration N Set meditation duration in seconds (default: config.meditation_duration, 5)
162
164
  --help, -h Show this help message
163
165
 
164
166
  Examples:
@@ -1,6 +1,3 @@
1
- # ================================
2
- # lib/passive_queue/configuration.rb
3
- # ================================
4
1
  module PassiveQueue
5
2
  # Configuration settings for PassiveQueue behavior and aesthetics
6
3
  class Configuration
@@ -1,6 +1,3 @@
1
- # ================================
2
- # lib/passive_queue/engine.rb
3
- # ================================
4
1
  module PassiveQueue
5
2
  # Rack engine that mounts the PassiveQueue web dashboard in Rails applications
6
3
  class Engine
@@ -1,7 +1,4 @@
1
- # ================================
2
- # lib/passive_queue/version.rb
3
- # ================================
4
1
  module PassiveQueue
5
2
  # 1.0 so stable and production ready
6
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
7
4
  end
@@ -634,9 +634,6 @@ module PassiveQueue
634
634
  end
635
635
  end
636
636
 
637
- # ================================
638
- # lib/passive_queue/engine.rb
639
- # ================================
640
637
  module PassiveQueue
641
638
  class Engine
642
639
  def self.call(env)
data/package-lock.json CHANGED
@@ -103,9 +103,9 @@
103
103
  }
104
104
  },
105
105
  "node_modules/fastq": {
106
- "version": "1.20.1",
107
- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
108
- "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
106
+ "version": "1.20.3",
107
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz",
108
+ "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==",
109
109
  "dev": true,
110
110
  "license": "ISC",
111
111
  "dependencies": {
@@ -217,9 +217,9 @@
217
217
  }
218
218
  },
219
219
  "node_modules/picomatch": {
220
- "version": "2.3.1",
221
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
222
- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
220
+ "version": "2.3.2",
221
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
222
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
223
223
  "dev": true,
224
224
  "license": "MIT",
225
225
  "engines": {
@@ -286,9 +286,9 @@
286
286
  }
287
287
  },
288
288
  "node_modules/smol-toml": {
289
- "version": "1.6.0",
290
- "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.6.0.tgz",
291
- "integrity": "sha512-4zemZi0HvTnYwLfrpk/CF9LOd9Lt87kAt50GnqhMpyF9U3poDAP2+iukq2bZsO/ufegbYehBkqINbsWxj4l4cw==",
289
+ "version": "1.9.1",
290
+ "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz",
291
+ "integrity": "sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==",
292
292
  "dev": true,
293
293
  "license": "BSD-3-Clause",
294
294
  "engines": {
@@ -312,9 +312,9 @@
312
312
  }
313
313
  },
314
314
  "node_modules/yaml": {
315
- "version": "2.8.2",
316
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz",
317
- "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==",
315
+ "version": "2.9.1",
316
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz",
317
+ "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==",
318
318
  "dev": true,
319
319
  "license": "ISC",
320
320
  "bin": {
@@ -14,7 +14,10 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.metadata["homepage_uri"] = "https://github.com/mensfeld/passive_queue"
16
16
  spec.metadata["source_code_uri"] = "https://github.com/mensfeld/passive_queue"
17
- spec.metadata["changelog_uri"] = "https://github.com/mensfeld/passive_queue/blob/main/CHANGELOG.md"
17
+ spec.metadata["changelog_uri"] = "https://github.com/mensfeld/passive_queue/blob/master/CHANGELOG.md"
18
+ spec.metadata["bug_tracker_uri"] = "https://github.com/mensfeld/passive_queue/issues"
19
+ spec.metadata["documentation_uri"] = "https://github.com/mensfeld/passive_queue"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
18
21
 
19
22
  spec.files = Dir.chdir(__dir__) do
20
23
  `git ls-files -z`.split("\x0").reject do |f|
data/renovate.json CHANGED
@@ -25,12 +25,37 @@
25
25
  ],
26
26
  "groupName": "ruby setup",
27
27
  "internalChecksFilter": "strict"
28
+ },
29
+ {
30
+ "description": "Let setup-ruby pass age gate before ruby so it is ready when the group PR is created",
31
+ "matchPackageNames": [
32
+ "ruby/setup-ruby"
33
+ ],
34
+ "minimumReleaseAge": "5 days"
35
+ },
36
+ {
37
+ "description": "Major updates stay manual",
38
+ "matchUpdateTypes": [
39
+ "major"
40
+ ],
41
+ "automerge": false
28
42
  }
29
43
  ],
30
44
  "labels": [
31
45
  "dependencies"
32
46
  ],
33
47
  "lockFileMaintenance": {
34
- "enabled": true
48
+ "enabled": true,
49
+ "schedule": [
50
+ "before 4am on the first day of the month"
51
+ ]
52
+ },
53
+ "automerge": true,
54
+ "platformAutomerge": true,
55
+ "osvVulnerabilityAlerts": true,
56
+ "vulnerabilityAlerts": {
57
+ "labels": [
58
+ "security"
59
+ ]
35
60
  }
36
61
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passive_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -52,7 +52,10 @@ licenses:
52
52
  metadata:
53
53
  homepage_uri: https://github.com/mensfeld/passive_queue
54
54
  source_code_uri: https://github.com/mensfeld/passive_queue
55
- changelog_uri: https://github.com/mensfeld/passive_queue/blob/main/CHANGELOG.md
55
+ changelog_uri: https://github.com/mensfeld/passive_queue/blob/master/CHANGELOG.md
56
+ bug_tracker_uri: https://github.com/mensfeld/passive_queue/issues
57
+ documentation_uri: https://github.com/mensfeld/passive_queue
58
+ rubygems_mfa_required: 'true'
56
59
  rdoc_options: []
57
60
  require_paths:
58
61
  - lib
@@ -67,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
70
  - !ruby/object:Gem::Version
68
71
  version: '0'
69
72
  requirements: []
70
- rubygems_version: 4.0.10
73
+ rubygems_version: 4.0.20
71
74
  specification_version: 4
72
75
  summary: A Rails queue adapter that embraces the zen of non-productivity
73
76
  test_files: []