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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43089e8e87aff06fd350932c27c19a6950652607
4
- data.tar.gz: 3e8432762135bc928f8cd6c47a0927a2c459673d
3
+ metadata.gz: 328b4659243075b6bee1cef8244bf2a5f1967ec7
4
+ data.tar.gz: 8e57437f56ce98280497a545d1dba03ea9a32282
5
5
  SHA512:
6
- metadata.gz: 7263381adac2b1410622533cb77a03af0d90ce07c55bbc966905b10fd10beca6cbb84fc5f43cff4dad901a7434e3955b84dbd98e2810fb5ca6f7fd5de5d469c3
7
- data.tar.gz: f34ce374eec2079aa40a1ca555817ccad04bda73dab0de8d43e3a2e97e753457df0e9149072f85a4b914df35851358ea661dbd29a4ed44e8866f7f83144c332e
6
+ metadata.gz: 7e94c241d48da67369cc1fc51a8a17a6ca7d58e1e2a35b847a3ebbf47150423b78c5c513d61692ac3039059ef1e0fe5ae361ad89ccf5af7d4d7c3413f1e20260
7
+ data.tar.gz: 39fe0b37fb39ddb8cde9f301a23321958cba9f24014077a9cb66f3f6c0f01dfdaae6cc6df330ee5528f45937489b1d984402a71517550f6d9b79c40233317e77
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # AdministrateRefileField
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 `RefileField`. i.e.
20
+ In your Dashboard `ATTRIBUTE_TYPES` use the field type `Field::Refile`. i.e.
21
21
  ```ruby
22
22
  ATTRIBUTE_TYPES = {
23
- images_files: FieldRefile
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: FieldRefile.with_options(direct: true, presigned: true, multiple: true)
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/administrate_refile_field.
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.2'
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
@@ -4,7 +4,7 @@ require 'rails'
4
4
  module Administrate
5
5
  module Field
6
6
  class Refile < Administrate::Field::Base
7
- VERSION = '0.0.1'
7
+ VERSION = '0.0.2'
8
8
  class Engine < ::Rails::Engine
9
9
  end
10
10
 
@@ -8,7 +8,7 @@ describe Administrate::Field::Refile do
8
8
 
9
9
  path = field.to_partial_path
10
10
 
11
- expect(path).to eq("/field/refile/#{page}")
11
+ expect(path).to eq("/fields/refile/#{page}")
12
12
  end
13
13
  end
14
14
  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.1
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-26 00:00:00.000000000 Z
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.2
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.2
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