teapot 3.4.0 → 3.4.1

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: 9ddf54a5f033a10d5fc574f0222df4cb5f567416d4d279d0a272052527eacfad
4
- data.tar.gz: 147d1d9e73c9fd945cdc3d64beba318b2f660aa2aabd974ac3dd9ec487455cc5
3
+ metadata.gz: f779e4e27a0d19b422632230261b5d29fdfb62e3ff31e97b8a8a0b2a4379cf04
4
+ data.tar.gz: 904de0c35db0b9389e3eb40e21e7637cad7a34d4c1fcd2445f3eb78a8416f8fc
5
5
  SHA512:
6
- metadata.gz: e394f73f673ac474050f75fbbe2d8a9a2f3eaf381c49b5f928814deb6ec7d32fae0143155025d06da768dad39eadaa39bb7ee7ad89e3588a13f20205b34a9c80
7
- data.tar.gz: bc7f8a41f4b8ded58880e777cb3f412245a198885f9cc0002ed43944673956d03c98fbe5c4cb3bd11902b131547e3135ac3537e54233ff0892a2c5a19591b60a
6
+ metadata.gz: bc18b84d78ed7cfe6593807eca80edcf6bfcd2baa7b7e29dad39a49339a5e87567ebeaee2c1cb491b2827814fe346d0e2d0ea031ddb63932822bac35f587477c
7
+ data.tar.gz: 9f4a2bed38fa4498c4d1437596b244232ad4c56a9ca6d4db92558a5c14e182c9b8ad875fdb20439e8cc7fb5846b8cde829759137a46c5a31acf99b07ac343a76
checksums.yaml.gz.sig ADDED
Binary file
@@ -49,14 +49,14 @@ module Teapot
49
49
  begin
50
50
  script = context.load(package)
51
51
  definitions = script.defined
52
-
52
+
53
53
  definitions.each do |definition|
54
54
  terminal.puts "\t#{definition}", style: :definition
55
-
55
+
56
56
  definition.description.each_line do |line|
57
57
  terminal.puts "\t\t#{line.chomp}", style: :description
58
58
  end if definition.description
59
-
59
+
60
60
  case definition
61
61
  when Project
62
62
  terminal.puts "\t\t- Summary: #{definition.summary}" if definition.summary
@@ -72,7 +72,7 @@ module Teapot
72
72
  definition.dependencies.each do |dependency|
73
73
  terminal.puts "\t\t- #{dependency}", style: :dependency
74
74
  end
75
-
75
+
76
76
  definition.provisions.each do |name, provision|
77
77
  terminal.puts "\t\t- #{provision}", style: :provision
78
78
  end
@@ -80,7 +80,7 @@ module Teapot
80
80
  definition.packages.each do |package|
81
81
  terminal.puts "\t\t- #{package}", style: :package
82
82
  end
83
-
83
+
84
84
  definition.imports.select(&:explicit).each do |import|
85
85
  terminal.puts "\t\t- import #{import.name}", style: :import
86
86
  end
data/lib/teapot/loader.rb CHANGED
@@ -97,8 +97,8 @@ module Teapot
97
97
 
98
98
  alias required_version teapot_version
99
99
 
100
- def define_project(*args)
101
- project = Project.new(@context, @package, *args)
100
+ def define_project(*arguments, **options)
101
+ project = Project.new(@context, @package, *arguments, **options)
102
102
 
103
103
  yield project
104
104
 
@@ -106,8 +106,8 @@ module Teapot
106
106
  @defined << project
107
107
  end
108
108
 
109
- def define_target(*args)
110
- target = Target.new(@context, @package, *args)
109
+ def define_target(*arguments, **options)
110
+ target = Target.new(@context, @package, *arguments, **options)
111
111
 
112
112
  yield target
113
113
 
@@ -116,8 +116,8 @@ module Teapot
116
116
  @defined << target
117
117
  end
118
118
 
119
- def define_configuration(*args)
120
- configuration = Configuration.new(@context, @package, *args)
119
+ def define_configuration(*arguments, **options)
120
+ configuration = Configuration.new(@context, @package, *arguments, **options)
121
121
 
122
122
  yield configuration
123
123
 
@@ -127,11 +127,11 @@ module Teapot
127
127
  end
128
128
 
129
129
  # Checks the host patterns and executes the block if they match.
130
- def host(*args, &block)
130
+ def host(*arguments, **options, &block)
131
131
  name = @context.options[:host_platform] || RUBY_PLATFORM
132
132
 
133
133
  if block_given?
134
- if args.find{|arg| arg === name}
134
+ if arguments.find{|argument| argument === name}
135
135
  yield
136
136
  end
137
137
  else
data/lib/teapot/select.rb CHANGED
@@ -42,7 +42,7 @@ module Teapot
42
42
  class Select
43
43
  def initialize(context, configuration, names = [])
44
44
  @context = context
45
- @configuration = Configuration.new(context, configuration.package, configuration.name, [], configuration.options)
45
+ @configuration = Configuration.new(context, configuration.package, configuration.name, [], **configuration.options)
46
46
 
47
47
  @targets = {}
48
48
  @configurations = {}
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Teapot
22
- VERSION = "3.4.0"
22
+ VERSION = "3.4.1"
23
23
  end
data.tar.gz.sig ADDED
Binary file
metadata CHANGED
@@ -1,99 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teapot
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2020-06-08 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEhDCCAuygAwIBAgIBATANBgkqhkiG9w0BAQsFADA3MTUwMwYDVQQDDCxzYW11
14
+ ZWwud2lsbGlhbXMvREM9b3Jpb250cmFuc2Zlci9EQz1jby9EQz1uejAeFw0yMTA4
15
+ MTYwNjMzNDRaFw0yMjA4MTYwNjMzNDRaMDcxNTAzBgNVBAMMLHNhbXVlbC53aWxs
16
+ aWFtcy9EQz1vcmlvbnRyYW5zZmVyL0RDPWNvL0RDPW56MIIBojANBgkqhkiG9w0B
17
+ AQEFAAOCAY8AMIIBigKCAYEAyXLSS/cw+fXJ5e7hi+U/TeChPWeYdwJojDsFY1xr
18
+ xvtqbTTL8gbLHz5LW3QD2nfwCv3qTlw0qI3Ie7a9VMJMbSvgVEGEfQirqIgJXWMj
19
+ eNMDgKsMJtC7u/43abRKx7TCURW3iWyR19NRngsJJmaR51yGGGm2Kfsr+JtKKLtL
20
+ L188Wm3f13KAx7QJU8qyuBnj1/gWem076hzdA7xi1DbrZrch9GCRz62xymJlrJHn
21
+ 9iZEZ7AxrS7vokhMlzSr/XMUihx/8aFKtk+tMLClqxZSmBWIErWdicCGTULXCBNb
22
+ E/mljo4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2022-05-23 00:00:00.000000000 Z
12
40
  dependencies:
13
41
  - !ruby/object:Gem::Dependency
14
- name: graphviz
42
+ name: build
15
43
  requirement: !ruby/object:Gem::Requirement
16
44
  requirements:
17
45
  - - "~>"
18
46
  - !ruby/object:Gem::Version
19
- version: '1.0'
47
+ version: '2.4'
20
48
  type: :runtime
21
49
  prerelease: false
22
50
  version_requirements: !ruby/object:Gem::Requirement
23
51
  requirements:
24
52
  - - "~>"
25
53
  - !ruby/object:Gem::Version
26
- version: '1.0'
54
+ version: '2.4'
27
55
  - !ruby/object:Gem::Dependency
28
- name: rugged
56
+ name: build-dependency
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - "~>"
32
60
  - !ruby/object:Gem::Version
33
- version: '1.0'
61
+ version: '1.4'
34
62
  type: :runtime
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
66
  - - "~>"
39
67
  - !ruby/object:Gem::Version
40
- version: '1.0'
68
+ version: '1.4'
41
69
  - !ruby/object:Gem::Dependency
42
- name: build
70
+ name: build-environment
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: '2.4'
75
+ version: '1.10'
48
76
  type: :runtime
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: '2.4'
82
+ version: '1.10'
55
83
  - !ruby/object:Gem::Dependency
56
- name: build-environment
84
+ name: build-files
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '1.10'
89
+ version: '1.8'
62
90
  type: :runtime
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '1.10'
96
+ version: '1.8'
69
97
  - !ruby/object:Gem::Dependency
70
- name: build-files
98
+ name: build-files-monitor
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: '1.4'
103
+ version: 0.2.0
76
104
  type: :runtime
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: '1.4'
110
+ version: 0.2.0
83
111
  - !ruby/object:Gem::Dependency
