console_kit 0.1.1 → 0.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 +4 -4
- data/CHANGELOG.md +39 -1
- data/CODE_OF_CONDUCT.md +1 -1
- data/README.md +42 -11
- data/lib/console_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c68e98f9ea76d56039a31aee01f4642c23bc89e9b41868f988efff84f891647
|
4
|
+
data.tar.gz: 87be1db75fcb8d80851409a1903fe136d09e6275e5db9797b74f18df28603c63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f339cda7362c7a913918b992395ebd84ab4db2601a8c4d778302ae2579a1adfffab19d8eb63ca669b1d669ed9c58b589bfbe18c0d4ce758b83667b5935ebf304
|
7
|
+
data.tar.gz: c171cf918f2ea0ebe30c292f7b09847f3974c2fc39c55e21e36845c0399e04d7bc1b6558a8022bf860a57ae25403148ce62ef58748a7aad527ef55a870e6c5dd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,43 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
This project adheres to [Semantic Versioning](https://semver.org/).
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
## [0.1.2] - 2025-07-23
|
10
|
+
### Added
|
11
|
+
- Changelog added.
|
12
|
+
- Readme and installation instructions added.
|
13
|
+
|
14
|
+
---
|
15
|
+
|
16
|
+
## [0.1.1] - 2025-07-21
|
17
|
+
### Added
|
18
|
+
- Initial generator: `console_kit:install` to scaffold configuration.
|
19
|
+
- RSpec test suite to support core features.
|
20
|
+
|
21
|
+
### Changed
|
22
|
+
- Applied RuboCop fixes for code consistency and style.
|
23
|
+
|
24
|
+
---
|
2
25
|
|
3
26
|
## [0.1.0] - 2025-07-09
|
4
27
|
|
5
28
|
- Initial release
|
29
|
+
|
30
|
+
### Added
|
31
|
+
- Core setup logic for ConsoleKit:
|
32
|
+
- `ConsoleKit.setup`
|
33
|
+
- Tenant selection via CLI.
|
34
|
+
- Tenant-specific database configuration.
|
35
|
+
- Colorized console output for improved UX.
|
36
|
+
|
37
|
+
---
|
38
|
+
|
39
|
+
## [Unreleased]
|
40
|
+
|
41
|
+
[0.1.2]: https://github.com/Soumyadeep-ai/console_kit/releases/tag/v0.1.2
|
42
|
+
[0.1.1]: https://github.com/Soumyadeep-ai/console_kit/releases/tag/v0.1.1
|
43
|
+
[0.1.0]: https://github.com/Soumyadeep-ai/console_kit/releases/tag/v0.1.0
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -60,7 +60,7 @@ representative at an online or offline event.
|
|
60
60
|
|
61
61
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
62
62
|
reported to the community leaders responsible for enforcement at
|
63
|
-
[
|
63
|
+
[report here](https://github.com/Soumyadeep-ai/console_kit/issues).
|
64
64
|
All complaints will be reviewed and investigated promptly and fairly.
|
65
65
|
|
66
66
|
All community leaders are obligated to respect the privacy and security of the
|
data/README.md
CHANGED
@@ -1,28 +1,59 @@
|
|
1
1
|
# ConsoleKit
|
2
2
|
|
3
|
-
|
3
|
+
A simple and flexible multi-tenant console setup toolkit for Rails applications.
|
4
4
|
|
5
|
-
|
5
|
+
ConsoleKit helps you manage tenant-specific database connections and context configuration via an easy CLI interface and Rails integration.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
9
|
Install the gem and add to the application's Gemfile by executing:
|
12
10
|
|
13
|
-
```
|
14
|
-
bundle add
|
11
|
+
```ruby
|
12
|
+
bundle add console_kit
|
13
|
+
```
|
14
|
+
|
15
|
+
Additionally you can also add this line to your application's Gemfile:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
gem 'console_kit'
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
bundle install
|
15
25
|
```
|
16
26
|
|
17
27
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
18
28
|
|
19
|
-
```
|
20
|
-
gem install
|
29
|
+
```ruby
|
30
|
+
gem install console_kit
|
21
31
|
```
|
22
32
|
|
23
33
|
## Usage
|
24
34
|
|
25
|
-
|
35
|
+
After installing, generate the initializer and configuration files by running:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
rails generate console_kit:install
|
39
|
+
```
|
40
|
+
|
41
|
+
Then, edit config/initializers/console_kit.rb to define your tenants and context class. Example format:
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
ConsoleKit.configure do |config|
|
45
|
+
config.tenants = {
|
46
|
+
tenant_one: {
|
47
|
+
constants: { shard: :tenant_one_db, mongo_db: :tenant_one_mongo, partner_code: 'partnerA' }
|
48
|
+
},
|
49
|
+
tenant_two: {
|
50
|
+
constants: { shard: :tenant_two_db, mongo_db: :tenant_two_mongo, partner_code: 'partnerB' }
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
config.context_class = CurrentContext
|
55
|
+
end
|
56
|
+
```
|
26
57
|
|
27
58
|
## Development
|
28
59
|
|
@@ -32,7 +63,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
63
|
|
33
64
|
## Contributing
|
34
65
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
66
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Soumyadeep-ai/console_kit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/Soumyadeep-ai/console_kit/blob/main/CODE_OF_CONDUCT.md).
|
36
67
|
|
37
68
|
## License
|
38
69
|
|
@@ -40,4 +71,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
40
71
|
|
41
72
|
## Code of Conduct
|
42
73
|
|
43
|
-
Everyone interacting in the ConsoleKit project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
74
|
+
Everyone interacting in the ConsoleKit project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Soumyadeep-ai/console_kit/blob/main/CODE_OF_CONDUCT.md).
|
data/lib/console_kit/version.rb
CHANGED