cartage 2.1 → 2.2

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
- SHA1:
3
- metadata.gz: 917038345215ec704cfda8af3112c1e0bc2c98a0
4
- data.tar.gz: af1617b95d9f8e1bdfdc184a3f58402bb1459281
2
+ SHA256:
3
+ metadata.gz: cb73021d6ab3ae633fdd0a8cffe25031efe66a5afbfe3692a1673cfcb4a9648d
4
+ data.tar.gz: eee22a154055487b627a3be7d6f55bedc3433a277a58ca72343fa4d83e1652a8
5
5
  SHA512:
6
- metadata.gz: 34061d77b8635fa5bd7cf55b082d7d6f464111d61b1887ec2c08b7a36df07e86a6a0a63ab6803e5b8d722e40d045355ea41dacfea8bd9dad6dd328ae4a0408b9
7
- data.tar.gz: b93a1abb24bc2e038c036231bd0f578c139603a998b2b81147466511020d0e653723453551bdac2015208f43e07af23299779fb3e99c5b9e2b2f55d6ed7322df
6
+ metadata.gz: 61b8728050a6ee98eb2b14da2592518a75d917640bf7571bdff89b4319ae7f4a7c69362be6d57565866ee36b3bd8501a31b287ce688314562bd2b26be4d3122b
7
+ data.tar.gz: a24df7da5afc14c1d6557a4493b12e7889792361656b71aae15ec4d4015ecf8eb9d82de1beffeacf5ccff24a870ea96a7bc06e84b984fe5348588a24db37ad4f
@@ -15,6 +15,7 @@ lib/cartage/cli.rb
15
15
  lib/cartage/commands/echo.rb
16
16
  lib/cartage/commands/info.rb
17
17
  lib/cartage/commands/manifest.rb
18
+ lib/cartage/commands/metadata.rb
18
19
  lib/cartage/commands/pack.rb
19
20
  lib/cartage/config.rb
20
21
  lib/cartage/core.rb
@@ -3,7 +3,6 @@
3
3
  code :: https://github.com/KineticCafe/cartage/
4
4
  issues :: https://github.com/KineticCafe/cartage/issues
5
5
  docs :: http://www.rubydoc.info/github/KineticCafe/cartage/master
6
- continuous integration :: {<img src="https://travis-ci.org/KineticCafe/cartage.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/KineticCafe/cartage]
7
6
 
8
7
  == Description
9
8
 
@@ -14,6 +13,11 @@ dependencies so that it can be deployed in environments with strict access
14
13
  control rules and without requiring development tool presence on the target
15
14
  server(s).
16
15
 
16
+ This repository will see minimal development moving forward given the move
17
+ toward Docker builders and deploys; it is likely that the only thing that will
18
+ eventually result from this repository is the new `cartage manifest` command
19
+ that satisfies `cartage-rack`.
20
+
17
21
  === Overview
18
22
 
19
23
  Cartage has learned its tricks from Heroku’s build process, Capistrano
@@ -117,7 +121,7 @@ Cartage offers advantages over Pkgr:
117
121
  * Cartage offers plug-in based extensions. Support for remote builds
118
122
  (+cartage-remote+), uploads to S3 (+cartage-s3+), and bundler
119
123
  (+cartage-bundler+) already exist and new plug-ins are not hard to add
120
- (+cartage-npm+ is in development).
124
+ (+cartage-npm+ is in development).
121
125
 
122
126
  * Cartage offers more accessible information about *what* was built into the
123
127
  release package. There is a Rack application (+cartage-rack+) that will
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ spec = Hoe.spec 'cartage' do
25
25
 
26
26
  extra_deps << ['gli', '~> 2.13']
27
27
 
28
- extra_dev_deps << ['rake', '>= 10.0', '< 12.0']
28
+ extra_dev_deps << ['rake', '>= 10.0']
29
29
  extra_dev_deps << ['rdoc', '~> 4.2']
30
30
  extra_dev_deps << ['hoe-doofus', '~> 1.0']
31
31
  extra_dev_deps << ['hoe-gemspec2', '~> 1.1']
@@ -10,7 +10,7 @@ require 'cartage/config'
10
10
  ##
11
11
  # Cartage, a reliable package builder.
12
12
  class Cartage
13
- VERSION = '2.1' #:nodoc:
13
+ VERSION = '2.2' #:nodoc:
14
14
 
15
15
  # Creates a new Cartage instance. If provided a Cartage::Config object in
16
16
  # +config+, sets the configuration and resolves it. If +config+ is not
@@ -274,6 +274,19 @@ class Cartage
274
274
  request_build_package
275
275
  end
276
276
 
277
+ # Just save the release metadata.
278
+ def save_release_metadata(local: false)
279
+ display 'Saving release metadata...'
280
+ json = JSON.generate(release_metadata)
281
+
282
+ if local
283
+ Pathname('.').join('release-metadata.json').write(json)
284
+ else
285
+ work_path.join('release-metadata.json').write(json)
286
+ final_release_metadata_json.write(json)
287
+ end
288
+ end
289
+
277
290
  # Returns the flag to use with +tar+ given the value of +compression+.
278
291
  def tar_compression_flag
279
292
  case compression
@@ -444,13 +457,6 @@ class Cartage
444
457
  end
445
458
  end
446
459
 
447
- def save_release_metadata
448
- display 'Saving release metadata...'
449
- json = JSON.generate(release_metadata)
450
- work_path.join('release-metadata.json').write(json)
451
- final_release_metadata_json.write(json)
452
- end
453
-
454
460
  def restore_modified_files
455
461
  %x(git status -s).
456
462
  split($/).
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ Cartage::CLI.extend do
4
+ desc 'Create a release_metadata.json file in the current directory.'
5
+ command %w(metadata) do |metadata|
6
+ metadata.action do |_global, _options, _args|
7
+ cartage.save_release_metadata(local: true)
8
+ end
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartage
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.1'
4
+ version: '2.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-16 00:00:00.000000000 Z
12
+ date: 2020-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gli
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '5.10'
34
+ version: '5.14'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '5.10'
41
+ version: '5.14'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -46,9 +46,6 @@ dependencies:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '10.0'
49
- - - "<"
50
- - !ruby/object:Gem::Version
51
- version: '12.0'
52
49
  type: :development
53
50
  prerelease: false
54
51
  version_requirements: !ruby/object:Gem::Requirement
@@ -56,9 +53,6 @@ dependencies:
56
53
  - - ">="
57
54
  - !ruby/object:Gem::Version
58
55
  version: '10.0'
59
- - - "<"
60
- - !ruby/object:Gem::Version
61
- version: '12.0'
62
56
  - !ruby/object:Gem::Dependency
63
57
  name: rdoc
64
58
  requirement: !ruby/object:Gem::Requirement
@@ -233,14 +227,14 @@ dependencies:
233
227
  requirements:
234
228
  - - "~>"
235
229
  - !ruby/object:Gem::Version
236
- version: '3.16'
230
+ version: '3.22'
237
231
  type: :development
238
232
  prerelease: false
239
233
  version_requirements: !ruby/object:Gem::Requirement
240
234
  requirements:
241
235
  - - "~>"
242
236
  - !ruby/object:Gem::Version
243
- version: '3.16'
237
+ version: '3.22'
244
238
  description: |-
245
239
  Cartage provides a repeatable means to create a package for a server-side
246
240
  application that can be used in deployment with a configuration tool like
@@ -248,6 +242,11 @@ description: |-
248
242
  dependencies so that it can be deployed in environments with strict access
249
243
  control rules and without requiring development tool presence on the target
250
244
  server(s).
245
+
246
+ This repository will see minimal development moving forward given the move
247
+ toward Docker builders and deploys; it is likely that the only thing that will
248
+ eventually result from this repository is the new `cartage manifest` command
249
+ that satisfies `cartage-rack`.
251
250
  email:
252
251
  - aziegler@kineticcafe.com
253
252
  - dev@kineticcafe.com
@@ -281,6 +280,7 @@ files:
281
280
  - lib/cartage/commands/echo.rb
282
281
  - lib/cartage/commands/info.rb
283
282
  - lib/cartage/commands/manifest.rb
283
+ - lib/cartage/commands/metadata.rb
284
284
  - lib/cartage/commands/pack.rb
285
285
  - lib/cartage/config.rb
286
286
  - lib/cartage/core.rb
@@ -299,7 +299,9 @@ files:
299
299
  homepage: https://github.com/KineticCafe/cartage/
300
300
  licenses:
301
301
  - MIT
302
- metadata: {}
302
+ metadata:
303
+ source_code_uri: https://github.com/KineticCafe/cartage/
304
+ documentation_uri: http://www.rubydoc.info/github/KineticCafe/cartage/master
303
305
  post_install_message:
304
306
  rdoc_options:
305
307
  - "--main"
@@ -317,8 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
317
319
  - !ruby/object:Gem::Version
318
320
  version: '0'
319
321
  requirements: []
320
- rubyforge_project:
321
- rubygems_version: 2.5.1
322
+ rubygems_version: 3.0.3
322
323
  signing_key:
323
324
  specification_version: 4
324
325
  summary: Cartage provides a repeatable means to create a package for a server-side