ext_sprockets 0.1.1 → 0.1.5

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
  SHA1:
3
- metadata.gz: ad70452176bcca86a2f7d9b6feb9926822df1f35
4
- data.tar.gz: b6a524cce32485b436cfe48651e8fb12a17f87f5
3
+ metadata.gz: 18257eaf2f7495d779ba5e531e3c1181ae2ae10c
4
+ data.tar.gz: 65864d7477ae561f75505dee228036c8ddaf0c62
5
5
  SHA512:
6
- metadata.gz: fb796f77d722e1d508d20077198b17f0088d401657017a18dce62881a8e4d7687e207baf0cb8c0e351938d2b18531d8c824035e36655311325c57e2cda0d97af
7
- data.tar.gz: 8e77a2641331ec382ea62614d14d90a581c8bf8a6228229a6d4e4734fe655fa4d31c4065a11d2fb88f06d2ea866e39417cbea1ce298a3edd8caebe261df81fdd
6
+ metadata.gz: deeaecc6ac2555fb2507d64e291c26173ada200c9752ef719865832d880add6b24d99624695abbe85571f541633c00761af1b5c27b7b605abb5557cbae7d9e66
7
+ data.tar.gz: 54dbd450b89c378fcf4d9606e5c8fbfc612ff569274319dc15fb6c6fac78dfabe8748e5c1adb75e45486c48671627037c3626f71d2e9cb488899e8876e6cf8f8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ext_sprockets (0.1.1)
4
+ ext_sprockets (0.1.5)
5
5
  sprockets-rails (~> 3.2)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module ExtSprockets
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.5'
3
3
  end
@@ -190,7 +190,13 @@
190
190
 
191
191
  function getJSON(element, url, success) {
192
192
  ajaxCall(url, success, function (jqXHR, textStatus, errorThrown) {
193
- var message = (typeof errorThrown === "string") ? errorThrown : errorThrown.message;
193
+ // PATCH_BEGIN
194
+ var message = jqXHR.getResponseHeader("X-Status-Reason");
195
+ if (jqXHR.status === 413) {
196
+ message = message || "Request Entity Too Large";
197
+ }
198
+ message = message || ((typeof errorThrown === "string") ? errorThrown : errorThrown.message);
199
+ // PATCH_END
194
200
  chartError(element, message);
195
201
  });
196
202
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ext_sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-06 00:00:00.000000000 Z
11
+ date: 2018-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets-rails
@@ -568,7 +568,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
568
568
  version: '0'
569
569
  requirements: []
570
570
  rubyforge_project:
571
- rubygems_version: 2.6.13
571
+ rubygems_version: 2.6.11
572
572
  signing_key:
573
573
  specification_version: 4
574
574
  summary: ExtSprockets