administrate-field-belongs_to_search 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +11 -0
- data/.travis.yml +7 -2
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/README.md +10 -2
- data/administrate-field-belongs_to_search.gemspec +2 -2
- data/lib/administrate/field/belongs_to_search.rb +4 -2
- metadata +12 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd74ccbbcdb6f844fab4e255b952d6ce1ead362c
|
4
|
+
data.tar.gz: 2525e985907da9566ae79c514705c765bfb58a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ff5a39a322338b3879426c19eda8840d0e505dab6d3b6cc4db1970900a5adcf80d1828ed0f02d5043691d7f1f3d58d0c8f8b1a04c95e62312cb6635c5dadec
|
7
|
+
data.tar.gz: b692751205a8c03989211d1118b076f32152c3659fd803e32c8764a60d2afd161d25b5cfe8cf06e95fcdf4b73eb6149d9a1144553ff497b12435c3690db9b726
|
data/.simplecov
ADDED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at developer@fishbrain.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Administrate::Field::BelongsToSearch
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/fishbrain/administrate-field-belongs_to_search.svg?branch=master)](https://travis-ci.org/fishbrain/administrate-field-belongs_to_search)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/administrate-field-belongs_to_search.svg)](https://badge.fury.io/rb/administrate-field-belongs_to_search)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/github/fishbrain/administrate-field-belongs_to_search/badge.svg?branch=master)](https://coveralls.io/github/fishbrain/administrate-field-belongs_to_search?branch=master)
|
4
6
|
|
5
7
|
A plugin to search through `belongs_to` associations in [thoughtbot's Administrate](https://github.com/thoughtbot/administrate) Rails engine.
|
6
8
|
|
@@ -9,7 +11,7 @@ A plugin to search through `belongs_to` associations in [thoughtbot's Administra
|
|
9
11
|
Add it to your `Gemfile`:
|
10
12
|
|
11
13
|
```ruby
|
12
|
-
gem 'administrate-field-belongs_to_search'
|
14
|
+
gem 'administrate-field-belongs_to_search'
|
13
15
|
```
|
14
16
|
|
15
17
|
Run bundler to install:
|
@@ -30,7 +32,7 @@ class PostDashboard < Administrate::BaseDashboard
|
|
30
32
|
|
31
33
|
With this, you should be good to go!
|
32
34
|
|
33
|
-
## Develop and
|
35
|
+
## Develop and Contribute
|
34
36
|
|
35
37
|
Fork and clone the repo. Install dependencies and run test using:
|
36
38
|
|
@@ -43,10 +45,16 @@ Then, implement your feature/fix, [write a good commit message](http://tbaggery.
|
|
43
45
|
and submit a pull request to this repository. If you only have some feedback or are unsure about how to do something, you're welcome to
|
44
46
|
submit an [issue](https://github.com/fishbrain/administrate-field-belongs_to_search/issues/new).
|
45
47
|
|
48
|
+
This is meant to be an welcoming and friendly place for collaboration. Therefore, all contributors are expected to adhere to the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md).
|
49
|
+
|
46
50
|
## License
|
47
51
|
|
48
52
|
This plugin is Copyright © 2017 Fishbrain AB. It is licensed under the MIT license. See [LICENSE](LICENSE) for details.
|
49
53
|
|
54
|
+
## Screenshot
|
55
|
+
|
56
|
+
![Screenshot](http://i.imgur.com/4GlEJ6O.png)
|
57
|
+
|
50
58
|
========
|
51
59
|
|
52
60
|
![Fishbrain AB](http://i.imgur.com/wOMiqE8.png)
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'administrate-field-belongs_to_search'
|
7
|
-
gem.version = '0.1.
|
7
|
+
gem.version = '0.1.3'.freeze
|
8
8
|
gem.authors = ['Klas Eskilson']
|
9
9
|
gem.email = ['klas.eskilson@gmail.com']
|
10
10
|
gem.homepage = 'https://github.com/fishbrain/administrate-field-belongs_to_search'
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
16
16
|
gem.test_files = `git ls-files -z -- {spec}/*`.split("\x0")
|
17
17
|
|
18
|
-
gem.add_dependency 'administrate', '
|
18
|
+
gem.add_dependency 'administrate', '>= 0.3', '<= 0.4.0'
|
19
19
|
gem.add_dependency 'rails', '>= 4.2', '< 5.1'
|
20
20
|
gem.add_dependency 'selectize-rails', '~> 0.6'
|
21
21
|
|
@@ -5,8 +5,10 @@ module Administrate
|
|
5
5
|
module Field
|
6
6
|
class BelongsToSearch < Administrate::Field::BelongsTo
|
7
7
|
class Engine < ::Rails::Engine
|
8
|
-
|
9
|
-
|
8
|
+
initializer 'administrate-field-belongs_to_search.add_assets' do |app|
|
9
|
+
app.config.assets.precompile << 'belongs_to_search.js' if app.config.respond_to? :assets
|
10
|
+
Administrate::Engine.add_javascript 'belongs_to_search.js' if defined?(Administrate::Engine)
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
def associated_resource_options
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-field-belongs_to_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Klas Eskilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.3'
|
20
|
+
- - "<="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.4.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0.3'
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.4.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rails
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,8 +173,10 @@ files:
|
|
167
173
|
- ".gitignore"
|
168
174
|
- ".rspec"
|
169
175
|
- ".rubocop.yml"
|
176
|
+
- ".simplecov"
|
170
177
|
- ".travis.yml"
|
171
178
|
- CHANGELOG.md
|
179
|
+
- CODE_OF_CONDUCT.md
|
172
180
|
- Gemfile
|
173
181
|
- LICENSE
|
174
182
|
- README.md
|