fasti 1.0.0 → 1.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +8 -2
- data/lib/fasti/version.rb +1 -1
- metadata +6 -24
- data/.mcp.json +0 -19
- data/.rspec +0 -3
- data/.rubocop.yml +0 -82
- data/.rubocop_todo.yml +0 -89
- data/.serena/project.yml +0 -68
- data/.simplecov +0 -31
- data/.yardopts +0 -9
- data/AGENTS.md +0 -60
- data/CLAUDE.md +0 -1
- data/RELEASING.md +0 -202
- data/Rakefile +0 -34
- data/TODO.md +0 -11
- data/benchmark/holiday_cache_benchmark.rb +0 -111
- data/benchmark/memory_benchmark.rb +0 -86
- data/docs/agents/git-pr.md +0 -298
- data/docs/agents/languages.md +0 -388
- data/docs/agents/rubocop.md +0 -55
- data/docs/plans/positional-arguments.md +0 -303
- data/docs/plans/structured-config.md +0 -232
- data/examples/config.rb +0 -80
- data/mise.toml +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c2a52f9c759a56bc982b2c0ee1b8a02a304e967c9733ce50c548be7c224393e
|
|
4
|
+
data.tar.gz: f13bf60cdddc0bd1ef590fc7cfe0d10ae9aeb9601a58a2f84655c0b907d5a236
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eeb376ec9ea7184327904000a52aceaf018850b5877dfd0bf548a5318181d24f93014074ad84c6ac969304befa98b50970e5473c29aa424bbb4e933acd41afcf
|
|
7
|
+
data.tar.gz: eed1fc4b66f5c0dab6f7be7ecdaef6118f04e0b526e0cd45ddaf2f4f64e960604edbfaf983886e6a5c587f33cba64c68ba0d2c349f5e029bf962654158fa56b2
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -361,7 +361,7 @@ This project uses automated GitHub Actions workflows for releases. Maintainers c
|
|
|
361
361
|
3. Review and merge the generated PR
|
|
362
362
|
4. Release is automatically published to RubyGems and GitHub
|
|
363
363
|
|
|
364
|
-
**For detailed instructions, troubleshooting, and setup requirements, see [
|
|
364
|
+
**For detailed instructions, troubleshooting, and setup requirements, see [`RELEASING.md`](RELEASING.md).**
|
|
365
365
|
|
|
366
366
|
## Known Limitations
|
|
367
367
|
|
|
@@ -391,6 +391,12 @@ fasti 12 1872 --country JP
|
|
|
391
391
|
|
|
392
392
|
Asian countries used lunisolar calendars before adoption; pre-transition dates use proleptic Gregorian calendar for computational consistency.
|
|
393
393
|
|
|
394
|
+
## FAQ
|
|
395
|
+
|
|
396
|
+
### Why is it called "fasti"?
|
|
397
|
+
|
|
398
|
+
The name comes from the Latin *[fasti](https://en.wiktionary.org/wiki/fasti)*, meaning "calendar" or "list of days". Roman *fasti* were official calendars that recorded important dates, festivals, and holidays - much like what this application does for modern users.
|
|
399
|
+
|
|
394
400
|
## Contributing
|
|
395
401
|
|
|
396
402
|
Bug reports and pull requests are welcome on GitHub at https://github.com/sakuro/fasti.
|
|
@@ -412,5 +418,5 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
412
418
|
|
|
413
419
|
- Built with Ruby 3.2+ for broad compatibility and modern features
|
|
414
420
|
- Uses the excellent [holidays](https://github.com/holidays/holidays) gem for accurate holiday data
|
|
415
|
-
- Color support provided by the [tint_me](https://github.com/
|
|
421
|
+
- Color support provided by the [tint_me](https://github.com/sakuro/tint_me) gem
|
|
416
422
|
- Follows XDG Base Directory Specification for configuration files
|
data/lib/fasti/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fasti
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OZAWA Sakuro
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2025-11-02 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: dry-configurable
|
|
@@ -116,29 +117,9 @@ executables:
|
|
|
116
117
|
extensions: []
|
|
117
118
|
extra_rdoc_files: []
|
|
118
119
|
files:
|
|
119
|
-
- ".mcp.json"
|
|
120
|
-
- ".rspec"
|
|
121
|
-
- ".rubocop.yml"
|
|
122
|
-
- ".rubocop_todo.yml"
|
|
123
|
-
- ".serena/project.yml"
|
|
124
|
-
- ".simplecov"
|
|
125
|
-
- ".yardopts"
|
|
126
|
-
- AGENTS.md
|
|
127
120
|
- CHANGELOG.md
|
|
128
|
-
- CLAUDE.md
|
|
129
121
|
- LICENSE.txt
|
|
130
122
|
- README.md
|
|
131
|
-
- RELEASING.md
|
|
132
|
-
- Rakefile
|
|
133
|
-
- TODO.md
|
|
134
|
-
- benchmark/holiday_cache_benchmark.rb
|
|
135
|
-
- benchmark/memory_benchmark.rb
|
|
136
|
-
- docs/agents/git-pr.md
|
|
137
|
-
- docs/agents/languages.md
|
|
138
|
-
- docs/agents/rubocop.md
|
|
139
|
-
- docs/plans/positional-arguments.md
|
|
140
|
-
- docs/plans/structured-config.md
|
|
141
|
-
- examples/config.rb
|
|
142
123
|
- exe/fasti
|
|
143
124
|
- lib/fasti.rb
|
|
144
125
|
- lib/fasti/calendar.rb
|
|
@@ -151,7 +132,6 @@ files:
|
|
|
151
132
|
- lib/fasti/formatter.rb
|
|
152
133
|
- lib/fasti/style_parser.rb
|
|
153
134
|
- lib/fasti/version.rb
|
|
154
|
-
- mise.toml
|
|
155
135
|
- sig/fasti.rbs
|
|
156
136
|
homepage: https://github.com/sakuro/fasti
|
|
157
137
|
licenses:
|
|
@@ -161,6 +141,7 @@ metadata:
|
|
|
161
141
|
source_code_uri: https://github.com/sakuro/fasti.git
|
|
162
142
|
changelog_uri: https://github.com/sakuro/fasti/blob/main/CHANGELOG.md
|
|
163
143
|
rubygems_mfa_required: 'true'
|
|
144
|
+
post_install_message:
|
|
164
145
|
rdoc_options: []
|
|
165
146
|
require_paths:
|
|
166
147
|
- lib
|
|
@@ -175,7 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
175
156
|
- !ruby/object:Gem::Version
|
|
176
157
|
version: '0'
|
|
177
158
|
requirements: []
|
|
178
|
-
rubygems_version: 3.
|
|
159
|
+
rubygems_version: 3.4.19
|
|
160
|
+
signing_key:
|
|
179
161
|
specification_version: 4
|
|
180
162
|
summary: A flexible calendar application with multi-country holiday support
|
|
181
163
|
test_files: []
|
data/.mcp.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"serena": {
|
|
4
|
-
"type": "stdio",
|
|
5
|
-
"command": "uvx",
|
|
6
|
-
"args": [
|
|
7
|
-
"--from",
|
|
8
|
-
"git+https://github.com/oraios/serena",
|
|
9
|
-
"serena",
|
|
10
|
-
"start-mcp-server",
|
|
11
|
-
"--context",
|
|
12
|
-
"ide-assistant",
|
|
13
|
-
"--project",
|
|
14
|
-
"/Users/sakuro/github.com/sakuro/fasti"
|
|
15
|
-
],
|
|
16
|
-
"env": {}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
DisplayCopNames: true
|
|
3
|
-
DisplayStyleGuide: true
|
|
4
|
-
EnabledByDefault: true
|
|
5
|
-
Exclude:
|
|
6
|
-
- bin/**/*
|
|
7
|
-
- vendor/**/*
|
|
8
|
-
ExtraDetails: true
|
|
9
|
-
NewCops: enable
|
|
10
|
-
TargetRubyVersion: 3.2
|
|
11
|
-
UseCache: true
|
|
12
|
-
|
|
13
|
-
inherit_mode:
|
|
14
|
-
merge:
|
|
15
|
-
- Exclude
|
|
16
|
-
|
|
17
|
-
plugins:
|
|
18
|
-
- rubocop-performance
|
|
19
|
-
- rubocop-rake
|
|
20
|
-
- rubocop-rspec
|
|
21
|
-
|
|
22
|
-
inherit_gem:
|
|
23
|
-
docquet:
|
|
24
|
-
- config/cops/bundler.yml
|
|
25
|
-
- config/cops/gemspec.yml
|
|
26
|
-
- config/cops/layout.yml
|
|
27
|
-
- config/cops/lint.yml
|
|
28
|
-
- config/cops/metrics.yml
|
|
29
|
-
- config/cops/naming.yml
|
|
30
|
-
- config/cops/performance.yml
|
|
31
|
-
- config/cops/rake.yml
|
|
32
|
-
- config/cops/rspec.yml
|
|
33
|
-
- config/cops/security.yml
|
|
34
|
-
- config/cops/style.yml
|
|
35
|
-
|
|
36
|
-
inherit_from: .rubocop_todo.yml
|
|
37
|
-
|
|
38
|
-
# Project-specific settings can be added here
|
|
39
|
-
Naming/VariableNumber:
|
|
40
|
-
AllowedPatterns:
|
|
41
|
-
- '^(january|february|march|april|may|june|july|august|september|october|november|december)_\d{4}$' # month_YYYY
|
|
42
|
-
- '^(leap|non_leap)_\d{4}$' # leap_YYYY, non_leap_YYYY
|
|
43
|
-
|
|
44
|
-
Style/EmptyElse:
|
|
45
|
-
Enabled: false
|
|
46
|
-
|
|
47
|
-
Style/FetchEnvVar:
|
|
48
|
-
# Allow ENV["key"] for these variables as nil return values are intentionally handled
|
|
49
|
-
AllowedVars:
|
|
50
|
-
- LC_ALL # Used for locale detection, nil is acceptable
|
|
51
|
-
- LANG # Used for locale detection, nil is acceptable
|
|
52
|
-
- XDG_CONFIG_HOME # Used in tests for environment backup/restore, nil is acceptable
|
|
53
|
-
|
|
54
|
-
Style/SymbolProc:
|
|
55
|
-
# Allow OptionParser#accept method which requires specific block format incompatible with symbol-to-proc
|
|
56
|
-
AllowedMethods:
|
|
57
|
-
- accept
|
|
58
|
-
|
|
59
|
-
Layout/LineLength:
|
|
60
|
-
# Exclude test files with long test data strings
|
|
61
|
-
Exclude:
|
|
62
|
-
- 'spec/fasti/style_parser_spec.rb'
|
|
63
|
-
|
|
64
|
-
Metrics/ParameterLists:
|
|
65
|
-
# Don't count keyword arguments as they are named and improve readability
|
|
66
|
-
CountKeywordArgs: false
|
|
67
|
-
|
|
68
|
-
Metrics/BlockLength:
|
|
69
|
-
# Exclude CLI file which contains long OptionParser DSL block
|
|
70
|
-
Exclude:
|
|
71
|
-
- 'lib/fasti/cli.rb'
|
|
72
|
-
|
|
73
|
-
# Benchmark scripts are executable utilities, not library code
|
|
74
|
-
Style/TopLevelMethodDefinition:
|
|
75
|
-
Exclude:
|
|
76
|
-
- 'benchmark/**/*'
|
|
77
|
-
|
|
78
|
-
Style/Documentation:
|
|
79
|
-
# Exclude config.rb: Contains methods in module re-opening (not namespace module),
|
|
80
|
-
# but main Fasti module documentation is already provided in lib/fasti.rb
|
|
81
|
-
Exclude:
|
|
82
|
-
- 'lib/fasti/config.rb'
|
data/.rubocop_todo.yml
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
|
3
|
-
# using RuboCop version 1.80.0.
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
-
|
|
9
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
10
|
-
Metrics/AbcSize:
|
|
11
|
-
Exclude:
|
|
12
|
-
- 'lib/fasti/calendar.rb'
|
|
13
|
-
- 'lib/fasti/calendar_transition.rb'
|
|
14
|
-
- 'lib/fasti/cli.rb'
|
|
15
|
-
- 'lib/fasti/config.rb'
|
|
16
|
-
- 'lib/fasti/formatter.rb'
|
|
17
|
-
- 'lib/fasti/style.rb'
|
|
18
|
-
- 'lib/fasti/style_parser.rb'
|
|
19
|
-
|
|
20
|
-
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
21
|
-
# AllowedMethods: refine
|
|
22
|
-
Metrics/BlockLength:
|
|
23
|
-
Exclude:
|
|
24
|
-
- 'examples/config.rb'
|
|
25
|
-
|
|
26
|
-
# Configuration parameters: CountComments, Max, CountAsOne.
|
|
27
|
-
Metrics/ClassLength:
|
|
28
|
-
Exclude:
|
|
29
|
-
- 'lib/fasti/calendar.rb'
|
|
30
|
-
- 'lib/fasti/cli.rb'
|
|
31
|
-
- 'lib/fasti/style_parser.rb'
|
|
32
|
-
|
|
33
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
34
|
-
Metrics/CyclomaticComplexity:
|
|
35
|
-
Exclude:
|
|
36
|
-
- 'lib/fasti/formatter.rb'
|
|
37
|
-
- 'lib/fasti/style.rb'
|
|
38
|
-
|
|
39
|
-
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
40
|
-
Metrics/MethodLength:
|
|
41
|
-
Exclude:
|
|
42
|
-
- 'lib/fasti/calendar.rb'
|
|
43
|
-
- 'lib/fasti/calendar_transition.rb'
|
|
44
|
-
- 'lib/fasti/cli.rb'
|
|
45
|
-
- 'lib/fasti/config.rb'
|
|
46
|
-
- 'lib/fasti/formatter.rb'
|
|
47
|
-
- 'lib/fasti/style.rb'
|
|
48
|
-
- 'lib/fasti/style_parser.rb'
|
|
49
|
-
- 'spec/support/ansi_matchers.rb'
|
|
50
|
-
|
|
51
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
52
|
-
Metrics/PerceivedComplexity:
|
|
53
|
-
Exclude:
|
|
54
|
-
- 'lib/fasti/formatter.rb'
|
|
55
|
-
- 'lib/fasti/style.rb'
|
|
56
|
-
|
|
57
|
-
# Configuration parameters: Prefixes, AllowedPatterns.
|
|
58
|
-
# Prefixes: when, with, without
|
|
59
|
-
RSpec/ContextWording:
|
|
60
|
-
Exclude:
|
|
61
|
-
- 'spec/fasti/calendar_spec.rb'
|
|
62
|
-
|
|
63
|
-
# Configuration parameters: Max, CountAsOne.
|
|
64
|
-
RSpec/ExampleLength:
|
|
65
|
-
Exclude:
|
|
66
|
-
- 'spec/fasti/calendar_spec.rb'
|
|
67
|
-
- 'spec/fasti/calendar_transition_spec.rb'
|
|
68
|
-
- 'spec/fasti/cli_spec.rb'
|
|
69
|
-
- 'spec/fasti/config_spec.rb'
|
|
70
|
-
- 'spec/fasti/formatter_custom_styles_spec.rb'
|
|
71
|
-
- 'spec/fasti/formatter_spec.rb'
|
|
72
|
-
- 'spec/fasti/style_spec.rb'
|
|
73
|
-
|
|
74
|
-
# Configuration parameters: Max.
|
|
75
|
-
RSpec/MultipleExpectations:
|
|
76
|
-
Exclude:
|
|
77
|
-
- 'spec/fasti/calendar_spec.rb'
|
|
78
|
-
- 'spec/fasti/calendar_transition_spec.rb'
|
|
79
|
-
- 'spec/fasti/cli_spec.rb'
|
|
80
|
-
- 'spec/fasti/config_spec.rb'
|
|
81
|
-
- 'spec/fasti/formatter_custom_styles_spec.rb'
|
|
82
|
-
- 'spec/fasti/formatter_spec.rb'
|
|
83
|
-
- 'spec/fasti/style_parser_spec.rb'
|
|
84
|
-
- 'spec/fasti/style_spec.rb'
|
|
85
|
-
|
|
86
|
-
# Configuration parameters: Max, AllowedGroups.
|
|
87
|
-
RSpec/NestedGroups:
|
|
88
|
-
Exclude:
|
|
89
|
-
- 'spec/fasti/formatter_spec.rb'
|
data/.serena/project.yml
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# language of the project (csharp, python, rust, java, typescript, go, cpp, or ruby)
|
|
2
|
-
# * For C, use cpp
|
|
3
|
-
# * For JavaScript, use typescript
|
|
4
|
-
# Special requirements:
|
|
5
|
-
# * csharp: Requires the presence of a .sln file in the project folder.
|
|
6
|
-
language: ruby
|
|
7
|
-
|
|
8
|
-
# whether to use the project's gitignore file to ignore files
|
|
9
|
-
# Added on 2025-04-07
|
|
10
|
-
ignore_all_files_in_gitignore: true
|
|
11
|
-
# list of additional paths to ignore
|
|
12
|
-
# same syntax as gitignore, so you can use * and **
|
|
13
|
-
# Was previously called `ignored_dirs`, please update your config if you are using that.
|
|
14
|
-
# Added (renamed) on 2025-04-07
|
|
15
|
-
ignored_paths: []
|
|
16
|
-
|
|
17
|
-
# whether the project is in read-only mode
|
|
18
|
-
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
|
|
19
|
-
# Added on 2025-04-18
|
|
20
|
-
read_only: false
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# list of tool names to exclude. We recommend not excluding any tools, see the readme for more details.
|
|
24
|
-
# Below is the complete list of tools for convenience.
|
|
25
|
-
# To make sure you have the latest list of tools, and to view their descriptions,
|
|
26
|
-
# execute `uv run scripts/print_tool_overview.py`.
|
|
27
|
-
#
|
|
28
|
-
# * `activate_project`: Activates a project by name.
|
|
29
|
-
# * `check_onboarding_performed`: Checks whether project onboarding was already performed.
|
|
30
|
-
# * `create_text_file`: Creates/overwrites a file in the project directory.
|
|
31
|
-
# * `delete_lines`: Deletes a range of lines within a file.
|
|
32
|
-
# * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
|
|
33
|
-
# * `execute_shell_command`: Executes a shell command.
|
|
34
|
-
# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
|
|
35
|
-
# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
|
|
36
|
-
# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
|
|
37
|
-
# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
|
|
38
|
-
# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
|
|
39
|
-
# * `initial_instructions`: Gets the initial instructions for the current project.
|
|
40
|
-
# Should only be used in settings where the system prompt cannot be set,
|
|
41
|
-
# e.g. in clients you have no control over, like Claude Desktop.
|
|
42
|
-
# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
|
|
43
|
-
# * `insert_at_line`: Inserts content at a given line in a file.
|
|
44
|
-
# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
|
|
45
|
-
# * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
|
|
46
|
-
# * `list_memories`: Lists memories in Serena's project-specific memory store.
|
|
47
|
-
# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
|
|
48
|
-
# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
|
|
49
|
-
# * `read_file`: Reads a file within the project directory.
|
|
50
|
-
# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
|
|
51
|
-
# * `remove_project`: Removes a project from the Serena configuration.
|
|
52
|
-
# * `replace_lines`: Replaces a range of lines within a file with new content.
|
|
53
|
-
# * `replace_symbol_body`: Replaces the full definition of a symbol.
|
|
54
|
-
# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
|
|
55
|
-
# * `search_for_pattern`: Performs a search for a pattern in the project.
|
|
56
|
-
# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
|
|
57
|
-
# * `switch_modes`: Activates modes by providing a list of their names
|
|
58
|
-
# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
|
|
59
|
-
# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
|
|
60
|
-
# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
|
|
61
|
-
# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
|
|
62
|
-
excluded_tools: []
|
|
63
|
-
|
|
64
|
-
# initial prompt for the project. It will always be given to the LLM upon activating the project
|
|
65
|
-
# (contrary to the memories, which are loaded on demand).
|
|
66
|
-
initial_prompt: ""
|
|
67
|
-
|
|
68
|
-
project_name: "fasti"
|
data/.simplecov
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
SimpleCov.configure do
|
|
4
|
-
# Start coverage measurement
|
|
5
|
-
SimpleCov.start do
|
|
6
|
-
# Add coverage filter for non-production code
|
|
7
|
-
add_filter "/spec/"
|
|
8
|
-
add_filter "/vendor/"
|
|
9
|
-
add_filter "/examples/"
|
|
10
|
-
|
|
11
|
-
# Track these directories
|
|
12
|
-
add_group "Library", "lib"
|
|
13
|
-
add_group "Executables", "exe"
|
|
14
|
-
|
|
15
|
-
# Coverage thresholds - restored and improved beyond original target
|
|
16
|
-
minimum_coverage 90.0 # Achieved: 96.99% line coverage, 90.73% branch coverage
|
|
17
|
-
# minimum_coverage_by_file 80 # Could be enabled with current high coverage
|
|
18
|
-
|
|
19
|
-
# Enable branch coverage (Ruby 2.5+)
|
|
20
|
-
enable_coverage :branch if respond_to?(:enable_coverage)
|
|
21
|
-
|
|
22
|
-
# Coverage formats
|
|
23
|
-
formatter SimpleCov::Formatter::MultiFormatter.new([
|
|
24
|
-
SimpleCov::Formatter::HTMLFormatter, # HTML report in coverage/
|
|
25
|
-
SimpleCov::Formatter::SimpleFormatter # Console output
|
|
26
|
-
])
|
|
27
|
-
|
|
28
|
-
# Merge multiple test runs (useful for parallel testing)
|
|
29
|
-
merge_timeout 3600
|
|
30
|
-
end
|
|
31
|
-
end
|
data/.yardopts
DELETED
data/AGENTS.md
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Repository Guidelines
|
|
2
|
-
|
|
3
|
-
> **Note**: This file is also accessible via the `CLAUDE.md` symlink for AI agent compatibility.
|
|
4
|
-
|
|
5
|
-
> **Important**: This document references other documentation files. Please also read:
|
|
6
|
-
> - `docs/agents/rubocop.md` - RuboCop fix guidelines for AI agents
|
|
7
|
-
> - `docs/agents/git-pr.md` - Git commit and pull request guidelines
|
|
8
|
-
> - `docs/agents/languages.md` - Language usage guidelines for communication and code
|
|
9
|
-
> - Any other documents referenced inline below
|
|
10
|
-
|
|
11
|
-
## Project Structure & Module Organization
|
|
12
|
-
- `lib/fasti`: Core library. Entry point is `lib/fasti.rb`; code is namespaced under `Fasti` (autoloaded via Zeitwerk).
|
|
13
|
-
- `spec`: RSpec tests. Mirror library paths (e.g., `spec/fasti/cli_spec.rb`).
|
|
14
|
-
- `docs/api`: Generated YARD documentation. Do not edit by hand; use `rake doc`.
|
|
15
|
-
- `benchmark/*`: Performance experiments and notes.
|
|
16
|
-
- `bin`: Development helpers (`bin/setup`, `bin/console`).
|
|
17
|
-
|
|
18
|
-
## Build, Test, and Development Commands
|
|
19
|
-
- `bundle install`: Install dependencies (use a supported Ruby; see policy below and `mise.toml`).
|
|
20
|
-
- `rake`: Default task; runs `spec` and `rubocop`.
|
|
21
|
-
- `rake spec`: Run the test suite.
|
|
22
|
-
- `rubocop` or `rake rubocop`: Lint and style checks.
|
|
23
|
-
- `rake doc`: Build YARD docs into `docs/api`.
|
|
24
|
-
- `bin/console`: IRB with the gem loaded for quick experiments.
|
|
25
|
-
- `docquet regenerate-todo`: Regenerate `.rubocop_todo.yml` after lint updates; include with related code fixes.
|
|
26
|
-
|
|
27
|
-
## Communication & Languages
|
|
28
|
-
See `docs/agents/languages.md` for detailed language usage guidelines covering:
|
|
29
|
-
- AI/user chat communication languages
|
|
30
|
-
- Source code and documentation language requirements
|
|
31
|
-
- Issues/PRs language preferences
|
|
32
|
-
- Context-appropriate language switching
|
|
33
|
-
|
|
34
|
-
## Coding Style & Naming Conventions
|
|
35
|
-
- Ruby 3.x compatible; 2-space indent, `# frozen_string_literal: true` headers.
|
|
36
|
-
- Follow RuboCop rules (`.rubocop.yml`); fix offenses before committing.
|
|
37
|
-
- Files and specs use snake_case; specs live under `spec/fasti/*_spec.rb`.
|
|
38
|
-
- Public API is under `Fasti`; avoid monkey patching. Prefer immutable, composable objects where applicable.
|
|
39
|
-
- RuboCop fixes: When addressing lints, follow `docs/agents/rubocop.md` (safe autocorrect first; targeted unsafe only as needed).
|
|
40
|
-
|
|
41
|
-
## Testing Guidelines
|
|
42
|
-
- Framework: RSpec with `spec_helper` and SimpleCov. Maintain ≥ 90% coverage.
|
|
43
|
-
- Name/spec files to mirror library paths; keep examples focused and readable.
|
|
44
|
-
- Run `rake spec` locally; ensure `.rspec_status` is clean.
|
|
45
|
-
|
|
46
|
-
## Commit & Pull Request Guidelines
|
|
47
|
-
- Title format: Must start with a GitHub `:emoji:` code followed by a space, then an imperative subject. Example: `:zap: Optimize Style#call path`.
|
|
48
|
-
- No raw emoji: Use `:emoji:` codes only (commit hook rejects Unicode emoji).
|
|
49
|
-
- Exceptions: `fixup!` / `squash!` are allowed by hooks.
|
|
50
|
-
- Merge commits: Auto-prefixed with `:inbox_tray:` by the prepare-commit-msg hook.
|
|
51
|
-
- Commit body: English, explaining motivation, approach, and trade-offs.
|
|
52
|
-
- Include rationale and, when useful, before/after snippets or benchmarks.
|
|
53
|
-
- Link issues (e.g., `Fixes #123`) and update README/CHANGELOG when user-facing behavior changes.
|
|
54
|
-
- PRs must pass `rake` (tests + lint), include tests for changes, and keep API docs current (`rake doc` when needed).
|
|
55
|
-
|
|
56
|
-
## Security & Configuration Tips
|
|
57
|
-
- Supported Ruby: latest patch of the newest three minor series (e.g., 3.4.x / 3.3.x / 3.2.x). Develop locally on the oldest of these.
|
|
58
|
-
- Version management: Use `mise`; the repo’s `mise.toml` sets the default to the oldest supported series. Examples: `mise use -g ruby@3.2`, `mise run -e ruby@3.3 rake spec`.
|
|
59
|
-
- Keep runtime dependencies minimal; prefer standard library where possible.
|
|
60
|
-
- No network access is expected at runtime; avoid introducing it without discussion.
|
data/CLAUDE.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
AGENTS.md
|