diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37a9318..9fa08de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,4 @@ +--- name: Ruby on: diff --git a/.gitignore b/.gitignore index 46e2d3c..a21936d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ # dotenv .envrc + +# built gems +*.gem diff --git a/Gemfile.lock b/Gemfile.lock index 149a3f1..0b72997 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -19,7 +19,7 @@ PATH GEM remote: https://rubygems.org/ specs: - activesupport (7.1.3) + activesupport (7.1.3.2) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) @@ -39,7 +39,7 @@ GEM thor (~> 1.0) ast (2.4.2) base64 (0.2.0) - bigdecimal (3.1.6) + bigdecimal (3.1.7) builder (3.2.4) byebug (11.1.3) changelog-rb (0.3.0) @@ -54,41 +54,41 @@ GEM concurrent-ruby (1.2.3) connection_pool (2.4.1) contracts (0.17) - cucumber (9.1.2) - builder (~> 3.2, >= 3.2.4) - cucumber-ci-environment (~> 9.2, >= 9.2.0) - cucumber-core (~> 12.0) + cucumber (9.2.0) + builder (~> 3.2) + cucumber-ci-environment (> 9, < 11) + cucumber-core (> 13, < 14) cucumber-cucumber-expressions (~> 17.0) - cucumber-gherkin (> 24, < 27) + cucumber-gherkin (> 24, < 28) cucumber-html-formatter (> 20.3, < 22) cucumber-messages (> 19, < 25) diff-lcs (~> 1.5) - mini_mime (~> 1.1, >= 1.1.5) - multi_test (~> 1.1, >= 1.1.0) - sys-uname (~> 1.2, >= 1.2.3) - cucumber-ci-environment (9.2.0) - cucumber-core (12.0.0) - cucumber-gherkin (>= 25, < 27) + mini_mime (~> 1.1) + multi_test (~> 1.1) + sys-uname (~> 1.2) + cucumber-ci-environment (10.0.1) + cucumber-core (13.0.2) + cucumber-gherkin (>= 27, < 28) cucumber-messages (>= 20, < 23) - cucumber-tag-expressions (~> 5.0, >= 5.0.4) - cucumber-cucumber-expressions (17.0.1) - cucumber-gherkin (26.2.0) - cucumber-messages (>= 19.1.4, < 22.1) - cucumber-html-formatter (21.2.0) + cucumber-tag-expressions (> 5, < 7) + cucumber-cucumber-expressions (17.1.0) + bigdecimal + cucumber-gherkin (27.0.0) + cucumber-messages (>= 19.1.4, < 23) + cucumber-html-formatter (21.3.1) cucumber-messages (> 19, < 25) cucumber-messages (22.0.0) - cucumber-tag-expressions (5.0.6) + cucumber-tag-expressions (6.1.0) diff-lcs (1.5.1) docopt_ng (0.7.1) domain_name (0.6.20240107) - drb (2.2.0) - ruby2_keywords + drb (2.2.1) dry-cli (1.0.0) dry-cli-completion (1.0.0) completely (~> 0.5) ffi (1.16.3) - ffi-compiler (1.0.1) - ffi (>= 1.0.0) + ffi-compiler (1.3.2) + ffi (>= 1.15.5) rake gem-release (2.2.2) git (1.19.1) @@ -109,11 +109,11 @@ GEM http-cookie (1.0.5) domain_name (~> 0.5) http-form_data (2.3.0) - httpx (1.2.2) + httpx (1.2.4) http-2-next (>= 1.0.3) - i18n (1.14.1) + i18n (1.14.4) concurrent-ruby (~> 1.0) - json (2.7.1) + json (2.7.2) kramdown (2.4.0) rexml language_server-protocol (3.17.0.3) @@ -123,7 +123,7 @@ GEM method_source (1.0.0) mini_mime (1.1.5) mini_portile2 (2.8.5) - minitest (5.21.2) + minitest (5.22.3) mister_bin (0.7.6) colsole (>= 0.8.1, < 2) docopt_ng (~> 0.7, >= 0.7.1) @@ -142,14 +142,14 @@ GEM pry-byebug (3.10.1) byebug (~> 11.0) pry (>= 0.13, < 0.15) - public_suffix (5.0.4) + public_suffix (5.0.5) racc (1.7.3) rainbow (3.1.1) - rake (13.1.0) + rake (13.2.0) rchardet (1.8.0) regexp_parser (2.9.0) rexml (3.2.6) - rouge (4.2.0) + rouge (4.2.1) rspec (3.13.0) rspec-core (~> 3.13.0) rspec-expectations (~> 3.13.0) @@ -162,8 +162,8 @@ GEM rspec-mocks (3.13.0) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-support (3.13.0) - rubocop (1.60.2) + rspec-support (3.13.1) + rubocop (1.62.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -171,31 +171,33 @@ GEM rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.30.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.30.0) - parser (>= 3.2.1.0) + rubocop-ast (1.31.2) + parser (>= 3.3.0.4) rubocop-capybara (2.20.0) rubocop (~> 1.41) rubocop-factory_bot (2.25.1) rubocop (~> 1.41) rubocop-rake (0.6.0) rubocop (~> 1.0) - rubocop-rspec (2.26.1) + rubocop-rspec (2.29.1) rubocop (~> 1.40) rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) + rubocop-rspec_rails (~> 2.28) + rubocop-rspec_rails (2.28.2) + rubocop (~> 1.40) ruby-progressbar (1.13.0) - ruby2_keywords (0.0.5) semantic (1.6.1) semantic_logger (4.15.0) concurrent-ruby (~> 1.0) - sequel (5.77.0) + sequel (5.79.0) bigdecimal - sqlite3 (1.7.2) + sqlite3 (1.7.3) mini_portile2 (~> 2.8.0) - sqlite3 (1.7.2-x86_64-linux) + sqlite3 (1.7.3-x86_64-linux) strings (0.2.1) strings-ansi (~> 0.2) unicode-display_width (>= 1.5, < 3.0) @@ -203,7 +205,7 @@ GEM strings-ansi (0.2.0) sys-uname (1.2.3) ffi (~> 1.1) - thor (1.3.0) + thor (1.3.1) tty-color (0.6.0) tty-cursor (0.7.1) tty-editor (0.7.0) diff --git a/lib/linear/commands/issue.rb b/lib/linear/commands/issue.rb index 5c1f03b..f3a4963 100644 --- a/lib/linear/commands/issue.rb +++ b/lib/linear/commands/issue.rb @@ -62,7 +62,7 @@ def create_pr!(title:, body:) def issue_pr(issue, **options) title = options[:title] || pr_title_for(issue) body = options[:description] || pr_description_for(issue) - create_pr!(title:, body:) + prompt.warn create_pr!(title:, body:) end def attach_project(issue, project_search) diff --git a/linear-cli.gemspec b/linear-cli.gemspec index 35653ce..cd571a2 100644 --- a/linear-cli.gemspec +++ b/linear-cli.gemspec @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative 'lib/linear' +require_relative 'lib/linear/version' Gem::Specification.new do |spec| spec.name = 'linear-cli' @@ -25,7 +25,8 @@ Gem::Specification.new do |spec| spec.files = Dir.chdir(__dir__) do `git ls-files -z`.split("\x0").reject do |f| (File.expand_path(f) == __FILE__) || - f.start_with?(*%w[changelog/ pkg/ bin/ test/ spec/ features/ .git .github appveyor .rspec .rubocop cucumber.yml Gemfile]) + f.start_with?(*%w[changelog/ pkg/ bin/ test/ spec/ features/ .git .github appveyor .rspec .rubocop cucumber.yml + Gemfile]) end end spec.bindir = 'exe'