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 +5 -5
- data/.pryrc +1 -1
- data/.rubocop.yml +8 -2
- data/exe/git-semaphore +5 -3
- data/lib/git/semaphore/api.rb +2 -3
- data/lib/git/semaphore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 66e9679496d1895ac17f237e08799fa1e26eb776
|
|
4
|
+
data.tar.gz: e6d767f4b935889fdbcaa4618a1c33ffa2a98e99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 218920412aff1e0ce6de298f5a6963beebd458c8441b96c9c8cbaf47fba4116789a6cfa95ae20b505f9be05d2fcd2efe52db7c60f18229e2c37f4df630b8c23e
|
|
7
|
+
data.tar.gz: 4160af4e0fc718ebe965983e5f41c9e61734e352b8363eded67550073abf2beb18319d8cf41f4a5c7ba61612eda31804572f80bb13fd7b27abc36e8d8a91da77
|
data/.pryrc
CHANGED
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('
|
|
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/
|
|
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/
|
|
73
|
+
# rubocop:enable Style/MissingRespondToMissing
|
|
74
|
+
# rubocop:enable Style/MethodMissingSuper
|
|
73
75
|
end
|
|
74
76
|
|
|
75
77
|
project = SafeProject.new(project)
|
data/lib/git/semaphore/api.rb
CHANGED
|
@@ -105,9 +105,8 @@ module Git
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
def response.json_body
|
|
108
|
-
|
|
109
|
-
|
|
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
|
|
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.
|
|
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.
|
|
134
|
+
rubygems_version: 2.5.2.3
|
|
135
135
|
signing_key:
|
|
136
136
|
specification_version: 4
|
|
137
137
|
summary: git integration with semaphoreci.com
|