ruby_ci 0.2.11 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_ci/version.rb +1 -1
- data/lib/ruby_ci.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a36f45010afe78e1120ea778e05be64be81a1b1bf481c8303f09c3bfd2da762
|
4
|
+
data.tar.gz: d931209ad951abf2afe8a23783f96b4762810d92f96bd7bef9fb692fc5995565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 302c63dca0fbeca524cbfcd99777a86426783ec2bf22008ee0835b54cd58d57ea95a8618f27eec85eddbc4b3a3571d32b443caa404371c93e7f3c23106f659c0
|
7
|
+
data.tar.gz: 673b0bfef308efec1d92a9d47cba1be6fe4f23ffd1812368a83d2e03249cf5ab2ae8a6ec717682a573c84de702a67da8d5ae63a586ee678ff08e794a0527a9ee
|
data/lib/ruby_ci/version.rb
CHANGED
data/lib/ruby_ci.rb
CHANGED
@@ -72,8 +72,18 @@ module RubyCI
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def send_events(data)
|
75
|
+
reset_webmock = false
|
76
|
+
if defined?(WebMock)
|
77
|
+
reset_webmock = !WebMock.net_connect_allowed?
|
78
|
+
WebMock.allow_net_connect!
|
79
|
+
end
|
80
|
+
|
75
81
|
uri = URI("#{RubyCI.configuration.rubyci_main_url}/api/v1/gitlab_events")
|
76
82
|
res = Net::HTTP.post_form(uri, data)
|
83
|
+
|
84
|
+
if reset_webmock
|
85
|
+
WebMock.disable_net_connect!
|
86
|
+
end
|
77
87
|
end
|
78
88
|
end
|
79
89
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ale ∴
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: console
|