administrate-field-refile 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/administrate-field-refile.gemspec +5 -2
- data/lib/administrate/field/refile.rb +1 -1
- data/spec/lib/administrate/field/refile_spec.rb +1 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 328b4659243075b6bee1cef8244bf2a5f1967ec7
|
4
|
+
data.tar.gz: 8e57437f56ce98280497a545d1dba03ea9a32282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e94c241d48da67369cc1fc51a8a17a6ca7d58e1e2a35b847a3ebbf47150423b78c5c513d61692ac3039059ef1e0fe5ae361ad89ccf5af7d4d7c3413f1e20260
|
7
|
+
data.tar.gz: 39fe0b37fb39ddb8cde9f301a23321958cba9f24014077a9cb66f3f6c0f01dfdaae6cc6df330ee5528f45937489b1d984402a71517550f6d9b79c40233317e77
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# AdministrateFieldRefile
|
2
2
|
|
3
3
|
All you need to integrate Refile with Administrate.
|
4
4
|
|
@@ -17,20 +17,20 @@ $ bundle
|
|
17
17
|
|
18
18
|
## Usage
|
19
19
|
|
20
|
-
In your Dashboard `ATTRIBUTE_TYPES` use the field type `
|
20
|
+
In your Dashboard `ATTRIBUTE_TYPES` use the field type `Field::Refile`. i.e.
|
21
21
|
```ruby
|
22
22
|
ATTRIBUTE_TYPES = {
|
23
|
-
images_files:
|
23
|
+
images_files: Field::Refile
|
24
24
|
}
|
25
25
|
```
|
26
26
|
|
27
27
|
By default all `Refile` options are false, you can set them to true like this:
|
28
28
|
```ruby
|
29
29
|
ATTRIBUTE_TYPES = {
|
30
|
-
images_files:
|
30
|
+
images_files: Field::Refile.with_options(direct: true, presigned: true, multiple: true)
|
31
31
|
}
|
32
32
|
```
|
33
33
|
|
34
34
|
## Contributing
|
35
35
|
|
36
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/DisruptiveAngels/
|
36
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/DisruptiveAngels/administrate-field-refile.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
$:.push File.expand_path('../lib', __FILE__)
|
2
2
|
|
3
|
-
require 'administrate/field/refile'
|
3
|
+
require './lib/administrate/field/refile'
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'administrate-field-refile'
|
@@ -16,6 +16,9 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.files = `git ls-files`.split("\n")
|
17
17
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
|
19
|
-
gem.add_dependency 'administrate', '~> 0.1.
|
19
|
+
gem.add_dependency 'administrate', '~> 0.1.4'
|
20
20
|
gem.add_dependency 'rails', '~> 4.2'
|
21
|
+
gem.add_dependency 'refile', '~> 0.6'
|
22
|
+
|
23
|
+
gem.add_development_dependency 'rspec', '~> 3.4'
|
21
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-field-refile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Rangel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.
|
26
|
+
version: 0.1.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: refile
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.6'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
41
69
|
description: Easily add Refile fields to your administrate views
|
42
70
|
email:
|
43
71
|
- adrian@disruptiveangels.com
|