leoandruby 0.4.1 → 0.4.2

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: b7bd276f1a286d1e2ed55f1acc4e4972bed391aeac243312f226aa6e97eb9251
4
- data.tar.gz: e9c965c2033b6dca7d372954c3ca3bdca4a0ab405cbe6b044826627181bea8ca
3
+ metadata.gz: eb6767c1a97d5a418b20ebbc533bce22461793e7cbf51518bee3fc5498f34272
4
+ data.tar.gz: f9d2d3af5773e322de06abc2ce661907a70958f076d3a76a7c826daa6ef90072
5
5
  SHA512:
6
- metadata.gz: 01110a5dccb1af703ebfa130a46b3827891e6c44772c19cfcc56298db557bf93e88bb84c3f2edd4b543b1a4dc71cbc7ac8c3adb74fc931f825c56ede1c21f48e
7
- data.tar.gz: 0e867e7615037b11722102739ab2719c33da287f0c2581230f570a7777fc68e2d750efc909ce3d36e337fe7afe9455115cf77dcaada1fffe46058ed80a26c1ee
6
+ metadata.gz: 23095e31a4ce2f824889eb13d6c9d22623082fbe734fdb25cefa44f3bb8b0cf52470425eea274150bf890e8741bd7b5bf104b2ad77d7a5e4337baab0902dbbd0
7
+ data.tar.gz: 8b7a94323c39a548cd550a25cedf5611e1a98dc604214d3229d50b6a992a741be57bcfd00b007748d6dd846b6c2b3e939feaf30d07face41613b5c95db5e184f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
+
1
2
  # Changelog
2
3
 
4
+ ## [0.4.2] - 2024-11-26
5
+
6
+ ### Fixed
7
+ - Resolved an issue where the Rails generator (`webhook_generator.rb`) was not included in the gem package, causing `LoadError` in Rails applications.
8
+
9
+ ### Added
10
+ - Updated `.gemspec` to explicitly include the `lib/generators/**/*` directory, ensuring all generator files are packaged correctly.
11
+ - Enhanced documentation for Rails generator usage and clarified the required setup steps.
12
+
13
+ ### Improved
14
+ - Added safeguards to prevent similar packaging issues in future releases by ensuring proper gemspec configuration and file verification.
15
+
16
+ ---
17
+
3
18
  ## [0.4.1] - 2024-11-26
4
19
 
5
20
  - Improved: Compatibility with Ruby 3.3.0.
@@ -11,5 +11,9 @@ module LeoAndRuby
11
11
  def add_route
12
12
  route "post '/leonardo_webhook', to: 'leonardo#webhook'"
13
13
  end
14
+
15
+ def create_initializer_file
16
+ template "leoandruby_initializer.rb", "config/initializers/leoandruby.rb"
17
+ end
14
18
  end
15
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Leoandruby
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leoandruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard HW Baldwin
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2024-11-25 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '6.0'
13
27
  description: LeoAndRuby is a Ruby gem for integrating with the Leonardo.ai API, enabling
14
28
  seamless image generation within Ruby applications. It provides a simple and intuitive
15
29
  interface for creating, managing, and retrieving AI-generated images.
@@ -46,6 +60,7 @@ metadata:
46
60
  - Supports asynchronous workflows with polling for image generation results.
47
61
  - Fully configurable with support for API keys via environment variables.
48
62
  - Easily integrates into Ruby and Rails applications.
63
+ - Webhook support with Rails generator for seamless integration.
49
64
  post_install_message:
50
65
  rdoc_options: []
51
66
  require_paths: