opal-jquery 0.5.0 → 0.5.2

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: c77dd6b6a0370f6608895f558ed760f3eb3209eaa779cf9d5b0b53ba92025702
4
- data.tar.gz: 1e5c83c4211904510375188ed3a3439f2e6579007d3e3bdeaf41fd190d2882aa
3
+ metadata.gz: 8b99a0ceb30b1ae234765ac6421f4979e018bc479a5a5852675e19379b619792
4
+ data.tar.gz: ae8603ce08da849eb3bf5cae6171f172388d32d3b0fe72a77f53c8a1938380e6
5
5
  SHA512:
6
- metadata.gz: 3f4338bd0f5c38962cac9b3aba1b39b76849ced9b61702091791296e51e6de9f92e2959becfd6587f62b6fa1fd5af8c951ea473fac13dee22ebba2e329f91b1f
7
- data.tar.gz: e4eb64e225f66476611cde51b69af4061bf20f47dec47cb1f4cabefdfe27dc3005c6887d93b27d7bfea1d2f08ccfce6861e9f8856ea733cd7847d0d7a82d5428
6
+ metadata.gz: 9730079c3b3317d90518fc261bd371e2537795a3a50389b87a2e2856d5e95c4bed29b61fd454d07272cce804c46d6aac5c7f70ac70fe0353faeedcca885eed5f
7
+ data.tar.gz: 7750ec82463424925c15afc58a4a1edc828bcd947d893ca7975f31a158c45a5ddcd09fc014b4e4dd4a2a38363c09bde3b6467f6bc3ce90c8642dedd974f74e13
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.5.2](https://github.com/opal/opal-jquery/compare/v0.5.1...v0.5.2) 2024-07-31
2
+
3
+ * Fix issue with incorrectly auto-setting content-type as 'application/json' when payload is null (#122)
4
+
5
+ ## [0.5.1](https://github.com/opal/opal-jquery/compare/v0.5.0...v0.5.1) 2024-01-08
6
+
7
+ * Added `# backtick_javascript: true` where needed to satisfy new Opal requirement (#121)
8
+
1
9
  ## [0.5.0](https://github.com/opal/opal-jquery/compare/v0.4.6...v0.5.0) 2024-01-05
2
10
 
3
11
  * Added `Event#location` (#114)
@@ -1,3 +1,5 @@
1
+ # backtick_javascript: true
2
+
1
3
  require 'native'
2
4
 
3
5
  unless defined?(JQUERY_CLASS)
@@ -1,3 +1,5 @@
1
+ # backtick_javascript: true
2
+
1
3
  require 'opal/jquery/constants'
2
4
  require 'opal/jquery/element'
3
5
 
@@ -1,3 +1,5 @@
1
+ # backtick_javascript: true
2
+
1
3
  require 'native'
2
4
  require 'opal/jquery/constants'
3
5
 
@@ -1,3 +1,5 @@
1
+ # backtick_javascript: true
2
+
1
3
  require 'opal/jquery/constants'
2
4
 
3
5
  # {Event} wraps native jQuery events into a ruby api. Instances of events
@@ -1,3 +1,5 @@
1
+ # backtick_javascript: true
2
+
1
3
  require 'json'
2
4
  require 'native'
3
5
  require 'promise'
@@ -167,7 +169,7 @@ class HTTP
167
169
  if (typeof(payload) === 'string' || settings.processData === false) {
168
170
  settings.data = payload;
169
171
  }
170
- else if (payload != nil) {
172
+ else if (payload != null) {
171
173
  settings.data = JSON.stringify(payload);
172
174
  settings.contentType = 'application/json';
173
175
  }
@@ -1,3 +1,5 @@
1
+ # backtick_javascript: true
2
+
1
3
  module Kernel
2
4
  # Alert the given message using `window.alert()`. This is a blocking
3
5
  # method.
@@ -1,3 +1,5 @@
1
+ # backtick_javascript: true
2
+
1
3
  module Browser
2
4
  # {Browser::LocalStorage} is a simple wrapper around `localStorage` in the
3
5
  # browser.
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module JQuery
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.2'
4
4
  end
5
5
  end
@@ -1,3 +1,5 @@
1
+ # backtick_javascript: true
2
+
1
3
  require 'opal/jquery/element'
2
4
 
3
5
  module Browser
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-jquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Beynon
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-01-06 00:00:00.000000000 Z
13
+ date: 2024-07-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: opal
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.3.6
190
+ rubygems_version: 3.4.10
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: Opal access to jQuery