micro_cms 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 9c07cc5c21d44d0bde6dfa7bde4e7b5688e7b91d89dde60cf0bdd0fd6e9f9968
4
- data.tar.gz: fc83030b2ec6e131e1e06c7973cc310646494ebcdcc000e1445502231123a721
3
+ metadata.gz: b3210f0003f1a1aa7cf244e31f422c59c7cd0f94e5dab737741fc4f42938d3b0
4
+ data.tar.gz: 91e26c323e9ff161ac74b10d2298342f5bcc793acaf5f7aeab9663a6313e91dc
5
5
  SHA512:
6
- metadata.gz: dc5e6115395ff2ecf1f73cf4858eebd16278577d4e6429abd1ed3588c1ed48bf6ee8e0294b45e5ab4d83d688f5b6ec9986133b8c20a6378b785ffbb9f881e4ab
7
- data.tar.gz: e4a8ddbfd248205257603b2da075bebf683f7eaa4fee68e458ba3e63c969aa81a08444d81fd88d566219afcd6eb7b8c77528a6fd121154a568461604c5f36612
6
+ metadata.gz: 1550597f4dc88a7fca811659ade5a7b69a7f8c257390775f6ee01300cbef04147a30edc4194a649a57006af18f7bf9d38eac6392fb69831af80e3dc508946b7b
7
+ data.tar.gz: 88c28d676007229ee74f0af69b99783a04333d5ae3500e9a2b5d93908f356698302f21344bc197c5355ce70e1380d9e3392080eef8f81d04e66198912dbdef91
@@ -44,9 +44,11 @@
44
44
  }
45
45
  };
46
46
 
47
- window.addEventListener('load', setupMicroCms);
48
-
49
47
  if ('Turbolinks' in window && Turbolinks.supported) {
50
48
  $(document).on('turbolinks:load', setupMicroCms);
49
+ } else if ('Turbo' in window) {
50
+ document.addEventListener('turbo:load', setupMicroCms);
51
+ } else {
52
+ window.addEventListener('load', setupMicroCms);
51
53
  }
52
54
  })(jQuery);
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicroCms
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Bischof
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-23 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -176,75 +176,74 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  requirements: []
179
- rubyforge_project:
180
- rubygems_version: 2.7.6
179
+ rubygems_version: 3.3.7
181
180
  signing_key:
182
181
  specification_version: 4
183
182
  summary: An inline micro cms
184
183
  test_files:
185
- - spec/spec_helper.rb
186
- - spec/dummy/app/mailers/application_mailer.rb
187
- - spec/dummy/app/models/application_record.rb
184
+ - spec/dummy/Rakefile
185
+ - spec/dummy/app/assets/config/manifest.js
186
+ - spec/dummy/app/assets/stylesheets/application.css
187
+ - spec/dummy/app/channels/application_cable/channel.rb
188
+ - spec/dummy/app/channels/application_cable/connection.rb
189
+ - spec/dummy/app/controllers/application_controller.rb
190
+ - spec/dummy/app/helpers/application_helper.rb
188
191
  - spec/dummy/app/javascript/packs/application.js
189
192
  - spec/dummy/app/jobs/application_job.rb
190
- - spec/dummy/app/controllers/application_controller.rb
193
+ - spec/dummy/app/mailers/application_mailer.rb
194
+ - spec/dummy/app/models/application_record.rb
191
195
  - spec/dummy/app/views/layouts/application.html.erb
192
196
  - spec/dummy/app/views/layouts/mailer.html.erb
193
197
  - spec/dummy/app/views/layouts/mailer.text.erb
194
- - spec/dummy/app/assets/config/manifest.js
195
- - spec/dummy/app/assets/stylesheets/application.css
196
- - spec/dummy/app/helpers/application_helper.rb
197
- - spec/dummy/app/channels/application_cable/connection.rb
198
- - spec/dummy/app/channels/application_cable/channel.rb
198
+ - spec/dummy/bin/rails
199
199
  - spec/dummy/bin/rake
200
- - spec/dummy/bin/setup
201
200
  - spec/dummy/bin/rspec
201
+ - spec/dummy/bin/setup
202
202
  - spec/dummy/bin/spring
203
- - spec/dummy/bin/rails
204
- - spec/dummy/config/routes.rb
205
- - spec/dummy/config/locales/en.yml
203
+ - spec/dummy/config/application.rb
204
+ - spec/dummy/config/boot.rb
206
205
  - spec/dummy/config/cable.yml
