ghub 0.10.0 → 0.11.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: 29eaaa71dfeecc1dc0e6d8dc024e65dde27ef418751da55a48e515bc6bf17641
4
- data.tar.gz: ec5e0c0a090edb12cbb15ff5ad21bea768c5a568cd95d0efbb3bdae6f5ed45bf
3
+ metadata.gz: c043ed0767155337202f16830cca48c65ee20956d642ee21b36f3d9a7a40fe3b
4
+ data.tar.gz: 5b6072e37686096115229fd1746275cc639bef455c431e37f1ef057f04150a7e
5
5
  SHA512:
6
- metadata.gz: 6973a5a3148494388b4241b06f0c59a48e36d71ba6b3c7f480669e7ab9f57eb09548877d25e4e90a813fb1ae3550cff600a93c0239fec4833d0fb628e5a5ad0d
7
- data.tar.gz: d6450ff38c29ed9edff0811c1c61062011a4dc69096945eb3f7351fb5048397c687fad6918d71854afc1483bb7e40b38df978941d12e5aab0dce74d84fe4a278
6
+ metadata.gz: 1d7316525994fdf1138a22e850b7692f6ad6df004170603a83903db777202d568d580e5d51a341f7a7bd8e02a045ef2f29c59825e45af6eb7838eebc5f1f0ca0
7
+ data.tar.gz: 8fab22bed19b8acd25976c12afd8ff4ef78372c717b9248f9bca287033783a75e8fc55f6fd8d2678d995bf7c10a6824df8be33a751d7b313e103534e98fccc3f
checksums.yaml.gz.sig CHANGED
Binary file
data/ghub.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "ghub"
5
- spec.version = "0.10.0"
5
+ spec.version = "0.11.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/ghub"
@@ -27,9 +27,9 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "dry-monads", "~> 1.6"
28
28
  spec.add_dependency "dry-schema", "~> 1.13"
29
29
  spec.add_dependency "http", "~> 5.1"
30
- spec.add_dependency "infusible", "~> 3.0"
30
+ spec.add_dependency "infusible", "~> 3.4"
31
+ spec.add_dependency "pipeable", "~> 0.1"
31
32
  spec.add_dependency "refinements", "~> 12.1"
32
- spec.add_dependency "transactable", "~> 0.9"
33
33
  spec.add_dependency "zeitwerk", "~> 2.6"
34
34
 
35
35
  spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -10,7 +10,7 @@ module Ghub
10
10
  # Handles a branch projection show action.
11
11
  class Show
12
12
  include Protection::Import[:client, response: "responses.show", model: "models.show"]
13
- include Transactable
13
+ include Pipeable
14
14
 
15
15
  def call owner, repository, branch, **parameters
16
16
  pipe(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -16,7 +16,7 @@ module Ghub
16
16
  model: "models.show"
17
17
  ]
18
18
 
19
- include Transactable
19
+ include Pipeable
20
20
 
21
21
  def call owner, repository, branch, body, **parameters
22
22
  pipe(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -9,7 +9,7 @@ module Ghub
9
9
  # Provides access to the branch signature API endpoint.
10
10
  class Root
11
11
  include Signature::Import[:client, response: "responses.show", model: "models.show"]
12
- include Transactable
12
+ include Pipeable
13
13
 
14
14
  PATH = "repos/%<owner>s/%<repository>s/branches/%<branch>s/protection/required_signatures"
15
15
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -10,7 +10,7 @@ module Ghub
10
10
  # Handles an organization member index action.
11
11
  class Index
12
12
  include Members::Import[:client, response: "responses.index", model: "models.show"]
13
- include Transactable
13
+ include Pipeable
14
14
 
15
15
  def call owner, **parameters
16
16
  pipe(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -9,7 +9,7 @@ module Ghub
9
9
  # Handles a repository index action.
10
10
  class Index
11
11
  include Pulls::Import[:client, response: "responses.index", model: "models.show"]
12
- include Transactable
12
+ include Pipeable
13
13
 
14
14
  def call owner, repository, **parameters
15
15
  pipe(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -9,7 +9,7 @@ module Ghub
9
9
  # Handles a repository index action.
10
10
  class Show
11
11
  include Pulls::Import[:client, response: "responses.show", model: "models.show"]
12
- include Transactable
12
+ include Pipeable
13
13
 
14
14
  def call owner, repository, id, **parameters
15
15
  pipe(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -16,7 +16,7 @@ module Ghub
16
16
  model: "models.show"
17
17
  ]
18
18
 
19
- include Transactable
19
+ include Pipeable
20
20
 
21
21
  def call kind, body, owner: nil, **parameters
22
22
  path.create(kind, owner:).bind do |url_path|
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -15,7 +15,7 @@ module Ghub
15
15
  model: "models.show"
16
16
  ]
17
17
 
18
- include Transactable
18
+ include Pipeable
19
19
 
20
20
  def call kind, owner, **parameters
21
21
  pipe(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -16,7 +16,7 @@ module Ghub
16
16
  model: "models.show"
17
17
  ]
18
18
 
19
- include Transactable
19
+ include Pipeable
20
20
 
21
21
  def call owner, id, body, **parameters
22
22
  path.patch(owner, id).bind do |url_path|
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -15,7 +15,7 @@ module Ghub
15
15
  model: "models.show"
16
16
  ]
17
17
 
18
- include Transactable
18
+ include Pipeable
19
19
 
20
20
  def call owner, id, **parameters
21
21
  pipe path.show(owner, id),
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -10,7 +10,7 @@ module Ghub
10
10
  # Handles a user index action.
11
11
  class Index
12
12
  include Import[:client, response: "responses.index", model: "models.index"]
13
- include Transactable
13
+ include Pipeable
14
14
 
15
15
  def call **parameters
16
16
  pipe(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -9,7 +9,7 @@ module Ghub
9
9
  # Handles a user index action.
10
10
  class Index
11
11
  include Users::Import[:client, response: "responses.index", model: "models.index"]
12
- include Transactable
12
+ include Pipeable
13
13
 
14
14
  def call **parameters
15
15
  pipe(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "transactable"
3
+ require "pipeable"
4
4
 
5
5
  module Ghub
6
6
  module Endpoints
@@ -9,7 +9,7 @@ module Ghub
9
9
  # Handles a user show action.
10
10
  class Show
11
11
  include Users::Import[:client, response: "responses.show", model: "models.show"]
12
- include Transactable
12
+ include Pipeable
13
13
 
14
14
  def call id, **parameters
15
15
  pipe client.get("users/#{id}", **parameters),
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
36
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
37
  -----END CERTIFICATE-----
38
- date: 2024-03-03 00:00:00.000000000 Z
38
+ date: 2024-03-09 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: dry-container
@@ -99,42 +99,42 @@ dependencies:
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '3.0'
102
+ version: '3.4'
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '3.0'
109
+ version: '3.4'
110
110
  - !ruby/object:Gem::Dependency
111
- name: refinements
111
+ name: pipeable
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '12.1'
116
+ version: '0.1'
117
117
  type: :runtime
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '12.1'
123
+ version: '0.1'
124
124
  - !ruby/object:Gem::Dependency
125
- name: transactable
125
+ name: refinements
126
126
  requirement: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '0.9'
130
+ version: '12.1'
131
131
  type: :runtime
132
132
  prerelease: false
133
133
  version_requirements: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '0.9'
137
+ version: '12.1'
138
138
  - !ruby/object:Gem::Dependency
139
139
  name: zeitwerk
140
140
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file