ready 0.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.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +185 -0
- data/.ruby-version +1 -0
- data/LICENSE.txt +21 -0
- data/README.md +25 -0
- data/Rakefile +24 -0
- data/exe/ready +3 -0
- data/lib/ready/version.rb +3 -0
- data/lib/ready.rb +12 -0
- metadata +63 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 456956b1ac3139ec747542b6b3c38462e4a4016404345930207a36114767b288
|
|
4
|
+
data.tar.gz: 5c12ad3085a8d16064f6fc2cf3cd9864a827624ae7aa42812d1a0d4e37fc620e
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a350d3b345d9c2bf0eee35816f2b2af3eea33d5a9b4ea6f1c8213d0ff6cf1cfbdb1fc4a92dc68a317604a98ce875ffbfd2ad6f7f2d166cb6b35029a8b83d2a59
|
|
7
|
+
data.tar.gz: 5bdf1c8d1cdaa141028ca2ffba6c1cb016839884607de0d12aba9bc141a73cd4aa1cb66dfc885ad6198b0394ca1f69ed3647df81e97c010294de2ed7c08fb4b4
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# ===========================================================================
|
|
2
|
+
# RuboCop Configuration
|
|
3
|
+
#
|
|
4
|
+
# Base: Stock RuboCop defaults
|
|
5
|
+
# AI guardrails: rubocop-claude plugin (all Claude/ cops + stricter metrics)
|
|
6
|
+
# Performance: rubocop-performance (with chain-hostile cops disabled)
|
|
7
|
+
#
|
|
8
|
+
# Philosophy: idiomatic Ruby, pipeline-style chaining, strict for AI agents,
|
|
9
|
+
# readable for humans.
|
|
10
|
+
# ===========================================================================
|
|
11
|
+
|
|
12
|
+
plugins:
|
|
13
|
+
- rubocop-claude
|
|
14
|
+
- rubocop-rspec
|
|
15
|
+
- rubocop-performance
|
|
16
|
+
- rubocop-rake
|
|
17
|
+
|
|
18
|
+
AllCops:
|
|
19
|
+
NewCops: enable
|
|
20
|
+
TargetRubyVersion: 4.0
|
|
21
|
+
Exclude:
|
|
22
|
+
- bin/*
|
|
23
|
+
- vendor/**/*
|
|
24
|
+
- lib/core_ext/**/*
|
|
25
|
+
- rakelib/project.rb
|
|
26
|
+
- rakelib/project_version.rb
|
|
27
|
+
- rakelib/version_tag.rb
|
|
28
|
+
- rakelib/github_release.rb
|
|
29
|
+
- rakelib/strict_shell.rb
|
|
30
|
+
|
|
31
|
+
# ===========================================================================
|
|
32
|
+
# Overrides from stock — personal style preferences
|
|
33
|
+
# ===========================================================================
|
|
34
|
+
|
|
35
|
+
# Double quotes everywhere. One less decision to make.
|
|
36
|
+
Style/StringLiterals:
|
|
37
|
+
EnforcedStyle: double_quotes
|
|
38
|
+
|
|
39
|
+
Style/StringLiteralsInInterpolation:
|
|
40
|
+
EnforcedStyle: double_quotes
|
|
41
|
+
|
|
42
|
+
# Frozen string literal is transitional cruft. Ruby 3.4 has chilled strings,
|
|
43
|
+
# full default freeze is coming in a future Ruby.
|
|
44
|
+
Style/FrozenStringLiteralComment:
|
|
45
|
+
EnforcedStyle: never
|
|
46
|
+
|
|
47
|
+
# Pipeline style. Chaining multi-line blocks is the whole point.
|
|
48
|
+
Style/MultilineBlockChain:
|
|
49
|
+
Enabled: false
|
|
50
|
+
|
|
51
|
+
# Block delimiters are a taste call. Pipeline code uses braces for chaining,
|
|
52
|
+
# do/end for side effects. No cop captures this nuance.
|
|
53
|
+
Style/BlockDelimiters:
|
|
54
|
+
Enabled: false
|
|
55
|
+
|
|
56
|
+
# Write arrays like arrays.
|
|
57
|
+
Style/WordArray:
|
|
58
|
+
Enabled: false
|
|
59
|
+
|
|
60
|
+
Style/SymbolArray:
|
|
61
|
+
Enabled: false
|
|
62
|
+
|
|
63
|
+
# Argument indentation: consistent 2-space indent, not aligned to first arg.
|
|
64
|
+
Layout/FirstArgumentIndentation:
|
|
65
|
+
EnforcedStyle: consistent
|
|
66
|
+
|
|
67
|
+
# Dot-aligned chaining. Dots form a visual column.
|
|
68
|
+
Layout/MultilineMethodCallIndentation:
|
|
69
|
+
EnforcedStyle: aligned
|
|
70
|
+
|
|
71
|
+
# ===========================================================================
|
|
72
|
+
# Overrides from rubocop-claude — loosen where pipeline style conflicts
|
|
73
|
+
# ===========================================================================
|
|
74
|
+
|
|
75
|
+
Claude/NoOverlyDefensiveCode:
|
|
76
|
+
MaxSafeNavigationChain: 2
|
|
77
|
+
|
|
78
|
+
Style/SafeNavigation:
|
|
79
|
+
MaxChainLength: 2
|
|
80
|
+
|
|
81
|
+
# Allow `return a, b` for tuple-style returns.
|
|
82
|
+
Style/RedundantReturn:
|
|
83
|
+
AllowMultipleReturnValues: true
|
|
84
|
+
|
|
85
|
+
# ===========================================================================
|
|
86
|
+
# Overrides from rubocop-performance — disable chain-hostile cops
|
|
87
|
+
# ===========================================================================
|
|
88
|
+
|
|
89
|
+
Performance/ChainArrayAllocation:
|
|
90
|
+
Enabled: false
|
|
91
|
+
|
|
92
|
+
Performance/MapMethodChain:
|
|
93
|
+
Enabled: false
|
|
94
|
+
|
|
95
|
+
# ===========================================================================
|
|
96
|
+
# Additional tightening — not set by stock or rubocop-claude
|
|
97
|
+
# ===========================================================================
|
|
98
|
+
|
|
99
|
+
# Short blocks push toward small chained steps instead of fat lambdas.
|
|
100
|
+
Metrics/BlockLength:
|
|
101
|
+
Max: 8
|
|
102
|
+
CountAsOne:
|
|
103
|
+
- array
|
|
104
|
+
- hash
|
|
105
|
+
- heredoc
|
|
106
|
+
- method_call
|
|
107
|
+
AllowedMethods:
|
|
108
|
+
- command
|
|
109
|
+
- describe
|
|
110
|
+
- context
|
|
111
|
+
- shared_examples
|
|
112
|
+
- shared_examples_for
|
|
113
|
+
- shared_context
|
|
114
|
+
Exclude:
|
|
115
|
+
- "ready.gemspec"
|
|
116
|
+
- "rakelib/**/*"
|
|
117
|
+
|
|
118
|
+
# Gemspec and rake files use patterns that trigger Claude cops legitimately.
|
|
119
|
+
Claude/NoFancyUnicode:
|
|
120
|
+
Exclude:
|
|
121
|
+
- "ready.gemspec"
|
|
122
|
+
|
|
123
|
+
Claude/MysteryRegex:
|
|
124
|
+
Exclude:
|
|
125
|
+
- "rakelib/**/*"
|
|
126
|
+
|
|
127
|
+
# Zeitwerk loaders are mutable by design — only flag literal mutable values.
|
|
128
|
+
Style/MutableConstant:
|
|
129
|
+
EnforcedStyle: literals
|
|
130
|
+
|
|
131
|
+
# Shared test contexts legitimately define many helpers.
|
|
132
|
+
RSpec/MultipleMemoizedHelpers:
|
|
133
|
+
Max: 10
|
|
134
|
+
|
|
135
|
+
# Anonymous forwarding (*, **, &) breaks TruffleRuby, JRuby, and
|
|
136
|
+
# Ruby < 3.2. Named args are explicit and portable.
|
|
137
|
+
Style/ArgumentsForwarding:
|
|
138
|
+
Enabled: false
|
|
139
|
+
|
|
140
|
+
# Explicit begin/rescue/end is clearer than implicit method-body rescue.
|
|
141
|
+
Style/RedundantBegin:
|
|
142
|
+
Enabled: false
|
|
143
|
+
|
|
144
|
+
# Compact class names are fine for small files and tests.
|
|
145
|
+
Style/ClassAndModuleChildren:
|
|
146
|
+
Enabled: false
|
|
147
|
+
|
|
148
|
+
# Classes get rdoc.
|
|
149
|
+
Style/Documentation:
|
|
150
|
+
Enabled: true
|
|
151
|
+
Exclude:
|
|
152
|
+
- "spec/**/*"
|
|
153
|
+
|
|
154
|
+
# Trailing commas in multiline literals and arguments.
|
|
155
|
+
Style/TrailingCommaInArrayLiteral:
|
|
156
|
+
EnforcedStyleForMultiline: comma
|
|
157
|
+
|
|
158
|
+
Style/TrailingCommaInHashLiteral:
|
|
159
|
+
EnforcedStyleForMultiline: comma
|
|
160
|
+
|
|
161
|
+
Style/TrailingCommaInArguments:
|
|
162
|
+
EnforcedStyleForMultiline: comma
|
|
163
|
+
|
|
164
|
+
# ===========================================================================
|
|
165
|
+
# RSpec — rubocop-rspec overrides
|
|
166
|
+
# ===========================================================================
|
|
167
|
+
|
|
168
|
+
# Not every describe block wraps a class.
|
|
169
|
+
RSpec/DescribeClass:
|
|
170
|
+
Enabled: false
|
|
171
|
+
|
|
172
|
+
# Subject placement is a readability call, not a rule.
|
|
173
|
+
RSpec/LeadingSubject:
|
|
174
|
+
Enabled: false
|
|
175
|
+
|
|
176
|
+
# Block style for expect { }.to change { } reads like a sentence.
|
|
177
|
+
RSpec/ExpectChange:
|
|
178
|
+
EnforcedStyle: block
|
|
179
|
+
|
|
180
|
+
RSpec/NamedSubject:
|
|
181
|
+
Enabled: false
|
|
182
|
+
|
|
183
|
+
# have_file_content matcher accepts a filename string in expect()
|
|
184
|
+
RSpec/ExpectActual:
|
|
185
|
+
Enabled: false
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.0.1
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 David Gillis
|
|
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,25 @@
|
|
|
1
|
+
# Ready
|
|
2
|
+
|
|
3
|
+
A new Ruby gem
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
|
8
|
+
|
|
9
|
+
$ bundle add ready
|
|
10
|
+
|
|
11
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
12
|
+
|
|
13
|
+
$ gem install ready
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
TODO: Write usage instructions here.
|
|
18
|
+
|
|
19
|
+
## Development
|
|
20
|
+
|
|
21
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests.
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
2
|
+
|
|
3
|
+
require "rspec/core/rake_task"
|
|
4
|
+
|
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
6
|
+
|
|
7
|
+
require "rubocop/rake_task"
|
|
8
|
+
RuboCop::RakeTask.new
|
|
9
|
+
|
|
10
|
+
require "gempilot/version_task"
|
|
11
|
+
Gempilot::VersionTask.new
|
|
12
|
+
|
|
13
|
+
namespace :zeitwerk do
|
|
14
|
+
desc "Verify all files follow Zeitwerk naming conventions"
|
|
15
|
+
task :validate do
|
|
16
|
+
ruby "-e", <<~RUBY
|
|
17
|
+
require 'ready'
|
|
18
|
+
Ready::LOADER.eager_load(force: true)
|
|
19
|
+
puts 'Zeitwerk: All files loaded successfully.'
|
|
20
|
+
RUBY
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
task default: [:spec, :rubocop]
|
data/exe/ready
ADDED
data/lib/ready.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ready
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- David Gillis
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: zeitwerk
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0'
|
|
26
|
+
email:
|
|
27
|
+
- david@flipmine.com
|
|
28
|
+
executables:
|
|
29
|
+
- ready
|
|
30
|
+
extensions: []
|
|
31
|
+
extra_rdoc_files: []
|
|
32
|
+
files:
|
|
33
|
+
- ".rspec"
|
|
34
|
+
- ".rubocop.yml"
|
|
35
|
+
- ".ruby-version"
|
|
36
|
+
- LICENSE.txt
|
|
37
|
+
- README.md
|
|
38
|
+
- Rakefile
|
|
39
|
+
- exe/ready
|
|
40
|
+
- lib/ready.rb
|
|
41
|
+
- lib/ready/version.rb
|
|
42
|
+
licenses:
|
|
43
|
+
- MIT
|
|
44
|
+
metadata:
|
|
45
|
+
rubygems_mfa_required: 'true'
|
|
46
|
+
rdoc_options: []
|
|
47
|
+
require_paths:
|
|
48
|
+
- lib
|
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 4.0.1
|
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - ">="
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '0'
|
|
59
|
+
requirements: []
|
|
60
|
+
rubygems_version: 4.0.11
|
|
61
|
+
specification_version: 4
|
|
62
|
+
summary: A new Ruby gem
|
|
63
|
+
test_files: []
|