Skip to content

Commit be93723

Browse files
authored
fix(sqlite)!: Updates dependencies, including painful sqlite (#8)
* fix(sqlite)!: Updates dependencies, including painful sqlite * fix: Adds updated workflow file with correct ruby version * style: Makes rubocop happy again
1 parent 72eeb05 commit be93723

File tree

21 files changed

+37
-20
lines changed

21 files changed

+37
-20
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
ruby:
18-
- '3.3.0'
18+
- '3.4.7'
1919

2020
steps:
2121
- uses: actions/checkout@v4

.rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
require:
2+
plugins:
33
- rubocop-rake
44
- rubocop-rspec
55

66
AllCops:
7-
TargetRubyVersion: 3.2.0
7+
TargetRubyVersion: 3.4.0
88
NewCops: enable
99

1010
Style/StringLiterals:

Readme.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Then you can just run 'lc' to use the CLI.
3838

3939
=== Gem install (Most should use this)
4040

41-
Requires ruby 3.2 or later
41+
Requires ruby 3.4 or later
4242

4343
[source,sh]
4444
----

lib/linear.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module Rubyists
1616
# Namespace for Linear classes
1717
module Linear
1818
include SemanticLogger::Loggable
19+
1920
# rubocop:disable Layout/SpaceAroundOperators
2021
ROOT = (Pathname(__FILE__)/'../..').expand_path
2122
LIBROOT = ROOT/:lib/:linear
@@ -47,7 +48,7 @@ def self.verbosity
4748
end
4849

4950
def self.verbosity=(debug)
50-
return verbosity unless debug
51+
return unless debug
5152

5253
logger.warn 'Debug level should be between 0 and 3' unless debug.between?(0, 3)
5354
@verbosity = debug

lib/linear/api.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module Linear
88
# Responsible for making requests to the Linear API
99
class GraphApi
1010
include SemanticLogger::Loggable
11+
1112
BASE_URI = 'https://api.linear.app/graphql'
1213
RETRY_AFTER = lambda do |*|
1314
@retries ||= 0

lib/linear/cli/caller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module CLI
66
# This module is prepended to all commands to log their calls
77
module Caller
88
include SemanticLogger::Loggable
9+
910
def self.prepended(mod) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
1011
# Global options for all commands
1112
mod.instance_eval do

lib/linear/cli/what_for.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def pr_type_for(issue)
120120
end
121121

122122
def pr_scope_for(title)
123-
proposed_scope = title.match(/^\w+\(([^\)]+)\)/)
123+
proposed_scope = title.match(/^\w+\(([^)]+)\)/)
124124
return proposed_scope[1].downcase if proposed_scope
125125

126126
scope = prompt.ask('What is the scope of this PR?', default: 'none')

lib/linear/commands/issue/create.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Create
1616
include SemanticLogger::Loggable
1717
include Rubyists::Linear::CLI::CommonOptions
1818
include Rubyists::Linear::CLI::Issue # for #gimme_da_issue! and other Issue methods
19+
1920
desc 'Create a new issue. If you do not pass any options, you will be prompted for the required information.'
2021
option :description, type: :string, aliases: ['-d'], desc: 'Issue Description'
2122
option :labels, type: :array, aliases: ['-l'], desc: 'Labels for the issue (Comma separated list)'

lib/linear/commands/issue/develop.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Develop
1717
include SemanticLogger::Loggable
1818
include Rubyists::Linear::CLI::CommonOptions
1919
include Rubyists::Linear::CLI::Issue # for #gimme_da_issue! and other Issue methods
20+
2021
desc 'Start or update development status of an issue'
2122
argument :issue_id, required: true, desc: 'The Issue (i.e. ISS-1)'
2223

lib/linear/commands/issue/pr.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Pr
1717
include SemanticLogger::Loggable
1818
include Rubyists::Linear::CLI::CommonOptions
1919
include Rubyists::Linear::CLI::Issue # for #gimme_da_issue! and other Issue methods
20+
2021
desc 'Create a PR for an issue and push it to the remote'
2122
argument :issue_id, required: true, desc: 'The Issue (i.e. CRY-1)'
2223
option :title, required: false, desc: 'The title of the PR'

0 commit comments

Comments
 (0)