git-semaphore 2.2.0 → 2.3.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
- SHA256:
3
- metadata.gz: 04e832399e5dbfcb19a7e70ff162852ca8edde0207404024b85b9e6ba22f5993
4
- data.tar.gz: 2254b33858b625230a9127793184c6e9dfecbf06afa1d2e696f4c473feae2f84
2
+ SHA1:
3
+ metadata.gz: 66e9679496d1895ac17f237e08799fa1e26eb776
4
+ data.tar.gz: e6d767f4b935889fdbcaa4618a1c33ffa2a98e99
5
5
  SHA512:
6
- metadata.gz: dbe85ef95117da76498f1c22b38b3b39a6eb65f6a5ab4484262758296571b4858c0719505c2043f65651f362041fdc20a093b2c55570456fcdae9f104f72b5ce
7
- data.tar.gz: bafc84bdc4ab86b5b6182518a7c8b95e2e29bb4f1ddce28f84da160048002a28ce21e3bc4e8c97db6f38694634bd921e3ac00636332ab3871fd2f15c227d110e
6
+ metadata.gz: 218920412aff1e0ce6de298f5a6963beebd458c8441b96c9c8cbaf47fba4116789a6cfa95ae20b505f9be05d2fcd2efe52db7c60f18229e2c37f4df630b8c23e
7
+ data.tar.gz: 4160af4e0fc718ebe965983e5f41c9e61734e352b8363eded67550073abf2beb18319d8cf41f4a5c7ba61612eda31804572f80bb13fd7b27abc36e8d8a91da77
data/.pryrc CHANGED
@@ -1,5 +1,5 @@
1
1
  # this loads all of "git-semaphore"
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path('lib', __dir__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'git/semaphore'
5
5
 
data/.rubocop.yml CHANGED
@@ -1,3 +1,7 @@
1
+ Layout/AlignHash:
2
+ Enabled: false
3
+ Layout/EmptyLineAfterGuardClause:
4
+ Enabled: false
1
5
  Layout/EmptyLinesAroundBlockBody:
2
6
  Enabled: false
3
7
  Layout/EmptyLinesAroundClassBody:
@@ -30,7 +34,9 @@ Style/FrozenStringLiteralComment:
30
34
  Enabled: false
31
35
  Style/SingleLineMethods:
32
36
  Enabled: false
33
- Style/TrailingCommaInLiteral:
34
- Enabled: false
35
37
  Style/TrailingCommaInArguments:
36
38
  Enabled: false
39
+ Style/TrailingCommaInArrayLiteral:
40
+ Enabled: false
41
+ Style/TrailingCommaInHashLiteral:
42
+ Enabled: false
data/exe/git-semaphore CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- lib = File.expand_path('../../lib', __FILE__)
3
+ lib = File.expand_path('../lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'git/semaphore'
6
6
 
@@ -51,7 +51,8 @@ project = if (git_repo = Git::Semaphore.git_repo)
51
51
  end
52
52
 
53
53
  class SafeProject
54
- # rubocop:disable Style/MethodMissing
54
+ # rubocop:disable Style/MethodMissingSuper
55
+ # rubocop:disable Style/MissingRespondToMissing
55
56
 
56
57
  def initialize(project)
57
58
  @project = project
@@ -69,7 +70,8 @@ class SafeProject
69
70
  @project.respond_to? name, include_all
70
71
  end
71
72
 
72
- # rubocop:enable Style/MethodMissing
73
+ # rubocop:enable Style/MissingRespondToMissing
74
+ # rubocop:enable Style/MethodMissingSuper
73
75
  end
74
76
 
75
77
  project = SafeProject.new(project)
@@ -105,9 +105,8 @@ module Git
105
105
  end
106
106
 
107
107
  def response.json_body
108
- unless self['content-type'].match?(%r{application/json})
109
- raise 'JSON response expected'
110
- end
108
+ raise 'JSON response expected' \
109
+ unless self['content-type'].match?(%r{application/json})
111
110
  JSON.parse(body)
112
111
  end
113
112
 
@@ -3,7 +3,7 @@ require 'rugged'
3
3
  module Git
4
4
  module Semaphore
5
5
  NAME = 'git-semaphore'.freeze
6
- VERSION = '2.2.0'.freeze
6
+ VERSION = '2.3.0'.freeze
7
7
 
8
8
  DEPENDENCY_VERSIONS = [
9
9
  "rugged v#{Rugged::VERSION}",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-semaphore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenberk
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.7.6
134
+ rubygems_version: 2.5.2.3
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: git integration with semaphoreci.com