viniBaxter-spa-belongs_to_search 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 794851779912b2ed0c638a5c87ce731b752f9e931b06c8461edbff2405ba9274
4
+ data.tar.gz: f9f0ef7cdc474bea440c8893ce694eb999578f596897e7cf37fc12cbd3c2d5dd
5
+ SHA512:
6
+ metadata.gz: cf38917259f0f0b68190bb7651ea450e6980a46ccaf5a3c7bff8a4553325988234181f25242091e6b72d69a2d52e34a75e068677b4df461fb3d8d72bc756bccc
7
+ data.tar.gz: bb4e95511c9fa49cf3f5a22e26c32aa0424726003f68226d3e4c1920c965a69f9ff478f413d616ed4315d095b08c64c48f0fd0ddad5c7658770a823fad857c52
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,38 @@
1
+ Rails:
2
+ Enabled: true
3
+
4
+ Metrics/LineLength:
5
+ Max: 120
6
+ Metrics/MethodLength:
7
+ Max: 20
8
+ Metrics/ClassLength:
9
+ Max: 220
10
+
11
+ Metrics/AbcSize:
12
+ Max: 35
13
+
14
+ Documentation:
15
+ Enabled: false
16
+
17
+ Style/FrozenStringLiteralComment:
18
+ Enabled: false
19
+
20
+ # allow multiline `expect { ... }.to do_something`
21
+ Style/BlockDelimiters:
22
+ Exclude:
23
+ - 'spec/**/*'
24
+
25
+ # specs tend to get long
26
+ Metrics/BlockLength:
27
+ Exclude:
28
+ - 'spec/**/*'
29
+
30
+ Rails/ApplicationRecord:
31
+ Exclude:
32
+ - 'spec/**/*'
33
+
34
+ Style/TrailingCommaInHashLiteral:
35
+ EnforcedStyleForMultiline: comma
36
+
37
+ Style/TrailingCommaInArrayLiteral:
38
+ EnforcedStyleForMultiline: comma
data/.simplecov ADDED
@@ -0,0 +1,11 @@
1
+ SimpleCov.start 'rails' do
2
+ add_group 'app', 'app'
3
+ add_group 'lib', 'lib'
4
+
5
+ refuse_coverage_drop
6
+
7
+ formatter SimpleCov::Formatter::MultiFormatter.new([
8
+ SimpleCov::Formatter::HTMLFormatter,
9
+ Coveralls::SimpleCov::Formatter
10
+ ])
11
+ end
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.5.1
4
+ - 2.4.1
5
+ - 2.3.4
6
+ cache: bundler
7
+ install: bundle install
8
+ script:
9
+ - bundle exec rubocop -D
10
+ - bundle exec rake
data/CHANGELOG.md ADDED
@@ -0,0 +1,44 @@
1
+ # Changelog
2
+
3
+ ## Upcoming release
4
+
5
+ ## 0.6.0
6
+
7
+ * Include Jbuilder in list of dependencies (closes #15)
8
+
9
+ ## 0.5.0
10
+
11
+ * [#14](https://github.com/fishbrain/administrate-field-belongs_to_search/pull/14) Fix a broken instance var from administrate (thanks @Mrjaco12 and @lhoBas)
12
+ * CI related fixes (add Ruby 2.5)
13
+ * Minor rubocop related tweaks
14
+
15
+ ## 0.4.0
16
+
17
+ * [#12](https://github.com/fishbrain/administrate-field-belongs_to_search/pull/12) Loosen version constraints for Administrate and Rails (thanks @dan-ding)
18
+ * CI related fixes
19
+ * Drop support for EOL Ruby 2.1
20
+
21
+ ## 0.3.0
22
+
23
+ * Support Administrate 0.6.0
24
+
25
+ ## 0.2.0
26
+
27
+ * Support Administrate 0.5.0
28
+
29
+ ## 0.1.3
30
+
31
+ * Support Administrate 0.4.0
32
+ * Add assets in initializer
33
+
34
+ ## 0.1.2
35
+
36
+ * Re-push unbroken 0.1.1
37
+
38
+ ## 0.1.1
39
+
40
+ * Fix broken Rails dependency (klaseskilson)
41
+
42
+ ## 0.1.0
43
+
44
+ Initial release
@@ -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/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2017 Fishbrain AB.
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 ADDED
@@ -0,0 +1,66 @@
1
+ # Administrate::Field::BelongsToSearch
2
+
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)
6
+
7
+ A plugin to search through `belongs_to` associations in [thoughtbot's Administrate](https://github.com/thoughtbot/administrate) Rails engine.
8
+
9
+ ## Usage
10
+
11
+ Add it to your `Gemfile`:
12
+
13
+ ```ruby
14
+ gem 'administrate-field-belongs_to_search'
15
+ ```
16
+
17
+ Run bundler to install:
18
+
19
+ ```sh
20
+ bundle install
21
+ ```
22
+
23
+ Add it to your Administrate dashboard, for instance:
24
+
25
+ ```ruby
26
+ class PostDashboard < Administrate::BaseDashboard
27
+ ATTRIBUTE_TYPES = {
28
+ author: Field::BelongsToSearch.with_options(class_name: 'User')
29
+ }
30
+ # ...
31
+ ```
32
+
33
+ With this, you should be good to go!
34
+
35
+ ## Develop and Contribute
36
+
37
+ Fork and clone the repo. Install dependencies and run test using:
38
+
39
+ ```sh
40
+ bundle install
41
+ bundle exec rake
42
+ ```
43
+
44
+ Then, implement your feature/fix, [write a good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
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
46
+ submit an [issue](https://github.com/fishbrain/administrate-field-belongs_to_search/issues/new).
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
+
50
+ ## License
51
+
52
+ This plugin is Copyright © 2017 Fishbrain AB. It is licensed under the MIT license. See [LICENSE](LICENSE) for details.
53
+
54
+ ## Screenshot
55
+
56
+ ![Screenshot](http://i.imgur.com/4GlEJ6O.png)
57
+
58
+ ========
59
+
60
+ ![Fishbrain AB](http://i.imgur.com/wOMiqE8.png)
61
+
62
+ This plugin is maintained by [Fishbrain AB](https://fishbrain.com).
63
+
64
+ At Fishbrain, we're passionate about the outdoors and conservation. Together, we work to bring you the best app for fishing, hands down.
65
+
66
+ If you love working with amazing and talented people in tight-knit teams, [join us](https://fishbrain.com/jobs/)!
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
@@ -0,0 +1,12 @@
1
+ // belongs_to form
2
+ $(function() {
3
+ $(".field-unit--belongs-to-search select").each(function initializeSelectize(index, element) {
4
+ var $element = $(element);
5
+ $element.selectize({
6
+ valueField: 'id',
7
+ labelField: 'dashboard_display_name',
8
+ searchField: 'dashboard_display_name',
9
+ create: false,
10
+ });
11
+ });
12
+ });
@@ -0,0 +1,23 @@
1
+ # ## Index
2
+ #
3
+ # This view is the template for the index page.
4
+ #
5
+ # ## Local variables:
6
+ #
7
+ # - `page`:
8
+ # An instance of [Administrate::Page::Collection][1].
9
+ # Contains helper methods to help display a table,
10
+ # and knows which attributes should be displayed in the resource's table.
11
+ # - `resources`:
12
+ # An instance of `ActiveRecord::Relation` containing the resources
13
+ # that match the user's search criteria.
14
+ # By default, these resources are passed to the table partial to be displayed.
15
+ # - `search_term`:
16
+ # A string containing the term the user has searched for, if any.
17
+ #
18
+ # [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Collection
19
+
20
+ json.resources resources do |resource|
21
+ json.id resource.id
22
+ json.dashboard_display_name @dashboard.display_resource(resource)
23
+ end
@@ -0,0 +1,27 @@
1
+ <%#
2
+ # BelongsToSearch Form Partial
3
+
4
+ This partial renders an search input element for belongs_to relationships.
5
+ By default, the input is a collection select box
6
+ that displays all possible records to associate with.
7
+
8
+ ## Local variables:
9
+
10
+ - `f`:
11
+ A Rails form generator, used to help create the appropriate input fields.
12
+ - `field`:
13
+ An instance of [BelongsToWithSearchField].
14
+ Contains helper methods for displaying a collection select box.
15
+ %>
16
+
17
+ <div class="field-unit__label">
18
+ <%= f.label field.permitted_attribute %>
19
+ </div>
20
+ <div class="field-unit__field">
21
+ <%= f.select(field.permitted_attribute,
22
+ nil,
23
+ {},
24
+ 'data-url': polymorphic_url([namespace, field.associated_class], format: :json)) do %>
25
+ <%= options_for_select(field.associated_resource_options, field.selected_option) %>
26
+ <% end %>
27
+ </div>
@@ -0,0 +1,21 @@
1
+ <%#
2
+ # BelongsToSearch Index Partial
3
+
4
+ This partial renders a belongs_to relationship,
5
+ to be displayed on a resource's index page.
6
+
7
+ By default, the relationship is rendered as a link to the associated object.
8
+
9
+ ## Local variables:
10
+
11
+ - `field`:
12
+ An instance of Administrate::Field::BelongsToSearch.
13
+ A wrapper around the belongs_to relationship pulled from the database.
14
+ %>
15
+
16
+ <% if field.data %>
17
+ <%= link_to(
18
+ field.display_associated_resource,
19
+ [namespace, field.data],
20
+ ) %>
21
+ <% end %>
@@ -0,0 +1,21 @@
1
+ <%#
2
+ # BelongsToSearch Show Partial
3
+
4
+ This partial renders a belongs_to relationship,
5
+ to be displayed on a resource's show page.
6
+
7
+ By default, the relationship is rendered as a link to the associated object.
8
+
9
+ ## Local variables:
10
+
11
+ - `field`:
12
+ An instance of Administrate::Field::BelongsToSearch.
13
+ A wrapper around the belongs_to relationship pulled from the database.
14
+ %>
15
+
16
+ <% if field.data %>
17
+ <%= link_to(
18
+ field.display_associated_resource,
19
+ [namespace, field.data],
20
+ ) %>
21
+ <% end %>
@@ -0,0 +1,19 @@
1
+ require 'administrate/field/belongs_to'
2
+ require 'rails'
3
+
4
+ module Administrate
5
+ module Field
6
+ class BelongsToSearch < Administrate::Field::BelongsTo
7
+ class Engine < ::Rails::Engine
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
12
+ end
13
+
14
+ def associated_class
15
+ super
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,33 @@
1
+ lib = File.expand_path('lib', __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.name = 'viniBaxter-spa-belongs_to_search'
6
+ gem.version = '1.0.0'.freeze
7
+ gem.authors = ['Klas Eskilson']
8
+ gem.email = ['vinybaxter@gmail;com']
9
+ gem.homepage = 'https://github.com/fishbrain/administrate-field-belongs_to_search'
10
+ gem.summary = 'Plugin that adds search capabilities to belongs_to associations for Administrate'
11
+ gem.license = 'MIT'
12
+
13
+ gem.require_paths = %w[lib]
14
+ gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
15
+ gem.test_files = `git ls-files -z -- {spec}/*`.split("\x0")
16
+
17
+ gem.add_dependency 'administrate', '>= 0.3', '< 1.0'
18
+ gem.add_dependency 'jbuilder', '~> 2'
19
+ gem.add_dependency 'rails', '>= 4.2'
20
+ gem.add_dependency 'selectize-rails', '~> 0.6'
21
+
22
+ gem.add_development_dependency 'coveralls', '~> 0'
23
+ gem.add_development_dependency 'factory_girl', '~> 4.8'
24
+ gem.add_development_dependency 'rake', '~> 12.0'
25
+ gem.add_development_dependency 'rspec', '~> 3.4'
26
+ gem.add_development_dependency 'rubocop', '0.49.0'
27
+ gem.add_development_dependency 'simplecov', '~> 0'
28
+ gem.add_development_dependency 'sqlite3', '~> 1.3'
29
+
30
+ gem.description = <<-DESCRIPTION
31
+ Add support to search through (potentially large) belongs_to associations in your Administrate dashboards.
32
+ DESCRIPTION
33
+ end
metadata ADDED
@@ -0,0 +1,222 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: viniBaxter-spa-belongs_to_search
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Klas Eskilson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: administrate
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '1.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.3'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: jbuilder
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rails
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '4.2'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '4.2'
61
+ - !ruby/object:Gem::Dependency
62
+ name: selectize-rails
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '0.6'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '0.6'
75
+ - !ruby/object:Gem::Dependency
76
+ name: coveralls
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: factory_girl
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '4.8'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '4.8'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rake
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '12.0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '12.0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '3.4'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '3.4'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rubocop
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - '='
136
+ - !ruby/object:Gem::Version
137
+ version: 0.49.0
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - '='
143
+ - !ruby/object:Gem::Version
144
+ version: 0.49.0
145
+ - !ruby/object:Gem::Dependency
146
+ name: simplecov
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: sqlite3
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '1.3'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '1.3'
173
+ description: " Add support to search through (potentially large) belongs_to associations
174
+ in your Administrate dashboards.\n"
175
+ email:
176
+ - vinybaxter@gmail;com
177
+ executables: []
178
+ extensions: []
179
+ extra_rdoc_files: []
180
+ files:
181
+ - ".gitignore"
182
+ - ".rspec"
183
+ - ".rubocop.yml"
184
+ - ".simplecov"
185
+ - ".travis.yml"
186
+ - CHANGELOG.md
187
+ - CODE_OF_CONDUCT.md
188
+ - Gemfile
189
+ - LICENSE
190
+ - README.md
191
+ - Rakefile
192
+ - app/assets/javascripts/belongs_to_search.js
193
+ - app/views/administrate/application/index.json.jbuilder
194
+ - app/views/fields/belongs_to_search/_form.html.erb
195
+ - app/views/fields/belongs_to_search/_index.html.erb
196
+ - app/views/fields/belongs_to_search/_show.html.erb
197
+ - lib/viniBaxter/spa/belongs_to_search.rb
198
+ - viniBaxter-spa-belongs_to_search.gemspec
199
+ homepage: https://github.com/fishbrain/administrate-field-belongs_to_search
200
+ licenses:
201
+ - MIT
202
+ metadata: {}
203
+ post_install_message:
204
+ rdoc_options: []
205
+ require_paths:
206
+ - lib
207
+ required_ruby_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ required_rubygems_version: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ requirements: []
218
+ rubygems_version: 3.0.3
219
+ signing_key:
220
+ specification_version: 4
221
+ summary: Plugin that adds search capabilities to belongs_to associations for Administrate
222
+ test_files: []