cable_modal 0.1.4 → 0.1.5

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: c31cf3b12ebcc4f88ad49b0fe30dca7a7d026a2d372180b9e0140f2eedafaf48
4
- data.tar.gz: 318687f8efe4e35238ced6a9adb6c8692d1ee972255fa63a81e0dd8c93f90253
3
+ metadata.gz: a4ff8897388b9a1f57e195c31fff070c0f64a71f6f6e26060213e15ef976b62c
4
+ data.tar.gz: 97d6fa91c00193102fd97e89b4a495ef33d19651302fd147585b5270b70643dd
5
5
  SHA512:
6
- metadata.gz: fcfffb5da966dc4d548d0957c4579b4dd5b8863ea3655e5b3da44b59a5abf2306fbc400ae9110be7af16b9eeb47f54b7141dc3ede156589798bd7fc0f60a92e7
7
- data.tar.gz: 1a6563df5de3cd3d6b1d100a691611c019b9fe12568f4454fd522f88dc4cf22dc116cf992fb44c76d0aa9b4354792e2def8cb996aa6312a699fc3f5ea7686a41
6
+ metadata.gz: 26095abd26af35e3b2581da3e50bb94d05ea9c312a0808bd72cf145ce797b2438de1edbe288962c1073e96a7b86de64d93351d27fbef63e48cb537bb48c8a032
7
+ data.tar.gz: 01b7004bdd357bd0caf7dd1788d778f1fa32088de2696e45002ba3893bd12703b39c0517619a158bc6bfadff5c66a7d616532890f2c3fc7b6830bb93f6332d26
data/README.md CHANGED
@@ -44,14 +44,14 @@ A great way to to use these to control the custom modal is with [mrujs](https://
44
44
 
45
45
  First you'll want to set up mrujs with the CableCar plugin. Follow the [instructions in the mrujs docs](https://mrujs.com/how-tos/integrate-cablecar).
46
46
 
47
- Now you can add `data-cable-car` to any links or forms you want to use to control the modal.
47
+ Now you can add `data-remote` to any links or forms you want to use to control the modal.
48
48
 
49
49
  ```html
50
- <a href="/confirmations/new" data-cable-car>Open Confirmation in Modal</a>
50
+ <a href="/confirmations/new" data-remote>Open Confirmation in Modal</a>
51
51
 
52
52
  <!-- OR -->
53
53
 
54
- <form action="/confirmations" data-cable-car>
54
+ <form action="/confirmations" data-remote>
55
55
  <button>Submit form and process result in modal</button>
56
56
  </form>
57
57
  ```
@@ -88,6 +88,8 @@ Then in your controllers, process the request and use `render operations:` to se
88
88
  end
89
89
  ```
90
90
 
91
+ There's a full reference implementation in [/test/dummy](/test/dummy) of this repo.
92
+
91
93
  ## Customization
92
94
 
93
95
  If you don't want to use Bootstrap's modals, you can write your own plugin and then pass it to `CableModal.use(plugin)` in your javascript initializion.
@@ -1,3 +1,3 @@
1
1
  module CableModal
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cable_modal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafe Rosen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-23 00:00:00.000000000 Z
11
+ date: 2021-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails