administrate-field-select 1.1.0 → 2.0.0
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 -3
- data/administrate-field-select.gemspec +3 -3
- data/app/views/fields/{select → select_basic}/_form.html.erb +0 -0
- data/app/views/fields/{select → select_basic}/_index.html.erb +0 -0
- data/app/views/fields/{select → select_basic}/_show.html.erb +0 -0
- data/lib/administrate/field/{select.rb → select_basic.rb} +1 -1
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f58e24ffac45ca27057850b2fcf50872125d39b
|
4
|
+
data.tar.gz: a196debcaf2a0fb6bc5d847647ed510ee212c6df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 731bbc98159c6a0cd66c23ff2db0d0338a7832642b364d6105c83b07edfde8443a0852b5c0f51342caf6a391b23c57a2852b4e8fdbd1fe0ec07bccd8308627b9
|
7
|
+
data.tar.gz: b6a3a85382d25098f359a63d2ca6bffdb19b18f605fb73cf9156aefea6cadfa0414cebe987e01163ebed51a411b57fed8348c4f364d45565726307179c0e898f
|
data/README.md
CHANGED
@@ -5,12 +5,14 @@ Adds basic select/dropdown fields to ThoughtBot's [Administrate](https://github.
|
|
5
5
|
[![Gem Version](https://img.shields.io/gem/v/administrate-field-select.svg?style=flat)](https://rubygems.org/gems/administrate-field-select)
|
6
6
|
[![Build Status](https://img.shields.io/travis/fishpercolator/administrate-field-select/master.svg?style=flat)](https://travis-ci.org/fishpercolator/administrate-field-select)
|
7
7
|
|
8
|
+
'''NOTE''': Since v0.1.15, Administrate now supports its own Field::Select with a slightly different mechanic. So this has been renamed to Field::SelectBasic. Please update your Gemfiles (as below) and rename your calls to this field.
|
9
|
+
|
8
10
|
## Installation
|
9
11
|
|
10
12
|
Add this line to your application's Gemfile:
|
11
13
|
|
12
14
|
```ruby
|
13
|
-
gem 'administrate-field-select'
|
15
|
+
gem 'administrate-field-select', '~> 2.0', require: 'administrate/field/select_basic'
|
14
16
|
```
|
15
17
|
|
16
18
|
And then execute:
|
@@ -19,11 +21,11 @@ And then execute:
|
|
19
21
|
|
20
22
|
## Usage
|
21
23
|
|
22
|
-
In your dashboard's `ATRRIBUTE_TYPES`, use the type `Field::
|
24
|
+
In your dashboard's `ATRRIBUTE_TYPES`, use the type `Field::SelectBasic` with options:
|
23
25
|
|
24
26
|
```ruby
|
25
27
|
ATTRIBUTE_TYPES = {
|
26
|
-
my_field: Field::
|
28
|
+
my_field: Field::SelectBasic.with_options({
|
27
29
|
choices: ['option_one', 'option_two', 'option_three']
|
28
30
|
}),
|
29
31
|
some_other_field: Field::String,
|
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "administrate-field-select"
|
7
|
-
spec.version = "
|
7
|
+
spec.version = "2.0.0"
|
8
8
|
spec.authors = ["Rich Daley"]
|
9
9
|
spec.email = ["rich@fishpercolator.co.uk"]
|
10
10
|
|
11
11
|
spec.summary = %q{Dropdown/select fields for Administrate dashboards}
|
12
|
-
spec.description = %q{Adds an Administrate::Field::
|
12
|
+
spec.description = %q{Adds an Administrate::Field::SelectBasic for creating dropdown selects in your dashboards.}
|
13
13
|
spec.homepage = "https://github.com/fishpercolator/administrate-field-select"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency 'administrate', '~> 0.1'
|
20
|
+
spec.add_dependency 'administrate', '~> 0.1', '>= 0.1.5'
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.11"
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-field-select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich Daley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.1.5
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0.1'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.1.5
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,8 +72,8 @@ dependencies:
|
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '3.0'
|
69
|
-
description: Adds an Administrate::Field::
|
70
|
-
your dashboards.
|
75
|
+
description: Adds an Administrate::Field::SelectBasic for creating dropdown selects
|
76
|
+
in your dashboards.
|
71
77
|
email:
|
72
78
|
- rich@fishpercolator.co.uk
|
73
79
|
executables: []
|
@@ -83,10 +89,10 @@ files:
|
|
83
89
|
- README.md
|
84
90
|
- Rakefile
|
85
91
|
- administrate-field-select.gemspec
|
86
|
-
- app/views/fields/
|
87
|
-
- app/views/fields/
|
88
|
-
- app/views/fields/
|
89
|
-
- lib/administrate/field/
|
92
|
+
- app/views/fields/select_basic/_form.html.erb
|
93
|
+
- app/views/fields/select_basic/_index.html.erb
|
94
|
+
- app/views/fields/select_basic/_show.html.erb
|
95
|
+
- lib/administrate/field/select_basic.rb
|
90
96
|
homepage: https://github.com/fishpercolator/administrate-field-select
|
91
97
|
licenses:
|
92
98
|
- MIT
|