ghub 2.0.0 → 2.1.0

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: 9b4cd241631d0c39b87be5ed66383f4cd3db0a69b751fc7cf04157542e0044d3
4
- data.tar.gz: 52169eb35f653636698bc691389a0166ed4431b7d468691d498abe249a51c763
3
+ metadata.gz: bbf2dfd929eca5f8d25363bbb001510262ecd4729e2e13de764d9528cd3d5ad9
4
+ data.tar.gz: '005662906bd5d6203b99baa41ef256a575f7fded5954aba73bb7fb38165811e3'
5
5
  SHA512:
6
- metadata.gz: 67cd93020598662ff094fe825f71809b2972fda4dcbfafc7802d150c9b885bc0b929189a799465a6824a8a234e35f0900b161dd0348133f4a47da5198aa8e587
7
- data.tar.gz: d6898359980054bd6a115179b203d847af4e1c56c114eae043cb734f5c245962b92056afc8709c13fbb90216cb7a42ecc6acedba0d6ec8155ed97c8359b28f65
6
+ metadata.gz: 65d19a953c46ebe32dae668d51380e50b0a755c5e9d0b48b8372f35be7b27e9ec8c2763e16a97d9a65848b9484d8e25dc30cd13fc3fbe197724d10d15aac21fa
7
+ data.tar.gz: 560eff61963b29483a39bdd79a5d0ecb77e21513d71d068eec28adff0746b6f270524449119304bcefe524b9f8f4de49e5b7c420fe3915dfd75e16d2d2ad9284
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 = "2.0.0"
5
+ spec.version = "2.1.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/ghub"
@@ -19,7 +19,7 @@ module Ghub
19
19
  :restrictions,
20
20
  :url
21
21
  ) do
22
- def self.for(**attributes)
22
+ def self.for **attributes
23
23
  new(
24
24
  **attributes.merge!(
25
25
  enforce_admins: Ghub::Models::BooleanLink[**attributes[:enforce_admins]],
@@ -55,7 +55,7 @@ module Ghub
55
55
  :url,
56
56
  :user
57
57
  ) do
58
- def self.for(**attributes)
58
+ def self.for **attributes
59
59
  assignee = attributes[:assignee]
60
60
 
61
61
  new(
@@ -17,7 +17,7 @@ module Ghub
17
17
  :slug,
18
18
  :updated_at
19
19
  ) do
20
- def self.for(**attributes)
20
+ def self.for **attributes
21
21
  new(
22
22
  **attributes.merge!(
23
23
  owner: Owner[**attributes[:owner]],
@@ -4,7 +4,7 @@ module Ghub
4
4
  module Models
5
5
  # Defines a branch.
6
6
  Branch = Struct.new :label, :ref, :repo, :sha, :user do
7
- def self.for(**attributes)
7
+ def self.for **attributes
8
8
  new(
9
9
  **attributes.merge!(
10
10
  user: User[**attributes[:user]],
@@ -11,7 +11,7 @@ module Ghub
11
11
  :users,
12
12
  :users_url
13
13
  ) do
14
- def self.for(**attributes)
14
+ def self.for **attributes
15
15
  return new if attributes.empty?
16
16
 
17
17
  new(
@@ -13,7 +13,7 @@ module Ghub
13
13
  :commits,
14
14
  :statuses
15
15
  ) do
16
- def self.for(**attributes)
16
+ def self.for **attributes
17
17
  attributes.reduce({}) { |collection, (key, value)| collection.merge key => Link[**value] }
18
18
  .then { |updates| new(**updates) }
19
19
  end
@@ -88,7 +88,7 @@ module Ghub
88
88
  :web_commit_signoff_required,
89
89
  :weight
90
90
  ) do
91
- def self.for(**attributes)
91
+ def self.for **attributes
92
92
  new(
93
93
  **attributes.transform_keys!(size: :weight),
94
94
  license: (License[**Hash(attributes[:license])] if attributes.key? :license),
@@ -12,7 +12,7 @@ module Ghub
12
12
  :users,
13
13
  :users_url
14
14
  ) do
15
- def self.for(**attributes)
15
+ def self.for **attributes
16
16
  return new if attributes.empty?
17
17
 
18
18
  new(
@@ -10,7 +10,7 @@ module Ghub
10
10
  :url,
11
11
  :dismissal_restrictions
12
12
  ) do
13
- def self.for(**attributes)
13
+ def self.for **attributes
14
14
  return new if attributes.empty?
15
15
 
16
16
  new(
@@ -11,7 +11,7 @@ module Ghub
11
11
  :checks,
12
12
  :enforcement_level
13
13
  ) do
14
- def self.for(**attributes)
14
+ def self.for **attributes
15
15
  new(
16
16
  **attributes.merge!(checks: attributes[:checks].map { |arguments| Check[**arguments] })
17
17
  )
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: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0'
293
293
  requirements: []
294
- rubygems_version: 4.0.12
294
+ rubygems_version: 4.0.16
295
295
  specification_version: 4
296
296
  summary: A monadic GitHub API client.
297
297
  test_files: []
metadata.gz.sig CHANGED
Binary file