shrine-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/shrine-rails.rb +14 -0
- metadata +58 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4bb7f157bcc85773cf1cb4f54ca92d1a8494ee08af7177ed72b3b127a5d0a18c
|
4
|
+
data.tar.gz: c57cad7286e0b10d247baf27b6765f2d9edb733577405bd259138b8129a97581
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d8d4fa01a9368aa8d0628be56915025f287e4276db462c34d2f370511b4e57a823578d9c89e718a6a1806121648ec75a2e1cb529d2d81fdc67e834bab542357d
|
7
|
+
data.tar.gz: 8e3c788b75d77cadfe0f0e32791821744bb6d4c415ecc2617bb668d42841e10715a51bd41f13597142cd5a7bcfb5093670c51e8b89cd32dfdb5028340cfa532c
|
data/lib/shrine-rails.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Add in missing methods for file uploads in Rails < 4
|
2
|
+
ActionDispatch::Http::UploadedFile.class_eval do
|
3
|
+
unless instance_methods.include?(:eof?)
|
4
|
+
def eof?
|
5
|
+
@tempfile.eof?
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
unless instance_methods.include?(:close)
|
10
|
+
def close
|
11
|
+
@tempfile.close
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shrine-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Abraham Petrillo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: shrine
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.16.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.16.0
|
27
|
+
description: Rails wrapper for the shrine gem which includes includes monkey patching
|
28
|
+
to work with Rails 3
|
29
|
+
email: abe.petrillo@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- lib/shrine-rails.rb
|
35
|
+
homepage: http://rubygems.org/gems/shrine-rails
|
36
|
+
licenses:
|
37
|
+
- MIT
|
38
|
+
metadata: {}
|
39
|
+
post_install_message:
|
40
|
+
rdoc_options: []
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
requirements: []
|
54
|
+
rubygems_version: 3.0.3
|
55
|
+
signing_key:
|
56
|
+
specification_version: 4
|
57
|
+
summary: Rails wrapper for the shrine gem
|
58
|
+
test_files: []
|