auto_admin 0.0.2 → 0.0.3

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: 811322e95bfab754a78399d559df1cdf352ad5dd723e8b77e9554edb89c3c859
4
- data.tar.gz: 9747a68c99f1e030fcd055215c388cf74954c18989a090e40d853c27c1cfdad5
3
+ metadata.gz: 3651768f06d49fb1f319cc2035e62502e6bf37d9abe7f77e57da40f136aafbc4
4
+ data.tar.gz: a476ff6dfce2aee04d78796c19991e6fdcce5afb4834c01c2eca3440395468a0
5
5
  SHA512:
6
- metadata.gz: 898d8b41ed3e4366e19ca48674cde8f9066661ea4e2dee310fad418524e37742ee98fe28045d7515e563681294d84929f391ae48c0ae75cc16e67a52f4cfd900
7
- data.tar.gz: ad0ac714fd0b0c53c7305c6d04092a8ab2ec8a14c629b832cf00ffac1c635fdf283725a5235c46768f1f3934be9acfd217edc77a8a6fd2d486ec6d642d02fde2
6
+ metadata.gz: b54537dd0f746f9d41824b3e7b8fb7f364fb23d0f2a9e135ee38f253d6c5d8d9c13f3addf6af01ca0726c8b2d9ceb5f5c940b900a163f731aff416d3bef3fc55
7
+ data.tar.gz: 690e45adae5e438b0c7717898a7ada7e611f0d09f067aa28d06caf7d1a448e37fdf8a68549b27482878c7a1764870d3c74adc5fdf9fdfbb1ce6b6d3abfe78032
@@ -0,0 +1,14 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
5
+ // vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require turbolinks
14
+ //= require_tree .
@@ -0,0 +1,19 @@
1
+ $turquoise: #70C1B3;
2
+ $blue: #247BA0;
3
+ $green: #B2DBBF;
4
+ $yellow: #F3FFBD;
5
+ $red: #FF1654;
6
+
7
+ $primary: $turquoise;
8
+ $info: $blue;
9
+ $success: $green;
10
+ $warning: $yellow;
11
+ $danger: $red;
12
+
13
+ @import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto+Slab');
14
+
15
+ $family-sans-serif: 'Open Sans', sans-serif;
16
+ $family-serif: 'Roboto Slab', serif;
17
+ $family-primary: $family-serif;
18
+
19
+ @import "bulma";
@@ -0,0 +1,3 @@
1
+ class AutoAdmin::ApplicationController < ActionController::Base
2
+ http_basic_authenticate_with name: 'smudge', password: 'reallybadpassword123'
3
+ end
@@ -0,0 +1,13 @@
1
+ module AutoAdmin
2
+ class ResourcesController < AutoAdmin::ApplicationController
3
+ def index
4
+ @node = Node.nodes[params[:node]]
5
+ @resources = @node.klass.all
6
+ end
7
+
8
+ def show
9
+ @node = Node.nodes[params[:node]]
10
+ @resource = @node.klass.find(params[:id])
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ class AutoAdmin::RootController < AutoAdmin::ApplicationController
2
+ def index; end
3
+ end
@@ -0,0 +1,10 @@
1
+ <table class='table is-fullwidth'>
2
+ <tbody>
3
+ <% node.attributes.each do |attribute| %>
4
+ <tr>
5
+ <td><strong><%= attribute.humanize %></strong></td>
6
+ <td><%= resource.public_send(attribute) %></td>
7
+ </tr>
8
+ <% end %>
9
+ </tbody>
10
+ </table>
@@ -0,0 +1,20 @@
1
+ <table class='table is-fullwidth'>
2
+ <thead>
3
+ <tr>
4
+ <% node.attributes.each do |attr| %>
5
+ <th><%= attr.humanize %></th>
6
+ <% end %>
7
+ <th>
8
+ </tr>
9
+ </thead>
10
+ <tbody>
11
+ <% resources.limit(20).each do |resource| %>
12
+ <tr>
13
+ <% node.attributes.each do |attribute| %>
14
+ <td><%= resource.public_send(attribute).to_s.truncate(200) %></td>
15
+ <% end %>
16
+ <td><%= link_to '->', public_send("#{node.resource_name.singularize}_path", resource) %></td>
17
+ </tr>
18
+ <% end %>
19
+ </tbody>
20
+ </table>
@@ -0,0 +1,6 @@
1
+ <section class='section'>
2
+ <div class='container'>
3
+ <h5 class="title is-5"><%= @node.resource_name.titleize %></h5>
4
+ <%= render 'resources', resources: @resources, node: @node %>
5
+ </div>
6
+ </section>
@@ -0,0 +1,26 @@
1
+ <section class='section'>
2
+ <div class='container'>
3
+ <h5 class="title is-5"><%= @node.resource_name.singularize.titleize %></h5>
4
+ <%= render 'resource', resource: @resource, node: @node %>
5
+ </div>
6
+ </section>
7
+
8
+ <% @node.has_one.each do |friendship| %>
9
+ <section class='section'>
10
+ <div class='container'>
11
+ <% if (friend_resource = @resource.send(friendship.name)) %>
12
+ <h5 class="title is-5"><%= friendship.name.titleize %></h5>
13
+ <%= render 'resource', resource: friend_resource, node: friendship.node %>
14
+ <% end %>
15
+ </div>
16
+ </section>
17
+ <% end %>
18
+
19
+ <% @node.has_many.each do |child| %>
20
+ <section class='section'>
21
+ <div class='container'>
22
+ <h5 class="title is-5"><%= child.name.titleize %></h5>
23
+ <%= render 'resources', resources: @resource.send(child.name), node: child.node %>
24
+ </div>
25
+ </section>
26
+ <% end %>
@@ -0,0 +1,26 @@
1
+ <section class='section'>
2
+ <div class='container'>
3
+ <table class='table is-fullwidth'>
4
+ <thead>
5
+ <tr>
6
+ <th>Model</th>
7
+ <th>Parents</th>
8
+ <th>Children</th>
9
+ <th>Friends</th>
10
+ <th>Weight</th>
11
+ </tr>
12
+ </thead>
13
+ <tbody>
14
+ <% AutoAdmin::Node.nodes.values.sort_by { |n| [-n.weight, n.name] }.each do |node| %>
15
+ <tr>
16
+ <td><strong><%= node.to_s %></strong></td>
17
+ <td><%= node.belongs_to.count %></td>
18
+ <td><%= node.has_many.count %></td>
19
+ <td><%= node.has_one.count %></td>
20
+ <td><%= node.weight %></td>
21
+ </tr>
22
+ <% end %>
23
+ </tbody>
24
+ </table>
25
+ </div>
26
+ </section>
@@ -0,0 +1,31 @@
1
+ <% content_for(:body) do %>
2
+ <nav class='navbar is-dark' role='navigation' aria-label='main navigation'>
3
+ <div class='container'>
4
+ <div class='navbar-brand'>
5
+ <%= link_to 'AutoAdmin', root_path, class: 'navbar-item has-text-weight-bold' %>
6
+ <% AutoAdmin::Node.root_nodes.each do |node| %>
7
+ <%= link_to node.resource_name.humanize, node.polymorphic_path, class: ['navbar-item', ('is-active' if @node == node)].compact.join(' ') %>
8
+ <% end %>
9
+ </div>
10
+ </div>
11
+ </nav>
12
+ <%= yield %>
13
+ <% end %>
14
+
15
+ <!DOCTYPE html>
16
+ <html>
17
+ <head>
18
+ <title>AutoAdmin: <%= Rails.application.class.parent_name %></title>
19
+ <meta charset='utf-8'>
20
+ <meta name='viewport' content='width=device-width, initial-scale=1'>
21
+ <%= csrf_meta_tags %>
22
+ <%= csp_meta_tag if respond_to?(:csp_meta_tag) %>
23
+
24
+ <%= stylesheet_link_tag 'auto_admin/application', media: 'all', 'data-turbolinks-track': 'reload' %>
25
+ <%= javascript_include_tag 'auto_admin/application', 'data-turbolinks-track': 'reload' %>
26
+ </head>
27
+
28
+ <body>
29
+ <%= content_for(:body) %>
30
+ </body>
31
+ </html>
@@ -0,0 +1,6 @@
1
+ AutoAdmin::Engine.routes.draw do
2
+ AutoAdmin::Node.root_nodes.each do |node|
3
+ node.define_routes!(self)
4
+ end
5
+ root to: 'root#index'
6
+ end
@@ -1,3 +1,3 @@
1
1
  module AutoAdmin
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.0.3'.freeze
3
3
  end
