promptcraft 0.1.1 → 0.1.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
2
  SHA256:
3
- metadata.gz: 7759927da72f5b771061dbe0b7a465e1509728f9ced3b6ad5efc7b341c754576
4
- data.tar.gz: e4a89b721bdae7fde071f8c13aea70259bc909c35ab5c77ce82ea9091130441d
3
+ metadata.gz: 03ceb8ec85a855e2bc5fd2e23983c7a975dca780e4f449a70742c7451fc0d7f3
4
+ data.tar.gz: 937d12936d5c7349f4d3f1596c579d7b2c5065760f937e7627ac4b59db5d75fd
5
5
  SHA512:
6
- metadata.gz: 5a8eaaac272a535c1f9e8b704b05a3871fa0ca681f42657257cdc66778ad69b84a4cbd74b9ecdd0317f7b80b074d6f9b88dded966b43ec1c8a9a43d0198ee289
7
- data.tar.gz: 8fc6e1a05a7a9a16a29b48fc47dd9006a06cd487fb476e53a456d39982aad2df8242a66393c3fa7865583c315d2af17a2be569e6125f21451d01ab66c0a6ec46
6
+ metadata.gz: 36d690630e1383037a2273a3e9cf7c18914e313c36b25d3f26f00b42af63e732980011b3f19e2045a0b2b710e4023b445db3540ab78992eb74130de14d50a6bc
7
+ data.tar.gz: 9f81ce9b1e40fb93e24b85fe16ff9fabfc6d1cf93ee961e552365f6d24aaa34ab346b8a7a32ab4724feb80ac716c93ef569df1af3a4a17e3b7c688e5e0ab463c
data/README.md CHANGED
@@ -517,7 +517,11 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
517
517
  To set new version number:
518
518
 
519
519
  ```plain
520
+ gem install gem-release
520
521
  gem bump --version [patch|minor|major]
522
+ bundle install
523
+ git add Gemfile.lock; git commit --amend --no-edit
524
+ git push
521
525
  ```
522
526
 
523
527
  To tag and release Rubygem to <Rubygems.org>:
@@ -536,6 +540,13 @@ rake release:generate_homebrew_formula
536
540
 
537
541
  Now copy `tmp/promptcraft.rb` formula into <https://github.com/drnic/homebrew-ai> and push.
538
542
 
543
+ ```plain
544
+ git clone https://github.com/drnic/homebrew-ai tmp/homebrew-ai
545
+ cp tmp/promptcraft.rb tmp/homebrew-ai
546
+ ( cd tmp/homebrew-ai; git add .; gca -m "Bump promptcraft"; git push )
547
+ rm -rf tmp/homebrew-ai
548
+ ```
549
+
539
550
  ## Contributing
540
551
 
541
552
  Bug reports and pull requests are welcome on GitHub at https://github.com/drnic/promptcraft. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/drnic/promptcraft/blob/develop/CODE_OF_CONDUCT.md).
data/exe/promptcraft CHANGED
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ file_name = File.dirname(__FILE__) + "/../lib"
4
+ $LOAD_PATH.unshift(file_name) unless $LOAD_PATH.include?(file_name)
5
+
3
6
  require "promptcraft"
4
7
 
5
8
  cmd = Promptcraft::Cli::RunCommand.new
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Promptcraft
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -45,13 +45,16 @@ namespace :release do
45
45
  url "#{url}"
46
46
  sha256 "#{sha256sum}"
47
47
 
48
- depends_on "ruby@3.3"
48
+ depends_on "ruby"
49
49
 
50
50
  def install
51
+ ENV["GEM_HOME"] = libexec
52
+
51
53
  # Extract all files to libexec, which is a common Homebrew practice for third-party tools
52
54
  libexec.install Dir["*"]
53
- # Create a symbolic link for the executable in Homebrew's bin directory
54
- bin.install_symlink "\#{libexec}/exe/promptcraft" => "promptcraft"
55
+
56
+ bin.install libexec/"exe/promptcraft"
57
+ bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV.fetch("GEM_HOME"))
55
58
  end
56
59
 
57
60
  test do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promptcraft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams