chive 0.1.0 → 0.1.1

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: 05000ba5203c4b92f33470a853d4868594ef87e461f0cad2fb976cc9f64ca130
4
- data.tar.gz: fefb45d0d3f7eb5d58e1c6bb3ae82d2497d28edf5f6f53c723dbff9c6b69939a
3
+ metadata.gz: 5518cd19d73a5810f596e2133cc1d7c24c805a5aa527bcf9d140cb4d6d5a5905
4
+ data.tar.gz: d68b9899479eeb673d6f11fb9c425dba4e44a817872ae34902ac9dbaf48457c8
5
5
  SHA512:
6
- metadata.gz: f7954067fff93abdc8c26c83bf4a085e52d615eb4a3183d9be6ca2d6c96811204864b649fe4bfa3526e4a4d826a2dcf678f6efdee8f9bfa4cea29a17fa9b4174
7
- data.tar.gz: bbe4b4954461d2a7730013ed724bef8b8fa32967ce18977523f595164d899710800132281b130a9e9555914eca431a094a895fe4083e703c173d6382d70b2324
6
+ metadata.gz: da2b3bf280731a66918d42d16289c03c4c0980e3de78bf9cb16e337a0d4de22f81b1db6460128ebe21ed234a4b927ee1f860830a558e08f2f21f370d487fdd4b
7
+ data.tar.gz: 40369e984d1fe8e2cc4295cb5170d2ac2c20985e72b71200610bd7b49f5ea1dd56c9b26759c3044365de42d4ba05f404868c52f72eb2d5cd53be330aec748685
data/lib/chive/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chive
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -0,0 +1,5 @@
1
+ class AddNameTo<%= user.pluralize %> < ActiveRecord::Migration[6.0]
2
+ def change
3
+ add_column :<%= user.downcase.pluralize %>, :name, :string, null: false, index: true
4
+ end
5
+ end
@@ -0,0 +1,22 @@
1
+ # Use this hook to configure Chive.
2
+ # Be sure to restart your server when you modify this file.
3
+ #
4
+ Chive.setup do |config|
5
+ # The model for the user.
6
+ # config.user_model = 'User'
7
+
8
+ # The user model's primary key.
9
+ # config.user_pk_attr = 'id'
10
+
11
+ # The user name attribute in the user model.
12
+ # config.user_name_attr = 'name'
13
+
14
+ # If the main app uses Devise, set this attribute to `true` for quick and
15
+ # easy user authentication. The `Chive.user_model` attribute should use the
16
+ # same model as Devise.
17
+ # config.use_devise = false
18
+ <% if options[:devise] %>config.use_devise = true
19
+ <% end %>
20
+ # The layout to use for public pages
21
+ # config.public_layout = 'chive/application'
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder
@@ -184,6 +184,8 @@ files:
184
184
  - lib/generators/chive/seeds_generator.rb
185
185
  - lib/generators/chive/views_generator.rb
186
186
  - lib/tasks/chive_tasks.rake
187
+ - templates/add_name_to_devise.rb.tt
188
+ - templates/chive.rb.tt
187
189
  homepage: https://castwide.com
188
190
  licenses:
189
191
  - MIT