administrate-field-active_storage 0.1.8 → 0.2.0
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 +4 -4
- data/README.md +9 -2
- data/administrate-field-active_storage.gemspec +2 -2
- data/contribute.md +2 -1
- data/example-project/Gemfile.lock +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57d53cbf7fd058bc848872af98bc525b48953bb4
|
|
4
|
+
data.tar.gz: 6ab055be84a476e663bb5d4bac0d56925c54f757
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 874a4e1448d5413053290bac0763085fbeb55e023f6c814720916a8c86dffdc78dd72601ebeb8abcd2becb310421f912bd79431c428c743da606831281ee3104
|
|
7
|
+
data.tar.gz: c04fe4c6bbd05c8240cb462b8b733b034d689ac2236ae40612e1cf9a89352b91bd279170809c105d09fc86a9623e1224736978b5c69bc998f65f0c909d37302e
|
data/README.md
CHANGED
|
@@ -6,12 +6,17 @@
|
|
|
6
6
|
- To preview video files you need to install `ffmpeg`.
|
|
7
7
|
|
|
8
8
|
## How To Use:
|
|
9
|
-
Add `administrate-field-active_storage` to your Gemfile:
|
|
9
|
+
Add `administrate-field-active_storage` to your Gemfile (rails 6):
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
12
|
gem 'administrate-field-active_storage'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
for rails 5.x use the following
|
|
16
|
+
```ruby
|
|
17
|
+
gem 'administrate-field-active_storage' -v 0.1.8
|
|
18
|
+
```
|
|
19
|
+
|
|
15
20
|
Install:
|
|
16
21
|
|
|
17
22
|
```
|
|
@@ -115,7 +120,7 @@ class ModelDashboard < Administrate::BaseDashboard
|
|
|
115
120
|
end
|
|
116
121
|
```
|
|
117
122
|
|
|
118
|
-
|
|
123
|
+
### show_preview_size
|
|
119
124
|
Supply the size of the image preview inside the show page check out the mini_magic documentation for resize
|
|
120
125
|
```ruby
|
|
121
126
|
class ModelDashboard < Administrate::BaseDashboard
|
|
@@ -125,6 +130,8 @@ class ModelDashboard < Administrate::BaseDashboard
|
|
|
125
130
|
}
|
|
126
131
|
# ...
|
|
127
132
|
end
|
|
133
|
+
```
|
|
134
|
+
|
|
128
135
|
### direct_upload
|
|
129
136
|
If you want to upload directly from the browser to the cloud you can use direct_upload
|
|
130
137
|
```ruby
|
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |gem|
|
|
4
4
|
gem.name = "administrate-field-active_storage"
|
|
5
|
-
gem.version = "0.
|
|
5
|
+
gem.version = "0.2.0"
|
|
6
6
|
gem.authors = ["Hamad AlGhanim"]
|
|
7
7
|
gem.email = ["hamadyalghanim@gmail.com"]
|
|
8
8
|
gem.homepage = "https://github.com/Dreamersoul/administrate-field-active_storage"
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
|
15
15
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
16
16
|
|
|
17
17
|
gem.add_dependency "administrate", ">= 0.2.0.rc1"
|
|
18
|
-
gem.add_dependency "rails", ">=
|
|
18
|
+
gem.add_dependency "rails", ">= 6.0"
|
|
19
19
|
|
|
20
20
|
gem.add_development_dependency "rspec", "~> 3.4"
|
|
21
21
|
end
|
data/contribute.md
CHANGED
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
- Leif Gensert [@leifg](https://github.com/leifg)
|
|
6
6
|
- Kadu Diógenes [@cerdiogenes](https://github.com/cerdiogenes)
|
|
7
7
|
- Peter Bhat Harkins [@pushcx](https://github.com/pushcx)
|
|
8
|
-
- Delta Purna Widyangga [@deltapurna](https://github.com/deltapurna)
|
|
8
|
+
- Delta Purna Widyangga [@deltapurna](https://github.com/deltapurna)
|
|
9
|
+
- Joé Dupuis [@twistedjoe](https://github.com/twistedjoe)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
administrate-field-active_storage (0.1.
|
|
4
|
+
administrate-field-active_storage (0.1.8)
|
|
5
5
|
administrate (>= 0.2.0.rc1)
|
|
6
6
|
rails (>= 5.2)
|
|
7
7
|
|
|
@@ -136,7 +136,7 @@ GEM
|
|
|
136
136
|
mimemagic (~> 0.3.2)
|
|
137
137
|
method_source (0.9.2)
|
|
138
138
|
mimemagic (0.3.3)
|
|
139
|
-
mini_magick (4.9.
|
|
139
|
+
mini_magick (4.9.4)
|
|
140
140
|
mini_mime (1.0.1)
|
|
141
141
|
mini_portile2 (2.4.0)
|
|
142
142
|
minitest (5.11.3)
|
|
@@ -145,7 +145,7 @@ GEM
|
|
|
145
145
|
msgpack (1.2.4)
|
|
146
146
|
multi_json (1.13.1)
|
|
147
147
|
nio4r (2.3.1)
|
|
148
|
-
nokogiri (1.
|
|
148
|
+
nokogiri (1.10.4)
|
|
149
149
|
mini_portile2 (~> 2.4.0)
|
|
150
150
|
public_suffix (3.0.3)
|
|
151
151
|
puma (3.12.0)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: administrate-field-active_storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hamad AlGhanim
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-09-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: administrate
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '6.0'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '6.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|