@@ -7116,3 +7116,234 @@ Processing by AutoAdmin::ResourcesController#index as HTML
7116
7116
  Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (12.5ms)
7117
7117
  Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application (13.0ms)
7118
7118
  Completed 200 OK in 30ms (Views: 27.3ms | ActiveRecord: 0.2ms)
7119
+  (1.9ms) SELECT sqlite_version(*)
7120
+  (1.9ms) CREATE TABLE "weddings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "date" date NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7121
+  (1.2ms) CREATE TABLE "spouses" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "wedding_id" integer, "full_name" varchar NOT NULL, "nickname" varchar NOT NULL, "name_order" integer)
7122
+  (1.1ms) CREATE INDEX "index_spouses_on_wedding_id" ON "spouses" ("wedding_id")
7123
+  (1.2ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "address" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7124
+  (1.5ms) CREATE TABLE "events" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "wedding_id" integer NOT NULL, "location_id" integer NOT NULL, "name" varchar, "time" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7125
+  (1.7ms) CREATE INDEX "index_events_on_wedding_id" ON "events" ("wedding_id")
7126
+  (1.2ms) CREATE INDEX "index_events_on_location_id" ON "events" ("location_id")
7127
+  (1.3ms) CREATE TABLE "guests" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "wedding_id" integer, "full_name" varchar NOT NULL, "nickname" varchar NOT NULL, "email" varchar)
7128
+  (1.3ms) CREATE INDEX "index_guests_on_wedding_id" ON "guests" ("wedding_id")
7129
+  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7130
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
7131
+  (0.1ms) begin transaction
7132
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-31 13:01:53.705810"], ["updated_at", "2019-05-31 13:01:53.705810"]]
7133
+  (0.9ms) commit transaction
7134
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
7135
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
7136
+  (0.1ms) begin transaction
7137
+  (0.0ms) commit transaction
7138
+  (0.1ms) begin transaction
7139
+ Wedding Create (1.0ms) INSERT INTO "weddings" ("date", "created_at", "updated_at") VALUES (?, ?, ?) [["date", "2019-06-14"], ["created_at", "2019-05-31 13:01:53.843245"], ["updated_at", "2019-05-31 13:01:53.843245"]]
7140
+  (0.9ms) commit transaction
7141
+  (0.1ms) begin transaction
7142
+ Spouse Create (2.3ms) INSERT INTO "spouses" ("wedding_id", "full_name", "nickname", "name_order") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Albina Braun Windler"], ["nickname", "Albina"], ["name_order", 1]]
7143
+  (1.5ms) commit transaction
7144
+ Spouse Load (0.6ms) SELECT "spouses".* FROM "spouses" WHERE "spouses"."wedding_id" = ? ORDER BY "spouses"."name_order" ASC LIMIT ? [["wedding_id", 1], ["LIMIT", 1]]
7145
+  (0.2ms) begin transaction
7146
+ Spouse Create (0.8ms) INSERT INTO "spouses" ("wedding_id", "full_name", "nickname", "name_order") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Doug Jacobson Daniel"], ["nickname", "Doug"], ["name_order", 2]]
7147
+  (1.6ms) commit transaction
7148
+ Spouse Load (1.7ms) SELECT "spouses".* FROM "spouses" WHERE "spouses"."wedding_id" = ? ORDER BY "spouses"."name_order" DESC LIMIT ? [["wedding_id", 1], ["LIMIT", 1]]
7149
+  (0.1ms) begin transaction
7150
+ Location Create (0.9ms) INSERT INTO "locations" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Silver Grill & Tap"], ["created_at", "2019-05-31 13:01:55.784427"], ["updated_at", "2019-05-31 13:01:55.784427"]]
7151
+ Event Create (0.3ms) INSERT INTO "events" ("wedding_id", "location_id", "name", "time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["wedding_id", 1], ["location_id", 1], ["name", "Friday Drinks"], ["time", "2019-06-15 19:00:00"], ["created_at", "2019-05-31 13:01:55.786774"], ["updated_at", "2019-05-31 13:01:55.786774"]]
7152
+  (1.0ms) commit transaction
7153
+  (0.1ms) begin transaction
7154
+ Location Create (0.5ms) INSERT INTO "locations" ("name", "address", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Golden BBQ"], ["address", "1962 Sommer Manors, South Leon, AR 33965"], ["created_at", "2019-05-31 13:01:55.792455"], ["updated_at", "2019-05-31 13:01:55.792455"]]
7155
+ Event Create (0.4ms) INSERT INTO "events" ("wedding_id", "location_id", "name", "time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["wedding_id", 1], ["location_id", 2], ["name", "Friday Drinks"], ["time", "2019-06-14 18:00:00"], ["created_at", "2019-05-31 13:01:55.793996"], ["updated_at", "2019-05-31 13:01:55.793996"]]
7156
+  (2.0ms) commit transaction
7157
+  (0.1ms) begin transaction
7158
+ Location Create (0.6ms) INSERT INTO "locations" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Sweet Pub"], ["created_at", "2019-05-31 13:01:55.800605"], ["updated_at", "2019-05-31 13:01:55.800605"]]
7159
+ Event Create (0.5ms) INSERT INTO "events" ("wedding_id", "location_id", "name", "time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["wedding_id", 1], ["location_id", 3], ["name", "Friday Drinks"], ["time", "2019-06-13 11:00:00"], ["created_at", "2019-05-31 13:01:55.802469"], ["updated_at", "2019-05-31 13:01:55.802469"]]
7160
+  (0.9ms) commit transaction
7161
+  (0.1ms) begin transaction
7162
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Helene Grimes"], ["nickname", "Helene"], ["email", "tamala@breitenberg.name"]]
7163
+  (0.9ms) commit transaction
7164
+  (0.1ms) begin transaction
7165
+ Guest Create (0.7ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Glendora Grimes"], ["nickname", "Glendora"], ["email", "carolynekerluke@hettingerboehm.com"]]
7166
+  (0.9ms) commit transaction
7167
+  (0.1ms) begin transaction
7168
+ Guest Create (0.7ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Shira Kunde"], ["nickname", "Shira"], ["email", "lesleywolff@langosh.name"]]
7169
+  (1.0ms) commit transaction
7170
+  (0.1ms) begin transaction
7171
+ Guest Create (0.6ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Kimberli Nader"], ["nickname", "Kimberli"], ["email", "avis@swift.org"]]
7172
+  (1.2ms) commit transaction
7173
+  (0.1ms) begin transaction
7174
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Chong Douglas"], ["nickname", "Chong"], ["email", "lovetta@aufderharwolf.io"]]
7175
+  (0.8ms) commit transaction
7176
+  (0.1ms) begin transaction
7177
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Myesha Spinka"], ["nickname", "Myesha"], ["email", "antionedamore@runolfsdottirbartoletti.org"]]
7178
+  (0.9ms) commit transaction
7179
+  (0.2ms) begin transaction
7180
+ Guest Create (0.8ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Pasquale Hane"], ["nickname", "Pasquale"], ["email", "tuanschmeler@weinat.com"]]
7181
+  (1.4ms) commit transaction
7182
+  (0.1ms) begin transaction
7183
+ Guest Create (0.7ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Caterina White"], ["nickname", "Caterina"], ["email", "eldonharvey@trompwiegand.net"]]
7184
+  (1.2ms) commit transaction
7185
+  (0.1ms) begin transaction
7186
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Rob Rippin"], ["nickname", "Rob"], ["email", "laurence@okuneva.org"]]
7187
+  (1.0ms) commit transaction
7188
+  (0.1ms) begin transaction
7189
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Lon Weber"], ["nickname", "Lon"], ["email", "ethanromaguera@ferryzieme.co"]]
7190
+  (1.0ms) commit transaction
7191
+  (0.1ms) begin transaction
7192
+ Guest Create (0.6ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Valentine Walker"], ["nickname", "Valentine"], ["email", "kendrickmurray@roberts.name"]]
7193
+  (0.9ms) commit transaction
7194
+  (0.1ms) begin transaction
7195
+ Guest Create (0.6ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Tad Ledner"], ["nickname", "Tad"], ["email", "iraflatley@stokes.info"]]
7196
+  (1.1ms) commit transaction
7197
+  (0.1ms) begin transaction
7198
+ Guest Create (0.6ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Cruz Schmeler"], ["nickname", "Cruz"], ["email", "tawny@wuckert.co"]]
7199
+  (0.9ms) commit transaction
7200
+  (0.1ms) begin transaction
7201
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname") VALUES (?, ?, ?) [["wedding_id", 1], ["full_name", "Douglas Parisian"], ["nickname", "Douglas"]]
7202
+  (0.9ms) commit transaction
7203
+  (0.1ms) begin transaction
7204
+ Guest Create (0.8ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Mellie Von"], ["nickname", "Mellie"], ["email", "demarcusnicolas@crist.net"]]
7205
+  (0.9ms) commit transaction
7206
+  (0.1ms) begin transaction
7207
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Lezlie Kris"], ["nickname", "Lezlie"], ["email", "ashlea@lowe.name"]]
7208
+  (1.1ms) commit transaction
7209
+  (0.1ms) begin transaction
7210
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Jerry Wilderman"], ["nickname", "Jerry"], ["email", "isiahdurgan@flatley.co"]]
7211
+  (1.0ms) commit transaction
7212
+  (0.1ms) begin transaction
7213
+ Guest Create (0.8ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Carlton Jones"], ["nickname", "Carlton"], ["email", "valentin@wolfcruickshank.name"]]
7214
+  (1.3ms) commit transaction
7215
+  (0.1ms) begin transaction
7216
+ Guest Create (0.8ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Claribel Lang"], ["nickname", "Claribel"], ["email", "jeanetta@cummeratavolkman.io"]]
7217
+  (1.0ms) commit transaction
7218
+  (0.1ms) begin transaction
7219
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Carlena Braun"], ["nickname", "Carlena"], ["email", "boycegoldner@spinkabeer.info"]]
7220
+  (1.1ms) commit transaction
7221
+  (0.1ms) begin transaction
7222
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Frederick Bashirian"], ["nickname", "Frederick"], ["email", "solangetreutel@johnsonprosacco.co"]]
7223
+  (1.0ms) commit transaction
7224
+  (0.1ms) begin transaction
7225
+ Guest Create (1.2ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname") VALUES (?, ?, ?) [["wedding_id", 1], ["full_name", "Amos Rosenbaum"], ["nickname", "Amos"]]
7226
+  (1.5ms) commit transaction
7227
+  (0.1ms) begin transaction
7228
+ Guest Create (0.8ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Ray Wilkinson"], ["nickname", "Ray"], ["email", "aldotowne@walter.info"]]
7229
+  (1.1ms) commit transaction
7230
+  (0.1ms) begin transaction
7231
+ Guest Create (0.5ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname") VALUES (?, ?, ?) [["wedding_id", 1], ["full_name", "Elvera Jacobson"], ["nickname", "Elvera"]]
7232
+  (0.8ms) commit transaction
7233
+  (0.1ms) begin transaction
7234
+ Guest Create (0.6ms) INSERT INTO "guests" ("wedding_id", "full_name", "nickname", "email") VALUES (?, ?, ?, ?) [["wedding_id", 1], ["full_name", "Dewitt Blanda"], ["nickname", "Dewitt"], ["email", "siobhanterry@jaskolski.info"]]
7235
+  (1.0ms) commit transaction
7236
+ Started GET "/aa" for ::1 at 2019-05-31 09:01:58 -0400
7237
+ Processing by AutoAdmin::RootController#index as HTML
7238
+ Filter chain halted as #<Proc:0x00007fe1cccea210@/Users/smudge/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/actionpack-5.2.3/lib/action_controller/metal/http_authentication.rb:72> rendered or redirected
7239
+ Completed 401 Unauthorized in 12ms (ActiveRecord: 0.0ms)
7240
+ Started GET "/aa" for ::1 at 2019-05-31 09:02:21 -0400
7241
+ Processing by AutoAdmin::RootController#index as HTML
7242
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/root/index.html.erb within layouts/auto_admin/application
7243
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/root/index.html.erb within layouts/auto_admin/application (2.8ms)
7244
+ Completed 200 OK in 263ms (Views: 259.8ms | ActiveRecord: 0.0ms)
7245
+ Started GET "/assets/auto_admin/application-0d121fe1c33b176f303b61f322465242fbfaa1e884f3b9fd34686e97ab8c04c4.css" for ::1 at 2019-05-31 09:02:21 -0400
7246
+ Started GET "/assets/auto_admin/application-8191e2d8f7a9a3806f7e9021a55c8767eddbc799d57047358856f248dfa5df25.js" for ::1 at 2019-05-31 09:02:21 -0400
7247
+ Started GET "/aa/weddings" for ::1 at 2019-05-31 09:02:24 -0400
7248
+ Processing by AutoAdmin::ResourcesController#index as HTML
7249
+ Parameters: {"node"=>"Wedding"}
7250
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application
7251
+ Wedding Load (0.4ms) SELECT "weddings".* FROM "weddings" LIMIT ? [["LIMIT", 20]]
7252
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (6.3ms)
7253
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application (12.4ms)
7254
+ Completed 200 OK in 27ms (Views: 19.8ms | ActiveRecord: 1.1ms)
7255
+ Started GET "/aa/locations" for ::1 at 2019-05-31 09:02:25 -0400
7256
+ Processing by AutoAdmin::ResourcesController#index as HTML
7257
+ Parameters: {"node"=>"Location"}
7258
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application
7259
+ Location Load (0.5ms) SELECT "locations".* FROM "locations" LIMIT ? [["LIMIT", 20]]
7260
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (6.0ms)
7261
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application (6.5ms)
7262
+ Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.5ms)
7263
+ Started GET "/aa/locations/1" for ::1 at 2019-05-31 09:03:55 -0400
7264
+ Processing by AutoAdmin::ResourcesController#show as HTML
7265
+ Parameters: {"node"=>"Location", "id"=>"1"}
7266
+ Location Load (0.3ms) SELECT "locations".* FROM "locations" WHERE "locations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
7267
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/show.html.erb within layouts/auto_admin/application
7268
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resource.html.erb (1.8ms)
7269
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."location_id" = ? LIMIT ? [["location_id", 1], ["LIMIT", 1]]
7270
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resource.html.erb (1.2ms)
7271
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/show.html.erb within layouts/auto_admin/application (14.8ms)
7272
+ Completed 200 OK in 29ms (Views: 17.5ms | ActiveRecord: 0.7ms)
7273
+ Started GET "/aa/weddings" for ::1 at 2019-05-31 09:03:56 -0400
7274
+ Processing by AutoAdmin::ResourcesController#index as HTML
7275
+ Parameters: {"node"=>"Wedding"}
7276
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application
7277
+ Wedding Load (0.2ms) SELECT "weddings".* FROM "weddings" LIMIT ? [["LIMIT", 20]]
7278
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (2.4ms)
7279
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application (3.0ms)
7280
+ Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.2ms)
7281
+ Started GET "/aa/weddings/1" for ::1 at 2019-05-31 09:03:57 -0400
7282
+ Processing by AutoAdmin::ResourcesController#show as HTML
7283
+ Parameters: {"node"=>"Wedding", "id"=>"1"}
7284
+ Wedding Load (0.7ms) SELECT "weddings".* FROM "weddings" WHERE "weddings"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
7285
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/show.html.erb within layouts/auto_admin/application
7286
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resource.html.erb (0.6ms)
7287
+ Spouse Load (0.6ms) SELECT "spouses".* FROM "spouses" WHERE "spouses"."wedding_id" = ? ORDER BY "spouses"."name_order" ASC LIMIT ? [["wedding_id", 1], ["LIMIT", 1]]
7288
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resource.html.erb (0.4ms)
7289
+ Spouse Load (0.4ms) SELECT "spouses".* FROM "spouses" WHERE "spouses"."wedding_id" = ? ORDER BY "spouses"."name_order" DESC LIMIT ? [["wedding_id", 1], ["LIMIT", 1]]
7290
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resource.html.erb (0.4ms)
7291
+ Event Load (0.4ms) SELECT "events".* FROM "events" WHERE "events"."wedding_id" = ? LIMIT ? [["wedding_id", 1], ["LIMIT", 20]]
7292
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (8.2ms)
7293
+ Guest Load (0.4ms) SELECT "guests".* FROM "guests" WHERE "guests"."wedding_id" = ? LIMIT ? [["wedding_id", 1], ["LIMIT", 20]]
7294
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (13.4ms)
7295
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/show.html.erb within layouts/auto_admin/application (31.6ms)
7296
+ Completed 200 OK in 37ms (Views: 32.3ms | ActiveRecord: 2.6ms)
7297
+ Started GET "/aa/locations" for ::1 at 2019-05-31 09:04:01 -0400
7298
+ Processing by AutoAdmin::ResourcesController#index as HTML
7299
+ Parameters: {"node"=>"Location"}
7300
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application
7301
+ Location Load (0.3ms) SELECT "locations".* FROM "locations" LIMIT ? [["LIMIT", 20]]
7302
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (3.2ms)
7303
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application (3.8ms)
7304
+ Completed 200 OK in 44ms (Views: 5.6ms | ActiveRecord: 0.3ms)
7305
+ Started GET "/aa/weddings" for ::1 at 2019-05-31 09:04:23 -0400
7306
+ Processing by AutoAdmin::ResourcesController#index as HTML
7307
+ Parameters: {"node"=>"Wedding"}
7308
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application
7309
+ Wedding Load (0.2ms) SELECT "weddings".* FROM "weddings" LIMIT ? [["LIMIT", 20]]
7310
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (2.7ms)
7311
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application (3.5ms)
7312
+ Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.2ms)
7313
+ Started GET "/aa/locations" for ::1 at 2019-05-31 09:04:24 -0400
7314
+ Processing by AutoAdmin::ResourcesController#index as HTML
7315
+ Parameters: {"node"=>"Location"}
7316
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application
7317
+ Location Load (0.3ms) SELECT "locations".* FROM "locations" LIMIT ? [["LIMIT", 20]]
7318
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (4.8ms)
7319
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application (5.4ms)
7320
+ Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.3ms)
7321
+ Started GET "/aa/weddings" for ::1 at 2019-05-31 09:04:28 -0400
7322
+ Processing by AutoAdmin::ResourcesController#index as HTML
7323
+ Parameters: {"node"=>"Wedding"}
7324
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application
7325
+ Wedding Load (0.2ms) SELECT "weddings".* FROM "weddings" LIMIT ? [["LIMIT", 20]]
7326
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (3.1ms)
7327
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/index.html.erb within layouts/auto_admin/application (3.7ms)
7328
+ Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.2ms)
7329
+ Started GET "/aa/weddings/1" for ::1 at 2019-05-31 09:04:30 -0400
7330
+ Processing by AutoAdmin::ResourcesController#show as HTML
7331
+ Parameters: {"node"=>"Wedding", "id"=>"1"}
7332
+ Wedding Load (0.3ms) SELECT "weddings".* FROM "weddings" WHERE "weddings"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
7333
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/show.html.erb within layouts/auto_admin/application
7334
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resource.html.erb (0.7ms)
7335
+ Spouse Load (0.3ms) SELECT "spouses".* FROM "spouses" WHERE "spouses"."wedding_id" = ? ORDER BY "spouses"."name_order" ASC LIMIT ? [["wedding_id", 1], ["LIMIT", 1]]
7336
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resource.html.erb (0.3ms)
7337
+ Spouse Load (2.8ms) SELECT "spouses".* FROM "spouses" WHERE "spouses"."wedding_id" = ? ORDER BY "spouses"."name_order" DESC LIMIT ? [["wedding_id", 1], ["LIMIT", 1]]
7338
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resource.html.erb (0.4ms)
7339
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."wedding_id" = ? LIMIT ? [["wedding_id", 1], ["LIMIT", 20]]
7340
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (5.9ms)
7341
+ Guest Load (0.4ms) SELECT "guests".* FROM "guests" WHERE "guests"."wedding_id" = ? LIMIT ? [["wedding_id", 1], ["LIMIT", 20]]
7342
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/_resources.html.erb (21.4ms)
7343
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/resources/show.html.erb within layouts/auto_admin/application (38.6ms)
7344
+ Completed 200 OK in 47ms (Views: 39.8ms | ActiveRecord: 4.0ms)
7345
+ Started GET "/aa/" for ::1 at 2019-05-31 09:04:33 -0400
7346
+ Processing by AutoAdmin::RootController#index as HTML
7347
+ Rendering /Users/smudge/src/gems/auto_admin/app/views/auto_admin/root/index.html.erb within layouts/auto_admin/application
7348
+ Rendered /Users/smudge/src/gems/auto_admin/app/views/auto_admin/root/index.html.erb within layouts/auto_admin/application (0.4ms)
7349
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - smudge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-11 00:00:00.000000000 Z
11
+ date: 2019-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bulma-rails
@@ -186,6 +186,18 @@ extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
188
  - Rakefile
189
+ - app/assets/javascripts/auto_admin/application.js
190
+ - app/assets/stylesheets/auto_admin/application.scss
191
+ - app/controllers/auto_admin/application_controller.rb
192
+ - app/controllers/auto_admin/resources_controller.rb
193
+ - app/controllers/auto_admin/root_controller.rb
194
+ - app/views/auto_admin/resources/_resource.html.erb
195
+ - app/views/auto_admin/resources/_resources.html.erb
196
+ - app/views/auto_admin/resources/index.html.erb
197
+ - app/views/auto_admin/resources/show.html.erb
198
+ - app/views/auto_admin/root/index.html.erb
199
+ - app/views/layouts/auto_admin/application.html.erb
200
+ - config/routes.rb
189
201
  - lib/auto_admin.rb
190
202
  - lib/auto_admin/association.rb
191
203
  - lib/auto_admin/engine.rb