bolter 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +6 -0
- data/README.md +2 -1
- data/Rakefile +3 -1
- data/lib/bolter/helpers.rb +1 -1
- data/lib/bolter/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f7f83a26a792b70a4af0c6bc8d790da997dce6a
|
4
|
+
data.tar.gz: 83e3deeef8849769a5b52116fd759614d22cc131
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e558d1e82047e628e408be6dcc4e85eda0ad2d52bb8c4654ad654d7717bb2239bdc1ae009c2c0b6d5f10c5ad8d41d6b62e2a13dc9afb09d7011c862fd2e2bcc
|
7
|
+
data.tar.gz: dc1f56e81f4e211ff0b93ebeb6ab9fd9c2f254538726be4e3a39b5a64c2d9c51bd9bf278e66e3f032cb5b65b3ffb817b7109dc9b3885e0bb85ff4e12408cca54
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Bolter
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/bolter.svg)](http://badge.fury.io/rb/bolter)
|
4
|
+
[![Build Status](https://travis-ci.org/jpascal/bolter.svg?branch=master)](https://travis-ci.org/jpascal/bolter)
|
4
5
|
|
5
6
|
This gem allow you create search form and sorting in you views
|
6
7
|
|
@@ -28,7 +29,7 @@ class Book < ActiveRecord::Base
|
|
28
29
|
include Bolter::Searchable
|
29
30
|
include Bolter::Sortable
|
30
31
|
scope :with_author, -> (author) {
|
31
|
-
self.where("author like ?",author)
|
32
|
+
self.where("UPPER(author) like ?",('%'+author+'%').mb_chars.upcase)
|
32
33
|
}
|
33
34
|
end
|
34
35
|
```
|
data/Rakefile
CHANGED
data/lib/bolter/helpers.rb
CHANGED
@@ -7,7 +7,7 @@ module Bolter
|
|
7
7
|
direction = direction == 'asc' ? 'desc' : 'asc'
|
8
8
|
title = text || scope
|
9
9
|
title = title + "#{direction == 'asc' ? '▲' : '▼'}" if scope_name.to_s == current_field and params[as].present?
|
10
|
-
link_to title.html_safe, url_for(params.merge(Hash[as, "#{scope_name}:#{direction}"]))
|
10
|
+
link_to title.html_safe, url_for(params.merge(Hash[as, "#{scope_name}:#{direction}"])), options
|
11
11
|
end
|
12
12
|
end
|
13
13
|
module FormHelper
|
data/lib/bolter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeniy Shurmin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,6 +116,7 @@ extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
118
|
- ".gitignore"
|
119
|
+
- ".travis.yml"
|
119
120
|
- CODE_OF_CONDUCT.md
|
120
121
|
- Gemfile
|
121
122
|
- LICENSE.txt
|
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
149
|
version: '0'
|
149
150
|
requirements: []
|
150
151
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
152
|
+
rubygems_version: 2.5.1
|
152
153
|
signing_key:
|
153
154
|
specification_version: 4
|
154
155
|
summary: This gem include sorting and filtering methods
|