84
- name: build-dependency
112
+ name: build-text
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: '1.4'
117
+ version: '1.0'
90
118
  type: :runtime
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: '1.4'
124
+ version: '1.0'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: build-uri
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +137,21 @@ dependencies:
109
137
  - !ruby/object:Gem::Version
110
138
  version: '1.0'
111
139
  - !ruby/object:Gem::Dependency
112
- name: build-text
140
+ name: console
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: graphviz
113
155
  requirement: !ruby/object:Gem::Requirement
114
156
  requirements:
115
157
  - - "~>"
@@ -137,7 +179,7 @@ dependencies:
137
179
  - !ruby/object:Gem::Version
138
180
  version: '1.2'
139
181
  - !ruby/object:Gem::Dependency
140
- name: console
182
+ name: rugged
141
183
  requirement: !ruby/object:Gem::Requirement
142
184
  requirements:
143
185
  - - "~>"
@@ -165,7 +207,7 @@ dependencies:
165
207
  - !ruby/object:Gem::Version
166
208
  version: '2.0'
167
209
  - !ruby/object:Gem::Dependency
168
- name: covered
210
+ name: bundler
169
211
  requirement: !ruby/object:Gem::Requirement
170
212
  requirements:
171
213
  - - ">="
@@ -179,7 +221,7 @@ dependencies:
179
221
  - !ruby/object:Gem::Version
180
222
  version: '0'
181
223
  - !ruby/object:Gem::Dependency
182
- name: bundler
224
+ name: covered
183
225
  requirement: !ruby/object:Gem::Requirement
184
226
  requirements:
185
227
  - - ">="
@@ -193,51 +235,40 @@ dependencies:
193
235
  - !ruby/object:Gem::Version
194
236
  version: '0'
195
237
  - !ruby/object:Gem::Dependency
196
- name: rspec
238
+ name: rake
197
239
  requirement: !ruby/object:Gem::Requirement
198
240
  requirements:
199
- - - "~>"
241
+ - - ">="
200
242
  - !ruby/object:Gem::Version
201
- version: '3.6'
243
+ version: '0'
202
244
  type: :development
203
245
  prerelease: false
204
246
  version_requirements: !ruby/object:Gem::Requirement
205
247
  requirements:
206
- - - "~>"
248
+ - - ">="
207
249
  - !ruby/object:Gem::Version
208
- version: '3.6'
250
+ version: '0'
209
251
  - !ruby/object:Gem::Dependency
210
- name: rake
252
+ name: rspec
211
253
  requirement: !ruby/object:Gem::Requirement
212
254
  requirements:
213
- - - ">="
255
+ - - "~>"
214
256
  - !ruby/object:Gem::Version
215
- version: '0'
257
+ version: '3.6'
216
258
  type: :development
217
259
  prerelease: false
218
260
  version_requirements: !ruby/object:Gem::Requirement
219
261
  requirements:
220
- - - ">="
262
+ - - "~>"
221
263
  - !ruby/object:Gem::Version
222
- version: '0'
223
- description: "\tTeapot is a tool for managing complex cross-platform builds. It provides\n\tadvanced
224
- package-based dependency management with a single configuration file\n\tper project.
225
- It can fetch, list, build, visualise and create projects, and\n\thas been designed
226
- from the ground up to support collaborative decentralised\n\tdevelopment.\n"
264
+ version: '3.6'
265
+ description:
227
266
  email:
228
- - samuel.williams@oriontransfer.co.nz
229
267
  executables:
230
268
  - teapot
231
269
  extensions: []
232
270
  extra_rdoc_files: []
233
271
  files:
234
- - ".gitignore"
235
- - ".rspec"
236
- - ".travis.yml"
237
- - Gemfile
238
- - Gemfile.local
239
- - README.md
240
- - Rakefile
241
272
  - bin/teapot
242
273
  - lib/teapot.rb
243
274
  - lib/teapot/command.rb
@@ -259,24 +290,6 @@ files:
259
290
  - lib/teapot/select.rb
260
291
  - lib/teapot/target.rb
261
292
  - lib/teapot/version.rb
