ext_yarn 0.3.0 → 0.3.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: 1edcfc68e21531d2d8cfb737b5882686ad65954dd6c9f4c9051e3cfd3d44f706
4
- data.tar.gz: 4267f63e820f5acaa79d2dfdb03b5088aacf5941966d0a35922aeadacda507b8
3
+ metadata.gz: dc1b39d7ac52024f5186be60032f8f1072d9710c1b0e584ce0b988801e06d4b8
4
+ data.tar.gz: 997bd8c1871ca0b0c4cb50bbc5115caf930135095b891b090e9a8d21ca460d57
5
5
  SHA512:
6
- metadata.gz: 1027018c23d91e4c7b45e1b95129d5555170f36b2f06ea6dd5c504f8e33b22857bbc9e8870e14bd747d34158665f8e6615cbfec82953a1ec54ce288e77d3a9ce
7
- data.tar.gz: a16636931411f4425e134cf95caf2fa51cd66595977ec35779007ec0b7eb4a4273cbf6dbb12d47f026672ee71e7d328e3bbbde9d4964e8810e32ca2760bbb5a2
6
+ metadata.gz: d6aa384def0d3f4c50ca2a043e3e70e6af1271ddf7644fbfc0cb161059ac196fab8f65338a479d816e7407cd03cd654d1e57317235029e2d0d3df7e09c1f61a1
7
+ data.tar.gz: a492bf36e6254e50671b5f1250d117e1918102e96eefe6c7f231779ea1b9b68b65b79b3cfc9d547c6816485c1b12638a79a33f37830511d2ba443add66bad153
@@ -1,3 +1,3 @@
1
1
  module ExtYarn
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -49,8 +49,7 @@
49
49
  "font-awesome-sass@^4.7.0": "https://registry.yarnpkg.com/font-awesome-sass/-/font-awesome-sass-4.7.0.tgz#4eda693e915009ce00b228e0964dc5eca9bc34e1",
50
50
  "jquery-pjax@defunkt/jquery-pjax": "https://codeload.github.com/defunkt/jquery-pjax/tar.gz/153262eda33e31119eabb97cd5f14365580a3b35",
51
51
  "jquery-ui@^1.12.1": "https://registry.yarnpkg.com/jquery-ui/-/jquery-ui-1.12.1.tgz#bcb4045c8dd0539c134bc1488cdd3e768a7a9e51",
52
- "jquery-ujs@rails/jquery-ujs": "https://codeload.github.com/rails/jquery-ujs/tar.gz/4b6e30f68ff1244fc0c790641d3408c2695a29bd",
53
- "jquery@>=1.8.0": "https://registry.yarnpkg.com/jquery/-/jquery-3.2.1.tgz#5c4d9de652af6cd0a770154a631bba12b015c787",
52
+ "jquery-ujs@rails/jquery-ujs": "https://codeload.github.com/rails/jquery-ujs/tar.gz/9e805c90c8cfc57b39967052e1e9013ccb318cf8",
54
53
  "jquery@^1.8.3 || ^2.0 || ^3.0": "https://registry.yarnpkg.com/jquery/-/jquery-3.2.1.tgz#5c4d9de652af6cd0a770154a631bba12b015c787",
55
54
  "jquery@^3.0": "https://registry.yarnpkg.com/jquery/-/jquery-3.3.1.tgz#958ce29e81c9790f31be7792df5d4d95fc57fbca",
56
55
  "jquery@^3.2.1": "https://registry.yarnpkg.com/jquery/-/jquery-3.2.1.tgz#5c4d9de652af6cd0a770154a631bba12b015c787",
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/rails/jquery-ujs/issues"
21
21
  },
22
22
  "homepage": "https://github.com/rails/jquery-ujs#readme",
23
- "dependencies": {
23
+ "peerDependencies": {
24
24
  "jquery": ">=1.8.0"
25
25
  }
26
26
  }
@@ -1,4 +1,4 @@
1
- (function($, undefined) {
1
+ /* jshint node: true */
2
2
 
3
3
  /**
4
4
  * Unobtrusive scripting adapter for jQuery
@@ -10,10 +10,13 @@
10
10
  *
11
11
  */
12
12
 
13
- // Cut down on the number of issues from people inadvertently including jquery_ujs twice
14
- // by detecting and raising an error when it happens.
13
+ (function() {
15
14
  'use strict';
16
15
 
16
+ var jqueryUjsInit = function($, undefined) {
17
+
18
+ // Cut down on the number of issues from people inadvertently including jquery_ujs twice
19
+ // by detecting and raising an error when it happens.
17
20
  if ( $.rails !== undefined ) {
18
21
  $.error('jquery-ujs has already been loaded!');
19
22
  }
@@ -552,4 +555,11 @@
552
555
  });
553
556
  }
554
557
 
555
- })( jQuery );
558
+ };
559
+
560
+ if (window.jQuery) {
561
+ jqueryUjsInit(jQuery);
562
+ } else if (typeof exports === 'object' && typeof module === 'object') {
563
+ module.exports = jqueryUjsInit;
564
+ }
565
+ })();
data/yarn.lock CHANGED
@@ -93,11 +93,9 @@ jquery-ui@^1.12.1:
93
93
 
94
94
  jquery-ujs@rails/jquery-ujs:
95
95
  version "1.2.2"
96
- resolved "https://codeload.github.com/rails/jquery-ujs/tar.gz/4b6e30f68ff1244fc0c790641d3408c2695a29bd"
97
- dependencies:
98
- jquery ">=1.8.0"
96
+ resolved "https://codeload.github.com/rails/jquery-ujs/tar.gz/9e805c90c8cfc57b39967052e1e9013ccb318cf8"
99
97
 
100
- jquery@>=1.8.0, "jquery@^1.8.3 || ^2.0 || ^3.0", jquery@^3.2.1:
98
+ "jquery@^1.8.3 || ^2.0 || ^3.0", jquery@^3.2.1:
101
99
  version "3.2.1"
102
100
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.2.1.tgz#5c4d9de652af6cd0a770154a631bba12b015c787"
103
101
  integrity sha1-XE2d5lKvbNCncBVKYxu6ErAVx4c=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ext_yarn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel