ossy 0.3.3 → 0.3.4

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: f7335a5f4133bde5fed20bcd4ae682450b57ca98e184a784c3df18ba938510e6
4
- data.tar.gz: 70139766a69aa38d1ffa6f3bd089ce2567ac850907ae52451d60f91a73928064
3
+ metadata.gz: '09293736b8853ce4851c0a079a9f95bf747481919f49048448ed8b22dae77a27'
4
+ data.tar.gz: 5307d372e0f89aabb53d9c6370f752f5caf2a15e45ef3cf2f558cee2fc9070eb
5
5
  SHA512:
6
- metadata.gz: 237290f69c965cdd25f948cdff179c4d850d047cb4c86dbe09df455380a78c593ba4c7f6f97bc32b2c7e484c1309ee332e602c5fae0621ab02437cedcab37963
7
- data.tar.gz: 9110f871c9a3b5aaf61fd08548cb03447cf63a473d53ae448de73fcb627d7c78ddffef58a82f4ae73a309d2f784e9bc255ea74eb9463f8f19fa89570324f1ad8
6
+ metadata.gz: 7874aa0794c7f9a005a630ec37282af64940e1d78750cd16d6e978902ecf3ea27303a9c99679db37861dff38f6edd28ced9db690f5013937a43dc503bd86dd2f
7
+ data.tar.gz: 916b47d21be438a82c41e74795f30800d8c854c48278cb540ecc2c4354f091f96f55f54b598df2f03119e9e2d7fa71af19083765f55d86bb3e74a8c4a319e68d
@@ -17,8 +17,12 @@ module Ossy
17
17
  def call(repo:, tag:)
18
18
  result = client.tagger(repo: repo, tag: tag)
19
19
 
20
- if result && result[:verified].equal?(true)
21
- puts result[:tagger]["name"]
20
+ return unless result
21
+
22
+ tagger = result[:tagger]
23
+
24
+ if tagger["email"].include?("users.noreply.github.com") || result[:verified].equal?(true)
25
+ puts tagger["name"]
22
26
  end
23
27
  end
24
28
  end
@@ -75,7 +75,7 @@ module Ossy
75
75
 
76
76
  def http
77
77
  @http ||= Faraday.new(url: BASE_URL, headers: headers) do |conn|
78
- conn.basic_auth(settings.github_login, settings.github_token)
78
+ conn.request(:basic_auth, settings.github_login, settings.github_token)
79
79
  end
80
80
  end
81
81
 
data/lib/ossy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ossy
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ossy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-23 00:00:00.000000000 Z
11
+ date: 2022-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -64,6 +64,26 @@ dependencies:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: '1.2'
67
+ - !ruby/object:Gem::Dependency
68
+ name: dry-configurable
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '0.12'
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: '0.13'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '0.12'
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: '0.13'
67
87
  - !ruby/object:Gem::Dependency
68
88
  name: dry-system
69
89
  requirement: !ruby/object:Gem::Requirement
@@ -234,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
254
  - !ruby/object:Gem::Version
235
255
  version: '0'
236
256
  requirements: []
237
- rubygems_version: 3.2.15
257
+ rubygems_version: 3.2.32
238
258
  signing_key:
239
259
  specification_version: 4
240
260
  summary: Ossy is your ruby gem maintenance helper