262
- - materials/kurocha.png
263
- - materials/kurocha.svg
264
- - materials/teapot.png
265
- - materials/teapot.svg
266
- - spec/spec_helper.rb
267
- - spec/teapot/command/clone_spec.rb
268
- - spec/teapot/command/fetch_spec.rb
269
- - spec/teapot/command/fetch_spec/repositories/thing/README.md
270
- - spec/teapot/command/fetch_spec/repositories/thing/teapot.rb
271
- - spec/teapot/command/fetch_spec/test-project/teapot.rb
272
- - spec/teapot/command_spec.rb
273
- - spec/teapot/configuration_spec.rb
274
- - spec/teapot/configuration_spec/teapot.rb
275
- - spec/teapot/context_spec.rb
276
- - spec/teapot/context_spec/teapot.rb
277
- - spec/teapot/target_spec.rb
278
- - spec/teapot/target_spec/teapot.rb
279
- - teapot.gemspec
280
293
  homepage: http://www.teapot.nz
281
294
  licenses:
282
295
  - MIT
@@ -296,21 +309,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
309
  - !ruby/object:Gem::Version
297
310
  version: '0'
298
311
  requirements: []
299
- rubygems_version: 3.1.2
312
+ rubygems_version: 3.3.7
300
313
  signing_key:
301
314
  specification_version: 4
302
315
  summary: Teapot is a tool for managing complex cross-platform builds.
303
- test_files:
304
- - spec/spec_helper.rb
305
- - spec/teapot/command/clone_spec.rb
306
- - spec/teapot/command/fetch_spec.rb
307
- - spec/teapot/command/fetch_spec/repositories/thing/README.md
308
- - spec/teapot/command/fetch_spec/repositories/thing/teapot.rb
309
- - spec/teapot/command/fetch_spec/test-project/teapot.rb
310
- - spec/teapot/command_spec.rb
311
- - spec/teapot/configuration_spec.rb
312
- - spec/teapot/configuration_spec/teapot.rb
313
- - spec/teapot/context_spec.rb
314
- - spec/teapot/context_spec/teapot.rb
315
- - spec/teapot/target_spec.rb
316
- - spec/teapot/target_spec/teapot.rb
316
+ test_files: []
metadata.gz.sig ADDED
Binary file
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- .rspec_status
7
- Gemfile.lock
8
- InstalledFiles
9
- _yardoc
10
- coverage
11
- doc/
12
- lib/bundler/man
13
- pkg
14
- rdoc
15
- spec/reports
16
- test/tmp
17
- test/version_tmp
18
- tmp
19
-
20
- kurocha
21
- dependency.svg
data/.rspec DELETED
@@ -1,4 +0,0 @@
1
- --format documentation
2
- --backtrace
3
- --warnings
4
- --require spec_helper
data/.travis.yml DELETED
@@ -1,33 +0,0 @@
1
- language: ruby
2
- dist: xenial
3
- cache: bundler
4
-
5
- before_script:
6
- # For testing purposes:
7
- - git config --global user.email "samuel@oriontransfer.net"
8
- - git config --global user.name "Samuel Williams"
9
-
10
- matrix:
11
- include:
12
- - rvm: 2.3
13
- - rvm: 2.4
14
- - rvm: 2.5
15
- - rvm: 2.6
16
- - rvm: 2.6
17
- os: osx
18
- before_install: brew install pkgconfig zlib curl openssl libssh2 libgit2
19
- # env: RUGGED_USE_SYSTEM_LIBRARIES=y
20
- - rvm: 2.6
21
- env: COVERAGE=BriefSummary,Coveralls
22
-
23
- addons:
24
- apt:
25
- sources:
26
- - ubuntu-toolchain-r-test
27
- - llvm-toolchain-trusty-4.0
28
- packages:
29
- - clang-4.0
30
- - libc++-dev
31
- - libc++abi-dev
32
- # env:
33
- # - CC=clang-4.0 CXX=clang++-4.0
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in teapot.gemspec
4
- gemspec
data/Gemfile.local DELETED
@@ -1,23 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in teapot.gemspec
4
- gemspec
5
-
6
- group :development do
7
- gem 'pry'
8
- gem 'pry-coolline'
9
-
10
- gem 'build', path: '../build'
11
- gem 'build-environment', path: '../build-environment'
12
- gem 'build-files', path: '../build-files'
13
- gem 'build-graph', path: '../build-graph'
14
- gem 'build-makefile', path: '../build-makefile'
15
-
16
- gem 'process-daemon', path: '../process-daemon'
17
- gem 'process-group', path: '../process-group'
18
- end
19
-
20
- group :test do
21
- gem 'simplecov'
22
- gem 'coveralls', require: false
23
- end