cable_ready 4.0.5 → 4.0.6

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: 2b9c23ac0c1922214962cc1fa5b4b4393d1e94b8f3a3d022b143dd1084062426
4
- data.tar.gz: 3b02caea41f6b1f1831efb26c46164a7ea7d582b33dd92183a636466f7f2b337
3
+ metadata.gz: 1b121b1e33a62d1196e08b55b1a2c8a89d53e54ec1d5880264624714aaf57cdd
4
+ data.tar.gz: 8218ea4e5fce9728eee4b5979df81f7e4a6752f1f7dcea33746d38b460d45321
5
5
  SHA512:
6
- metadata.gz: 9b98c94abac2805339b616886d8a762aaf11a8a33777fcfe07233710935862ad6ef44c8618d2fc070478d4699816b56563bde0f0d2b11c7dafedce4f56d69efc
7
- data.tar.gz: 2cf29a70f34cee2cda1a2ef8349b06dd03847b30577088bfdc4b8032226011de644225f5d015535ecb4738063d4e471087a00961b3e20dc29b1a80bbc04b20ee
6
+ metadata.gz: fbee1b6a0cdcadbb565441617e9c8f09bb13b915fb8858cdc3b6d13ef9bc22b79d7a9b5149d9c6f5834356cd9b884197ba92cd6a4e9b6d9b9d73b3ae903e7191
7
+ data.tar.gz: d407c484474ed1f3acf46adaed5c96af4067d58f75252bcf395eaa98fa7c857cc8438f68735d6b15e7852ef8d326258b09ad6a4bc4c8da2e0caac5eca371a2f6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cable_ready (4.0.5)
4
+ cable_ready (4.0.6)
5
5
  rails (>= 5.2)
6
6
 
7
7
  GEM
@@ -67,13 +67,13 @@ GEM
67
67
  coderay (1.1.2)
68
68
  concurrent-ruby (1.1.5)
69
69
  crass (1.0.4)
70
- erubi (1.8.0)
70
+ erubi (1.9.0)
71
71
  globalid (0.4.2)
72
72
  activesupport (>= 4.2.0)
73
73
  i18n (1.6.0)
74
74
  concurrent-ruby (~> 1.0)
75
75
  jaro_winkler (1.5.3)
76
- loofah (2.2.3)
76
+ loofah (2.3.0)
77
77
  crass (~> 1.0.2)
78
78
  nokogiri (>= 1.5.9)
79
79
  mail (2.7.1)
@@ -84,12 +84,12 @@ GEM
84
84
  mimemagic (0.3.3)
85
85
  mini_mime (1.0.2)
86
86
  mini_portile2 (2.4.0)
87
- minitest (5.11.3)
88
- nio4r (2.5.1)
87
+ minitest (5.12.2)
88
+ nio4r (2.5.2)
89
89
  nokogiri (1.10.4)
90
90
  mini_portile2 (~> 2.4.0)
91
91
  parallel (1.17.0)
92
- parser (2.6.3.0)
92
+ parser (2.6.5.0)
93
93
  ast (~> 2.4.0)
94
94
  pry (0.12.2)
95
95
  coderay (~> 1.1.0)
@@ -126,7 +126,7 @@ GEM
126
126
  rake (>= 0.8.7)
127
127
  thor (>= 0.20.3, < 2.0)
128
128
  rainbow (3.0.0)
129
- rake (12.3.3)
129
+ rake (13.0.0)
130
130
  rubocop (0.72.0)
131
131
  jaro_winkler (~> 1.5.1)
132
132
  parallel (~> 1.10)
@@ -144,7 +144,7 @@ GEM
144
144
  actionpack (>= 4.0)
145
145
  activesupport (>= 4.0)
146
146
  sprockets (>= 3.0.0)
147
- standard (0.1.2)
147
+ standard (0.1.4)
148
148
  rubocop (~> 0.72.0)
149
149
  rubocop-performance (~> 1.4.0)
150
150
  standardrb (1.0.0)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Lines of Code](http://img.shields.io/badge/lines_of_code-241-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
1
+ [![Lines of Code](http://img.shields.io/badge/lines_of_code-268-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
2
2
  [![Maintainability](https://api.codeclimate.com/v1/badges/83ddf1fee4af7e51a681/maintainability)](https://codeclimate.com/github/hopsoft/cable_ready/maintainability)
3
3
 
4
4
  # CableReady
@@ -114,10 +114,11 @@ cable_ready["MyChannel"].dispatch_event(
114
114
 
115
115
  ```ruby
116
116
  cable_ready["MyChannel"].morph(
117
- selector: "string", # required - string containing a CSS selector or XPath expression
118
- html: "string" # [null] - the HTML to assign
119
- children_only: true|false # [null] - indicates if only child nodes should be morphed... skipping the parent element
120
- focus_selector: "string", # [null] - string containing a CSS selector
117
+ selector: "string", # required - string containing a CSS selector or XPath expression
118
+ html: "string", # [null] - the HTML to assign
119
+ children_only: true|false, # [null] - indicates if only child nodes should be morphed... skipping the parent element
120
+ permanent_attribute_name: "string", # [null] - an attribute name that prevents elements from being updated i.e. "data-permanent"
121
+ focus_selector: "string", # [null] - string containing a CSS selector
121
122
  )
122
123
  ```
123
124
 
data/bin/loc ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+
3
+ cloc --exclude-dir=node_modules,test --include-ext=rb,js .
data/bin/standardize CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  bundle exec standardrb --fix
4
- cd ./javascript && yarn run prettier --write cable_ready.js
4
+ cd ./javascript && yarn run prettier-standard cable_ready.js
@@ -19,6 +19,7 @@ module CableReady
19
19
  # selector: "string",
20
20
  # html: "string"
21
21
  # children_only: true|false,
22
+ # permanent_attribute_name: "string",
22
23
  # focus_selector: "string",
23
24
  # }, ...],
24
25
  #
@@ -1,3 +1,3 @@
1
1
  module CableReady
2
- VERSION = "4.0.5"
2
+ VERSION = "4.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cable_ready
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.5
4
+ version: 4.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-20 00:00:00.000000000 Z
11
+ date: 2019-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -93,6 +93,7 @@ files:
93
93
  - README.md
94
94
  - Rakefile
95
95
  - bin/console
96
+ - bin/loc
96
97
  - bin/setup
97
98
  - bin/standardize
98
99
  - lib/cable_ready.rb