pray-cli 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fa10db14b7b45fdd5152a06e02fdf4312ca40fa575529ecd7448722caea437c
4
- data.tar.gz: f53a2e0ca8b6d8a5d97a8a45903953a9b20c900864a354b8ea494e986eb9d815
3
+ metadata.gz: ba8c54da1cf4639ba4a0016efde7e912bbf02cfe144c661d477fd90426851614
4
+ data.tar.gz: 3070148557ba6c79498db6d518d499fea8ea441faaa8f88d1b576dd4d7bc78e9
5
5
  SHA512:
6
- metadata.gz: 21c44b12b0e8bf97d429491f4c32969a6700857c28b2b4b0981312dab4032279f7e52b4a4bd050984578469287554497e0ccff96a36ff6a3f99e69b97bbe1790
7
- data.tar.gz: 11b795d9454a35f763cab755f82747c4470303912ef4269dd399d0b89266ad6833cf2246462b39113acfaccc494b904eba026d0e3813709a5e62735fcb74617e
6
+ metadata.gz: 9f92760d168fa68c8fbc6e587d679419fc0f3bcdd9176ce4c975bb80f61d00aee27d924b1fae84c8a5b09faba600b41d2ddd51a36abc889ab55a5f4662440b17
7
+ data.tar.gz: 5b9d61817650e3dd24b2d214eabf6b473cd84813544c656c48163bcbb83bda17c266f3cd28306e639b7cad3b10a6523df7b6a3436626baa379c849e98827b983
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.24.0 (2026-10-26)
6
+
7
+ - Document `require "pray"` (library, no `Pray::CLI`) versus `require "pray-cli"` (library plus CLI).
8
+
5
9
  ## 1.23.0 (2026-10-26)
6
10
 
7
11
  - Leave package catalog JSON bytes alone when publish reports a version unchanged. A load and rewrite round trip no longer strips trailing newlines or reorders keys such as `artifact_hash` relative to `yanked`.
data/README.md CHANGED
@@ -28,6 +28,19 @@ bundle install
28
28
  bundle exec pray version
29
29
  ```
30
30
 
31
+ ## Library vs CLI
32
+
33
+ `require "pray"` loads the core library and does not define `Pray::CLI`.
34
+
35
+ `require "pray-cli"` (or the `pray` executable) loads the library plus CLI dispatch.
36
+
37
+ ```ruby
38
+ require "pray"
39
+
40
+ manifest = Pray.parse_manifest(File.read("Prayfile"))
41
+ project = Pray.resolve_project
42
+ ```
43
+
31
44
  ## Commands
32
45
 
33
46
  Core workflow:
data/lib/pray/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pray
4
- VERSION = "1.23.0"
5
- GENERATED_BY = "pray 1.23.0"
4
+ VERSION = "1.24.0"
5
+ GENERATED_BY = "pray 1.24.0"
6
6
  end
data/lib/pray-cli.rb CHANGED
@@ -1,4 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # CLI entry. Loads the core library plus Pray::CLI.
4
+ # Embed consumers that do not need the CLI should require "pray" instead.
5
+
3
6
  require_relative "pray"
4
7
  require_relative "pray/cli"
data/lib/pray.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Core library entry. Does not load Pray::CLI.
4
+ # CLI consumers use require "pray-cli" or the pray executable.
5
+
3
6
  require_relative "pray/version"
4
7
  require_relative "pray/error"
5
8
  require_relative "pray/literal"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pray-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
4
+ version: 1.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Makarov