linear-cli 0.7.7 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 040dce1ff59ddd000240b8a03105928d775841be91d1fe50f974249e2ddc21fc
4
- data.tar.gz: 0de33b286614b981e63ad75b14d1728e825d44e6ec2265c625a00888cdb32cf2
3
+ metadata.gz: f3115a9533c74319bbb8bafd878f9e60c60a26c557909b35cf4fff8b16870a14
4
+ data.tar.gz: a98d826dcfe32a3c569a73ec3df15e639d38511a8107b7e86b6c25238e6f3bb8
5
5
  SHA512:
6
- metadata.gz: 1f45d0fc3280fda121430d10078e49a5a870753a8fa4788943934a586134101b58c40cacbd8fb3d83bd140d36db70bf19e82a65e3a87770bcf6a6ab48aa8bbbe
7
- data.tar.gz: 9333ae8a1cb9bab180035dba641c23a5315783bf3d6bd0e790f0b21eb3da0a8ae149c1264ff4619ef75caaff1ec51bf8fdf4cd7c1f36659552d8cb685b7f4332
6
+ metadata.gz: 2b632968d2cfcfa38f9e54097c215043d7576529fe6417f44e6acbc741305ec5e8e822d59cf460f92257c556d5042b68559dbc41875a8faf5110b4d88e153c08
7
+ data.tar.gz: 3c853989005ac06d6e6899da1b763a6615ca8924e893e2de2dd0d9632e1397a30a2a8d535af80f8e6c4ed42ffe8260476241cd732afb14924069d753b5336827
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.8.0] - 2024-02-06
6
+ ### Added
7
+ - Added Containerfile to build oci image (@bougyman)
8
+
5
9
  ## [0.7.7] - 2024-02-06
6
10
  ### Added
7
11
  - Added ability to attach project to command (@bougyman)
@@ -51,8 +55,9 @@
51
55
  ### Added
52
56
  - Added new changelog management system (changelog-rb) (@bougyman)
53
57
 
54
- [Unreleased]: https://github.com/rubyists/linear-cli/compare/0.7.7...HEAD
55
- [0.7.7]: https://github.com/rubyists/linear-cli/compare/v0.7.5...0.7.7
58
+ [Unreleased]: https://github.com/rubyists/linear-cli/compare/0.8.0...HEAD
59
+ [0.8.0]: https://github.com/rubyists/linear-cli/compare/v0.7.7...0.8.0
60
+ [0.7.7]: https://github.com/rubyists/linear-cli/compare/v0.7.5...v0.7.7
56
61
  [0.7.5]: https://github.com/rubyists/linear-cli/compare/v0.7.3...v0.7.5
57
62
  [0.7.3]: https://github.com/rubyists/linear-cli/compare/v0.7.2...v0.7.3
58
63
  [0.7.2]: https://github.com/rubyists/linear-cli/compare/v0.7.1...v0.7.2
data/Readme.adoc CHANGED
@@ -11,7 +11,21 @@ A command line interface to https://linear.app.
11
11
 
12
12
  == Installation
13
13
 
14
- === Gem (Most should use this)
14
+ === I don't want to install
15
+
16
+ You can use the OCI container image to run the CLI without installing it.
17
+
18
+ [source,sh]
19
+ ----
20
+ $ podman run -it --rm -e LINEAR_API_KEY=your-api-key ghcr.io/rubyists/linear-cli:stable lcls <1>
21
+ $ docker run -it --rm -e LINEAR_API_KEY=your-api-key ghcr.io/rubyists/linear-cli:stable lcls <2>
22
+ ----
23
+ <1> Podman Usage
24
+ <2> Docker Usage
25
+
26
+ === Gem install (Most should use this)
27
+
28
+ Requires ruby 3.2 or later
15
29
 
16
30
  [source,sh]
17
31
  ----
@@ -80,7 +94,7 @@ $ lc w --teams
80
94
 
81
95
  `lcls` is a helper provided to list issues. It's an alias for `lc issues list`.
82
96
 
83
- image::listings.cinema.gif[]
97
+ image::cinemas/listings.cinema.gif[]
84
98
 
85
99
  [source,sh]
86
100
  ----
@@ -0,0 +1,4 @@
1
+ type: Added
2
+ title: >
3
+ Added Containerfile to build oci image
4
+ author: bougyman
@@ -0,0 +1 @@
1
+ date: 2024-02-06
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.7.7'
5
+ VERSION = '0.8.0'
6
6
  end
