rbcsv 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 584afb981df76a0f55ac321bd65fc0eb6d099e51cd2b95928259f7cb97e66685
4
+ data.tar.gz: 1df6dde15d314c74efd5559e2a17479957c8fe8ba2de507adae33368a7f8b92f
5
+ SHA512:
6
+ metadata.gz: d95c37306b9152f1f9a9c23c5d83ca73cef096e37cdbc5fc29fff5a09a3099f7674420f87a427694fc93621443f61dd32d5e9abcba747cbb77adcaaf557362ad
7
+ data.tar.gz: 226290809496d90809fb03e5a2558770ee021e3750f12ef23eb7efee33fb5e4af1abbb95c7b36ff5cc3301184c0cf87d8276bca4a4f1009a08433a4af365cd45
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.5
@@ -0,0 +1 @@
1
+ /cache
@@ -0,0 +1,27 @@
1
+ # Code Style and Conventions
2
+
3
+ ## Ruby Conventions
4
+ - **Frozen String Literals**: All Ruby files start with `# frozen_string_literal: true`
5
+ - **Module Structure**: Main module is `RCsv` with nested classes/modules
6
+ - **Version Management**: Version is defined in `lib/r_csv/version.rb`
7
+ - **Error Handling**: Custom error class `RCsv::Error < StandardError`
8
+
9
+ ## File Organization
10
+ - **Lib Structure**: Main files in `lib/`, with module-specific files in `lib/r_csv/`
11
+ - **Extension Structure**: Rust code in `ext/r_csv/src/`
12
+ - **Tests**: RSpec tests in `spec/` directory
13
+
14
+ ## Naming Conventions
15
+ - **Gem Name**: `r_csv` (underscore format)
16
+ - **Module Name**: `RCsv` (CamelCase)
17
+ - **File Names**: Snake_case for Ruby files
18
+ - **Constants**: SCREAMING_SNAKE_CASE for version and constants
19
+
20
+ ## Quality Tools
21
+ - **RuboCop**: Used for Ruby style enforcement (configured in `.rubocop.yml`)
22
+ - **RSpec**: Testing framework with configuration in `.rspec`
23
+
24
+ ## Rust Integration
25
+ - **Magnus**: Used for Ruby-Rust bindings
26
+ - **RbSys**: Used for building Ruby extensions with Rust
27
+ - **Extension Path**: Compiled extensions go to `lib/r_csv/`
@@ -0,0 +1,33 @@
1
+ # R_CSV Project Overview
2
+
3
+ ## Purpose
4
+ R_CSV is a Ruby gem that provides CSV processing functionality using Rust extensions for performance. The gem combines Ruby's ease of use with Rust's performance for CSV operations.
5
+
6
+ ## Tech Stack
7
+ - **Language**: Ruby (>= 3.2.0) with Rust extensions
8
+ - **Build System**: rb_sys for Ruby-Rust integration
9
+ - **Testing**: RSpec
10
+ - **Linting**: RuboCop
11
+ - **Dependencies**: magnus (for Ruby-Rust bindings), rb_sys
12
+
13
+ ## Project Structure
14
+ ```
15
+ r_csv/
16
+ ├── lib/ # Ruby source code
17
+ │ ├── r_csv.rb # Main module file
18
+ │ └── r_csv/
19
+ │ └── version.rb # Version definition
20
+ ├── ext/ # Rust extension code
21
+ │ └── r_csv/
22
+ │ ├── src/lib.rs # Rust implementation
23
+ │ ├── Cargo.toml # Rust dependencies
24
+ │ └── extconf.rb # Ruby extension configuration
25
+ ├── spec/ # RSpec test files
26
+ ├── bin/ # Executable scripts
27
+ ├── r_csv.gemspec # Gem specification
28
+ ├── Rakefile # Build tasks
29
+ └── Gemfile # Ruby dependencies
30
+ ```
31
+
32
+ ## Current Status
33
+ This appears to be a newly created gem with template code. The Rust extension currently only has a simple "hello" function as a proof of concept.
@@ -0,0 +1,33 @@
1
+ # Suggested Commands for R_CSV Development
2
+
3
+ ## Development Commands
4
+ - `bundle install` - Install dependencies
5
+ - `bin/setup` - Setup the development environment
6
+ - `bin/console` - Start interactive prompt for experimentation
7
+
8
+ ## Build and Compilation
9
+ - `rake compile` - Compile the Rust extension
10
+ - `rake build` - Build the gem (includes compilation)
11
+ - `bundle exec rake install` - Install gem locally
12
+
13
+ ## Testing and Quality
14
+ - `rake spec` - Run RSpec tests
15
+ - `rspec` - Alternative way to run tests
16
+ - `rake rubocop` - Run RuboCop linting
17
+ - `rubocop` - Alternative way to run linting
18
+ - `rake` or `rake default` - Run compile, spec, and rubocop together
19
+
20
+ ## Release
21
+ - `bundle exec rake release` - Release new version (creates git tag, pushes commits and gem)
22
+
23
+ ## Git Commands (macOS/Darwin)
24
+ - `git status` - Check repository status
25
+ - `git add .` - Stage all changes
26
+ - `git commit -m "message"` - Commit changes
27
+ - `git push` - Push to remote repository
28
+
29
+ ## File Operations (macOS/Darwin)
30
+ - `ls` - List directory contents
31
+ - `cd <directory>` - Change directory
32
+ - `grep <pattern> <files>` - Search for patterns
33
+ - `find <path> -name <pattern>` - Find files by name
@@ -0,0 +1,29 @@
1
+ # Task Completion Checklist
2
+
3
+ When completing any development task in r_csv, ensure you run the following commands:
4
+
5
+ ## Required Steps
6
+ 1. **Compile Extension**: `rake compile` - Ensure Rust extension compiles without errors
7
+ 2. **Run Tests**: `rake spec` - Ensure all tests pass
8
+ 3. **Check Code Style**: `rake rubocop` - Ensure code follows style guidelines
9
+ 4. **Full Check**: `rake` - Runs compile, spec, and rubocop together
10
+
11
+ ## Before Committing
12
+ - Ensure all tests pass
13
+ - Ensure RuboCop passes without violations
14
+ - Ensure Rust extension compiles successfully
15
+ - Update version number if needed (in `lib/r_csv/version.rb`)
16
+ - Update CHANGELOG.md if applicable
17
+
18
+ ## Release Preparation
19
+ - Update version in `lib/r_csv/version.rb`
20
+ - Update CHANGELOG.md
21
+ - Ensure gemspec is properly configured
22
+ - Run full test suite
23
+ - Check that `bundle exec rake install` works locally
24
+
25
+ ## Git Workflow
26
+ - Use descriptive commit messages
27
+ - Keep commits focused and atomic
28
+ - Test before committing
29
+ - Push to feature branches for review
@@ -0,0 +1,67 @@
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
+ # list of tool names to exclude. We recommend not excluding any tools, see the readme for more details.
23
+ # Below is the complete list of tools for convenience.
24
+ # To make sure you have the latest list of tools, and to view their descriptions,
25
+ # execute `uv run scripts/print_tool_overview.py`.
26
+ #
27
+ # * `activate_project`: Activates a project by name.
28
+ # * `check_onboarding_performed`: Checks whether project onboarding was already performed.
29
+ # * `create_text_file`: Creates/overwrites a file in the project directory.
30
+ # * `delete_lines`: Deletes a range of lines within a file.
31
+ # * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
32
+ # * `execute_shell_command`: Executes a shell command.
33
+ # * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
34
+ # * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
35
+ # * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
36
+ # * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
37
+ # * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
38
+ # * `initial_instructions`: Gets the initial instructions for the current project.
39
+ # Should only be used in settings where the system prompt cannot be set,
40
+ # e.g. in clients you have no control over, like Claude Desktop.
41
+ # * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
42
+ # * `insert_at_line`: Inserts content at a given line in a file.
43
+ # * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
44
+ # * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
45
+ # * `list_memories`: Lists memories in Serena's project-specific memory store.
46
+ # * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
47
+ # * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
48
+ # * `read_file`: Reads a file within the project directory.
49
+ # * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
50
+ # * `remove_project`: Removes a project from the Serena configuration.
51
+ # * `replace_lines`: Replaces a range of lines within a file with new content.
52
+ # * `replace_symbol_body`: Replaces the full definition of a symbol.
53
+ # * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
54
+ # * `search_for_pattern`: Performs a search for a pattern in the project.
55
+ # * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
56
+ # * `switch_modes`: Activates modes by providing a list of their names
57
+ # * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
58
+ # * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
59
+ # * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
60
+ # * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
61
+ excluded_tools: []
62
+
63
+ # initial prompt for the project. It will always be given to the LLM upon activating the project
64
+ # (contrary to the memories, which are loaded on demand).
65
+ initial_prompt: ""
66
+
67
+ project_name: "r_csv"
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-09-20
4
+
5
+ - Initial release
6
+ ## [0.1.0] - 2025-09-20
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations