commitgpt 0.2.0 → 0.3.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.
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CommitGpt
4
+ # Provider presets for common AI providers
5
+ PROVIDER_PRESETS = [
6
+ { label: "Cerebras", value: "cerebras", base_url: "https://api.cerebras.ai/v1" },
7
+ { label: "Ollama", value: "ollama", base_url: "http://127.0.0.1:11434/v1" },
8
+ { label: "OpenAI", value: "openai", base_url: "https://api.openai.com/v1" },
9
+ { label: "LLaMa.cpp", value: "llamacpp", base_url: "http://127.0.0.1:8080/v1" },
10
+ { label: "LM Studio", value: "lmstudio", base_url: "http://127.0.0.1:1234/v1" },
11
+ { label: "Llamafile", value: "llamafile", base_url: "http://127.0.0.1:8080/v1" },
12
+ { label: "DeepSeek", value: "deepseek", base_url: "https://api.deepseek.com" },
13
+ { label: "Groq", value: "groq", base_url: "https://api.groq.com/openai/v1" },
14
+ { label: "Mistral", value: "mistral", base_url: "https://api.mistral.ai/v1" },
15
+ { label: "Anthropic (Claude)", value: "anthropic", base_url: "https://api.anthropic.com/v1" },
16
+ { label: "OpenRouter", value: "openrouter", base_url: "https://openrouter.ai/api/v1" },
17
+ { label: "Google AI", value: "gemini", base_url: "https://generativelanguage.googleapis.com/v1beta/openai" }
18
+ ].freeze
19
+ end
@@ -0,0 +1,314 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "tty-prompt"
4
+ require "httparty"
5
+ require "timeout"
6
+ require_relative "config_manager"
7
+ require_relative "provider_presets"
8
+ require_relative "string"
9
+
10
+ module CommitGpt
11
+ # Interactive setup wizard for configuring AI providers
12
+ class SetupWizard
13
+ def initialize
14
+ @prompt = TTY::Prompt.new
15
+ end
16
+
17
+ # Main entry point for setup
18
+ def run
19
+ ConfigManager.ensure_config_dir
20
+ ConfigManager.generate_default_configs unless ConfigManager.config_exists?
21
+
22
+ provider_choice = select_provider
23
+ configure_provider(provider_choice)
24
+ end
25
+
26
+ # Switch to a different configured provider
27
+ def switch_provider
28
+ configured = ConfigManager.configured_providers
29
+
30
+ if configured.empty?
31
+ puts "▲ No providers configured. Please run 'aicm setup' first.".red
32
+ return
33
+ end
34
+
35
+ choices = configured.map do |p|
36
+ preset = PROVIDER_PRESETS.find { |pr| pr[:value] == p["name"] }
37
+ { name: preset ? preset[:label] : p["name"], value: p["name"] }
38
+ end
39
+
40
+ selected = @prompt.select("Choose your provider:", choices)
41
+
42
+ # Get current config for this provider
43
+ config = ConfigManager.load_config
44
+ provider = config["providers"].find { |p| p["name"] == selected }
45
+
46
+ # Fetch models and let user select
47
+ models = fetch_models_with_timeout(provider["base_url"], provider["api_key"])
48
+ return if models.nil?
49
+
50
+ model = select_model(models, provider["model"])
51
+
52
+ # Prompt for diff length
53
+ diff_len = prompt_diff_len(provider["diff_len"] || 32768)
54
+
55
+ # Update config
56
+ ConfigManager.update_provider(selected, { "model" => model, "diff_len" => diff_len })
57
+ reset_provider_inference_params(selected)
58
+ ConfigManager.set_active_provider(selected)
59
+
60
+ preset = PROVIDER_PRESETS.find { |pr| pr[:value] == selected }
61
+ provider_label = preset ? preset[:label] : selected
62
+
63
+ puts "\nModel selected: #{model}".green
64
+ puts "Setup complete ✅ You're now using #{provider_label}.".green
65
+ end
66
+
67
+ # Change model for the active provider
68
+ def change_model
69
+ provider_config = ConfigManager.get_active_provider_config
70
+
71
+ if provider_config.nil? || provider_config["api_key"].nil? || provider_config["api_key"].empty?
72
+ puts "▲ No active provider configured. Please run 'aicm setup'.".red
73
+ return
74
+ end
75
+
76
+ # Fetch models and let user select
77
+ models = fetch_models_with_timeout(provider_config["base_url"], provider_config["api_key"])
78
+ return if models.nil?
79
+
80
+ model = select_model(models, provider_config["model"])
81
+
82
+ # Update config
83
+ ConfigManager.update_provider(provider_config["name"], { "model" => model })
84
+ reset_provider_inference_params(provider_config["name"])
85
+
86
+ puts "\nModel selected: #{model}".green
87
+ end
88
+
89
+ private
90
+
91
+ # Select provider from list
92
+ def select_provider
93
+ config = ConfigManager.load_config
94
+ configured = config ? (config["providers"] || []) : []
95
+
96
+ choices = PROVIDER_PRESETS.map do |preset|
97
+ # Check if this provider already has an API key
98
+ provider_config = configured.find { |p| p["name"] == preset[:value] }
99
+ has_key = provider_config && provider_config["api_key"] && !provider_config["api_key"].empty?
100
+
101
+ label = preset[:label]
102
+ label = "✅ #{label}" if has_key
103
+ label = "#{label} (recommended)" if preset[:value] == "cerebras"
104
+ label = "#{label} (local)" if %w[ollama llamacpp lmstudio llamafile].include?(preset[:value])
105
+
106
+ { name: label, value: preset[:value] }
107
+ end
108
+
109
+ choices << { name: "Custom (OpenAI-compatible)", value: "custom" }
110
+
111
+ @prompt.select("Choose your AI provider:", choices, per_page: 15)
112
+ end
113
+
114
+ # Configure selected provider
115
+ def configure_provider(provider_name)
116
+ if provider_name == "custom"
117
+ configure_custom_provider
118
+ return
119
+ end
120
+
121
+ preset = PROVIDER_PRESETS.find { |p| p[:value] == provider_name }
122
+ base_url = preset[:base_url]
123
+ provider_label = preset[:label]
124
+
125
+ # Get existing API key if any
126
+ config = ConfigManager.load_config
127
+ existing_provider = config["providers"].find { |p| p["name"] == provider_name } if config
128
+
129
+ # Prompt for API key
130
+ api_key = prompt_api_key(provider_label, existing_provider&.dig("api_key"))
131
+ return if api_key.nil? # User cancelled
132
+
133
+ # Fetch models with timeout
134
+ models = fetch_models_with_timeout(base_url, api_key)
135
+ return if models.nil?
136
+
137
+ # Let user select model
138
+ model = select_model(models, existing_provider&.dig("model"))
139
+
140
+ # Prompt for diff length
141
+ diff_len = prompt_diff_len(existing_provider&.dig("diff_len") || 32768)
142
+
143
+ # Save configuration
144
+ ConfigManager.update_provider(
145
+ provider_name,
146
+ { "model" => model, "diff_len" => diff_len },
147
+ { "api_key" => api_key }
148
+ )
149
+ ConfigManager.set_active_provider(provider_name)
150
+
151
+ puts "\nModel selected: #{model}".green
152
+ puts "✅ Setup complete! You're now using #{provider_label}.".green
153
+ end
154
+
155
+ # Configure custom provider
156
+ def configure_custom_provider
157
+ provider_name = @prompt.ask("Enter provider name:") do |q|
158
+ q.required true
159
+ q.modify :strip, :down
160
+ end
161
+
162
+ base_url = @prompt.ask("Enter base URL:") do |q|
163
+ q.required true
164
+ q.default "http://localhost:8080/v1"
165
+ end
166
+
167
+ api_key = @prompt.mask("Enter your API key (optional):") { |q| q.echo false }
168
+
169
+ # Fetch models
170
+ models = fetch_models_with_timeout(base_url, api_key)
171
+ return if models.nil?
172
+
173
+ model = select_model(models)
174
+ diff_len = prompt_diff_len(32768)
175
+
176
+ # Add to presets dynamically (just for this session)
177
+ # Save to config
178
+ config = ConfigManager.load_config || { "providers" => [], "active_provider" => "" }
179
+
180
+ # Add or update provider in main config
181
+ existing = config["providers"].find { |p| p["name"] == provider_name }
182
+ if existing
183
+ existing.merge!({ "model" => model, "diff_len" => diff_len, "base_url" => base_url })
184
+ else
185
+ config["providers"] << {
186
+ "name" => provider_name,
187
+ "model" => model,
188
+ "diff_len" => diff_len,
189
+ "base_url" => base_url
190
+ }
191
+ end
192
+ config["active_provider"] = provider_name
193
+ ConfigManager.save_main_config(config)
194
+
195
+ # Update local config
196
+ local_config = File.exist?(ConfigManager.local_config_path) ?
197
+ YAML.load_file(ConfigManager.local_config_path) : { "providers" => [] }
198
+
199
+ local_existing = local_config["providers"].find { |p| p["name"] == provider_name }
200
+ if local_existing
201
+ local_existing["api_key"] = api_key
202
+ else
203
+ local_config["providers"] << { "name" => provider_name, "api_key" => api_key }
204
+ end
205
+ ConfigManager.save_local_config(local_config)
206
+
207
+ puts "\nModel selected: #{model}".green
208
+ puts "✅ Setup complete! You're now using #{provider_name}.".green
209
+ end
210
+
211
+ # Prompt for API key
212
+ def prompt_api_key(provider_name, existing_key)
213
+ message = if existing_key && !existing_key.empty?
214
+ "Enter your API key (press Enter to keep existing):"
215
+ else
216
+ "Enter your API key:"
217
+ end
218
+
219
+ key = @prompt.mask(message) { |q| q.echo false }
220
+
221
+ # If user pressed Enter and there's an existing key, use it
222
+ if key.empty? && existing_key && !existing_key.empty?
223
+ existing_key
224
+ else
225
+ key
226
+ end
227
+ end
228
+
229
+ # Fetch models from provider with timeout
230
+ def fetch_models_with_timeout(base_url, api_key)
231
+ puts "Fetching available models...".gray
232
+
233
+ models = nil
234
+ begin
235
+ Timeout.timeout(5) do
236
+ headers = {
237
+ "Content-Type" => "application/json",
238
+ "User-Agent" => "Ruby/#{RUBY_VERSION}"
239
+ }
240
+ headers["Authorization"] = "Bearer #{api_key}" if api_key && !api_key.empty?
241
+
242
+ response = HTTParty.get("#{base_url}/models", headers: headers)
243
+
244
+ if response.code == 200
245
+ models = response["data"] || []
246
+ models = models.map { |m| m["id"] }.compact.sort
247
+ else
248
+ puts "▲ Failed to fetch models: HTTP #{response.code}".red
249
+ return nil
250
+ end
251
+ end
252
+ rescue Timeout::Error
253
+ puts "▲ Connection timeout (5s). Please check your network, base_url, and api_key.".red
254
+ exit(0)
255
+ rescue StandardError => e
256
+ puts "▲ Error fetching models: #{e.message}".red
257
+ exit(0)
258
+ end
259
+
260
+ if models.nil? || models.empty?
261
+ puts "▲ No models found. Please check your configuration.".red
262
+ exit(0)
263
+ end
264
+
265
+ models
266
+ end
267
+
268
+ # Let user select a model
269
+ def select_model(models, current_model = nil)
270
+ choices = models.map { |m| { name: m, value: m } }
271
+ choices << { name: "Custom model name...", value: :custom }
272
+
273
+ # Set default to current model if it exists
274
+ default_index = if current_model && models.include?(current_model)
275
+ models.index(current_model) + 1 # +1 for 1-based index
276
+ else
277
+ 1
278
+ end
279
+
280
+ selected = @prompt.select("Choose your model:", choices, per_page: 15, default: default_index)
281
+
282
+ if selected == :custom
283
+ @prompt.ask("Enter custom model name:") do |q|
284
+ q.required true
285
+ q.modify :strip
286
+ end
287
+ else
288
+ selected
289
+ end
290
+ end
291
+
292
+ # Prompt for diff length
293
+ def prompt_diff_len(default = 32768)
294
+ answer = @prompt.ask("Set the maximum diff length (Bytes) for generating commit message:") do |q|
295
+ q.default default.to_s
296
+ q.convert :int
297
+ end
298
+
299
+ answer || default
300
+ end
301
+
302
+ def reset_provider_inference_params(provider_name)
303
+ config = YAML.load_file(ConfigManager.main_config_path)
304
+ return unless config && config["providers"]
305
+
306
+ provider = config["providers"].find { |p| p["name"] == provider_name }
307
+ if provider
308
+ provider.delete("can_disable_reasoning")
309
+ provider.delete("max_tokens")
310
+ ConfigManager.save_main_config(config)
311
+ end
312
+ end
313
+ end
314
+ end
@@ -21,4 +21,8 @@ class String
21
21
  def cyan
22
22
  "\e[36m#{self}\e[0m"
23
23
  end
24
+
25
+ def yellow
26
+ "\e[33m#{self}\e[0m"
27
+ end
24
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CommitGpt
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commitgpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peng Zhang
@@ -37,6 +37,20 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.2'
40
+ - !ruby/object:Gem::Dependency
41
+ name: tty-prompt
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.23'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.23'
40
54
  description: A CLI that writes your git commit messages for you with AI. Never write
41
55
  a commit message again.
42
56
  email:
@@ -46,20 +60,16 @@ executables:
46
60
  extensions: []
47
61
  extra_rdoc_files: []
48
62
  files:
49
- - ".rspec"
50
- - ".rubocop.yml"
51
- - CHANGELOG.md
52
- - CODE_OF_CONDUCT.md
53
- - Gemfile
54
- - Gemfile.lock
55
63
  - LICENSE
56
- - LICENSE.txt
57
64
  - README.md
58
- - Rakefile
59
65
  - bin/aicm
66
+ - commitgpt.gemspec
60
67
  - lib/commitgpt.rb
61
68
  - lib/commitgpt/cli.rb
62
69
  - lib/commitgpt/commit_ai.rb
70
+ - lib/commitgpt/config_manager.rb
71
+ - lib/commitgpt/provider_presets.rb
72
+ - lib/commitgpt/setup_wizard.rb
63
73
  - lib/commitgpt/string.rb
64
74
  - lib/commitgpt/version.rb
65
75
  homepage: https://github.com/ZPVIP/commitgpt
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,19 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.6
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: double_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 160
14
-
15
- MethodLength:
16
- Max: 20
17
-
18
- Metrics/BlockLength:
19
- Max: 100
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2023-02-14
4
-
5
- - Initial release
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at p.zhang@iot-venture.com. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in commitgpt.gemspec
6
- gemspec
7
-
8
- gem "base64"
9
- gem "bigdecimal"
10
- gem "csv"
11
- gem "httparty"
12
-
13
- gem "rake", "~> 13.0"
14
-
15
- gem "rspec", "~> 3.0"
16
-
17
- gem "rubocop", "~> 1.21"
18
-
19
- gem "thor"
data/Gemfile.lock DELETED
@@ -1,73 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- commitgpt (0.2.0)
5
- httparty (~> 0.18)
6
- thor (~> 1.2)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- ast (2.4.2)
12
- base64 (0.3.0)
13
- bigdecimal (4.0.1)
14
- csv (3.3.5)
15
- diff-lcs (1.5.0)
16
- httparty (0.21.0)
17
- mini_mime (>= 1.0.0)
18
- multi_xml (>= 0.5.2)
19
- mini_mime (1.1.2)
20
- multi_xml (0.6.0)
21
- parallel (1.22.1)
22
- parser (3.1.2.0)
23
- ast (~> 2.4.1)
24
- rainbow (3.1.1)
25
- rake (13.0.6)
26
- regexp_parser (2.6.1)
27
- rexml (3.2.5)
28
- rspec (3.12.0)
29
- rspec-core (~> 3.12.0)
30
- rspec-expectations (~> 3.12.0)
31
- rspec-mocks (~> 3.12.0)
32
- rspec-core (3.12.0)
33
- rspec-support (~> 3.12.0)
34
- rspec-expectations (3.12.0)
35
- diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.12.0)
37
- rspec-mocks (3.12.0)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.12.0)
40
- rspec-support (3.12.0)
41
- rubocop (1.29.1)
42
- parallel (~> 1.10)
43
- parser (>= 3.1.0.0)
44
- rainbow (>= 2.2.2, < 4.0)
45
- regexp_parser (>= 1.8, < 3.0)
46
- rexml (>= 3.2.5, < 4.0)
47
- rubocop-ast (>= 1.17.0, < 2.0)
48
- ruby-progressbar (~> 1.7)
49
- unicode-display_width (>= 1.4.0, < 3.0)
50
- rubocop-ast (1.17.0)
51
- parser (>= 3.1.1.0)
52
- ruby-progressbar (1.11.0)
53
- thor (1.2.1)
54
- unicode-display_width (1.8.0)
55
-
56
- PLATFORMS
57
- arm64-darwin-21
58
- arm64-darwin-25
59
- x86_64-darwin-22
60
-
61
- DEPENDENCIES
62
- base64
63
- bigdecimal
64
- commitgpt!
65
- csv
66
- httparty
67
- rake (~> 13.0)
68
- rspec (~> 3.0)
69
- rubocop (~> 1.21)
70
- thor
71
-
72
- BUNDLED WITH
73
- 2.4.4
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2023 Peng Zhang
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.
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]