administrate-field-select 1.1.0 → 2.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5abc1d235420b7c87da019afae2ae80c73ead85
4
- data.tar.gz: fbd59d69d61b5aaf3e7cee7b973d7b6379acd02c
3
+ metadata.gz: 7f58e24ffac45ca27057850b2fcf50872125d39b
4
+ data.tar.gz: a196debcaf2a0fb6bc5d847647ed510ee212c6df
5
5
  SHA512:
6
- metadata.gz: 494f9e17279fb51286c261c80fe55e633330516172dd86107b4a7796a7a209d6e4b40ea29b0226f971832c54573bf12ac41647e5139c9c5059196e6352f35669
7
- data.tar.gz: 7c56662ef6af86cb11cb226c4af4c0c3c0dc68f9a404b7630ff6f5fa830d80d764c22b0c16e3415ca1a884d0324889b55df8164156129ed10995d6e8cb00dd2d
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::Select` with options:
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::Select.with_options({
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 = "1.1.0"
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::Select for creating dropdown selects in your dashboards.}
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"
@@ -3,7 +3,7 @@ require 'rails'
3
3
 
4
4
  module Administrate
5
5
  module Field
6
- class Select < Base
6
+ class SelectBasic < Base
7
7
  class Engine < ::Rails::Engine
8
8
  end
9
9
 
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: 1.1.0
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-03-14 00:00:00.000000000 Z
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::Select for creating dropdown selects in
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/select/_form.html.erb
87
- - app/views/fields/select/_index.html.erb
88
- - app/views/fields/select/_show.html.erb
89
- - lib/administrate/field/select.rb
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