rujira 0.3.1 → 0.3.2

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: '099900e906a1d71b9c787fa6565fa02bdce269dba4ab74394f6c222b10f3a737'
4
- data.tar.gz: f00ae30d02ca63aecca57b1ea8099fa0afe2482de3baa385f92e7d29968ae83d
3
+ metadata.gz: fe3605d3169c9d351d102aac1f818d45248668dbfebfde6ed50efad8185d67ec
4
+ data.tar.gz: 36d1b09cc7bb319c25a006135d149aa634ba1a86f60fbcef030fda6e518673d0
5
5
  SHA512:
6
- metadata.gz: 581f6a09da83eadd7ef5d474face9d61e34b91999c3009094c7be6a83872eb18a0c2a50fc1462b910b36b289b8e1277906744f738aae6c7f179a6cc0a3193e01
7
- data.tar.gz: 82d46f9a3a7d56a605d69cb5263c5b3be64fda4973920766de48cbe5b12a7e8b22d96b740497faa3edccbc4848a3d910ee1f66b897bcfd95927993b68ec45d5c
6
+ metadata.gz: d14e41226a19f4aec0f4bc56ccf60642c37fd6e3c08bda3871655e7bae9e45e67bd8ef8870049493938680b8ad6aed073cc5cb83fadc7fa9829b2a3e491d05dd
7
+ data.tar.gz: b7e70af74ed15946de2d724dbfa0d654a4f4698b7626f1db931f16c2711b3f6cd68a8671727aaaae27bdb34c8549687af67bd516e324e56cfb02420e3962e5cf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.3.2] - 2025-09-13
2
+
3
+ ### 🚜 Refactor
4
+
5
+ - Remove configuration
6
+
7
+ ### 📚 Documentation
8
+
9
+ - Updated inline description
1
10
  ## [0.3.1] - 2025-09-13
2
11
 
3
12
  ### 🚜 Refactor
@@ -70,14 +79,3 @@
70
79
  ### Reafactor
71
80
 
72
81
  - Full
73
- ## [0.1.10] - 2024-07-05
74
-
75
- ### ITMG
76
-
77
- - Adding watchers and security level getter
78
- ## [0.1.9] - 2024-06-23
79
-
80
- ### ITMG
81
-
82
- - Description fixes
83
- - Release 0.1.8
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/#api/2/issue/%7BissueIdOrKey%7D/attachments
7
8
  class Attachments < Common
8
9
  def create(id_or_key, path, &block)
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/jira-software/REST/9.17.0/#agile/1.0/board
7
8
  class Board < Common
8
9
  def initialize(client)
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/#api/2/comment/%7BcommentId%7D/properties
7
8
  class Comment < Common
8
9
  def create(id_or_key, &block)
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  class Common
7
8
  def initialize(client)
8
9
  # Store the passed client object in an instance variable for later use
@@ -11,7 +12,7 @@ module Rujira
11
12
  # Configure requests using the client's builder DSL
12
13
  @client.request.builder do
13
14
  # Set the Bearer token for authorization
14
- bearer Configuration.token
15
+ bearer @token
15
16
 
16
17
  # Specify the default HTTP method for requests
17
18
  method :get
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/#api/2/myself
7
8
  class Dashboard < Common
8
9
  def get(id)
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/#api/2/issue
7
8
  class Issue < Common
8
9
  def create(&block)
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/#api/2/myself
7
8
  class Myself < Common
8
9
  def get
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/#api/2/project
7
8
  class Project < Common
8
9
  def create(&block)
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/#api/2/search
7
8
  class Search < Common
8
9
  def get(&block)
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/#api/2/serverInfo
7
8
  class ServerInfo < Common
8
9
  def get
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Rujira
4
4
  module Api
5
- # TODO
5
+ # TODO: add docs
6
+ # Some description
6
7
  # https://docs.atlassian.com/jira-software/REST/9.17.0/#agile/1.0/sprint
7
8
  class Sprint < Common
8
9
  def initialize(client)
data/lib/rujira/client.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rujira
4
- # TODO
4
+ # TODO: add docs
5
+ # Some description
5
6
  class Client
6
7
  attr_accessor :request
7
8
 
@@ -20,7 +21,7 @@ module Rujira
20
21
 
21
22
  def options
22
23
  {
23
- url: Configuration.url,
24
+ url: @uri,
24
25
  headers: @request.headers,
25
26
  params: @request.params
26
27
 
data/lib/rujira/error.rb CHANGED
@@ -3,14 +3,16 @@
3
3
  module Rujira
4
4
  class Error < StandardError; end
5
5
 
6
- # TODO
6
+ # TODO: add docs
7
+ # Some description
7
8
  class PathArgumentError < Error
8
9
  def message
9
10
  "No argument to 'path' was given."
10
11
  end
11
12
  end
12
13
 
13
- # TODO
14
+ # TODO: add docs
15
+ # Some description
14
16
  class DataArgumentError < Error
15
17
  def message
16
18
  "No argument to 'data' was given."
@@ -3,13 +3,13 @@
3
3
  require 'fileutils'
4
4
 
5
5
  module Rujira
6
- # TODO
6
+ # TODO: add docs
7
+ # Some description
7
8
  class Request
8
9
  attr_reader :authorization, :options
9
10
 
10
11
  def initialize
11
- @token = Configuration.token
12
- @debug = Configuration.debug
12
+ @token = ENV['RUJIRA_TOKEN'] if ENV.include?('RUJIRA_TOKEN')
13
13
  @method = :get
14
14
  @params = {}
15
15
  @headers = {}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rujira
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
data/lib/rujira.rb CHANGED
@@ -7,7 +7,6 @@ require 'faraday/multipart'
7
7
  require 'json'
8
8
  require_relative 'rujira/error'
9
9
  require_relative 'rujira/version'
10
- require_relative 'rujira/configuration'
11
10
  require_relative 'rujira/request'
12
11
  require_relative 'rujira/client'
13
12
  require_relative 'rujira/api/common'
@@ -22,7 +21,8 @@ require_relative 'rujira/api/dashboard'
22
21
  require_relative 'rujira/api/board'
23
22
  require_relative 'rujira/api/sprint'
24
23
 
25
- # TODO
24
+ # TODO: add docs
25
+ # Some description
26
26
  module Rujira
27
27
  class Error < StandardError; end
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rujira
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Semenov
@@ -67,7 +67,6 @@ files:
67
67
  - lib/rujira/api/server_info.rb
68
68
  - lib/rujira/api/sprint.rb
69
69
  - lib/rujira/client.rb
70
- - lib/rujira/configuration.rb
71
70
  - lib/rujira/error.rb
72
71
  - lib/rujira/request.rb
73
72
  - lib/rujira/tasks/generate.rake
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Rujira
4
- # TODO
5
- module Configuration
6
- def self.token
7
- return ENV['RUJIRA_TOKEN'] if ENV.include?('RUJIRA_TOKEN')
8
-
9
- raise 'The environment variable RUJIRA_TOKEN is not set'
10
- end
11
-
12
- def self.url
13
- return ENV['RUJIRA_URL'] if ENV.include?('RUJIRA_URL')
14
-
15
- 'http://localhost:8080'
16
- end
17
-
18
- def self.debug
19
- return false unless ENV.include?('RUJIRA_DEBUG')
20
-
21
- ENV['RUJIRA_DEBUG'].match?(/^true$/)
22
- end
23
- end
24
- end