gurney_client 0.2.1 → 0.2.3

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: 3a6cb4778c8a278c1d91a6eb42c2757b841f830742f760e289d140ca0a8fa67a
4
- data.tar.gz: 995c92b582f0b49baa15042fadbc0bec9a3b3c2013ec0610a7f268785de60655
3
+ metadata.gz: 504e192b04318e2d0d3ec9ae31124c0c83260778a671b52499971b67d5f1a02b
4
+ data.tar.gz: d0d867c6bd5a395e187a11852e53eb6851a0d6f3af696da4d83ed107750c3f02
5
5
  SHA512:
6
- metadata.gz: 5dd8b763b8ba1e0a79edaad6bca1ab43b40dc54cfbb1a16648dc020d5ffd2067d529fef5903144c54c12d3ca7018cf540b58ea34ea86e5d9c4a201fd8ee35db6
7
- data.tar.gz: 3c910d5fb6ce83e570bd267bcb4a31399c18096f0839090b611f5d3bb8049a58fb29930cd8319acc8e07a837d7355dedac248fa3f8f09cea785d8288734ffed7
6
+ metadata.gz: '08062d7c33bbdabf112dcb62cc329f2e5ccb2ca9d3a1b0c6356616f47c8384f1ce0c8c317f065ec654a7ac82d574d96caf66b13ff3f110c5eefe2322293971eb'
7
+ data.tar.gz: f4249eee93c6096dfd29eb1f7ff75e656604fad010ec349d3ec6ac86cc999232e2a8a8ae0b3ef83af04698473e0530fb0fc44892de8b77b21b8b29f030133a9d
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Gurney changelog
2
+
3
+ ## 0.2.3 (2023-05-24)
4
+
5
+ * Added: Suppress Bundler's "the Bundler version is older than the one in the lockfile" warning.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gurney_client (0.2.1)
4
+ gurney_client (0.2.3)
5
5
  bundler (< 3)
6
6
  colorize (~> 0.8)
7
7
  git (~> 1.5)
@@ -10,18 +10,22 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
+ addressable (2.8.4)
14
+ public_suffix (>= 2.0.2, < 6.0)
13
15
  byebug (11.0.1)
14
16
  colorize (0.8.1)
15
17
  diff-lcs (1.3)
16
- git (1.7.0)
18
+ git (1.18.0)
19
+ addressable (~> 2.8)
17
20
  rchardet (~> 1.8)
18
21
  httparty (0.17.3)
19
22
  mime-types (~> 3.0)
20
23
  multi_xml (>= 0.5.2)
21
- mime-types (3.3.1)
24
+ mime-types (3.4.1)
22
25
  mime-types-data (~> 3.2015)
23
- mime-types-data (3.2020.0512)
26
+ mime-types-data (3.2023.0218.1)
24
27
  multi_xml (0.6.0)
28
+ public_suffix (5.0.1)
25
29
  rake (13.0.1)
26
30
  rchardet (1.8.0)
27
31
  rspec (3.9.0)
@@ -48,4 +52,4 @@ DEPENDENCIES
48
52
  rspec
49
53
 
50
54
  BUNDLED WITH
51
- 2.1.4
55
+ 2.2.27
data/gurney.gemspec CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = 'Gurney is a small tool to extract yarn and RubyGems dependencies from project files and report them to a web api.'
12
12
  spec.homepage = "https://github.com/makandra/gurney"
13
13
  spec.license = "MIT"
14
+ spec.metadata = { 'rubygems_mfa_required' => 'true' }
14
15
 
15
16
  spec.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|spec|features|bin)/}) }
16
17
  spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
data/lib/gurney/cli.rb CHANGED
@@ -7,9 +7,9 @@ require 'fileutils'
7
7
 
8
8
  module Gurney
9
9
  class CLI
10
-
11
10
  HOOK_STDIN_REGEX = /(?<old>[0-9a-f]{40}) (?<new>[0-9a-f]{40}) refs\/heads\/(?<ref>\w+)/m
12
11
  CLIENT_HOOK_STDIN_REGEX = /refs\/heads\/(?<ref>\w+) (?<new>[0-9a-f]{40}) refs\/heads\/(?<remote_ref>\w+) (?<remote_sha>[0-9a-f]{40})/m
12
+ MAIN_BRANCHES = ['master', 'main'].freeze
13
13
 
14
14
  def self.run(cmd_parameter=[])
15
15
  options = Gurney::CLI::OptionParser.parse(cmd_parameter)
@@ -23,7 +23,10 @@ module Gurney
23
23
  end
24
24
  g = Git.open('.')
25
25
  end
26
- config_file = read_file(g, options.hook, 'master', options.config_file)
26
+ config_file = MAIN_BRANCHES.find do |branch|
27
+ file = read_file(g, options.hook, branch, options.config_file)
28
+ break file if file
29
+ end
27
30
  if !config_file && options.hook
28
31
  # dont run as a hook with no config
29
32
  exit 0
@@ -1,5 +1,7 @@
1
1
  require 'bundler'
2
2
 
3
+ Bundler.ui.level = 'error'
4
+
3
5
  module Gurney
4
6
  module Source
5
7
  class Bundler < Base
@@ -1,3 +1,3 @@
1
1
  module Gurney
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gurney_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Schaflitzl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -77,6 +77,7 @@ files:
77
77
  - ".gitignore"
78
78
  - ".rspec"
79
79
  - ".ruby-version"
80
+ - CHANGELOG.md
80
81
  - Gemfile
81
82
  - Gemfile.lock
82
83
  - LICENSE.txt
@@ -100,7 +101,8 @@ files:
100
101
  homepage: https://github.com/makandra/gurney
101
102
  licenses:
102
103
  - MIT
103
- metadata: {}
104
+ metadata:
105
+ rubygems_mfa_required: 'true'
104
106
  post_install_message:
105
107
  rdoc_options: []
106
108
  require_paths:
@@ -116,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
118
  - !ruby/object:Gem::Version
117
119
  version: '0'
118
120
  requirements: []
119
- rubygems_version: 3.0.3
121
+ rubygems_version: 3.0.3.1
120
122
  signing_key:
121
123
  specification_version: 4
122
124
  summary: Gurney is a small tool to extract yarn and RubyGems dependencies from project