207
- - spec/dummy/config/environments/production.rb
206
+ - spec/dummy/config/database.yml
207
+ - spec/dummy/config/environment.rb
208
208
  - spec/dummy/config/environments/development.rb
209
+ - spec/dummy/config/environments/production.rb
209
210
  - spec/dummy/config/environments/test.rb
210
- - spec/dummy/config/spring.rb
211
- - spec/dummy/config/environment.rb
212
- - spec/dummy/config/storage.yml
213
- - spec/dummy/config/application.rb
214
- - spec/dummy/config/puma.rb
215
- - spec/dummy/config/database.yml
216
- - spec/dummy/config/boot.rb
217
211
  - spec/dummy/config/initializers/application_controller_renderer.rb
218
- - spec/dummy/config/initializers/backtrace_silencers.rb
219
- - spec/dummy/config/initializers/mime_types.rb
220
- - spec/dummy/config/initializers/filter_parameter_logging.rb
221
- - spec/dummy/config/initializers/wrap_parameters.rb
222
212
  - spec/dummy/config/initializers/assets.rb
223
- - spec/dummy/config/initializers/cookies_serializer.rb
213
+ - spec/dummy/config/initializers/backtrace_silencers.rb
224
214
  - spec/dummy/config/initializers/content_security_policy.rb
215
+ - spec/dummy/config/initializers/cookies_serializer.rb
216
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
225
217
  - spec/dummy/config/initializers/inflections.rb
218
+ - spec/dummy/config/initializers/mime_types.rb
219
+ - spec/dummy/config/initializers/wrap_parameters.rb
220
+ - spec/dummy/config/locales/en.yml
221
+ - spec/dummy/config/puma.rb
222
+ - spec/dummy/config/routes.rb
223
+ - spec/dummy/config/spring.rb
224
+ - spec/dummy/config/storage.yml
226
225
  - spec/dummy/config.ru
227
- - spec/dummy/Rakefile
228
- - spec/dummy/public/favicon.ico
229
- - spec/dummy/public/422.html
230
- - spec/dummy/public/apple-touch-icon.png
231
- - spec/dummy/public/500.html
232
- - spec/dummy/public/404.html
233
- - spec/dummy/public/apple-touch-icon-precomposed.png
226
+ - spec/dummy/db/migrate/20190923150252_create_micro_cms_content_blocks.micro_cms.rb
234
227
  - spec/dummy/db/schema.rb
235
228
  - spec/dummy/db/test.sqlite3
236
- - spec/dummy/db/migrate/20190923150252_create_micro_cms_content_blocks.micro_cms.rb
237
- - spec/dummy/log/test.log
238
229
  - spec/dummy/log/development.log
230
+ - spec/dummy/log/test.log
231
+ - spec/dummy/public/404.html
232
+ - spec/dummy/public/422.html
233
+ - spec/dummy/public/500.html
234
+ - spec/dummy/public/apple-touch-icon-precomposed.png
235
+ - spec/dummy/public/apple-touch-icon.png
236
+ - spec/dummy/public/favicon.ico
239
237
  - spec/dummy/tmp/development_secret.txt
238
+ - spec/engine/micro_cms_spec.rb
240
239
  - spec/examples.txt
240
+ - spec/factories/micro_cms/content_blocks.rb
241
+ - spec/helpers/micro_cms/application_helper_spec.rb
242
+ - spec/helpers/micro_cms/cms_block_helper_spec.rb
241
243
  - spec/models/micro_cms/content_block_spec.rb
244
+ - spec/rails_helper.rb
242
245
  - spec/requests/micro_cms/content_block_controller_spec.rb
243
- - spec/support/shared_examples/cms_block_helper_spec_helper.rb
244
- - spec/factories/micro_cms/content_blocks.rb
245
246
  - spec/routing/micro_cms/content_blocks_routing_spec.rb
247
+ - spec/spec_helper.rb
248
+ - spec/support/shared_examples/cms_block_helper_spec_helper.rb
246
249
  - spec/views/micro_cms/content_block_spec.rb
247
- - spec/engine/micro_cms_spec.rb
248
- - spec/rails_helper.rb
249
- - spec/helpers/micro_cms/application_helper_spec.rb
250
- - spec/helpers/micro_cms/cms_block_helper_spec.rb