sorty_sorter 0.0.7 → 0.0.8

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: aade2910e523945eca5d57adf919cf95dd9a9bfd
4
- data.tar.gz: 75a902aa3ccc4b99278d224ec968cf8442b2bd89
3
+ metadata.gz: 9b1b42459784bcc7a3294f7341904f513cada412
4
+ data.tar.gz: cc92de465496b817bed266aa236fd1b825b9283f
5
5
  SHA512:
6
- metadata.gz: 2251200c2272bfe44cba9e643f8dafe6065640868196c8390bff331f16d77e33b007bafc072d9b438d1fc4ee1fc6e1ba445670ece2f29dc7cb7d7691b20966fe
7
- data.tar.gz: 87da5e17107b9b5c7f3d0008170c4715e510532cd0bbd598fd9ed4792f184c69bfce83d86750a7e8fe6633d1cf283ec24d712b94d840a0586c5b344e33140a45
6
+ metadata.gz: 7439a3e1c9239b0627d898eeea02e241694abd8d11060655fec8d7ab02d013b6a6f8524ead741fbfc3aa3795601a1b040c274d2babd9a345a55515d5ca8daf26
7
+ data.tar.gz: 65ab4c73d5e445a26d200e06aa365409a0e6462322f1e68eac8258c7db0c13edf957b677834fc676825ae4509e6cff00b324581ba6de3443131e3a58293c947b
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
- # Sorty
1
+ # Sorty Sorter
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/sorty_sorter.svg)](https://badge.fury.io/rb/sorty_sorter)
4
+ [![Code Climate](https://codeclimate.com/github/katpadi/sorty_sorter/badges/gpa.svg)](https://codeclimate.com/github/katpadi/sorty_sorter)
5
+ [![Test Coverage](https://codeclimate.com/github/katpadi/sorty_sorter/badges/coverage.svg)](https://codeclimate.com/github/katpadi/sorty_sorter/coverage)
2
6
 
3
7
  This simple gem sorts collection in a Rails controller/API controller given a set of parameters based on the declared columns in the model. An ActiveRecord::Relation method `sorty_sort` is added for convenience.
4
8
 
@@ -9,7 +13,7 @@ When defining valid columns that are "sortable", you can choose to mask the attr
9
13
 
10
14
  Add this line to your application's Gemfile:
11
15
 
12
- gem 'sorty', :git => 'git://github.com/katpadi/sorty.git'
16
+ gem 'sorty_sorter'
13
17
 
14
18
  And then execute:
15
19
 
@@ -17,7 +21,7 @@ And then execute:
17
21
 
18
22
  Or install it yourself as:
19
23
 
20
- $ gem install sorty-sorter
24
+ $ gem install sorty_sorter
21
25
 
22
26
  ## Usage
23
27
 
@@ -55,7 +59,7 @@ Drone.available.sorty_sort(params[:sort], params[:dir])
55
59
 
56
60
  ## Contributing
57
61
 
58
- 1. Fork it ( https://github.com/katpadi/sorty/fork )
62
+ 1. Fork it ( https://github.com/katpadi/sorty_sorter/fork )
59
63
  2. Create your feature branch (`git checkout -b my-new-feature`)
60
64
  3. Commit your changes (`git commit -am 'Add some feature'`)
61
65
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,3 +1,3 @@
1
1
  module SortySorter
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/sorty_sorter.gemspec CHANGED
@@ -8,10 +8,11 @@ Gem::Specification.new do |spec|
8
8
  spec.version = SortySorter::VERSION
9
9
  spec.authors = ["Kat Padilla"]
10
10
  spec.email = ["hello@katpadi.ph"]
11
- spec.summary = "This gem sorts ActiveRecord::Relation based on dynamic column (i.e. name, updated_at, etc.) and direction (asc, desc) parameters against columns defined in model."
12
- spec.description = "This gem adds an ActiveRecord::Relation method that sorts based on dynamic column (i.e. name, updated_at, etc.) and direction (asc, desc) parameters and validated against definition in model."
13
- spec.homepage = "https://github.com/katpadi/sorty-sorter"
11
+ spec.summary = %q{ Sorts ActiveRecord::Relation based on dynamic parameters against the attributes defined in model. }
12
+ spec.description = %q{ This gem adds an ActiveRecord::Relation method that sorts based on dynamic column (i.e. name, updated_at, etc.) and direction (asc, desc) parameters and validated against definition in model. }
13
+ spec.homepage = "https://github.com/katpadi/sorty_sorter"
14
14
  spec.license = "MIT"
15
+ spec.required_ruby_version = '>= 1.9.3'
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0")
17
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorty_sorter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kat Padilla
@@ -80,9 +80,9 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '4.1'
83
- description: This gem adds an ActiveRecord::Relation method that sorts based on dynamic
84
- column (i.e. name, updated_at, etc.) and direction (asc, desc) parameters and validated
85
- against definition in model.
83
+ description: " This gem adds an ActiveRecord::Relation method that sorts based on
84
+ dynamic column (i.e. name, updated_at, etc.) and direction (asc, desc) parameters
85
+ and validated against definition in model. "
86
86
  email:
87
87
  - hello@katpadi.ph
88
88
  executables: []
@@ -107,7 +107,7 @@ files:
107
107
  - spec/sort_spec.rb
108
108
  - spec/spec_helper.rb
109
109
  - spec/support/active_record.rb
110
- homepage: https://github.com/katpadi/sorty-sorter
110
+ homepage: https://github.com/katpadi/sorty_sorter
111
111
  licenses:
112
112
  - MIT
113
113
  metadata: {}
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: '0'
122
+ version: 1.9.3
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="
@@ -130,9 +130,8 @@ rubyforge_project:
130
130
  rubygems_version: 2.2.2
131
131
  signing_key:
132
132
  specification_version: 4
133
- summary: This gem sorts ActiveRecord::Relation based on dynamic column (i.e. name,
134
- updated_at, etc.) and direction (asc, desc) parameters against columns defined in
135
- model.
133
+ summary: Sorts ActiveRecord::Relation based on dynamic parameters against the attributes
134
+ defined in model.
136
135
  test_files:
137
136
  - spec/params_spec.rb
138
137
  - spec/sort_spec.rb