Skip to content

Commit

Permalink
deps: update gems
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellberg committed Jun 6, 2024
1 parent 84f32e9 commit 691bf31
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 17 deletions.
3 changes: 1 addition & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ PATH
omniauth (~> 2.1.1)
omniauth-rails_csrf_protection (~> 1.0.1)
public_uid (~> 2.2)
rails (>= 7.1.3.2)
rqrcode (~> 2.0)

GEM
Expand Down Expand Up @@ -105,7 +104,7 @@ GEM
msgpack (~> 1.2)
brakeman (6.1.2)
racc
builder (3.2.4)
builder (3.3.0)
capybara (3.40.0)
addressable
matrix
Expand Down
2 changes: 1 addition & 1 deletion gems/kiqr/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ GEM
base64 (0.2.0)
bcrypt (3.1.20)
bigdecimal (3.1.8)
builder (3.2.4)
builder (3.3.0)
chunky_png (1.4.0)
concurrent-ruby (1.3.1)
connection_pool (2.4.1)
Expand Down
14 changes: 13 additions & 1 deletion gems/kiqr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Short description and motivation.
## Usage
How to use my plugin.

## Installation
## Custom Installation
Add this line to your application's Gemfile:

```ruby
Expand All @@ -16,6 +16,18 @@ And then execute:
$ bundle
```

Copy the migrations and default configration files from the gem to your application:

```console
bin/rails g kiqr:install
```

Run the migrations

```console
bin/rails db:migrate
```

Include the framework in your ApplicationController:

```ruby
Expand Down
13 changes: 13 additions & 0 deletions gems/kiqr/lib/generators/kiqr/install_generator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "rails/generators/base"

module Kiqr
class InstallGenerator < Rails::Generators::Base
source_root File.expand_path("templates", __dir__)

# Copy migrations to host application.
def copy_migrations
say "Copying migrations to host app..", :green
rake "kiqr_engine:install:migrations"
end
end
end
13 changes: 0 additions & 13 deletions lib/templates/rails/credentials/credentials.yml.tt

This file was deleted.

0 comments on commit 691bf31

Please sign in to comment.