awesome_sort 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +73 -0
- data/LICENSE.txt +21 -0
- data/README.md +60 -0
- data/Rakefile +10 -0
- data/app/assets/javascripts/awesome_sort.js +30 -0
- data/app/assets/stylesheets/awesome_sort.scss +25 -0
- data/app/helpers/awesome_sort/awesome_sort_helper.rb +52 -0
- data/awesome_sort.gem +0 -0
- data/awesome_sort.gemspec +32 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/awesome_sort.rb +23 -0
- data/lib/awesome_sort/engine.rb +6 -0
- data/lib/awesome_sort/version.rb +3 -0
- metadata +143 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ba89ee27b0231521b79ae9b5462fc3b5bb2023ae8b2d277095a7ce6a2dcaa8c1
|
4
|
+
data.tar.gz: ba282dc14a3ec8d346f8c1fb72b116ebd43e19e4db13596c3d6e9480b571f560
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 51432ed725afe619bf62eb07518227186afd60dbb872093bcbb8b40c722c9ae7baaf6ba5100e673ab936bff4b6d8919aeacd56f06ee2967a623b4b7df808c7ad
|
7
|
+
data.tar.gz: 5c8865c2df4063665cb40aded9239831f20bbd55be91a0c9670526d68e640b35283319d16751e47822afe1a0600f34cd5365570d516eaa5bcdafa87457957212
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
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 c_diaconu_95@yahoo.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
data/Gemfile.lock
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
awesome_sort (0.1.0)
|
5
|
+
activesupport (>= 3.2, < 6.1)
|
6
|
+
railties (>= 3.2, < 6.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (5.2.3)
|
12
|
+
actionview (= 5.2.3)
|
13
|
+
activesupport (= 5.2.3)
|
14
|
+
rack (~> 2.0)
|
15
|
+
rack-test (>= 0.6.3)
|
16
|
+
rails-dom-testing (~> 2.0)
|
17
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
18
|
+
actionview (5.2.3)
|
19
|
+
activesupport (= 5.2.3)
|
20
|
+
builder (~> 3.1)
|
21
|
+
erubi (~> 1.4)
|
22
|
+
rails-dom-testing (~> 2.0)
|
23
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
24
|
+
activesupport (5.2.3)
|
25
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
26
|
+
i18n (>= 0.7, < 2)
|
27
|
+
minitest (~> 5.1)
|
28
|
+
tzinfo (~> 1.1)
|
29
|
+
builder (3.2.3)
|
30
|
+
concurrent-ruby (1.1.5)
|
31
|
+
crass (1.0.4)
|
32
|
+
erubi (1.8.0)
|
33
|
+
i18n (1.6.0)
|
34
|
+
concurrent-ruby (~> 1.0)
|
35
|
+
loofah (2.2.3)
|
36
|
+
crass (~> 1.0.2)
|
37
|
+
nokogiri (>= 1.5.9)
|
38
|
+
method_source (0.9.2)
|
39
|
+
mini_portile2 (2.4.0)
|
40
|
+
minitest (5.11.3)
|
41
|
+
nokogiri (1.10.3)
|
42
|
+
mini_portile2 (~> 2.4.0)
|
43
|
+
rack (2.0.7)
|
44
|
+
rack-test (1.1.0)
|
45
|
+
rack (>= 1.0, < 3)
|
46
|
+
rails-dom-testing (2.0.3)
|
47
|
+
activesupport (>= 4.2.0)
|
48
|
+
nokogiri (>= 1.6)
|
49
|
+
rails-html-sanitizer (1.0.4)
|
50
|
+
loofah (~> 2.2, >= 2.2.2)
|
51
|
+
railties (5.2.3)
|
52
|
+
actionpack (= 5.2.3)
|
53
|
+
activesupport (= 5.2.3)
|
54
|
+
method_source
|
55
|
+
rake (>= 0.8.7)
|
56
|
+
thor (>= 0.19.0, < 2.0)
|
57
|
+
rake (10.5.0)
|
58
|
+
thor (0.20.3)
|
59
|
+
thread_safe (0.3.6)
|
60
|
+
tzinfo (1.2.5)
|
61
|
+
thread_safe (~> 0.1)
|
62
|
+
|
63
|
+
PLATFORMS
|
64
|
+
ruby
|
65
|
+
|
66
|
+
DEPENDENCIES
|
67
|
+
bundler
|
68
|
+
awesome_sort!
|
69
|
+
minitest (~> 5.0)
|
70
|
+
rake (~> 10.0)
|
71
|
+
|
72
|
+
BUNDLED WITH
|
73
|
+
2.0.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Andrei Diaconu
|
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,60 @@
|
|
1
|
+
# AwesomeSort
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/awesome_sort`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'awesome_sort'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install awesome_sort
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Include
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
AwesomeSort::AwesomeSortHelper
|
29
|
+
```
|
30
|
+
in your application_helper file.
|
31
|
+
|
32
|
+
Include awesome_sort in your javascript and css application files
|
33
|
+
|
34
|
+
In config/initializers, create an awesome_sort with similar syntax:
|
35
|
+
```ruby
|
36
|
+
AwesomeSort.configure do |config|
|
37
|
+
config.add_sorter :contacts, :name, ->(scope, direction){ scope.order(surname: direction, forename: direction) }
|
38
|
+
config.add_sorter :contacts, :organisations, ->(direction){ scope.eager_load(:clients).order("institute.name #{direction}") }
|
39
|
+
config.add_default :contacts, ->(scope){ scope.eager_load(:clients).order('institute.name') }
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
|
44
|
+
## Development
|
45
|
+
|
46
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
47
|
+
|
48
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
49
|
+
|
50
|
+
## Contributing
|
51
|
+
|
52
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/awesome_sort. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
53
|
+
|
54
|
+
## License
|
55
|
+
|
56
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
57
|
+
|
58
|
+
## Code of Conduct
|
59
|
+
|
60
|
+
Everyone interacting in the AwesomeSort project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/awesome_sort/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
function orderable() {
|
2
|
+
// Orderable tables, only one per page atm.
|
3
|
+
if ($('.orderable').length && window.location.search) {
|
4
|
+
var order_terms = window.location.search.match(/sort_by=(\w+)($|&)/);
|
5
|
+
var order_term = order_terms ? order_terms[1] : undefined;
|
6
|
+
|
7
|
+
var order_directions = window.location.search.match(/sort_order=(\w+)($|&)/);
|
8
|
+
var order_direction = order_directions ? order_directions[1] : undefined;
|
9
|
+
|
10
|
+
if (order_term) {
|
11
|
+
$('.orderable').each(function() {
|
12
|
+
if ($(this).data('order-term') == order_term) {
|
13
|
+
$(this).addClass('order-' + order_direction);
|
14
|
+
} else {
|
15
|
+
$(this).removeClass('order-asc');
|
16
|
+
$(this).removeClass('order-desc');
|
17
|
+
}
|
18
|
+
});
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
$(".orderable").each(function() {
|
23
|
+
if ($(this).hasClass('order-asc')) {
|
24
|
+
var link = window.location.pathname + '?sort_by=' + $(this).data('order-term') + '&sort_order=desc' + window.location.hash
|
25
|
+
} else {
|
26
|
+
var link = window.location.pathname + '?sort_by=' + $(this).data('order-term') + '&sort_order=asc' + window.location.hash
|
27
|
+
}
|
28
|
+
$(this).wrapInner($('<a/>').attr('href', link));
|
29
|
+
});
|
30
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
th.orderable a {
|
2
|
+
color: black !important;
|
3
|
+
}
|
4
|
+
|
5
|
+
th.orderable.order-asc:after {
|
6
|
+
display: inline-block;
|
7
|
+
content: "\25BE";
|
8
|
+
-webkit-transform: rotate(180deg);
|
9
|
+
-moz-transform: rotate(180deg);
|
10
|
+
-o-transform: rotate(180deg);
|
11
|
+
-ms-transform: rotate(180deg);
|
12
|
+
transform: rotate(180deg);
|
13
|
+
margin-left: 5px;
|
14
|
+
vertical-align: middle;
|
15
|
+
}
|
16
|
+
|
17
|
+
th.orderable.order-desc:after {
|
18
|
+
display: inline-block;
|
19
|
+
content: "\25BE";
|
20
|
+
margin-left: 5px;
|
21
|
+
}
|
22
|
+
|
23
|
+
th.orderable.order-asc, th.orderable.order-desc {
|
24
|
+
background-color: #f2f2f2;
|
25
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module AwesomeSort
|
2
|
+
module AwesomeSortHelper
|
3
|
+
def column_sort(args = {})
|
4
|
+
# Should pass it column_name, link_name, controller_name and
|
5
|
+
# optionally width, html_options and header_classes
|
6
|
+
args.reverse_merge!(
|
7
|
+
header_classes: [],
|
8
|
+
html_options: {}
|
9
|
+
)
|
10
|
+
c_method = args[:controller_name] + "_path"
|
11
|
+
klass = ["orderable"]
|
12
|
+
klass << "order-#{params[:sort_order]}" if params[:sort_by] == args[:column_name]
|
13
|
+
klass << args[:header_classes]
|
14
|
+
klass.flatten
|
15
|
+
sort_order =
|
16
|
+
if params[:sort_by] == args[:column_name] && params[:sort_order] == "asc"
|
17
|
+
"desc"
|
18
|
+
else
|
19
|
+
"asc"
|
20
|
+
end
|
21
|
+
content_tag(:th, width: args[:width], class: klass) do
|
22
|
+
link_to(
|
23
|
+
args[:link_name],
|
24
|
+
public_send(c_method, search: params[:search], sort_order: sort_order, sort_by: args[:column_name]),
|
25
|
+
{ remote: true }.merge(args[:html_options])
|
26
|
+
)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def sort(scope, sort_by, sort_order)
|
31
|
+
klass = scope.model.name.tableize.to_sym
|
32
|
+
|
33
|
+
if sort_by
|
34
|
+
if sorter = AwesomeSort.sorters[klass][sort_by.to_sym]
|
35
|
+
sorter.call(scope, sort_order)
|
36
|
+
else
|
37
|
+
scope.order(sort_by => sort_order)
|
38
|
+
end
|
39
|
+
else
|
40
|
+
if default_sorter = AwesomeSort.defaults[klass]
|
41
|
+
if default_sorter.respond_to?(:call)
|
42
|
+
default_sorter.call(scope)
|
43
|
+
else
|
44
|
+
scope.order(default_sorter => 'asc')
|
45
|
+
end
|
46
|
+
else
|
47
|
+
scope
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/awesome_sort.gem
ADDED
Binary file
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "awesome_sort/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "awesome_sort"
|
8
|
+
spec.version = AwesomeSort::VERSION
|
9
|
+
spec.authors = ["Andrei Diaconu"]
|
10
|
+
spec.email = ["andrei.diaconu@cpoms.co.uk"]
|
11
|
+
|
12
|
+
spec.summary = %q{Responsive sortable table}
|
13
|
+
spec.description = %q{}
|
14
|
+
spec.homepage = "https://cpoms.co.uk"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_runtime_dependency "railties", ">= 3.2", "< 6.1"
|
27
|
+
spec.add_runtime_dependency "activesupport", ">= 3.2", "< 6.1"
|
28
|
+
|
29
|
+
spec.add_development_dependency "bundler"
|
30
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
32
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "awesome_sort"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/awesome_sort.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require "awesome_sort/version"
|
2
|
+
require "awesome_sort/engine" if defined?(::Rails)
|
3
|
+
require "active_support/core_ext/module"
|
4
|
+
|
5
|
+
module AwesomeSort
|
6
|
+
mattr_accessor :sorters, :defaults
|
7
|
+
|
8
|
+
def self.configure
|
9
|
+
yield self
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.add_sorter(model, attribute, sorter)
|
13
|
+
self.sorters[model] ||= {}
|
14
|
+
self.sorters[model][attribute] = sorter
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.set_default(model, attribute_or_sorter)
|
18
|
+
self.defaults[model] = attribute_or_sorter
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
AwesomeSort.defaults = {}
|
23
|
+
AwesomeSort.sorters = {}
|
metadata
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: awesome_sort
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrei Diaconu
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-06-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '6.1'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '6.1'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: activesupport
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '3.2'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '6.1'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '3.2'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '6.1'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: bundler
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
type: :development
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: rake
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '10.0'
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - "~>"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '10.0'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: minitest
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '5.0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '5.0'
|
95
|
+
description: ''
|
96
|
+
email:
|
97
|
+
- andrei.diaconu@cpoms.co.uk
|
98
|
+
executables: []
|
99
|
+
extensions: []
|
100
|
+
extra_rdoc_files: []
|
101
|
+
files:
|
102
|
+
- ".gitignore"
|
103
|
+
- ".travis.yml"
|
104
|
+
- CODE_OF_CONDUCT.md
|
105
|
+
- Gemfile
|
106
|
+
- Gemfile.lock
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.md
|
109
|
+
- Rakefile
|
110
|
+
- app/assets/javascripts/awesome_sort.js
|
111
|
+
- app/assets/stylesheets/awesome_sort.scss
|
112
|
+
- app/helpers/awesome_sort/awesome_sort_helper.rb
|
113
|
+
- awesome_sort.gem
|
114
|
+
- awesome_sort.gemspec
|
115
|
+
- bin/console
|
116
|
+
- bin/setup
|
117
|
+
- lib/awesome_sort.rb
|
118
|
+
- lib/awesome_sort/engine.rb
|
119
|
+
- lib/awesome_sort/version.rb
|
120
|
+
homepage: https://cpoms.co.uk
|
121
|
+
licenses:
|
122
|
+
- MIT
|
123
|
+
metadata: {}
|
124
|
+
post_install_message:
|
125
|
+
rdoc_options: []
|
126
|
+
require_paths:
|
127
|
+
- lib
|
128
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
requirements: []
|
139
|
+
rubygems_version: 3.0.1
|
140
|
+
signing_key:
|
141
|
+
specification_version: 4
|
142
|
+
summary: Responsive sortable table
|
143
|
+
test_files: []
|