micro_cms 0.1.2 → 0.2.0

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: f82bcc475674528b0e517934b7f448369c61139587de79aba765da16433a6ac4
4
- data.tar.gz: 929cddc8bec0e46daf0fcf6ee58237682fe7a295a1b14075b935aa52071b6471
3
+ metadata.gz: 9c07cc5c21d44d0bde6dfa7bde4e7b5688e7b91d89dde60cf0bdd0fd6e9f9968
4
+ data.tar.gz: fc83030b2ec6e131e1e06c7973cc310646494ebcdcc000e1445502231123a721
5
5
  SHA512:
6
- metadata.gz: f03e665fbfba77727515767e86d9b8c37081b64132530bf42f51efd70e4347606527c51596f8bf6543fe6d4981a6ee5b06f461cbad840bd95f50550c258699f0
7
- data.tar.gz: d303f667552bccc6baa54b1024546ae7cb9725a34c8810eddd07b780f21affb715db985a97225332b5090ab051f53a6bd085cfa13c97f3a5b56487eb32573af9
6
+ metadata.gz: dc5e6115395ff2ecf1f73cf4858eebd16278577d4e6429abd1ed3588c1ed48bf6ee8e0294b45e5ab4d83d688f5b6ec9986133b8c20a6378b785ffbb9f881e4ab
7
+ data.tar.gz: e4a8ddbfd248205257603b2da075bebf683f7eaa4fee68e458ba3e63c969aa81a08444d81fd88d566219afcd6eb7b8c77528a6fd121154a568461604c5f36612
@@ -10,6 +10,7 @@ module MicroCms
10
10
  FACTORIES = File.expand_path('../../spec/factories', __dir__).freeze
11
11
 
12
12
  isolate_namespace MicroCms
13
+ config.autoload_once_paths << "#{root}/app/helpers"
13
14
 
14
15
  config.generators do |generators|
15
16
  generators.test_framework :rspec
@@ -19,7 +20,7 @@ module MicroCms
19
20
 
20
21
  initializer 'micro_cms.include_view_helpers' do |_app|
21
22
  ActiveSupport.on_load :action_view do
22
- ActionView::Base.public_send :include, MicroCms::CmsBlockHelper
23
+ include MicroCms::CmsBlockHelper
23
24
  end
24
25
  end
25
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicroCms
4
- VERSION = '0.1.2'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -1,23 +0,0 @@
1
- Started GET "/" for ::1 at 2020-05-06 15:26:50 +0200
2
-  (1.6ms) SELECT sqlite_version(*)
3
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4
- Processing by Rails::WelcomeController#index as HTML
5
- Rendering /Users/sihu/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-6.0.0/lib/rails/templates/rails/welcome/index.html.erb
6
- Rendered /Users/sihu/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-6.0.0/lib/rails/templates/rails/welcome/index.html.erb (Duration: 7.1ms | Allocations: 484)
7
- Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.0ms | Allocations: 2613)
8
-
9
-
10
- Started GET "/" for ::1 at 2020-05-06 15:26:52 +0200
11
- Processing by Rails::WelcomeController#index as HTML
12
- Rendering /Users/sihu/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-6.0.0/lib/rails/templates/rails/welcome/index.html.erb
13
- Rendered /Users/sihu/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-6.0.0/lib/rails/templates/rails/welcome/index.html.erb (Duration: 6.1ms | Allocations: 195)
14
- Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms | Allocations: 748)
15
-
16
-
17
- Started GET "/" for ::1 at 2020-05-06 15:26:55 +0200
18
- Processing by Rails::WelcomeController#index as HTML
19
- Rendering /Users/sihu/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-6.0.0/lib/rails/templates/rails/welcome/index.html.erb
20
- Rendered /Users/sihu/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-6.0.0/lib/rails/templates/rails/welcome/index.html.erb (Duration: 0.5ms | Allocations: 7)
21
- Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms | Allocations: 254)
22
-
23
-
@@ -0,0 +1,351 @@
1
+  (1.3ms) SELECT sqlite_version(*)
2
+  (1.0ms) SELECT sqlite_version(*)
3
+  (0.0ms) SELECT sqlite_version(*)
4
+  (0.0ms) SELECT sqlite_version(*)
5
+  (0.1ms) DROP TABLE IF EXISTS "micro_cms_content_blocks"
6
+  (2.0ms) CREATE TABLE "micro_cms_content_blocks" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "path" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
8
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
9
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES (20190923150252)
10
+  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
11
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
12
+  (0.0ms) begin transaction
13
+ ActiveRecord::InternalMetadata Create (4.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2022-05-22 10:07:52.539158"], ["updated_at", "2022-05-22 10:07:52.539158"]]
14
+  (0.7ms) commit transaction
15
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
16
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]
17
+  (0.0ms) begin transaction
18
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "9368cdd51a843c0e310eaeaabe787de49915ee4d"], ["created_at", "2022-05-22 10:07:52.548995"], ["updated_at", "2022-05-22 10:07:52.548995"]]
19
+  (0.6ms) commit transaction
20
+  (0.1ms) SELECT sqlite_version(*)
21
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
22
+  (0.1ms) begin transaction
23
+  (0.0ms) SAVEPOINT active_record_1
24
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:07:52.650190"], ["updated_at", "2022-05-22 10:07:52.650190"]]
25
+  (0.0ms) RELEASE SAVEPOINT active_record_1
26
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 1.6ms | Allocations: 725)
27
+  (0.3ms) rollback transaction
28
+  (0.0ms) begin transaction
29
+  (0.1ms) SAVEPOINT active_record_1
30
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:07:52.659443"], ["updated_at", "2022-05-22 10:07:52.659443"]]
31
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.3ms | Allocations: 169)
33
+  (0.4ms) rollback transaction
34
+  (0.0ms) begin transaction
35
+  (0.0ms) SAVEPOINT active_record_1
36
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:07:52.666915"], ["updated_at", "2022-05-22 10:07:52.666915"]]
37
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.3ms | Allocations: 169)
39
+  (0.3ms) rollback transaction
40
+  (0.0ms) begin transaction
41
+  (0.0ms) SAVEPOINT active_record_1
42
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:07:52.670752"], ["updated_at", "2022-05-22 10:07:52.670752"]]
43
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.3ms | Allocations: 169)
45
+  (0.3ms) rollback transaction
46
+  (0.0ms) begin transaction
47
+  (0.1ms) SAVEPOINT active_record_1
48
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:07:52.771017"], ["updated_at", "2022-05-22 10:07:52.771017"]]
49
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51
+ Started PUT "/micro_cms/content_block/my-path-de.js?micro_cms_content_block%5Bauthorization_token%5D=my-securely-generated-auth-token&micro_cms_content_block%5Bcontent%5D=my+new+content" for 127.0.0.1 at 2022-05-22 12:07:52 +0200
52
+ Processing by MicroCms::ContentBlockController#update as JS
53
+ Parameters: {"micro_cms_content_block"=>{"authorization_token"=>"my-securely-generated-auth-token", "content"=>"my new content"}, "path"=>"my-path-de"}
54
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-path-de"], ["LIMIT", 1]]
55
+  (0.1ms) SAVEPOINT active_record_1
56
+ MicroCms::ContentBlock Update (0.1ms) UPDATE "micro_cms_content_blocks" SET "content" = ?, "updated_at" = ? WHERE "micro_cms_content_blocks"."id" = ? [["content", "my new content"], ["updated_at", "2022-05-22 10:07:52.798672"], ["id", 1]]
57
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58
+ Completed 204 No Content in 2ms (ActiveRecord: 0.3ms | Allocations: 1000)
59
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
60
+  (0.3ms) rollback transaction
61
+  (0.0ms) begin transaction
62
+ Started PUT "/micro_cms/content_block/not-existent.js?micro_cms_content_block%5Bauthorization_token%5D=my-securely-generated-auth-token&micro_cms_content_block%5Bcontent%5D=my+new+content" for 127.0.0.1 at 2022-05-22 12:07:52 +0200
63
+ Processing by MicroCms::ContentBlockController#update as JS
64
+ Parameters: {"micro_cms_content_block"=>{"authorization_token"=>"my-securely-generated-auth-token", "content"=>"my new content"}, "path"=>"not-existent"}
65
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "not-existent"], ["LIMIT", 1]]
66
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms | Allocations: 461)
67
+  (0.0ms) rollback transaction
68
+  (0.0ms) begin transaction
69
+  (0.0ms) SAVEPOINT active_record_1
70
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:07:52.814891"], ["updated_at", "2022-05-22 10:07:52.814891"]]
71
+  (0.0ms) RELEASE SAVEPOINT active_record_1
72
+ Started PUT "/micro_cms/content_block/my-path-de.js?micro_cms_content_block%5Bauthorization_token%5D=my-evil-spoofing-token&micro_cms_content_block%5Bcontent%5D=blubb" for 127.0.0.1 at 2022-05-22 12:07:52 +0200
73
+ Processing by MicroCms::ContentBlockController#update as JS
74
+ Parameters: {"micro_cms_content_block"=>{"authorization_token"=>"my-evil-spoofing-token", "content"=>"blubb"}, "path"=>"my-path-de"}
75
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms | Allocations: 323)
76
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
77
+  (0.3ms) rollback transaction
78
+  (0.0ms) begin transaction
79
+  (0.0ms) rollback transaction
80
+  (0.1ms) begin transaction
81
+  (0.0ms) rollback transaction
82
+  (0.0ms) begin transaction
83
+  (0.0ms) rollback transaction
84
+  (0.0ms) begin transaction
85
+  (0.0ms) rollback transaction
86
+  (0.0ms) begin transaction
87
+  (0.1ms) rollback transaction
88
+  (0.0ms) begin transaction
89
+  (0.0ms) rollback transaction
90
+  (0.0ms) begin transaction
91
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
92
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-content-block-en"], ["LIMIT", 1]]
93
+  (0.0ms) SAVEPOINT active_record_1
94
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-content-block-en"], ["content", "my content"], ["created_at", "2022-05-22 10:07:52.860381"], ["updated_at", "2022-05-22 10:07:52.860381"]]
95
+  (0.0ms) RELEASE SAVEPOINT active_record_1
96
+  (0.0ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
97
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
98
+  (0.4ms) rollback transaction
99
+  (0.0ms) begin transaction
100
+  (0.1ms) SAVEPOINT active_record_1
101
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-content-block-en"], ["content", "MyText"], ["created_at", "2022-05-22 10:07:52.863900"], ["updated_at", "2022-05-22 10:07:52.863900"]]
102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
103
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-content-block-en"], ["LIMIT", 1]]
104
+  (0.4ms) rollback transaction
105
+  (0.0ms) begin transaction
106
+  (0.0ms) rollback transaction
107
+  (0.0ms) begin transaction
108
+  (0.0ms) rollback transaction
109
+  (0.0ms) begin transaction
110
+  (0.1ms) SAVEPOINT active_record_1
111
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", "MyText"], ["created_at", "2022-05-22 10:07:52.874888"], ["updated_at", "2022-05-22 10:07:52.874888"]]
112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
113
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
114
+  (0.3ms) rollback transaction
115
+  (0.0ms) begin transaction
116
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
117
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
118
+  (0.0ms) SAVEPOINT active_record_1
119
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", "my default value"], ["created_at", "2022-05-22 10:07:52.881342"], ["updated_at", "2022-05-22 10:07:52.881342"]]
120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
121
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.6ms | Allocations: 425)
122
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
123
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
124
+  (0.3ms) rollback transaction
125
+  (0.0ms) begin transaction
126
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
127
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
128
+  (0.0ms) SAVEPOINT active_record_1
129
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", " &lt;p&gt;This is my custom content&lt;/p&gt;"], ["created_at", "2022-05-22 10:07:52.886931"], ["updated_at", "2022-05-22 10:07:52.886931"]]
130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.3ms | Allocations: 169)
132
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
133
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
134
+  (0.3ms) rollback transaction
135
+  (0.1ms) begin transaction
136
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
137
+  (0.0ms) SAVEPOINT active_record_1
138
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", ""], ["created_at", "2022-05-22 10:07:52.891497"], ["updated_at", "2022-05-22 10:07:52.891497"]]
139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
141
+  (0.4ms) rollback transaction
142
+  (0.0ms) begin transaction
143
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
144
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
145
+  (0.0ms) SAVEPOINT active_record_1
146
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", ""], ["created_at", "2022-05-22 10:07:52.896373"], ["updated_at", "2022-05-22 10:07:52.896373"]]
147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
148
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.3ms | Allocations: 169)
149
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
150
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
151
+  (0.3ms) rollback transaction
152
+  (0.0ms) begin transaction
153
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
154
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-nonexistent-path-en"], ["LIMIT", 1]]
155
+  (0.0ms) SAVEPOINT active_record_1
156
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-nonexistent-path-en"], ["content", ""], ["created_at", "2022-05-22 10:07:52.901521"], ["updated_at", "2022-05-22 10:07:52.901521"]]
157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
158
+  (0.0ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
159
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
160
+  (0.3ms) rollback transaction
161
+  (0.0ms) begin transaction
162
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
163
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-nonexistent-path-en"], ["LIMIT", 1]]
164
+  (0.0ms) SAVEPOINT active_record_1
165
+ MicroCms::ContentBlock Create (0.2ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-nonexistent-path-en"], ["content", "my default value"], ["created_at", "2022-05-22 10:07:52.905420"], ["updated_at", "2022-05-22 10:07:52.905420"]]
166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
167
+  (0.0ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
168
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
169
+  (0.3ms) rollback transaction
170
+  (0.0ms) begin transaction
171
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
172
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-nonexistent-path-en"], ["LIMIT", 1]]
173
+  (0.0ms) SAVEPOINT active_record_1
174
+ MicroCms::ContentBlock Create (0.2ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-nonexistent-path-en"], ["content", " &lt;p&gt;This is my custom content&lt;/p&gt;"], ["created_at", "2022-05-22 10:07:52.909269"], ["updated_at", "2022-05-22 10:07:52.909269"]]
175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
176
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
177
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
178
+  (0.3ms) rollback transaction
179
+  (0.0ms) begin transaction
180
+  (0.0ms) SAVEPOINT active_record_1
181
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", "my custom content of the block"], ["created_at", "2022-05-22 10:07:52.912704"], ["updated_at", "2022-05-22 10:07:52.912704"]]
182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
183
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
184
+  (0.4ms) rollback transaction
185
+  (1.8ms) SELECT sqlite_version(*)
186
+  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
187
+  (0.3ms) SELECT sqlite_version(*)
188
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
189
+ TRANSACTION (0.1ms) begin transaction
190
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
191
+ MicroCms::ContentBlock Create (1.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:38:27.891785"], ["updated_at", "2022-05-22 10:38:27.891785"]]
192
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
193
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 1.3ms | Allocations: 637)
194
+ TRANSACTION (0.5ms) rollback transaction
195
+ TRANSACTION (0.1ms) begin transaction
196
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
197
+ MicroCms::ContentBlock Create (0.5ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:38:28.028959"], ["updated_at", "2022-05-22 10:38:28.028959"]]
198
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
199
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.2ms | Allocations: 84)
200
+ TRANSACTION (0.4ms) rollback transaction
201
+ TRANSACTION (0.0ms) begin transaction
202
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
203
+ MicroCms::ContentBlock Create (0.4ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:38:28.040707"], ["updated_at", "2022-05-22 10:38:28.040707"]]
204
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
205
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.3ms | Allocations: 84)
206
+ TRANSACTION (0.6ms) rollback transaction
207
+ TRANSACTION (0.1ms) begin transaction
208
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
209
+ MicroCms::ContentBlock Create (0.6ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:38:28.058214"], ["updated_at", "2022-05-22 10:38:28.058214"]]
210
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
211
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.5ms | Allocations: 84)
212
+ TRANSACTION (1.5ms) rollback transaction
213
+ TRANSACTION (0.1ms) begin transaction
214
+ TRANSACTION (0.1ms) rollback transaction
215
+ TRANSACTION (0.1ms) begin transaction
216
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
217
+ MicroCms::ContentBlock Create (0.6ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:38:28.089420"], ["updated_at", "2022-05-22 10:38:28.089420"]]
218
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
219
+ MicroCms::ContentBlock Load (0.3ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
220
+ Started PUT "/micro_cms/content_block/my-path-de.js?micro_cms_content_block%5Bauthorization_token%5D=my-securely-generated-auth-token&micro_cms_content_block%5Bcontent%5D=my+new+content" for 127.0.0.1 at 2022-05-22 12:38:28 +0200
221
+ Processing by MicroCms::ContentBlockController#update as JS
222
+ Parameters: {"micro_cms_content_block"=>{"authorization_token"=>"my-securely-generated-auth-token", "content"=>"my new content"}, "path"=>"my-path-de"}
223
+ MicroCms::ContentBlock Load (0.2ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-path-de"], ["LIMIT", 1]]
224
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
225
+ MicroCms::ContentBlock Update (0.1ms) UPDATE "micro_cms_content_blocks" SET "content" = ?, "updated_at" = ? WHERE "micro_cms_content_blocks"."id" = ? [["content", "my new content"], ["updated_at", "2022-05-22 10:38:28.122518"], ["id", 1]]
226
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
227
+ Completed 204 No Content in 3ms (ActiveRecord: 0.4ms | Allocations: 978)
228
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
229
+ TRANSACTION (0.5ms) rollback transaction
230
+ TRANSACTION (0.0ms) begin transaction
231
+ Started PUT "/micro_cms/content_block/not-existent.js?micro_cms_content_block%5Bauthorization_token%5D=my-securely-generated-auth-token&micro_cms_content_block%5Bcontent%5D=my+new+content" for 127.0.0.1 at 2022-05-22 12:38:28 +0200
232
+ Processing by MicroCms::ContentBlockController#update as JS
233
+ Parameters: {"micro_cms_content_block"=>{"authorization_token"=>"my-securely-generated-auth-token", "content"=>"my new content"}, "path"=>"not-existent"}
234
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "not-existent"], ["LIMIT", 1]]
235
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms | Allocations: 441)
236
+ TRANSACTION (0.1ms) rollback transaction
237
+ TRANSACTION (0.1ms) begin transaction
238
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
239
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-path-de"], ["content", "MyText"], ["created_at", "2022-05-22 10:38:28.137182"], ["updated_at", "2022-05-22 10:38:28.137182"]]
240
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
241
+ Started PUT "/micro_cms/content_block/my-path-de.js?micro_cms_content_block%5Bauthorization_token%5D=my-evil-spoofing-token&micro_cms_content_block%5Bcontent%5D=blubb" for 127.0.0.1 at 2022-05-22 12:38:28 +0200
242
+ Processing by MicroCms::ContentBlockController#update as JS
243
+ Parameters: {"micro_cms_content_block"=>{"authorization_token"=>"my-evil-spoofing-token", "content"=>"blubb"}, "path"=>"my-path-de"}
244
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms | Allocations: 310)
245
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
246
+ TRANSACTION (0.4ms) rollback transaction
247
+ TRANSACTION (0.0ms) begin transaction
248
+  (0.2ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
249
+ MicroCms::ContentBlock Load (0.2ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
250
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
251
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", ""], ["created_at", "2022-05-22 10:38:28.191122"], ["updated_at", "2022-05-22 10:38:28.191122"]]
252
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
253
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.6ms | Allocations: 337)
254
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
255
+ MicroCms::ContentBlock Load (0.2ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
256
+ TRANSACTION (0.4ms) rollback transaction
257
+ TRANSACTION (0.0ms) begin transaction
258
+ MicroCms::ContentBlock Load (0.2ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
259
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
260
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", ""], ["created_at", "2022-05-22 10:38:28.201734"], ["updated_at", "2022-05-22 10:38:28.201734"]]
261
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
262
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
263
+ TRANSACTION (0.4ms) rollback transaction
264
+ TRANSACTION (0.1ms) begin transaction
265
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
266
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
267
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
268
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", "my default value"], ["created_at", "2022-05-22 10:38:28.211739"], ["updated_at", "2022-05-22 10:38:28.211739"]]
269
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
270
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.2ms | Allocations: 84)
271
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
272
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
273
+ TRANSACTION (0.4ms) rollback transaction
274
+ TRANSACTION (0.0ms) begin transaction
275
+  (0.2ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
276
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
277
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
278
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", " &lt;p&gt;This is my custom content&lt;/p&gt;"], ["created_at", "2022-05-22 10:38:28.221860"], ["updated_at", "2022-05-22 10:38:28.221860"]]
279
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
280
+ Rendered /Users/simon/r/micro_cms/app/views/micro_cms/_content_block.html.erb (Duration: 0.2ms | Allocations: 84)
281
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
282
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
283
+ TRANSACTION (0.4ms) rollback transaction
284
+ TRANSACTION (0.0ms) begin transaction
285
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
286
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", "MyText"], ["created_at", "2022-05-22 10:38:28.229665"], ["updated_at", "2022-05-22 10:38:28.229665"]]
287
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
288
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
289
+ TRANSACTION (0.5ms) rollback transaction
290
+ TRANSACTION (0.1ms) begin transaction
291
+  (0.2ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
292
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-nonexistent-path-en"], ["LIMIT", 1]]
293
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
294
+ MicroCms::ContentBlock Create (0.5ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-nonexistent-path-en"], ["content", ""], ["created_at", "2022-05-22 10:38:28.243754"], ["updated_at", "2022-05-22 10:38:28.243754"]]
295
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
296
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
297
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
298
+ TRANSACTION (0.5ms) rollback transaction
299
+ TRANSACTION (0.0ms) begin transaction
300
+  (0.2ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
301
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-nonexistent-path-en"], ["LIMIT", 1]]
302
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
303
+ MicroCms::ContentBlock Create (0.4ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-nonexistent-path-en"], ["content", " &lt;p&gt;This is my custom content&lt;/p&gt;"], ["created_at", "2022-05-22 10:38:28.256043"], ["updated_at", "2022-05-22 10:38:28.256043"]]
304
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
305
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
306
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
307
+ TRANSACTION (0.4ms) rollback transaction
308
+ TRANSACTION (0.1ms) begin transaction
309
+  (0.2ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
310
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-nonexistent-path-en"], ["LIMIT", 1]]
311
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
312
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-nonexistent-path-en"], ["content", "my default value"], ["created_at", "2022-05-22 10:38:28.267469"], ["updated_at", "2022-05-22 10:38:28.267469"]]
313
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
314
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
315
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
316
+ TRANSACTION (0.4ms) rollback transaction
317
+ TRANSACTION (0.0ms) begin transaction
318
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
319
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-custom-path-en"], ["content", "my custom content of the block"], ["created_at", "2022-05-22 10:38:28.275881"], ["updated_at", "2022-05-22 10:38:28.275881"]]
320
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
321
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-custom-path-en"], ["LIMIT", 1]]
322
+ TRANSACTION (0.4ms) rollback transaction
323
+ TRANSACTION (0.1ms) begin transaction
324
+ TRANSACTION (0.1ms) rollback transaction
325
+ TRANSACTION (0.0ms) begin transaction
326
+ TRANSACTION (0.1ms) rollback transaction
327
+ TRANSACTION (0.0ms) begin transaction
328
+ TRANSACTION (0.0ms) rollback transaction
329
+ TRANSACTION (0.0ms) begin transaction
330
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
331
+ MicroCms::ContentBlock Load (0.0ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-content-block-en"], ["LIMIT", 1]]
332
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
333
+ MicroCms::ContentBlock Create (0.3ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-content-block-en"], ["content", "my content"], ["created_at", "2022-05-22 10:38:28.299610"], ["updated_at", "2022-05-22 10:38:28.299610"]]
334
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
335
+  (0.1ms) SELECT COUNT(*) FROM "micro_cms_content_blocks"
336
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" ORDER BY "micro_cms_content_blocks"."created_at" DESC LIMIT ? [["LIMIT", 1]]
337
+ TRANSACTION (0.4ms) rollback transaction
338
+ TRANSACTION (0.0ms) begin transaction
339
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
340
+ MicroCms::ContentBlock Create (0.4ms) INSERT INTO "micro_cms_content_blocks" ("path", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["path", "my-content-block-en"], ["content", "MyText"], ["created_at", "2022-05-22 10:38:28.304615"], ["updated_at", "2022-05-22 10:38:28.304615"]]
341
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
342
+ MicroCms::ContentBlock Load (0.1ms) SELECT "micro_cms_content_blocks".* FROM "micro_cms_content_blocks" WHERE "micro_cms_content_blocks"."path" = ? LIMIT ? [["path", "my-content-block-en"], ["LIMIT", 1]]
343
+ TRANSACTION (0.4ms) rollback transaction
344
+ TRANSACTION (0.0ms) begin transaction
345
+ TRANSACTION (0.0ms) rollback transaction
346
+ TRANSACTION (0.0ms) begin transaction
347
+ TRANSACTION (0.0ms) rollback transaction
348
+ TRANSACTION (0.0ms) begin transaction
349
+ TRANSACTION (0.0ms) rollback transaction
350
+ TRANSACTION (0.0ms) begin transaction
351
+ TRANSACTION (0.0ms) rollback transaction
@@ -1 +1 @@
1
- 7cfb9f8d4c8aa40683f54684e3e2619959171f25006b85f56e30261f7958590a32e0cf15971318e12e65bb65ac264fdcf9e64cd74de6e2b51c2f9b9cd1c7582a
1
+ 090ff09e6c68cb820ad897dc43d4eb260fee01aa1e375f3a732ddafb5d6978d7b2614f006c67db297f923eda4c4fd2670b6ea435889384a1992d6a80367a10ad
data/spec/examples.txt ADDED
@@ -0,0 +1,29 @@
1
+ example_id | status | run_time |
2
+ --------------------------------------------------------------------- | ------ | --------------- |
3
+ ./spec/engine/micro_cms_spec.rb[1:1:1] | passed | 0.0034 seconds |
4
+ ./spec/helpers/micro_cms/application_helper_spec.rb[1:1:1:1] | passed | 0.01337 seconds |
5
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:1:1:1:1] | passed | 0.0092 seconds |
6
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:1:1:2:1:1] | passed | 0.00936 seconds |
7
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:1:1:3:1:1] | passed | 0.00916 seconds |
8
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:1:1:4:1:1] | passed | 0.0493 seconds |
9
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:1:2:1:1] | passed | 0.00928 seconds |
10
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:2:1:1] | passed | 0.00929 seconds |
11
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:2:2:1:1:1] | passed | 0.00912 seconds |
12
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:2:2:2:1:1] | passed | 0.01182 seconds |
13
+ ./spec/helpers/micro_cms/cms_block_helper_spec.rb[1:2:2:3:1:1] | passed | 0.012 seconds |
14
+ ./spec/models/micro_cms/content_block_spec.rb[1:1:1] | passed | 0.0057 seconds |
15
+ ./spec/models/micro_cms/content_block_spec.rb[1:1:2] | passed | 0.00447 seconds |
16
+ ./spec/models/micro_cms/content_block_spec.rb[1:2:1] | passed | 0.00064 seconds |
17
+ ./spec/models/micro_cms/content_block_spec.rb[1:3:1] | passed | 0.00077 seconds |
18
+ ./spec/models/micro_cms/content_block_spec.rb[1:4:1:1] | passed | 0.00525 seconds |
19
+ ./spec/models/micro_cms/content_block_spec.rb[1:4:2:1] | passed | 0.00562 seconds |
20
+ ./spec/models/micro_cms/content_block_spec.rb[1:5:1] | passed | 0.00144 seconds |
21
+ ./spec/requests/micro_cms/content_block_controller_spec.rb[1:1:1:1] | passed | 0.04238 seconds |
22
+ ./spec/requests/micro_cms/content_block_controller_spec.rb[1:1:1:2:1] | passed | 0.00939 seconds |
23
+ ./spec/requests/micro_cms/content_block_controller_spec.rb[1:1:2:1] | passed | 0.00991 seconds |
24
+ ./spec/routing/micro_cms/content_blocks_routing_spec.rb[1:1:1] | passed | 0.00147 seconds |
25
+ ./spec/routing/micro_cms/content_blocks_routing_spec.rb[1:1:2] | passed | 0.00143 seconds |
26
+ ./spec/views/micro_cms/content_block_spec.rb[1:1] | passed | 0.0229 seconds |
27
+ ./spec/views/micro_cms/content_block_spec.rb[1:2] | passed | 0.16076 seconds |
28
+ ./spec/views/micro_cms/content_block_spec.rb[1:3] | passed | 0.01244 seconds |
29
+ ./spec/views/micro_cms/content_block_spec.rb[1:4] | passed | 0.01244 seconds |
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micro_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Bischof
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.1.0
19
+ version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.1.0
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: factory_bot_rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -132,10 +132,11 @@ files:
132
132
  - spec/dummy/config/routes.rb
133
133
  - spec/dummy/config/spring.rb
134
134
  - spec/dummy/config/storage.yml
135
- - spec/dummy/db/development.sqlite3
136
135
  - spec/dummy/db/migrate/20190923150252_create_micro_cms_content_blocks.micro_cms.rb
137
136
  - spec/dummy/db/schema.rb
137
+ - spec/dummy/db/test.sqlite3
138
138
  - spec/dummy/log/development.log
139
+ - spec/dummy/log/test.log
139
140
  - spec/dummy/public/404.html
140
141
  - spec/dummy/public/422.html
141
142
  - spec/dummy/public/500.html
@@ -144,6 +145,7 @@ files:
144
145
  - spec/dummy/public/favicon.ico
145
146
  - spec/dummy/tmp/development_secret.txt
146
147
  - spec/engine/micro_cms_spec.rb
148
+ - spec/examples.txt
147
149
  - spec/factories/micro_cms/content_blocks.rb
148
150
  - spec/helpers/micro_cms/application_helper_spec.rb
149
151
  - spec/helpers/micro_cms/cms_block_helper_spec.rb
@@ -159,7 +161,7 @@ licenses:
159
161
  - MIT
160
162
  metadata:
161
163
  allowed_push_host: https://rubygems.org/
162
- post_install_message:
164
+ post_install_message:
163
165
  rdoc_options: []
164
166
  require_paths:
165
167
  - lib
@@ -174,8 +176,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
176
  - !ruby/object:Gem::Version
175
177
  version: '0'
176
178
  requirements: []
177
- rubygems_version: 3.0.3
178
- signing_key:
179
+ rubyforge_project:
180
+ rubygems_version: 2.7.6
181
+ signing_key:
179
182
  specification_version: 4
180
183
  summary: An inline micro cms
181
184
  test_files:
@@ -229,10 +232,12 @@ test_files:
229
232
  - spec/dummy/public/404.html
230
233
  - spec/dummy/public/apple-touch-icon-precomposed.png
231
234
  - spec/dummy/db/schema.rb
235
+ - spec/dummy/db/test.sqlite3
232
236
  - spec/dummy/db/migrate/20190923150252_create_micro_cms_content_blocks.micro_cms.rb
233
- - spec/dummy/db/development.sqlite3
237
+ - spec/dummy/log/test.log
234
238
  - spec/dummy/log/development.log
235
239
  - spec/dummy/tmp/development_secret.txt
240
+ - spec/examples.txt
236
241
  - spec/models/micro_cms/content_block_spec.rb
237
242
  - spec/requests/micro_cms/content_block_controller_spec.rb
238
243
  - spec/support/shared_examples/cms_block_helper_spec_helper.rb