7
7
  end
@@ -52,9 +52,12 @@ module Rubyists
52
52
 
53
53
  def find(id_val)
54
54
  camel_name = just_name.camelize :lower
55
+ sym = camel_name.to_sym
55
56
  ff = full_fragment
56
57
  query_data = Api.query(query { __node(camel_name, id: id_val) { ___ ff } })
57
- new query_data[camel_name.to_sym]
58
+ raise NotFoundError, "No #{just_name} found with id #{id_val}" if query_data[sym].nil?
59
+
60
+ new query_data[sym]
58
61
  end
59
62
 
60
63
  def const_added(const)
data/lib/linear.rb CHANGED
@@ -1,9 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'pathname'
4
- require 'semantic_logger'
5
- SemanticLogger.default_level = :info
6
- SemanticLogger.add_appender(io: $stderr, formatter: :color)
7
4
 
8
5
  # Add the / operator for path separation
9
6
  class Pathname
@@ -15,7 +12,6 @@ end
15
12
  module Rubyists
16
13
  # Namespace for Linear classes
17
14
  module Linear
18
- include SemanticLogger::Loggable
19
15
  # rubocop:disable Layout/SpaceAroundOperators
20
16
  ROOT = (Pathname(__FILE__)/'../..').expand_path
21
17
  LIBROOT = ROOT/:lib/:linear
@@ -46,6 +42,16 @@ module Rubyists
46
42
  @verbosity ||= 0
47
43
  end
48
44
 
45
+ def self.logger
46
+ return @logger if @logger
47
+
48
+ require 'semantic_logger'
49
+
50
+ SemanticLogger.default_level = :info
51
+ SemanticLogger.add_appender(io: $stderr, formatter: :color)
52
+ @logger = SemanticLogger['Rubyists::Linear']
53
+ end
54
+
49
55
  def self.verbosity=(debug)
50
56
  return verbosity unless debug
51
57
 
data/oci/Containerfile ADDED
@@ -0,0 +1,32 @@
1
+ FROM docker.io/ruby:3.3.0-alpine3.19 AS build-env
2
+
3
+
4
+ # Setting env up
5
+ ARG APP_ROOT=/app
6
+ ENV LANG C.UTF-8
7
+ ENV BUNDLE_SILENCE_ROOT_WARNING=1
8
+
9
+ #Install dependencies needed for compilation
10
+ RUN apk --update add bash ruby-dev build-base git sqlite-dev
11
+
12
+ WORKDIR $APP_ROOT
13
+
14
+ COPY . $APP_ROOT
15
+ RUN bundle install && bundle exec rake build
16
+
17
+ CMD %w[bundle exec lc]
18
+
19
+ # Remove folders not needed in resulting image
20
+ RUN rm -rf node_modules tmp/cache app/assets vendor/assets spec
21
+
22
+ ############### Build step done ###############
23
+ FROM docker.io/ruby:3.3.0-alpine3.19
24
+ ARG PACKAGES="bash sqlite sqlite-dev ruby-dev build-base github-cli"
25
+
26
+ # install packages
27
+ RUN apk --update --no-cache add $PACKAGES
28
+ COPY --from=build-env /app/pkg /tmp
29
+ RUN ls /tmp/*.gem && gem install /tmp/*.gem
30
+
31
+ CMD %w[bundle exec lc]
32
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linear-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-06 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -234,8 +234,11 @@ files:
234
234
  - changelog/0.7.7/added_issue_pr_command.yml
235
235
  - changelog/0.7.7/added_lcomment_alias_to_add_comments_to_issues.yml
236
236
  - changelog/0.7.7/tag.yml
237
+ - changelog/0.8.0/added_containerfile_to_build_oci_image.yml
238
+ - changelog/0.8.0/tag.yml
237
239
  - changelog/unreleased/.gitkeep
238
240
  - cinemas/listings.cinema
241
+ - cinemas/listings.cinema.gif
239
242
  - exe/lc
240
243
  - exe/lclose
241
244
  - exe/lcls
@@ -280,7 +283,7 @@ files:
280
283
  - lib/linear/models/workflow_state.rb
281
284
  - lib/linear/version.rb
282
285
  - linear-cli.gemspec
283
- - listings.cinema.gif
286
+ - oci/Containerfile
284
287
  homepage: https://github.com/rubyists/linear-cli
285
288
  licenses:
286
289
  - MIT