QueryWise 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54b05c02cde4d1128bd14c5411cddd7f8914d9a0927b31f0e29fe8d79c5fc2c3
4
- data.tar.gz: 397dbad0080d557015e899e7947ede50abd6838148d7310a271af8f9c88f846a
3
+ metadata.gz: f1e2af8e4e39aaa70b25e76cc31d1d9b86471852662b14b7fe35ed95411973d6
4
+ data.tar.gz: 14548bdd8fcc6c6ee17e8c6669720b437987f92754cb30737ee044bbc8619374
5
5
  SHA512:
6
- metadata.gz: bae2762aa237b5aa1e6f3c15507375563af9d0dbfe0695bbada5fae4964b90b253d1fab7b6342645e71a7f43ff77cc78d39212b3cb14ba0432fcfd8f97f472a7
7
- data.tar.gz: 872c2502a91532593df69231669e13af7276c41d4ffb72ee947cf9e9e0c15cb2bed5fac6c4cf1c2eaefaf47a195a22f65b9a17c1f5b9404600457eaf31446154
6
+ metadata.gz: 348175008dbd2db11aae172c42ef8806a6c4898489325252fd5a315b8606dd733539df0c045f93fd0b3112cf340136e6ccf98764c9043c649b6b3803c78b916a
7
+ data.tar.gz: 4a35a2bcce3a0a7142b7db844ab9e1bc575efa5dedb582f054b27fa80045a884923e42559595888c60723447b1129f12c0cceb87f21954a685315446db28c3ea
@@ -0,0 +1,67 @@
1
+ # QueryWise Installation Guide
2
+
3
+ ## 💎 Install from RubyGems
4
+
5
+ ```bash
6
+ gem install QueryWise
7
+ ```
8
+
9
+ Or add to your Gemfile:
10
+
11
+ ```ruby
12
+ gem 'QueryWise'
13
+ ```
14
+
15
+ ## 🚀 Quick Setup
16
+
17
+ ### 1. Generate Configuration
18
+
19
+ ```bash
20
+ rails generate QueryWise:install
21
+ ```
22
+
23
+ ### 2. Configure API Connection
24
+
25
+ Add to your `.env` file:
26
+
27
+ ```bash
28
+ QUERY_OPTIMIZER_API_URL=https://your-hosted-api.com/api/v1
29
+ QUERY_OPTIMIZER_API_KEY=your_api_key_here
30
+ QUERY_OPTIMIZER_ENABLED=true
31
+ ```
32
+
33
+ ### 3. Test Your Setup
34
+
35
+ ```bash
36
+ rails query_optimizer:check
37
+ ```
38
+
39
+ ## 📋 Usage Examples
40
+
41
+ ### Basic Analysis
42
+
43
+ ```ruby
44
+ queries = [
45
+ { sql: "SELECT * FROM users WHERE id = 1", duration_ms: 50 }
46
+ ]
47
+
48
+ result = QueryOptimizerClient.analyze_queries(queries)
49
+ puts "Score: #{result['data']['summary']['optimization_score']}%"
50
+ ```
51
+
52
+ ### CI Integration
53
+
54
+ ```bash
55
+ rails query_optimizer:ci[85]
56
+ ```
57
+
58
+ ## 🔗 Links
59
+
60
+ - **RubyGems**: https://rubygems.org/gems/QueryWise
61
+ - **GitHub**: https://github.com/BlairLane22/QueryWise
62
+ - **Documentation**: See README.md for complete guide
63
+
64
+ ## 📞 Support
65
+
66
+ - **Issues**: https://github.com/BlairLane22/QueryWise/issues
67
+ - **Discussions**: https://github.com/BlairLane22/QueryWise/discussions
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QueryOptimizerClient
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "QueryWise - Rails Database Query Optimizer"
12
12
  spec.description = "QueryWise is a lightweight, developer-friendly tool that helps Ruby on Rails teams detect, analyze, and fix inefficient database queries. Automatically detect N+1 queries, slow queries, and missing indexes without needing heavy, expensive Application Performance Monitoring (APM) software."
13
- spec.homepage = "https://github.com/BlairLane22/QueryWise"
13
+ spec.homepage = "https://github.com/BlairLane22/QueryOptimizerAPI"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = ">= 3.0.0"
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: QueryWise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blair Lane
@@ -158,6 +158,7 @@ files:
158
158
  - GEM_gitignore
159
159
  - LICENSE.txt
160
160
  - PUBLISHING_GUIDE.md
161
+ - QUERYWISE_INSTALL.md
161
162
  - README.md
162
163
  - app.yaml
163
164
  - app/controllers/api/v1/analysis_controller.rb
@@ -234,12 +235,12 @@ files:
234
235
  - storage/development.sqlite3
235
236
  - storage/test.sqlite3
236
237
  - vendor/.keep
237
- homepage: https://github.com/BlairLane22/QueryWise
238
+ homepage: https://github.com/BlairLane22/QueryOptimizerAPI
238
239
  licenses:
239
240
  - MIT
240
241
  metadata:
241
242
  allowed_push_host: https://rubygems.org
242
- homepage_uri: https://github.com/BlairLane22/QueryWise
243
+ homepage_uri: https://github.com/BlairLane22/QueryOptimizerAPI
243
244
  source_code_uri: https://github.com/BlairLane22/QueryWise
244
245
  changelog_uri: https://github.com/BlairLane22/QueryWise/blob/main/CHANGELOG.md
245
246
  documentation_uri: https://github.com/BlairLane22/QueryWise/blob/main/README.md