teapot 3.5.2 → 3.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/teapot/command/fetch.rb +10 -2
- data/lib/teapot/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b04440536c596d23f4366487b76b954e6c10a6acc7a4371ca2d3dc158a3b78c
|
4
|
+
data.tar.gz: 99bda0d60b0e24fde2dd01f2a50b793173970de35c99483745e304b961dafd43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3fd801e262145f214df86c5a59b33bffee8a884279a5d35df832f0831567e3cad1566bf00c02d99e999c2fd44698cacb13d071a212eb1fe51aa8e4a74e85ba0
|
7
|
+
data.tar.gz: a089693d16dee80e067096f7c58bf352a7bae602a2ba54e8c6ada092709db235f273ff957553ad882d75bc77dc0f2532f1288fc4e9ef770290a4245f5f109734
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/teapot/command/fetch.rb
CHANGED
@@ -122,7 +122,15 @@ module Teapot
|
|
122
122
|
# We should prompt for username/password if required...
|
123
123
|
return Rugged::Credentials::SshKeyFromAgent.new(username: username)
|
124
124
|
end
|
125
|
-
|
125
|
+
|
126
|
+
def modified?(repository)
|
127
|
+
repository.status do |path, status|
|
128
|
+
return true if status != [:ignored]
|
129
|
+
end
|
130
|
+
|
131
|
+
return false
|
132
|
+
end
|
133
|
+
|
126
134
|
def clone_or_pull_package(context, configuration, package, package_lock, logger)
|
127
135
|
logger.info "Processing #{package}..." #.color(:cyan)
|
128
136
|
|
@@ -150,7 +158,7 @@ module Teapot
|
|
150
158
|
repository = Rugged::Repository.new(destination_path.to_s)
|
151
159
|
|
152
160
|
# Are there uncommitted changes in the work tree?
|
153
|
-
if repository
|
161
|
+
if modified?(repository)
|
154
162
|
raise FetchError.new(package, "Uncommited local modifications")
|
155
163
|
end
|
156
164
|
|
data/lib/teapot/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teapot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
38
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
39
|
-----END CERTIFICATE-----
|
40
|
-
date: 2023-04-
|
40
|
+
date: 2023-04-23 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: build
|
metadata.gz.sig
CHANGED
Binary file
|