administrate-field-image 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +24 -0
- data/Rakefile +22 -0
- data/administrate-field-image.gemspec +8 -8
- data/lib/administrate/field/image.rb +0 -2
- metadata +26 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b83e0f5083420c6ad7e649d05ecaa92bafbec423
|
4
|
+
data.tar.gz: d6c43c7249c6be616ebfb85d117de1d4be6e7147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c80280fdbdcda0188e24961a85299be70f026412c1fdc7a7bc0deea105d288ca0d3b8f15b6a16e2c05154a612990dfb32a6d8b1fbdaeda00296261b3b1b283bf
|
7
|
+
data.tar.gz: 1ab2a53568809c4a1be0cbf776bf4504073096b50b71a62da43af59bd4661bdbeed4990ff3aba57fa78cad809e4ca9a6938ad007d2ca841d5d5c144ccb4cd4aa
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2008-2017 thoughtbot, inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -6,4 +6,28 @@ This repository is the first field plugin extracted out of Administrate.
|
|
6
6
|
Although its structure may change,
|
7
7
|
it's designed to act as a template for other Administrate field plugins.
|
8
8
|
|
9
|
+
## FAQs
|
10
|
+
|
11
|
+
**Q: How should I name my gem?**
|
12
|
+
|
13
|
+
A: Administrate field gems must be named according to the [Rubygems naming guidelines].
|
14
|
+
|
15
|
+
Essentially, name your gem after the field class that it defines.
|
16
|
+
If there's a namespace in the class name, that gets translated to a dash (`-`) in the gem name.
|
17
|
+
If the class name is CamelCased, that translates to an underscore (`_`) in the gem name.
|
18
|
+
|
19
|
+
Since all administrate field gems are under the namespace `Administrate::Field`,
|
20
|
+
every field gem name should start with the prefix `administrate-field-`.
|
21
|
+
|
22
|
+
Here are some examples (these don't correspond to actual gems):
|
23
|
+
|
24
|
+
| Gem Name | Field Name |
|
25
|
+
|----------------------------|------------------------------|
|
26
|
+
| `administrate-field-image` | `Administrate::Field::Image` |
|
27
|
+
| `administrate-field-file_upload` | `Administrate::Field::FileUpload` |
|
28
|
+
| `administrate-field-geocoding-region` | `Administrate::Field::Geocoding::Region` |
|
29
|
+
| `administrate-field-geocoding-geo_json` | `Administrate::Field::Geocoding::GeoJson` |
|
30
|
+
|
31
|
+
[Rubygems naming guidelines]: http://guides.rubygems.org/name-your-gem/
|
32
|
+
|
9
33
|
[Administrate]: https://github.com/thoughtbot/administrate
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
|
3
|
+
begin
|
4
|
+
require "bundler/setup"
|
5
|
+
rescue LoadError
|
6
|
+
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
|
7
|
+
end
|
8
|
+
|
9
|
+
require "bundler/gem_tasks"
|
10
|
+
|
11
|
+
##
|
12
|
+
# Configure the test suite.
|
13
|
+
##
|
14
|
+
require "rspec/core"
|
15
|
+
require "rspec/core/rake_task"
|
16
|
+
|
17
|
+
RSpec::Core::RakeTask.new
|
18
|
+
|
19
|
+
##
|
20
|
+
# By default, just run the tests.
|
21
|
+
##
|
22
|
+
task default: :spec
|
@@ -1,13 +1,11 @@
|
|
1
1
|
$:.push File.expand_path("../lib", __FILE__)
|
2
2
|
|
3
|
-
require "administrate/field/image"
|
4
|
-
|
5
3
|
Gem::Specification.new do |gem|
|
6
4
|
gem.name = "administrate-field-image"
|
7
|
-
gem.version =
|
8
|
-
gem.authors = ["Grayson Wright"]
|
9
|
-
gem.email = ["wright.grayson@gmail.com"]
|
10
|
-
gem.homepage = "https://github.com/graysonwright/
|
5
|
+
gem.version = "1.0.0"
|
6
|
+
gem.authors = ["Grayson Wright", "Nick Charlton"]
|
7
|
+
gem.email = ["wright.grayson@gmail.com", "nick@nickcharlton.net"]
|
8
|
+
gem.homepage = "https://github.com/graysonwright/administrate-field-image"
|
11
9
|
gem.summary = "Official Image field plugin for Administrate"
|
12
10
|
gem.description = gem.summary
|
13
11
|
gem.license = "MIT"
|
@@ -16,6 +14,8 @@ Gem::Specification.new do |gem|
|
|
16
14
|
gem.files = `git ls-files`.split("\n")
|
17
15
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
16
|
|
19
|
-
gem.add_dependency "administrate", ">= 0.2.0.rc1"
|
20
|
-
gem.add_dependency "rails", "
|
17
|
+
gem.add_dependency "administrate", ">= 0.2.0.rc1"
|
18
|
+
gem.add_dependency "rails", ">= 4.2"
|
19
|
+
|
20
|
+
gem.add_development_dependency "rspec", "~> 3.4"
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-field-image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grayson Wright
|
8
|
+
- Nick Charlton
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: administrate
|
@@ -17,9 +18,6 @@ dependencies:
|
|
17
18
|
- - ">="
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: 0.2.0.rc1
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.3.0
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,38 +25,54 @@ dependencies:
|
|
27
25
|
- - ">="
|
28
26
|
- !ruby/object:Gem::Version
|
29
27
|
version: 0.2.0.rc1
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.3.0
|
33
28
|
- !ruby/object:Gem::Dependency
|
34
29
|
name: rails
|
35
30
|
requirement: !ruby/object:Gem::Requirement
|
36
31
|
requirements:
|
37
|
-
- - "
|
32
|
+
- - ">="
|
38
33
|
- !ruby/object:Gem::Version
|
39
34
|
version: '4.2'
|
40
35
|
type: :runtime
|
41
36
|
prerelease: false
|
42
37
|
version_requirements: !ruby/object:Gem::Requirement
|
43
38
|
requirements:
|
44
|
-
- - "
|
39
|
+
- - ">="
|
45
40
|
- !ruby/object:Gem::Version
|
46
41
|
version: '4.2'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rspec
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.4'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '3.4'
|
47
56
|
description: Official Image field plugin for Administrate
|
48
57
|
email:
|
49
58
|
- wright.grayson@gmail.com
|
59
|
+
- nick@nickcharlton.net
|
50
60
|
executables: []
|
51
61
|
extensions: []
|
52
62
|
extra_rdoc_files: []
|
53
63
|
files:
|
64
|
+
- ".gitignore"
|
65
|
+
- Gemfile
|
66
|
+
- LICENSE
|
54
67
|
- README.md
|
68
|
+
- Rakefile
|
55
69
|
- administrate-field-image.gemspec
|
56
70
|
- app/views/fields/image/_form.html.erb
|
57
71
|
- app/views/fields/image/_index.html.erb
|
58
72
|
- app/views/fields/image/_show.html.erb
|
59
73
|
- lib/administrate/field/image.rb
|
60
74
|
- spec/lib/administrate/field/image_spec.rb
|
61
|
-
homepage: https://github.com/graysonwright/
|
75
|
+
homepage: https://github.com/graysonwright/administrate-field-image
|
62
76
|
licenses:
|
63
77
|
- MIT
|
64
78
|
metadata: {}
|
@@ -78,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
92
|
version: '0'
|
79
93
|
requirements: []
|
80
94
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.6.8
|
82
96
|
signing_key:
|
83
97
|
specification_version: 4
|
84
98
|
summary: Official Image field plugin for Administrate
|