fasti 1.0.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 +7 -0
- data/.mcp.json +19 -0
- data/.rspec +3 -0
- data/.rubocop.yml +82 -0
- data/.rubocop_todo.yml +89 -0
- data/.serena/project.yml +68 -0
- data/.simplecov +31 -0
- data/.yardopts +9 -0
- data/AGENTS.md +60 -0
- data/CHANGELOG.md +25 -0
- data/CLAUDE.md +1 -0
- data/LICENSE.txt +21 -0
- data/README.md +416 -0
- data/RELEASING.md +202 -0
- data/Rakefile +34 -0
- data/TODO.md +11 -0
- data/benchmark/holiday_cache_benchmark.rb +111 -0
- data/benchmark/memory_benchmark.rb +86 -0
- data/docs/agents/git-pr.md +298 -0
- data/docs/agents/languages.md +388 -0
- data/docs/agents/rubocop.md +55 -0
- data/docs/plans/positional-arguments.md +303 -0
- data/docs/plans/structured-config.md +232 -0
- data/examples/config.rb +80 -0
- data/exe/fasti +6 -0
- data/lib/fasti/calendar.rb +292 -0
- data/lib/fasti/calendar_transition.rb +266 -0
- data/lib/fasti/cli.rb +550 -0
- data/lib/fasti/config/schema.rb +36 -0
- data/lib/fasti/config/types.rb +66 -0
- data/lib/fasti/config.rb +125 -0
- data/lib/fasti/error.rb +6 -0
- data/lib/fasti/formatter.rb +234 -0
- data/lib/fasti/style_parser.rb +211 -0
- data/lib/fasti/version.rb +6 -0
- data/lib/fasti.rb +21 -0
- data/mise.toml +5 -0
- data/sig/fasti.rbs +4 -0
- metadata +181 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 22bea6abffa8acc0cc0f9e9f2b1c0a5b671daaec0eddf29c79b4266ff5aeab6c
|
4
|
+
data.tar.gz: 5411a1bea5372791dc1468d13878e140f6ad3591700f25d6c6f243c913f9ffee
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f06ab9d564796e1e155fb7c4e8f2d65233068b90710e19e871e0299ee67f39798bb2efe304bee46afe19a9cb8eeee98007cd561c73c5c24fd798d3d763d2eae6
|
7
|
+
data.tar.gz: a73e17c0fc03c9c9aedb58bfae4c00fff5e9622b0cf6686aea2282bc397540d454d8e64f92bce6c3205ad5877101c1902d678cd4036a8dd58d62ddc5936a55f3
|
data/.mcp.json
ADDED
@@ -0,0 +1,19 @@
|
|
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
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,82 @@
|
|
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
ADDED
@@ -0,0 +1,89 @@
|
|
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
ADDED
@@ -0,0 +1,68 @@
|
|
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
ADDED
@@ -0,0 +1,31 @@
|
|
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
ADDED
data/AGENTS.md
ADDED
@@ -0,0 +1,60 @@
|
|
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/CHANGELOG.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
## [Unreleased]
|
2
|
+
|
3
|
+
## [1.0.0] - 2025-09-10
|
4
|
+
|
5
|
+
### Added
|
6
|
+
- **Core Calendar Application**: Flexible calendar application with multi-country holiday support
|
7
|
+
- **Multiple Display Formats**: Month, quarter (3 months), and full year views
|
8
|
+
- **Holiday Support**: Country-specific holiday highlighting using the holidays gem
|
9
|
+
- **Configurable Week Start**: Support for all 7 days of the week as week start
|
10
|
+
- **Custom Styling System**: Comprehensive `--style` option with flexible styling rules for holidays, weekends, and today's date powered by TIntMe gem
|
11
|
+
- **Configuration File**: XDG-compliant Ruby-based configuration file support (`~/.config/fasti/config.rb`)
|
12
|
+
- **Locale Detection**: Automatic country detection from `LC_ALL` and `LANG` environment variables
|
13
|
+
- **Examples Directory**: Sample configuration files for easy setup
|
14
|
+
- **Zeitwerk Integration**: Modern code autoloading with Zeitwerk for improved performance and maintainability
|
15
|
+
|
16
|
+
### Performance
|
17
|
+
- **Holiday Caching**: Month-based holiday caching with bulk API calls for 12-74x performance improvement
|
18
|
+
- **Style Caching**: Target-based style caching system achieving 966+ months/second rendering performance
|
19
|
+
- **TIntMe Integration**: High-performance ANSI terminal styling with optimized color composition
|
20
|
+
|
21
|
+
### Development
|
22
|
+
- **Comprehensive Testing**: Full RSpec test suite with 154+ examples
|
23
|
+
- **Code Quality**: RuboCop configuration with strict style enforcement
|
24
|
+
- **Benchmark Suite**: Performance testing tools for holiday caching validation
|
25
|
+
- **CI/CD**: GitHub Actions workflow for automated testing and quality checks
|
data/CLAUDE.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
AGENTS.md
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2025 OZAWA Sakuro
|
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.
|