teapot 3.4.1 → 3.5.0

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: f779e4e27a0d19b422632230261b5d29fdfb62e3ff31e97b8a8a0b2a4379cf04
4
- data.tar.gz: 904de0c35db0b9389e3eb40e21e7637cad7a34d4c1fcd2445f3eb78a8416f8fc
3
+ metadata.gz: d58b6f1be99cfff7bcaa495193453f704e8b01a5285f15c22fec6ea2e05aa918
4
+ data.tar.gz: 753c3a24cb73ab459af7b200914a58624c668eaa59bc343b10a3b0ac3a307535
5
5
  SHA512:
6
- metadata.gz: bc18b84d78ed7cfe6593807eca80edcf6bfcd2baa7b7e29dad39a49339a5e87567ebeaee2c1cb491b2827814fe346d0e2d0ea031ddb63932822bac35f587477c
7
- data.tar.gz: 9f4a2bed38fa4498c4d1437596b244232ad4c56a9ca6d4db92558a5c14e182c9b8ad875fdb20439e8cc7fb5846b8cde829759137a46c5a31acf99b07ac343a76
6
+ metadata.gz: 607c931ec0e01cc6b5c79a14cda5bb99d7bef7710a61357ccaef1a9c73f6f26e5ada13654bff11c0c7335993b41dd998f3879ec881c2a45578ea3354a33d4469
7
+ data.tar.gz: e25dcade6d83f87e70ac24ee83c79857c9cb718f0d1a5c82334550be027cf1ab0fadb9ca07b25608899fe46e1481a472758bc73052f41bf3e7f535ee0ae74e8b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -135,7 +135,7 @@ module Teapot
135
135
  base_uri = URI "file://" + File.expand_path(base_uri.path, context.root) + "/"
136
136
  end
137
137
 
138
- branch_name = package.options.fetch(:branch, 'master')
138
+ branch_name = package.options[:branch]
139
139
 
140
140
  if package_lock
141
141
  logger.info "Package locked to commit: #{package_lock[:branch]}/#{package_lock[:commit]}"
@@ -145,7 +145,7 @@ module Teapot
145
145
  end
146
146
 
147
147
  if destination_path.exist?
148
- logger.info "Updating package at path #{destination_path}..." #.color(:cyan)
148
+ logger.info "Updating package at path #{destination_path}..."
149
149
 
150
150
  repository = Rugged::Repository.new(destination_path.to_s)
151
151
 
@@ -155,7 +155,7 @@ module Teapot
155
155
  end
156
156
 
157
157
  repository.fetch('origin', credentials: self.method(:credentials))
158
- repository.checkout(branch_name)
158
+ repository.checkout(branch_name) if branch_name
159
159
 
160
160
  # Essentially implement git pull:
161
161
  if commit_id
@@ -35,11 +35,11 @@ module Teapot
35
35
 
36
36
  super
37
37
  end
38
-
39
- def pretty_print(pp)
40
- pp.text self.inspect
38
+
39
+ def inspect
40
+ "\#<#{self.class.name} #{@name}>"
41
41
  end
42
-
42
+
43
43
  # The context in which the definition was loaded:
44
44
  attr :context
45
45
 
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Teapot
22
- VERSION = "3.4.1"
22
+ VERSION = "3.5.0"
23
23
  end
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.4.1
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -36,7 +36,7 @@ cert_chain:
36
36
  RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
37
37
  HiLJ8VOFx6w=
38
38
  -----END CERTIFICATE-----
39
- date: 2022-05-23 00:00:00.000000000 Z
39
+ date: 2022-07-25 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: build
metadata.gz.sig CHANGED
Binary file