shimmer 0.0.8 → 0.0.9

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: 875686b1fc81225c69cbbaedbf38327709de9233c784ee72c32ca2eff2c8fe5d
4
- data.tar.gz: 324f34718ecca0e2b0d1a88c7f46c59532686b4ad149cdefa3a9098ed997a33f
3
+ metadata.gz: 166c374942cdbfe22b8a1274633247cb95964439bcd959ca8cdb59a774767f50
4
+ data.tar.gz: 4e64bb6dc30433b6521c6283e5ad9e1232cdadd6b993a45ba4c27999eebb5c36
5
5
  SHA512:
6
- metadata.gz: 5d640f8e34aef1dd6bbf18e792c6c34ecd3c10a11559f01dcda1877260ae7447d62a8207aee94951028a87000cc3288502ccc2a6ade8037150cefe0132972541
7
- data.tar.gz: fcf2e88cccb9ee701051358858f6c9c9e8f9978bab1d723571cb0a58eb9d937dde684c068827d6dec98ab2169a4dbf2a29cb9d26ce9476d5a2e6803f98c42cc3
6
+ metadata.gz: 803fcbb251147f224eaa42ce9b5bdca8a2e7d73488e32b7ef01f91abdcff01674b0238b8a0fc0ae2299d69855938a0fe817a9f1b8e1becdfba6cfbc36b8b1595
7
+ data.tar.gz: 545e5378acb4c46a72fa8604f6e881921d65723008e28561aa688d7a1d83729b23bf7f4b1b0ae1d76328fde2cda0a04f4c8176cc167aa632aeee60e5bcfa465f
@@ -3,14 +3,17 @@
3
3
  namespace :db do
4
4
  desc "Downloads the app database from heroku to local db"
5
5
  task pull_data: :environment do
6
- config = ActiveRecord::Base.connection_db_config.config
7
- # binding.pry
6
+ config = if Rails.version.to_f >= 7
7
+ ActiveRecord::Base.connection_db_config.configuration_hash.with_indifferent_access
8
+ else
9
+ ActiveRecord::Base.connection_db_config.config
10
+ end
8
11
  ENV["DISABLE_DATABASE_ENVIRONMENT_CHECK"] = "1"
9
12
  Rake::Task["db:drop"].invoke
10
13
  ENV["PGUSER"] = config["username"]
11
14
  ENV["PGHOST"] = config["host"]
12
15
  ENV["PGPORT"] = config["port"].to_s
13
- sh "heroku pg:pull DATABASE_URL #{config["database"]} --app thefetishtraveller"
16
+ sh "heroku pg:pull DATABASE_URL #{config["database"]}"
14
17
  sh "rails db:environment:set"
15
18
  sh "RAILS_ENV=test rails db:create"
16
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shimmer
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
data/src/modal.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { loaded, createElement, nextFrame, getHTML } from "./util";
1
+ import { createElement, nextFrame, getHTML } from "./util";
2
2
 
3
3
  export interface ModalOptions {
4
4
  id?: string;
@@ -11,7 +11,7 @@ export class ModalPresenter {
11
11
  private modals: Record<string, Modal> = {};
12
12
 
13
13
  constructor() {
14
- loaded.then(this.prepareBlind);
14
+ document.addEventListener("turbo:load", this.prepareBlind);
15
15
  }
16
16
 
17
17
  async open(options: ModalOptions): Promise<void> {
@@ -38,9 +38,9 @@ export class ModalPresenter {
38
38
  document.body.classList.toggle("modal-open", open);
39
39
  }
40
40
 
41
- private async prepareBlind(): Promise<void> {
41
+ private prepareBlind: () => void = () => {
42
42
  createElement(document.body, "modal-blind");
43
- }
43
+ };
44
44
  }
45
45
 
46
46
  export class Modal {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shimmer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Ravens
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-03 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: