linear-cli 0.3.4 → 0.3.5

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: f19a0dcf960918910368ad0884f78b04eb25b15ca20fcd4ec509cefcc7197aea
4
- data.tar.gz: 07cc8407857f519b3a7a07eb6193df26e2cf18f0b9caf123e01aea8fbc13b512
3
+ metadata.gz: 83b0425687f78c53bc8f09dd8980858c2875d577800b0154425392b5bc443252
4
+ data.tar.gz: 4189868633d0395dc9924e6cc4f0889d88d87ba27a4a469d2a9ff538fa3ffc2f
5
5
  SHA512:
6
- metadata.gz: 7c86c863d98931d639de4d393cbfd1ca125272183b04232c1c43160201ab8b523906030d029a81d782ffc75baca6a0382971431080175f8e6d68c82d769116b7
7
- data.tar.gz: ac84b8462b4344a294c06b50e13dde3182d7ac9de0b98130403494f38e05b09624e75296f8d1aef7ec1e0925b6a225794693c731751d07a114e7088d32f14985
6
+ metadata.gz: ad6473953d82c61bf9a5f05948dd7f20ac61b04f3c9eae802494067ceb789a6210ac66cd7b797d93b31842f1fa534e08679dca91e9faf29467050b8e3fd1fb02
7
+ data.tar.gz: 573d73dc10e94bf792c304e9fd1505414afe967ebdacdbd808243f84ad47b25a980ea77eb6646a037bcb0a8552c4e1aff56dd64e355d18186379c9eeb52d25cb
data/lib/linear/api.rb CHANGED
@@ -45,7 +45,10 @@ module Rubyists
45
45
  end
46
46
 
47
47
  def api_key
48
- @api_key ||= ENV.fetch('LINEAR_API_KEY')
48
+ return @api_key if @api_key
49
+ raise NoKeyError, 'No LINEAR_API_KEY found in Environment variables.' unless ENV.key?('LINEAR_API_KEY')
50
+
51
+ @api_key = ENV.fetch('LINEAR_API_KEY')
49
52
  end
50
53
  end
51
54
  Api = Rubyists::Linear::GraphApi.new
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.3.4'
5
+ VERSION = '0.3.5'
6
6
  end
7
7
  end
data/lib/linear/cli.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'dry/cli'
4
4
  require 'dry/cli/completion/command'
5
5
  require_relative '../linear'
6
+ require 'tty-markdown'
6
7
 
7
8
  # The Rubyists module is the top-level namespace for all Rubyists projects
8
9
  module Rubyists
@@ -4,5 +4,6 @@ module Rubyists
4
4
  module Linear
5
5
  SmellsBad = Class.new(StandardError)
6
6
  NotFoundError = Class.new(StandardError)
7
+ NoKeyError = Class.new(StandardError)
7
8
  end
8
9
  end
@@ -59,7 +59,10 @@ module Rubyists
59
59
 
60
60
  def full
61
61
  sep = '-' * to_s.length
62
- format("%<to_s>s\n%<sep>s\n%<description>s\n", sep:, to_s:, description:)
62
+ format("%<to_s>s\n%<sep>s\n%<description>s\n",
63
+ sep:,
64
+ to_s:,
65
+ description: (TTY::Markdown.parse(data[:description]) rescue 'No Description?')) # rubocop:disable Style/RescueModifier
63
66
  end
64
67
 
65
68
  def display(options)
data/linear-cli.gemspec CHANGED
@@ -41,6 +41,7 @@ Gem::Specification.new do |spec|
41
41
  spec.add_dependency 'semantic_logger', '~> 4.0'
42
42
  spec.add_dependency 'sequel'
43
43
  spec.add_dependency 'sqlite3'
44
+ spec.add_dependency 'tty-markdown'
44
45
 
45
46
  # For more information and examples about making a new gem, check out our
46
47
  # guide at: https://bundler.io/guides/creating_gem.html
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linear-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: tty-markdown
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  description: A CLI for interacting with Linear.app. Loosely based on the GitHub CLI
126
140
  email:
127
141
  - tj@rubyists.com