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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 506930ef3ce84d9549862ba7339ab0c7924ccfbe50d532fcec00cdff412233bc
4
- data.tar.gz: 763494b7a53f49a7ec3084282ebeb1dedaafde763c2fb5c36ebb5f9ce75b51b6
3
+ metadata.gz: 8c68e98f9ea76d56039a31aee01f4642c23bc89e9b41868f988efff84f891647
4
+ data.tar.gz: 87be1db75fcb8d80851409a1903fe136d09e6275e5db9797b74f18df28603c63
5
5
  SHA512:
6
- metadata.gz: fefffd21661ebf8a3189cf2d149d5bc62354cb242f75412da6e74ea5525e28ae3b5dcd37eb04d918b643d12b5c2e36e173d830c8fe680619f076bace89110e7c
7
- data.tar.gz: f874596db1b50deea79214d533ff2c38f13cad33de50753728527884b3eebb423733239e6a3dcef78a8c57a845616415055b408b6e19b69d41938f7d0df487f1
6
+ metadata.gz: f339cda7362c7a913918b992395ebd84ab4db2601a8c4d778302ae2579a1adfffab19d8eb63ca669b1d669ed9c58b589bfbe18c0d4ce758b83667b5935ebf304
7
+ data.tar.gz: c171cf918f2ea0ebe30c292f7b09847f3974c2fc39c55e21e36845c0399e04d7bc1b6558a8022bf860a57ae25403148ce62ef58748a7aad527ef55a870e6c5dd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
- ## [Unreleased]
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
- [INSERT CONTACT METHOD].
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
- TODO: Delete this and the text below, and describe your gem
3
+ A simple and flexible multi-tenant console setup toolkit for Rails applications.
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/console_kit`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- ```bash
14
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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
- ```bash
20
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
29
+ ```ruby
30
+ gem install console_kit
21
31
  ```
22
32
 
23
33
  ## Usage
24
34
 
25
- TODO: Write usage instructions here
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/[USERNAME]/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/[USERNAME]/console_kit/blob/master/CODE_OF_CONDUCT.md).
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/[USERNAME]/console_kit/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConsoleKit
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soumyadeep Pal