pulitzer 0.12.1 → 0.12.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
  SHA1:
3
- metadata.gz: d37562d26310de6168c8cac9e81252dae07b7af9
4
- data.tar.gz: 45ce730c080b751de2096f92cc5439f4e1e89afd
3
+ metadata.gz: 84178ec3332ef7f6ab333e0d7be193d2ea05ee7f
4
+ data.tar.gz: 0111cffdb2d862f543ee7d6a2fdb31b1ee8b9b47
5
5
  SHA512:
6
- metadata.gz: d76aa8ea50d0f87db62708fe73ba431eba9358d48f5bc3175595407469f9c3aa52c46b4c2a8d674e86a48f2516cf4fce5c69a8285b5a02e858380d9bf9b13737
7
- data.tar.gz: 18da4c29b825a46e97f7d9889c869e25033207928d9aaaac7fb121d9051e14462ae5f0ce0beb610b64263547554499d3ccace79cf3d06c6f8700caeb365e32ac
6
+ metadata.gz: dfd1a4315124bfced950019b7a35150c8a2154dd2382357396a186c763f90b878c4c635836e7d97da8a1037155acb42bdd858a5702cf5b9cf8198f443db2ba5f
7
+ data.tar.gz: 8089793f3fa62d05467784dce890497e6f535e134bd6a4c71129f0c151f0f84187e11ed505c2b0e7d32c445c88c259065630b0f00288676b5b9a3495b81eea2a
@@ -41,7 +41,7 @@ class Pulitzer::PostType < ActiveRecord::Base
41
41
  end
42
42
 
43
43
  def highest_element_sort
44
- last_element = all_element_types.max_by(&:sort_order)
44
+ last_element = all_element_types.max_by{ |e| e.sort_order || 0}
45
45
  last_element&.sort_order || 0
46
46
  end
47
47
  end
@@ -36,7 +36,7 @@ module Pulitzer
36
36
  end
37
37
 
38
38
  def all_elements
39
- (content_elements.to_a + free_form_sections.to_a).sort_by(&:sort_order)
39
+ (content_elements.to_a + free_form_sections.to_a).sort_by{|e| e.sort_order || 0}
40
40
  end
41
41
 
42
42
  def template_content_elements
@@ -1,3 +1,3 @@
1
1
  module Pulitzer
2
- VERSION = '0.12.1'
2
+ VERSION = '0.12.2'
3
3
  end
Binary file
@@ -161243,3 +161243,34 @@ Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.
161243
161243
  SQL (0.3ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 1], ["label", "Test Element"], ["created_at", 2017-05-04 00:04:00 UTC], ["updated_at", 2017-05-04 00:04:00 UTC], ["sort_order", 13]]
161244
161244
   (0.0ms) RELEASE SAVEPOINT active_record_1
161245
161245
   (0.5ms) rollback transaction
161246
+ Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form.
161247
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
161248
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
161249
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
161250
+  (1.1ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
161251
+  (1.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)
161252
+  (0.9ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar, "sort_order" integer)
161253
+  (0.9ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)
161254
+  (1.0ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)
161255
+  (0.9ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar)
161256
+  (0.9ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
161257
+  (0.8ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "required" boolean DEFAULT 'f', "sort_order" integer)
161258
+  (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)
161259
+  (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)
161260
+  (0.1ms) select sqlite_version(*)
161261
+  (0.8ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")
161262
+  (0.8ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)
161263
+  (0.8ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")
161264
+  (0.8ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "cloning_errors" text)
161265
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
161266
+  (0.1ms) SELECT version FROM "schema_migrations"
161267
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20170502210827')
161268
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
161269
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
161270
+  (0.1ms) begin transaction
161271
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 17:30:05 UTC], ["updated_at", 2017-05-08 17:30:05 UTC]]
161272
+  (0.7ms) commit transaction
161273
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
161274
+  (0.1ms) begin transaction
161275
+  (0.1ms) commit transaction
161276
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulitzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-04 00:00:00.000000000 Z
12
+ date: 2017-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails