Hello community,
here is the log from the commit of package rubygem-activestorage-5.2 for
openSUSE:Factory checked in at 2018-08-12 20:53:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activestorage-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activestorage-5.2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activestorage-5.2"
Sun Aug 12 20:53:34 2018 rev:2 rq:628585 version:5.2.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activestorage-5.2/rubygem-activestorage-5.2.changes
2018-07-18 22:47:26.820252585 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-activestorage-5.2.new/rubygem-activestorage-5.2.changes
2018-08-12 20:53:38.761256926 +0200
@@ -1,0 +2,11 @@
+Wed Aug 8 14:54:46 UTC 2018 - [email protected]
+
+- updated to version 5.2.1 (boo#1104209)
+
+ * Fix direct upload with zero-byte files.
+ (George Claghorn)
+
+ * Exclude JSON root from `active_storage/direct_uploads#create` response.
+ (Javan Makhmali)
+
+-------------------------------------------------------------------
Old:
----
activestorage-5.2.0.gem
New:
----
activestorage-5.2.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activestorage-5.2.spec ++++++
--- /var/tmp/diff_new_pack.eDA6IP/_old 2018-08-12 20:53:39.213257843 +0200
+++ /var/tmp/diff_new_pack.eDA6IP/_new 2018-08-12 20:53:39.213257843 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-activestorage-5.2
-Version: 5.2.0
+Version: 5.2.1
Release: 0
%define mod_name activestorage
%define mod_full_name %{mod_name}-%{version}
++++++ activestorage-5.2.0.gem -> activestorage-5.2.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2018-04-09 22:04:40.000000000 +0200
+++ new/CHANGELOG.md 2018-08-07 23:42:20.000000000 +0200
@@ -1,3 +1,14 @@
+## Rails 5.2.1 (August 07, 2018) ##
+
+* Fix direct upload with zero-byte files.
+
+ *George Claghorn*
+
+* Exclude JSON root from `active_storage/direct_uploads#create` response.
+
+ *Javan Makhmali*
+
+
## Rails 5.2.0 (April 09, 2018) ##
* Allow full use of the AWS S3 SDK options for authentication. If an
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/assets/javascripts/activestorage.js
new/app/assets/javascripts/activestorage.js
--- old/app/assets/javascripts/activestorage.js 2018-04-09 22:04:40.000000000
+0200
+++ new/app/assets/javascripts/activestorage.js 2018-08-07 23:42:20.000000000
+0200
@@ -1 +1 @@
-!function(t,e){"object"==typeof exports&&"object"==typeof
module?module.exports=e():"function"==typeof
define&&define.amd?define([],e):"object"==typeof
exports?exports.ActiveStorage=e():t.ActiveStorage=e()}(this,function(){return
function(t){function e(n){if(r[n])return r[n].exports;var
i=r[n]={i:n,l:!1,exports:{}};return
t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return
e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var
r=t&&t.__esModule?function(){return t.default}:function(){return t};return
e.d(r,"a",r),r},e.o=function(t,e){return
Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=2)}([function(t,e,r){"use
strict";function n(t){var e=a(document.head,'meta[name="'+t+'"]');if(e)return
e.getAttribute("content")}function i(t,e){return"string"==typeof
t&&(e=t,t=document),o(t.querySelectorAll(e))}function
a(t,e){return"string"==typeof t&&(e=t,t=document),t.querySelector(e)}function
u(t,e){var r=arguments.length>2&&void
0!==arguments[2]?arguments[2]:{},n=t.disabled,i=r.bubbles,a=r.cancelable,u=r.detail,o=document.createEvent("Event");o.initEvent(e,i||!0,a||!0),o.detail=u||{};try{t.disabled=!1,t.dispatchEvent(o)}finally{t.disabled=n}return
o}function o(t){return
Array.isArray(t)?t:Array.from?Array.from(t):[].slice.call(t)}e.d=n,e.c=i,e.b=a,e.a=u,e.e=o},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call
a class as a function")}function i(t,e){if(t&&"function"==typeof t[e]){for(var
r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return
t[e].apply(t,n)}}r.d(e,"a",function(){return c});var
a=r(6),u=r(8),o=r(9),s=function(){function t(t,e){for(var
r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),f=0,c=function(){function
t(e,r,i){n(this,t),this.id=++f,this.file=e,this.url=r,this.delegate=i}return
s(t,[{key:"create",value:function(t){var
e=this;a.a.create(this.file,function(r,n){if(r)return void t(r);var a=new
u.a(e.file,n,e.url);i(e.delegate,"directUploadWillCreateBlobWithXHR",a.xhr),a.create(function(r){if(r)t(r);else{var
n=new
o.a(a);i(e.delegate,"directUploadWillStoreFileWithXHR",n.xhr),n.create(function(e){e?t(e):t(null,a.toJSON())})}})})}}]),t}()},function(t,e,r){"use
strict";function
n(){window.ActiveStorage&&Object(i.a)()}Object.defineProperty(e,"__esModule",{value:!0});var
i=r(3),a=r(1);r.d(e,"start",function(){return
i.a}),r.d(e,"DirectUpload",function(){return
a.a}),setTimeout(n,1)},function(t,e,r){"use strict";function
n(){d||(d=!0,document.addEventListener("submit",i),document.addEventListener("ajax:before",a))}function
i(t){u(t)}function a(t){"FORM"==t.target.tagName&&u(t)}function u(t){var
e=t.target;if(e.hasAttribute(l))return void t.preventDefault();var r=new
c.a(e),n=r.inputs;n.length&&(t.preventDefault(),e.setAttribute(l,""),n.forEach(s),r.start(function(t){e.removeAttribute(l),t?n.forEach(f):o(e)}))}function
o(t){var e=Object(h.b)(t,"input[type=submit]");if(e){var
r=e,n=r.disabled;e.disabled=!1,e.focus(),e.click(),e.disabled=n}else
e=document.createElement("input"),e.type="submit",e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e)}function
s(t){t.disabled=!0}function f(t){t.disabled=!1}e.a=n;var
c=r(4),h=r(0),l="data-direct-uploads-processing",d=!1},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a
class as a function")}r.d(e,"a",function(){return s});var
i=r(5),a=r(0),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),o="input[type=file][data-direct-upload-url]:not([disabled])",s=function(){function
t(e){n(this,t),this.form=e,this.inputs=Object(a.c)(e,o).filter(function(t){return
t.files.length})}return u(t,[{key:"start",value:function(t){var
e=this,r=this.createDirectUploadControllers();this.dispatch("start"),function
n(){var
i=r.shift();i?i.start(function(r){r?(t(r),e.dispatch("end")):n()}):(t(),e.dispatch("end"))}()}},{key:"createDirectUploadControllers",value:function(){var
t=[];return
this.inputs.forEach(function(e){Object(a.e)(e.files).forEach(function(r){var
n=new i.a(e,r);t.push(n)})}),t}},{key:"dispatch",value:function(t){var
e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return
Object(a.a)(this.form,"direct-uploads:"+t,{detail:e})}}]),t}()},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call
a class as a function")}r.d(e,"a",function(){return o});var
i=r(1),a=r(0),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function(){function
t(e,r){n(this,t),this.input=e,this.file=r,this.directUpload=new
i.a(this.file,this.url,this),this.dispatch("initialize")}return
u(t,[{key:"start",value:function(t){var
e=this,r=document.createElement("input");r.type="hidden",r.name=this.input.name,this.input.insertAdjacentElement("beforebegin",r),this.dispatch("start"),this.directUpload.create(function(n,i){n?(r.parentNode.removeChild(r),e.dispatchError(n)):r.value=i.signed_id,e.dispatch("end"),t(n)})}},{key:"uploadRequestDidProgress",value:function(t){var
e=t.loaded/t.total*100;e&&this.dispatch("progress",{progress:e})}},{key:"dispatch",value:function(t){var
e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return
e.file=this.file,e.id=this.directUpload.id,Object(a.a)(this.input,"direct-upload:"+t,{detail:e})}},{key:"dispatchError",value:function(t){this.dispatch("error",{error:t}).defaultPrevented||alert(t)}},{key:"directUploadWillCreateBlobWithXHR",value:function(t){this.dispatch("before-blob-request",{xhr:t})}},{key:"directUploadWillStoreFileWithXHR",value:function(t){var
e=this;this.dispatch("before-storage-request",{xhr:t}),t.upload.addEventListener("progress",function(t){return
e.uploadRequestDidProgress(t)})}},{key:"url",get:function(){return
this.input.getAttribute("data-direct-upload-url")}}]),t}()},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call
a class as a function")}r.d(e,"a",function(){return s});var
i=r(7),a=r.n(i),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),o=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=function(){function
t(e){n(this,t),this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}return
u(t,null,[{key:"create",value:function(e,r){new
t(e).create(r)}}]),u(t,[{key:"create",value:function(t){var
e=this;this.callback=t,this.md5Buffer=new a.a.ArrayBuffer,this.fileReader=new
FileReader,this.fileReader.addEventListener("load",function(t){return
e.fileReaderDidLoad(t)}),this.fileReader.addEventListener("error",function(t){return
e.fileReaderDidError(t)}),this.readNextChunk()}},{key:"fileReaderDidLoad",value:function(t){if(this.md5Buffer.append(t.target.result),!this.readNextChunk()){var
e=this.md5Buffer.end(!0),r=btoa(e);this.callback(null,r)}}},{key:"fileReaderDidError",value:function(t){this.callback("Error
reading
"+this.file.name)}},{key:"readNextChunk",value:function(){if(this.chunkIndex<this.chunkCount){var
t=this.chunkIndex*this.chunkSize,e=Math.min(t+this.chunkSize,this.file.size),r=o.call(this.file,t,e);return
this.fileReader.readAsArrayBuffer(r),this.chunkIndex++,!0}return!1}}]),t}()},function(t,e,r){!function(e){t.exports=e()}(function(t){"use
strict";function e(t,e){var
r=t[0],n=t[1],i=t[2],a=t[3];r+=(n&i|~n&a)+e[0]-680876936|0,r=(r<<7|r>>>25)+n|0,a+=(r&n|~r&i)+e[1]-389564586|0,a=(a<<12|a>>>20)+r|0,i+=(a&r|~a&n)+e[2]+606105819|0,i=(i<<17|i>>>15)+a|0,n+=(i&a|~i&r)+e[3]-1044525330|0,n=(n<<22|n>>>10)+i|0,r+=(n&i|~n&a)+e[4]-176418897|0,r=(r<<7|r>>>25)+n|0,a+=(r&n|~r&i)+e[5]+1200080426|0,a=(a<<12|a>>>20)+r|0,i+=(a&r|~a&n)+e[6]-1473231341|0,i=(i<<17|i>>>15)+a|0,n+=(i&a|~i&r)+e[7]-45705983|0,n=(n<<22|n>>>10)+i|0,r+=(n&i|~n&a)+e[8]+1770035416|0,r=(r<<7|r>>>25)+n|0,a+=(r&n|~r&i)+e[9]-1958414417|0,a=(a<<12|a>>>20)+r|0,i+=(a&r|~a&n)+e[10]-42063|0,i=(i<<17|i>>>15)+a|0,n+=(i&a|~i&r)+e[11]-1990404162|0,n=(n<<22|n>>>10)+i|0,r+=(n&i|~n&a)+e[12]+1804603682|0,r=(r<<7|r>>>25)+n|0,a+=(r&n|~r&i)+e[13]-40341101|0,a=(a<<12|a>>>20)+r|0,i+=(a&r|~a&n)+e[14]-1502002290|0,i=(i<<17|i>>>15)+a|0,n+=(i&a|~i&r)+e[15]+1236535329|0,n=(n<<22|n>>>10)+i|0,r+=(n&a|i&~a)+e[1]-165796510|0,r=(r<<5|r>>>27)+n|0,a+=(r&i|n&~i)+e[6]-1069501632|0,a=(a<<9|a>>>23)+r|0,i+=(a&n|r&~n)+e[11]+643717713|0,i=(i<<14|i>>>18)+a|0,n+=(i&r|a&~r)+e[0]-373897302|0,n=(n<<20|n>>>12)+i|0,r+=(n&a|i&~a)+e[5]-701558691|0,r=(r<<5|r>>>27)+n|0,a+=(r&i|n&~i)+e[10]+38016083|0,a=(a<<9|a>>>23)+r|0,i+=(a&n|r&~n)+e[15]-660478335|0,i=(i<<14|i>>>18)+a|0,n+=(i&r|a&~r)+e[4]-405537848|0,n=(n<<20|n>>>12)+i|0,r+=(n&a|i&~a)+e[9]+568446438|0,r=(r<<5|r>>>27)+n|0,a+=(r&i|n&~i)+e[14]-1019803690|0,a=(a<<9|a>>>23)+r|0,i+=(a&n|r&~n)+e[3]-187363961|0,i=(i<<14|i>>>18)+a|0,n+=(i&r|a&~r)+e[8]+1163531501|0,n=(n<<20|n>>>12)+i|0,r+=(n&a|i&~a)+e[13]-1444681467|0,r=(r<<5|r>>>27)+n|0,a+=(r&i|n&~i)+e[2]-51403784|0,a=(a<<9|a>>>23)+r|0,i+=(a&n|r&~n)+e[7]+1735328473|0,i=(i<<14|i>>>18)+a|0,n+=(i&r|a&~r)+e[12]-1926607734|0,n=(n<<20|n>>>12)+i|0,r+=(n^i^a)+e[5]-378558|0,r=(r<<4|r>>>28)+n|0,a+=(r^n^i)+e[8]-2022574463|0,a=(a<<11|a>>>21)+r|0,i+=(a^r^n)+e[11]+1839030562|0,i=(i<<16|i>>>16)+a|0,n+=(i^a^r)+e[14]-35309556|0,n=(n<<23|n>>>9)+i|0,r+=(n^i^a)+e[1]-1530992060|0,r=(r<<4|r>>>28)+n|0,a+=(r^n^i)+e[4]+1272893353|0,a=(a<<11|a>>>21)+r|0,i+=(a^r^n)+e[7]-155497632|0,i=(i<<16|i>>>16)+a|0,n+=(i^a^r)+e[10]-1094730640|0,n=(n<<23|n>>>9)+i|0,r+=(n^i^a)+e[13]+681279174|0,r=(r<<4|r>>>28)+n|0,a+=(r^n^i)+e[0]-358537222|0,a=(a<<11|a>>>21)+r|0,i+=(a^r^n)+e[3]-722521979|0,i=(i<<16|i>>>16)+a|0,n+=(i^a^r)+e[6]+76029189|0,n=(n<<23|n>>>9)+i|0,r+=(n^i^a)+e[9]-640364487|0,r=(r<<4|r>>>28)+n|0,a+=(r^n^i)+e[12]-421815835|0,a=(a<<11|a>>>21)+r|0,i+=(a^r^n)+e[15]+530742520|0,i=(i<<16|i>>>16)+a|0,n+=(i^a^r)+e[2]-995338651|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~a))+e[0]-198630844|0,r=(r<<6|r>>>26)+n|0,a+=(n^(r|~i))+e[7]+1126891415|0,a=(a<<10|a>>>22)+r|0,i+=(r^(a|~n))+e[14]-1416354905|0,i=(i<<15|i>>>17)+a|0,n+=(a^(i|~r))+e[5]-57434055|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~a))+e[12]+1700485571|0,r=(r<<6|r>>>26)+n|0,a+=(n^(r|~i))+e[3]-1894986606|0,a=(a<<10|a>>>22)+r|0,i+=(r^(a|~n))+e[10]-1051523|0,i=(i<<15|i>>>17)+a|0,n+=(a^(i|~r))+e[1]-2054922799|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~a))+e[8]+1873313359|0,r=(r<<6|r>>>26)+n|0,a+=(n^(r|~i))+e[15]-30611744|0,a=(a<<10|a>>>22)+r|0,i+=(r^(a|~n))+e[6]-1560198380|0,i=(i<<15|i>>>17)+a|0,n+=(a^(i|~r))+e[13]+1309151649|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~a))+e[4]-145523070|0,r=(r<<6|r>>>26)+n|0,a+=(n^(r|~i))+e[11]-1120210379|0,a=(a<<10|a>>>22)+r|0,i+=(r^(a|~n))+e[2]+718787259|0,i=(i<<15|i>>>17)+a|0,n+=(a^(i|~r))+e[9]-343485551|0,n=(n<<21|n>>>11)+i|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=i+t[2]|0,t[3]=a+t[3]|0}function
r(t){var
e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return
r}function n(t){var
e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return
r}function i(t){var
n,i,a,u,o,s,f=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=f;n+=64)e(c,r(t.substring(n-64,n)));for(t=t.substring(n-64),i=t.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<i;n+=1)a[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(e(c,a),n=0;n<16;n+=1)a[n]=0;return
u=8*f,u=u.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(u[2],16),s=parseInt(u[1],16)||0,a[14]=o,a[15]=s,e(c,a),c}function
a(t){var
r,i,a,u,o,s,f=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=f;r+=64)e(c,n(t.subarray(r-64,r)));for(t=r-64<f?t.subarray(r-64):new
Uint8Array(0),i=t.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;r<i;r+=1)a[r>>2]|=t[r]<<(r%4<<3);if(a[r>>2]|=128<<(r%4<<3),r>55)for(e(c,a),r=0;r<16;r+=1)a[r]=0;return
u=8*f,u=u.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(u[2],16),s=parseInt(u[1],16)||0,a[14]=o,a[15]=s,e(c,a),c}function
u(t){var e,r="";for(e=0;e<4;e+=1)r+=p[t>>8*e+4&15]+p[t>>8*e&15];return
r}function o(t){var e;for(e=0;e<t.length;e+=1)t[e]=u(t[e]);return
t.join("")}function
s(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function
f(t,e){var r,n=t.length,i=new ArrayBuffer(n),a=new
Uint8Array(i);for(r=0;r<n;r+=1)a[r]=t.charCodeAt(r);return e?a:i}function
c(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function
h(t,e,r){var n=new Uint8Array(t.byteLength+e.byteLength);return n.set(new
Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),r?n:n.buffer}function
l(t){var
e,r=[],n=t.length;for(e=0;e<n-1;e+=2)r.push(parseInt(t.substr(e,2),16));return
String.fromCharCode.apply(String,r)}function d(){this.reset()}var
p=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return"5d41402abc4b2a76b9719d911017c592"!==o(i("hello"))&&function(t,e){var
r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r},"undefined"==typeof
ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return
t=0|t||0,t<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(r,n){var
i,a,u,o,s=this.byteLength,f=e(r,s),c=s;return n!==t&&(c=e(n,s)),f>c?new
ArrayBuffer(0):(i=c-f,a=new ArrayBuffer(i),u=new Uint8Array(a),o=new
Uint8Array(this,f,i),u.set(o),a)}}(),d.prototype.append=function(t){return
this.appendBinary(s(t)),this},d.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var
n,i=this._buff.length;for(n=64;n<=i;n+=64)e(this._hash,r(this._buff.substring(n-64,n)));return
this._buff=this._buff.substring(n-64),this},d.prototype.end=function(t){var
e,r,n=this._buff,i=n.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)a[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return
this._finish(a,i),r=o(this._hash),t&&(r=l(r)),this.reset(),r},d.prototype.reset=function(){return
this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},d.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},d.prototype.setState=function(t){return
this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},d.prototype.destroy=function(){delete
this._hash,delete this._buff,delete
this._length},d.prototype._finish=function(t,r){var
n,i,a,u=r;if(t[u>>2]|=128<<(u%4<<3),u>55)for(e(this._hash,t),u=0;u<16;u+=1)t[u]=0;n=8*this._length,n=n.toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),a=parseInt(n[1],16)||0,t[14]=i,t[15]=a,e(this._hash,t)},d.hash=function(t,e){return
d.hashBinary(s(t),e)},d.hashBinary=function(t,e){var r=i(t),n=o(r);return
e?l(n):n},d.ArrayBuffer=function(){this.reset()},d.ArrayBuffer.prototype.append=function(t){var
r,i=h(this._buff.buffer,t,!0),a=i.length;for(this._length+=t.byteLength,r=64;r<=a;r+=64)e(this._hash,n(i.subarray(r-64,r)));return
this._buff=r-64<a?new Uint8Array(i.buffer.slice(r-64)):new
Uint8Array(0),this},d.ArrayBuffer.prototype.end=function(t){var
e,r,n=this._buff,i=n.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)a[e>>2]|=n[e]<<(e%4<<3);return
this._finish(a,i),r=o(this._hash),t&&(r=l(r)),this.reset(),r},d.ArrayBuffer.prototype.reset=function(){return
this._buff=new
Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},d.ArrayBuffer.prototype.getState=function(){var
t=d.prototype.getState.call(this);return
t.buff=c(t.buff),t},d.ArrayBuffer.prototype.setState=function(t){return
t.buff=f(t.buff,!0),d.prototype.setState.call(this,t)},d.ArrayBuffer.prototype.destroy=d.prototype.destroy,d.ArrayBuffer.prototype._finish=d.prototype._finish,d.ArrayBuffer.hash=function(t,e){var
r=a(new Uint8Array(t)),n=o(r);return e?l(n):n},d})},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a
class as a function")}r.d(e,"a",function(){return u});var
i=r(0),a=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function(){function t(e,r,a){var
u=this;n(this,t),this.file=e,this.attributes={filename:e.name,content_type:e.type,byte_size:e.size,checksum:r},this.xhr=new
XMLHttpRequest,this.xhr.open("POST",a,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),this.xhr.setRequestHeader("X-CSRF-Token",Object(i.d)("csrf-token")),this.xhr.addEventListener("load",function(t){return
u.requestDidLoad(t)}),this.xhr.addEventListener("error",function(t){return
u.requestDidError(t)})}return
a(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(JSON.stringify({blob:this.attributes}))}},{key:"requestDidLoad",value:function(t){if(this.status>=200&&this.status<300){var
e=this.response,r=e.direct_upload;delete
e.direct_upload,this.attributes=e,this.directUploadData=r,this.callback(null,this.toJSON())}else
this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error
creating Blob for "'+this.file.name+'". Status:
'+this.status)}},{key:"toJSON",value:function(){var t={};for(var e in
this.attributes)t[e]=this.attributes[e];return
t}},{key:"status",get:function(){return
this.xhr.status}},{key:"response",get:function(){var
t=this.xhr,e=t.responseType,r=t.response;return"json"==e?r:JSON.parse(r)}}]),t}()},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call
a class as a function")}r.d(e,"a",function(){return a});var
i=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),a=function(){function t(e){var
r=this;n(this,t),this.blob=e,this.file=e.file;var
i=e.directUploadData,a=i.url,u=i.headers;this.xhr=new
XMLHttpRequest,this.xhr.open("PUT",a,!0),this.xhr.responseType="text";for(var o
in
u)this.xhr.setRequestHeader(o,u[o]);this.xhr.addEventListener("load",function(t){return
r.requestDidLoad(t)}),this.xhr.addEventListener("error",function(t){return
r.requestDidError(t)})}return
i(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(this.file.slice())}},{key:"requestDidLoad",value:function(t){var
e=this.xhr,r=e.status,n=e.response;r>=200&&r<300?this.callback(null,n):this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error
storing "'+this.file.name+'". Status: '+this.xhr.status)}}]),t}()}])});
+!function(t,e){"object"==typeof exports&&"object"==typeof
module?module.exports=e():"function"==typeof
define&&define.amd?define([],e):"object"==typeof
exports?exports.ActiveStorage=e():t.ActiveStorage=e()}(this,function(){return
function(t){function e(n){if(r[n])return r[n].exports;var
i=r[n]={i:n,l:!1,exports:{}};return
t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return
e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var
r=t&&t.__esModule?function(){return t.default}:function(){return t};return
e.d(r,"a",r),r},e.o=function(t,e){return
Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=2)}([function(t,e,r){"use
strict";function n(t){var e=a(document.head,'meta[name="'+t+'"]');if(e)return
e.getAttribute("content")}function i(t,e){return"string"==typeof
t&&(e=t,t=document),o(t.querySelectorAll(e))}function
a(t,e){return"string"==typeof t&&(e=t,t=document),t.querySelector(e)}function
u(t,e){var r=arguments.length>2&&void
0!==arguments[2]?arguments[2]:{},n=t.disabled,i=r.bubbles,a=r.cancelable,u=r.detail,o=document.createEvent("Event");o.initEvent(e,i||!0,a||!0),o.detail=u||{};try{t.disabled=!1,t.dispatchEvent(o)}finally{t.disabled=n}return
o}function o(t){return
Array.isArray(t)?t:Array.from?Array.from(t):[].slice.call(t)}e.d=n,e.c=i,e.b=a,e.a=u,e.e=o},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call
a class as a function")}function i(t,e){if(t&&"function"==typeof t[e]){for(var
r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return
t[e].apply(t,n)}}r.d(e,"a",function(){return c});var
a=r(6),u=r(8),o=r(9),s=function(){function t(t,e){for(var
r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),f=0,c=function(){function
t(e,r,i){n(this,t),this.id=++f,this.file=e,this.url=r,this.delegate=i}return
s(t,[{key:"create",value:function(t){var
e=this;a.a.create(this.file,function(r,n){if(r)return void t(r);var a=new
u.a(e.file,n,e.url);i(e.delegate,"directUploadWillCreateBlobWithXHR",a.xhr),a.create(function(r){if(r)t(r);else{var
n=new
o.a(a);i(e.delegate,"directUploadWillStoreFileWithXHR",n.xhr),n.create(function(e){e?t(e):t(null,a.toJSON())})}})})}}]),t}()},function(t,e,r){"use
strict";function
n(){window.ActiveStorage&&Object(i.a)()}Object.defineProperty(e,"__esModule",{value:!0});var
i=r(3),a=r(1);r.d(e,"start",function(){return
i.a}),r.d(e,"DirectUpload",function(){return
a.a}),setTimeout(n,1)},function(t,e,r){"use strict";function
n(){d||(d=!0,document.addEventListener("submit",i),document.addEventListener("ajax:before",a))}function
i(t){u(t)}function a(t){"FORM"==t.target.tagName&&u(t)}function u(t){var
e=t.target;if(e.hasAttribute(l))return void t.preventDefault();var r=new
c.a(e),n=r.inputs;n.length&&(t.preventDefault(),e.setAttribute(l,""),n.forEach(s),r.start(function(t){e.removeAttribute(l),t?n.forEach(f):o(e)}))}function
o(t){var e=Object(h.b)(t,"input[type=submit]");if(e){var
r=e,n=r.disabled;e.disabled=!1,e.focus(),e.click(),e.disabled=n}else
e=document.createElement("input"),e.type="submit",e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e)}function
s(t){t.disabled=!0}function f(t){t.disabled=!1}e.a=n;var
c=r(4),h=r(0),l="data-direct-uploads-processing",d=!1},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a
class as a function")}r.d(e,"a",function(){return s});var
i=r(5),a=r(0),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),o="input[type=file][data-direct-upload-url]:not([disabled])",s=function(){function
t(e){n(this,t),this.form=e,this.inputs=Object(a.c)(e,o).filter(function(t){return
t.files.length})}return u(t,[{key:"start",value:function(t){var
e=this,r=this.createDirectUploadControllers();this.dispatch("start"),function
n(){var
i=r.shift();i?i.start(function(r){r?(t(r),e.dispatch("end")):n()}):(t(),e.dispatch("end"))}()}},{key:"createDirectUploadControllers",value:function(){var
t=[];return
this.inputs.forEach(function(e){Object(a.e)(e.files).forEach(function(r){var
n=new i.a(e,r);t.push(n)})}),t}},{key:"dispatch",value:function(t){var
e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return
Object(a.a)(this.form,"direct-uploads:"+t,{detail:e})}}]),t}()},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call
a class as a function")}r.d(e,"a",function(){return o});var
i=r(1),a=r(0),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function(){function
t(e,r){n(this,t),this.input=e,this.file=r,this.directUpload=new
i.a(this.file,this.url,this),this.dispatch("initialize")}return
u(t,[{key:"start",value:function(t){var
e=this,r=document.createElement("input");r.type="hidden",r.name=this.input.name,this.input.insertAdjacentElement("beforebegin",r),this.dispatch("start"),this.directUpload.create(function(n,i){n?(r.parentNode.removeChild(r),e.dispatchError(n)):r.value=i.signed_id,e.dispatch("end"),t(n)})}},{key:"uploadRequestDidProgress",value:function(t){var
e=t.loaded/t.total*100;e&&this.dispatch("progress",{progress:e})}},{key:"dispatch",value:function(t){var
e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return
e.file=this.file,e.id=this.directUpload.id,Object(a.a)(this.input,"direct-upload:"+t,{detail:e})}},{key:"dispatchError",value:function(t){this.dispatch("error",{error:t}).defaultPrevented||alert(t)}},{key:"directUploadWillCreateBlobWithXHR",value:function(t){this.dispatch("before-blob-request",{xhr:t})}},{key:"directUploadWillStoreFileWithXHR",value:function(t){var
e=this;this.dispatch("before-storage-request",{xhr:t}),t.upload.addEventListener("progress",function(t){return
e.uploadRequestDidProgress(t)})}},{key:"url",get:function(){return
this.input.getAttribute("data-direct-upload-url")}}]),t}()},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call
a class as a function")}r.d(e,"a",function(){return s});var
i=r(7),a=r.n(i),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),o=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=function(){function
t(e){n(this,t),this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}return
u(t,null,[{key:"create",value:function(e,r){new
t(e).create(r)}}]),u(t,[{key:"create",value:function(t){var
e=this;this.callback=t,this.md5Buffer=new a.a.ArrayBuffer,this.fileReader=new
FileReader,this.fileReader.addEventListener("load",function(t){return
e.fileReaderDidLoad(t)}),this.fileReader.addEventListener("error",function(t){return
e.fileReaderDidError(t)}),this.readNextChunk()}},{key:"fileReaderDidLoad",value:function(t){if(this.md5Buffer.append(t.target.result),!this.readNextChunk()){var
e=this.md5Buffer.end(!0),r=btoa(e);this.callback(null,r)}}},{key:"fileReaderDidError",value:function(t){this.callback("Error
reading
"+this.file.name)}},{key:"readNextChunk",value:function(){if(this.chunkIndex<this.chunkCount||0==this.chunkIndex&&0==this.chunkCount){var
t=this.chunkIndex*this.chunkSize,e=Math.min(t+this.chunkSize,this.file.size),r=o.call(this.file,t,e);return
this.fileReader.readAsArrayBuffer(r),this.chunkIndex++,!0}return!1}}]),t}()},function(t,e,r){!function(e){t.exports=e()}(function(t){"use
strict";function e(t,e){var
r=t[0],n=t[1],i=t[2],a=t[3];r+=(n&i|~n&a)+e[0]-680876936|0,r=(r<<7|r>>>25)+n|0,a+=(r&n|~r&i)+e[1]-389564586|0,a=(a<<12|a>>>20)+r|0,i+=(a&r|~a&n)+e[2]+606105819|0,i=(i<<17|i>>>15)+a|0,n+=(i&a|~i&r)+e[3]-1044525330|0,n=(n<<22|n>>>10)+i|0,r+=(n&i|~n&a)+e[4]-176418897|0,r=(r<<7|r>>>25)+n|0,a+=(r&n|~r&i)+e[5]+1200080426|0,a=(a<<12|a>>>20)+r|0,i+=(a&r|~a&n)+e[6]-1473231341|0,i=(i<<17|i>>>15)+a|0,n+=(i&a|~i&r)+e[7]-45705983|0,n=(n<<22|n>>>10)+i|0,r+=(n&i|~n&a)+e[8]+1770035416|0,r=(r<<7|r>>>25)+n|0,a+=(r&n|~r&i)+e[9]-1958414417|0,a=(a<<12|a>>>20)+r|0,i+=(a&r|~a&n)+e[10]-42063|0,i=(i<<17|i>>>15)+a|0,n+=(i&a|~i&r)+e[11]-1990404162|0,n=(n<<22|n>>>10)+i|0,r+=(n&i|~n&a)+e[12]+1804603682|0,r=(r<<7|r>>>25)+n|0,a+=(r&n|~r&i)+e[13]-40341101|0,a=(a<<12|a>>>20)+r|0,i+=(a&r|~a&n)+e[14]-1502002290|0,i=(i<<17|i>>>15)+a|0,n+=(i&a|~i&r)+e[15]+1236535329|0,n=(n<<22|n>>>10)+i|0,r+=(n&a|i&~a)+e[1]-165796510|0,r=(r<<5|r>>>27)+n|0,a+=(r&i|n&~i)+e[6]-1069501632|0,a=(a<<9|a>>>23)+r|0,i+=(a&n|r&~n)+e[11]+643717713|0,i=(i<<14|i>>>18)+a|0,n+=(i&r|a&~r)+e[0]-373897302|0,n=(n<<20|n>>>12)+i|0,r+=(n&a|i&~a)+e[5]-701558691|0,r=(r<<5|r>>>27)+n|0,a+=(r&i|n&~i)+e[10]+38016083|0,a=(a<<9|a>>>23)+r|0,i+=(a&n|r&~n)+e[15]-660478335|0,i=(i<<14|i>>>18)+a|0,n+=(i&r|a&~r)+e[4]-405537848|0,n=(n<<20|n>>>12)+i|0,r+=(n&a|i&~a)+e[9]+568446438|0,r=(r<<5|r>>>27)+n|0,a+=(r&i|n&~i)+e[14]-1019803690|0,a=(a<<9|a>>>23)+r|0,i+=(a&n|r&~n)+e[3]-187363961|0,i=(i<<14|i>>>18)+a|0,n+=(i&r|a&~r)+e[8]+1163531501|0,n=(n<<20|n>>>12)+i|0,r+=(n&a|i&~a)+e[13]-1444681467|0,r=(r<<5|r>>>27)+n|0,a+=(r&i|n&~i)+e[2]-51403784|0,a=(a<<9|a>>>23)+r|0,i+=(a&n|r&~n)+e[7]+1735328473|0,i=(i<<14|i>>>18)+a|0,n+=(i&r|a&~r)+e[12]-1926607734|0,n=(n<<20|n>>>12)+i|0,r+=(n^i^a)+e[5]-378558|0,r=(r<<4|r>>>28)+n|0,a+=(r^n^i)+e[8]-2022574463|0,a=(a<<11|a>>>21)+r|0,i+=(a^r^n)+e[11]+1839030562|0,i=(i<<16|i>>>16)+a|0,n+=(i^a^r)+e[14]-35309556|0,n=(n<<23|n>>>9)+i|0,r+=(n^i^a)+e[1]-1530992060|0,r=(r<<4|r>>>28)+n|0,a+=(r^n^i)+e[4]+1272893353|0,a=(a<<11|a>>>21)+r|0,i+=(a^r^n)+e[7]-155497632|0,i=(i<<16|i>>>16)+a|0,n+=(i^a^r)+e[10]-1094730640|0,n=(n<<23|n>>>9)+i|0,r+=(n^i^a)+e[13]+681279174|0,r=(r<<4|r>>>28)+n|0,a+=(r^n^i)+e[0]-358537222|0,a=(a<<11|a>>>21)+r|0,i+=(a^r^n)+e[3]-722521979|0,i=(i<<16|i>>>16)+a|0,n+=(i^a^r)+e[6]+76029189|0,n=(n<<23|n>>>9)+i|0,r+=(n^i^a)+e[9]-640364487|0,r=(r<<4|r>>>28)+n|0,a+=(r^n^i)+e[12]-421815835|0,a=(a<<11|a>>>21)+r|0,i+=(a^r^n)+e[15]+530742520|0,i=(i<<16|i>>>16)+a|0,n+=(i^a^r)+e[2]-995338651|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~a))+e[0]-198630844|0,r=(r<<6|r>>>26)+n|0,a+=(n^(r|~i))+e[7]+1126891415|0,a=(a<<10|a>>>22)+r|0,i+=(r^(a|~n))+e[14]-1416354905|0,i=(i<<15|i>>>17)+a|0,n+=(a^(i|~r))+e[5]-57434055|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~a))+e[12]+1700485571|0,r=(r<<6|r>>>26)+n|0,a+=(n^(r|~i))+e[3]-1894986606|0,a=(a<<10|a>>>22)+r|0,i+=(r^(a|~n))+e[10]-1051523|0,i=(i<<15|i>>>17)+a|0,n+=(a^(i|~r))+e[1]-2054922799|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~a))+e[8]+1873313359|0,r=(r<<6|r>>>26)+n|0,a+=(n^(r|~i))+e[15]-30611744|0,a=(a<<10|a>>>22)+r|0,i+=(r^(a|~n))+e[6]-1560198380|0,i=(i<<15|i>>>17)+a|0,n+=(a^(i|~r))+e[13]+1309151649|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~a))+e[4]-145523070|0,r=(r<<6|r>>>26)+n|0,a+=(n^(r|~i))+e[11]-1120210379|0,a=(a<<10|a>>>22)+r|0,i+=(r^(a|~n))+e[2]+718787259|0,i=(i<<15|i>>>17)+a|0,n+=(a^(i|~r))+e[9]-343485551|0,n=(n<<21|n>>>11)+i|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=i+t[2]|0,t[3]=a+t[3]|0}function
r(t){var
e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return
r}function n(t){var
e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return
r}function i(t){var
n,i,a,u,o,s,f=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=f;n+=64)e(c,r(t.substring(n-64,n)));for(t=t.substring(n-64),i=t.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<i;n+=1)a[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(e(c,a),n=0;n<16;n+=1)a[n]=0;return
u=8*f,u=u.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(u[2],16),s=parseInt(u[1],16)||0,a[14]=o,a[15]=s,e(c,a),c}function
a(t){var
r,i,a,u,o,s,f=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=f;r+=64)e(c,n(t.subarray(r-64,r)));for(t=r-64<f?t.subarray(r-64):new
Uint8Array(0),i=t.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;r<i;r+=1)a[r>>2]|=t[r]<<(r%4<<3);if(a[r>>2]|=128<<(r%4<<3),r>55)for(e(c,a),r=0;r<16;r+=1)a[r]=0;return
u=8*f,u=u.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(u[2],16),s=parseInt(u[1],16)||0,a[14]=o,a[15]=s,e(c,a),c}function
u(t){var e,r="";for(e=0;e<4;e+=1)r+=p[t>>8*e+4&15]+p[t>>8*e&15];return
r}function o(t){var e;for(e=0;e<t.length;e+=1)t[e]=u(t[e]);return
t.join("")}function
s(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function
f(t,e){var r,n=t.length,i=new ArrayBuffer(n),a=new
Uint8Array(i);for(r=0;r<n;r+=1)a[r]=t.charCodeAt(r);return e?a:i}function
c(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function
h(t,e,r){var n=new Uint8Array(t.byteLength+e.byteLength);return n.set(new
Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),r?n:n.buffer}function
l(t){var
e,r=[],n=t.length;for(e=0;e<n-1;e+=2)r.push(parseInt(t.substr(e,2),16));return
String.fromCharCode.apply(String,r)}function d(){this.reset()}var
p=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return"5d41402abc4b2a76b9719d911017c592"!==o(i("hello"))&&function(t,e){var
r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r},"undefined"==typeof
ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return
t=0|t||0,t<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(r,n){var
i,a,u,o,s=this.byteLength,f=e(r,s),c=s;return n!==t&&(c=e(n,s)),f>c?new
ArrayBuffer(0):(i=c-f,a=new ArrayBuffer(i),u=new Uint8Array(a),o=new
Uint8Array(this,f,i),u.set(o),a)}}(),d.prototype.append=function(t){return
this.appendBinary(s(t)),this},d.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var
n,i=this._buff.length;for(n=64;n<=i;n+=64)e(this._hash,r(this._buff.substring(n-64,n)));return
this._buff=this._buff.substring(n-64),this},d.prototype.end=function(t){var
e,r,n=this._buff,i=n.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)a[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return
this._finish(a,i),r=o(this._hash),t&&(r=l(r)),this.reset(),r},d.prototype.reset=function(){return
this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},d.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},d.prototype.setState=function(t){return
this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},d.prototype.destroy=function(){delete
this._hash,delete this._buff,delete
this._length},d.prototype._finish=function(t,r){var
n,i,a,u=r;if(t[u>>2]|=128<<(u%4<<3),u>55)for(e(this._hash,t),u=0;u<16;u+=1)t[u]=0;n=8*this._length,n=n.toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),a=parseInt(n[1],16)||0,t[14]=i,t[15]=a,e(this._hash,t)},d.hash=function(t,e){return
d.hashBinary(s(t),e)},d.hashBinary=function(t,e){var r=i(t),n=o(r);return
e?l(n):n},d.ArrayBuffer=function(){this.reset()},d.ArrayBuffer.prototype.append=function(t){var
r,i=h(this._buff.buffer,t,!0),a=i.length;for(this._length+=t.byteLength,r=64;r<=a;r+=64)e(this._hash,n(i.subarray(r-64,r)));return
this._buff=r-64<a?new Uint8Array(i.buffer.slice(r-64)):new
Uint8Array(0),this},d.ArrayBuffer.prototype.end=function(t){var
e,r,n=this._buff,i=n.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)a[e>>2]|=n[e]<<(e%4<<3);return
this._finish(a,i),r=o(this._hash),t&&(r=l(r)),this.reset(),r},d.ArrayBuffer.prototype.reset=function(){return
this._buff=new
Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},d.ArrayBuffer.prototype.getState=function(){var
t=d.prototype.getState.call(this);return
t.buff=c(t.buff),t},d.ArrayBuffer.prototype.setState=function(t){return
t.buff=f(t.buff,!0),d.prototype.setState.call(this,t)},d.ArrayBuffer.prototype.destroy=d.prototype.destroy,d.ArrayBuffer.prototype._finish=d.prototype._finish,d.ArrayBuffer.hash=function(t,e){var
r=a(new Uint8Array(t)),n=o(r);return e?l(n):n},d})},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a
class as a function")}r.d(e,"a",function(){return u});var
i=r(0),a=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function(){function t(e,r,a){var
u=this;n(this,t),this.file=e,this.attributes={filename:e.name,content_type:e.type,byte_size:e.size,checksum:r},this.xhr=new
XMLHttpRequest,this.xhr.open("POST",a,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),this.xhr.setRequestHeader("X-CSRF-Token",Object(i.d)("csrf-token")),this.xhr.addEventListener("load",function(t){return
u.requestDidLoad(t)}),this.xhr.addEventListener("error",function(t){return
u.requestDidError(t)})}return
a(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(JSON.stringify({blob:this.attributes}))}},{key:"requestDidLoad",value:function(t){if(this.status>=200&&this.status<300){var
e=this.response,r=e.direct_upload;delete
e.direct_upload,this.attributes=e,this.directUploadData=r,this.callback(null,this.toJSON())}else
this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error
creating Blob for "'+this.file.name+'". Status:
'+this.status)}},{key:"toJSON",value:function(){var t={};for(var e in
this.attributes)t[e]=this.attributes[e];return
t}},{key:"status",get:function(){return
this.xhr.status}},{key:"response",get:function(){var
t=this.xhr,e=t.responseType,r=t.response;return"json"==e?r:JSON.parse(r)}}]),t}()},function(t,e,r){"use
strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call
a class as a function")}r.d(e,"a",function(){return a});var
i=function(){function t(t,e){for(var r=0;r<e.length;r++){var
n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in
n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return
function(e,r,n){return
r&&t(e.prototype,r),n&&t(e,n),e}}(),a=function(){function t(e){var
r=this;n(this,t),this.blob=e,this.file=e.file;var
i=e.directUploadData,a=i.url,u=i.headers;this.xhr=new
XMLHttpRequest,this.xhr.open("PUT",a,!0),this.xhr.responseType="text";for(var o
in
u)this.xhr.setRequestHeader(o,u[o]);this.xhr.addEventListener("load",function(t){return
r.requestDidLoad(t)}),this.xhr.addEventListener("error",function(t){return
r.requestDidError(t)})}return
i(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(this.file.slice())}},{key:"requestDidLoad",value:function(t){var
e=this.xhr,r=e.status,n=e.response;r>=200&&r<300?this.callback(null,n):this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error
storing "'+this.file.name+'". Status: '+this.xhr.status)}}]),t}()}])});
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/app/controllers/active_storage/direct_uploads_controller.rb
new/app/controllers/active_storage/direct_uploads_controller.rb
--- old/app/controllers/active_storage/direct_uploads_controller.rb
2018-04-09 22:04:40.000000000 +0200
+++ new/app/controllers/active_storage/direct_uploads_controller.rb
2018-08-07 23:42:20.000000000 +0200
@@ -15,7 +15,7 @@
end
def direct_upload_json(blob)
- blob.as_json(methods: :signed_id).merge(direct_upload: {
+ blob.as_json(root: false, methods: :signed_id).merge(direct_upload: {
url: blob.service_url_for_direct_upload,
headers: blob.service_headers_for_direct_upload
})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/controllers/active_storage/disk_controller.rb
new/app/controllers/active_storage/disk_controller.rb
--- old/app/controllers/active_storage/disk_controller.rb 2018-04-09
22:04:40.000000000 +0200
+++ new/app/controllers/active_storage/disk_controller.rb 2018-08-07
23:42:20.000000000 +0200
@@ -5,21 +5,30 @@
# Always go through the BlobsController, or your own authenticated controller,
rather than directly
# to the service url.
class ActiveStorage::DiskController < ActiveStorage::BaseController
+ include ActionController::Live
+
skip_forgery_protection
def show
if key = decode_verified_key
- send_data disk_service.download(key),
- disposition: params[:disposition], content_type: params[:content_type]
+ response.headers["Content-Type"] = params[:content_type] ||
DEFAULT_SEND_FILE_TYPE
+ response.headers["Content-Disposition"] = params[:disposition] ||
DEFAULT_SEND_FILE_DISPOSITION
+
+ disk_service.download key do |chunk|
+ response.stream.write chunk
+ end
else
head :not_found
end
+ ensure
+ response.stream.close
end
def update
if token = decode_verified_token
if acceptable_content?(token)
disk_service.upload token[:key], request.body, checksum:
token[:checksum]
+ head :no_content
else
head :unprocessable_entity
end
@@ -28,6 +37,8 @@
end
rescue ActiveStorage::IntegrityError
head :unprocessable_entity
+ ensure
+ response.stream.close
end
private
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/javascript/activestorage/file_checksum.js
new/app/javascript/activestorage/file_checksum.js
--- old/app/javascript/activestorage/file_checksum.js 2018-04-09
22:04:40.000000000 +0200
+++ new/app/javascript/activestorage/file_checksum.js 2018-08-07
23:42:20.000000000 +0200
@@ -39,7 +39,7 @@
}
readNextChunk() {
- if (this.chunkIndex < this.chunkCount) {
+ if (this.chunkIndex < this.chunkCount || (this.chunkIndex == 0 &&
this.chunkCount == 0)) {
const start = this.chunkIndex * this.chunkSize
const end = Math.min(start + this.chunkSize, this.file.size)
const bytes = fileSlice.call(this.file, start, end)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/models/active_storage/blob/representable.rb
new/app/models/active_storage/blob/representable.rb
--- old/app/models/active_storage/blob/representable.rb 2018-04-09
22:04:40.000000000 +0200
+++ new/app/models/active_storage/blob/representable.rb 2018-08-07
23:42:20.000000000 +0200
@@ -20,7 +20,7 @@
#
# <%= image_tag Current.user.avatar.variant(resize: "100x100") %>
#
- # This will create a URL for that specific blob with that specific variant,
which the ActiveStorage::VariantsController
+ # This will create a URL for that specific blob with that specific variant,
which the ActiveStorage::RepresentationsController
# can then produce on-demand.
#
# Raises ActiveStorage::InvariableError if ImageMagick cannot transform the
blob. To determine whether a blob is
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/models/active_storage/variant.rb
new/app/models/active_storage/variant.rb
--- old/app/models/active_storage/variant.rb 2018-04-09 22:04:40.000000000
+0200
+++ new/app/models/active_storage/variant.rb 2018-08-07 23:42:20.000000000
+0200
@@ -13,14 +13,14 @@
# into memory. The larger the image, the more memory is used. Because of this
process, you also want to be
# considerate about when the variant is actually processed. You shouldn't be
processing variants inline in a
# template, for example. Delay the processing to an on-demand controller, like
the one provided in
-# ActiveStorage::VariantsController.
+# ActiveStorage::RepresentationsController.
#
# To refer to such a delayed on-demand variant, simply link to the variant
through the resolved route provided
# by Active Storage like so:
#
# <%= image_tag Current.user.avatar.variant(resize: "100x100") %>
#
-# This will create a URL for that specific blob with that specific variant,
which the ActiveStorage::VariantsController
+# This will create a URL for that specific blob with that specific variant,
which the ActiveStorage::RepresentationsController
# can then produce on-demand.
#
# When you do want to actually produce the variant needed, call +processed+.
This will check that the variant
@@ -35,7 +35,7 @@
# A list of all possible transformations is available at
https://www.imagemagick.org/script/mogrify.php. You can
# combine as many as you like freely:
#
-# avatar.variant(resize: "100x100", monochrome: true, flip: "-90")
+# avatar.variant(resize: "100x100", monochrome: true, rotate: "-90")
class ActiveStorage::Variant
include ActiveStorage::Downloading
@@ -65,7 +65,7 @@
# it allows permanent URLs that redirect to the +service_url+ to be cached
in the view.
#
# Use <tt>url_for(variant)</tt> (or the implied form, like +link_to variant+
or +redirect_to variant+) to get the stable URL
- # for a variant that points to the ActiveStorage::VariantsController, which
in turn will use this +service_call+ method
+ # for a variant that points to the ActiveStorage::RepresentationsController,
which in turn will use this +service_call+ method
# for its redirection.
def service_url(expires_in: service.url_expires_in, disposition: :inline)
service.url key, expires_in: expires_in, disposition: disposition,
filename: filename, content_type: content_type
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/downloading.rb
new/lib/active_storage/downloading.rb
--- old/lib/active_storage/downloading.rb 2018-04-09 22:04:40.000000000
+0200
+++ new/lib/active_storage/downloading.rb 2018-08-07 23:42:20.000000000
+0200
@@ -27,6 +27,7 @@
def download_blob_to(file) #:doc:
file.binmode
blob.download { |chunk| file.write(chunk) }
+ file.flush
file.rewind
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/gem_version.rb
new/lib/active_storage/gem_version.rb
--- old/lib/active_storage/gem_version.rb 2018-04-09 22:04:40.000000000
+0200
+++ new/lib/active_storage/gem_version.rb 2018-08-07 23:42:20.000000000
+0200
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 0
+ TINY = 1
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/log_subscriber.rb
new/lib/active_storage/log_subscriber.rb
--- old/lib/active_storage/log_subscriber.rb 2018-04-09 22:04:40.000000000
+0200
+++ new/lib/active_storage/log_subscriber.rb 2018-08-07 23:42:20.000000000
+0200
@@ -14,6 +14,8 @@
info event, color("Downloaded file from key: #{key_in(event)}", BLUE)
end
+ alias_method :service_streaming_download, :service_download
+
def service_delete(event)
info event, color("Deleted file from key: #{key_in(event)}", RED)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/previewer.rb
new/lib/active_storage/previewer.rb
--- old/lib/active_storage/previewer.rb 2018-04-09 22:04:40.000000000 +0200
+++ new/lib/active_storage/previewer.rb 2018-08-07 23:42:20.000000000 +0200
@@ -4,8 +4,8 @@
module ActiveStorage
# This is an abstract base class for previewers, which generate images from
blobs. See
- # ActiveStorage::Previewer::PDFPreviewer and
ActiveStorage::Previewer::VideoPreviewer for examples of
- # concrete subclasses.
+ # ActiveStorage::Previewer::MuPDFPreviewer and
ActiveStorage::Previewer::VideoPreviewer for
+ # examples of concrete subclasses.
class Previewer
include Downloading
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/service/azure_storage_service.rb
new/lib/active_storage/service/azure_storage_service.rb
--- old/lib/active_storage/service/azure_storage_service.rb 2018-04-09
22:04:40.000000000 +0200
+++ new/lib/active_storage/service/azure_storage_service.rb 2018-08-07
23:42:20.000000000 +0200
@@ -20,7 +20,7 @@
def upload(key, io, checksum: nil)
instrument :upload, key: key, checksum: checksum do
begin
- blobs.create_block_blob(container, key, io, content_md5: checksum)
+ blobs.create_block_blob(container, key, IO.try_convert(io) || io,
content_md5: checksum)
rescue Azure::Core::Http::HTTPError
raise ActiveStorage::IntegrityError
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/service/disk_service.rb
new/lib/active_storage/service/disk_service.rb
--- old/lib/active_storage/service/disk_service.rb 2018-04-09
22:04:40.000000000 +0200
+++ new/lib/active_storage/service/disk_service.rb 2018-08-07
23:42:20.000000000 +0200
@@ -26,7 +26,7 @@
if block_given?
instrument :streaming_download, key: key do
File.open(path_for(key), "rb") do |file|
- while data = file.read(64.kilobytes)
+ while data = file.read(5.megabytes)
yield data
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/service/gcs_service.rb
new/lib/active_storage/service/gcs_service.rb
--- old/lib/active_storage/service/gcs_service.rb 2018-04-09
22:04:40.000000000 +0200
+++ new/lib/active_storage/service/gcs_service.rb 2018-08-07
23:42:20.000000000 +0200
@@ -6,7 +6,6 @@
require "net/http"
require "active_support/core_ext/object/to_query"
-require "active_storage/filename"
module ActiveStorage
# Wraps the Google Cloud Storage as an Active Storage service. See
ActiveStorage::Service for the generic API
@@ -39,16 +38,17 @@
io.rewind
if block_given?
- yield io.read
+ yield io.string
else
- io.read
+ io.string
end
end
end
def download_chunk(key, range)
instrument :download_chunk, key: key, range: range do
- uri = URI(url(key, expires_in: 30.seconds, filename:
ActiveStorage::Filename.new(""), content_type: "application/octet-stream",
disposition: "inline"))
+ file = file_for(key)
+ uri = URI(file.signed_url(expires: 30.seconds))
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") do
|client|
client.get(uri, "Range" =>
"bytes=#{range.begin}-#{range.exclude_end? ? range.end - 1 : range.end}").body
@@ -68,7 +68,13 @@
def delete_prefixed(prefix)
instrument :delete_prefixed, prefix: prefix do
- bucket.files(prefix: prefix).all(&:delete)
+ bucket.files(prefix: prefix).all do |file|
+ begin
+ file.delete
+ rescue Google::Cloud::NotFoundError
+ # Ignore concurrently-deleted files
+ end
+ end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/service/s3_service.rb
new/lib/active_storage/service/s3_service.rb
--- old/lib/active_storage/service/s3_service.rb 2018-04-09
22:04:40.000000000 +0200
+++ new/lib/active_storage/service/s3_service.rb 2018-08-07
23:42:20.000000000 +0200
@@ -33,7 +33,7 @@
end
else
instrument :download, key: key do
- object_for(key).get.body.read.force_encoding(Encoding::BINARY)
+ object_for(key).get.body.string.force_encoding(Encoding::BINARY)
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/tasks/activestorage.rake
new/lib/tasks/activestorage.rake
--- old/lib/tasks/activestorage.rake 2018-04-09 22:04:40.000000000 +0200
+++ new/lib/tasks/activestorage.rake 2018-08-07 23:42:20.000000000 +0200
@@ -1,6 +1,9 @@
# frozen_string_literal: true
namespace :active_storage do
+ # Prevent migration installation task from showing up twice.
+ Rake::Task["install:migrations"].clear_comments
+
desc "Copy over the migration needed to the application"
task install: :environment do
if Rake::Task.task_defined?("active_storage:install:migrations")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2018-04-09 22:04:40.000000000 +0200
+++ new/metadata 2018-08-07 23:42:20.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activestorage
version: !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2018-04-09 00:00:00.000000000 Z
+date: 2018-08-07 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: actionpack
@@ -16,28 +16,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
- !ruby/object:Gem::Dependency
name: activerecord
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
- !ruby/object:Gem::Dependency
name: marcel
requirement: !ruby/object:Gem::Requirement
@@ -124,8 +124,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.0/activestorage
- changelog_uri:
https://github.com/rails/rails/blob/v5.2.0/activestorage/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.1/activestorage
+ changelog_uri:
https://github.com/rails/rails/blob/v5.2.1/activestorage/CHANGELOG.md
post_install_message:
rdoc_options: []
require_paths: