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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1aee6b2793c3662803bf4dac0de89cadccaba719
4
- data.tar.gz: ea0cc67491451dad652aaffe9dea451e1c2a7032
3
+ metadata.gz: 6f7f83a26a792b70a4af0c6bc8d790da997dce6a
4
+ data.tar.gz: 83e3deeef8849769a5b52116fd759614d22cc131
5
5
  SHA512:
6
- metadata.gz: 224809dd5b1fd24dcf113638797cf2f092dcedffa1e5ade5ce0f4c961c90022ad4f2a6c136dcaf4af47966a0a15cd1c33eb83ade94f75c02bea0dde4ac6becf8
7
- data.tar.gz: 53b344f902f7ca7f186f9b0503419e66dbb9c1746f42942d897a53e5deafe5682e4410ffab4b534231bbb7fe4427d88066b012a5a27dac1c106869ec48587223
6
+ metadata.gz: 7e558d1e82047e628e408be6dcc4e85eda0ad2d52bb8c4654ad654d7717bb2239bdc1ae009c2c0b6d5f10c5ad8d41d6b62e2a13dc9afb09d7011c862fd2e2bcc
7
+ data.tar.gz: dc1f56e81f4e211ff0b93ebeb6ab9fd9c2f254538726be4e3a39b5a64c2d9c51bd9bf278e66e3f032cb5b65b3ffb817b7109dc9b3885e0bb85ff4e12408cca54
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ .idea
11
+ bolter.iml
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ sudo: false
3
+ rvm:
4
+ - 2.2.2
5
+ services:
6
+ - mongodb
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
@@ -1,2 +1,4 @@
1
1
  require "bundler/gem_tasks"
2
-
2
+ require 'rspec/core/rake_task'
3
+ RSpec::Core::RakeTask.new(:spec)
4
+ task :default => :spec
@@ -7,7 +7,7 @@ module Bolter
7
7
  direction = direction == 'asc' ? 'desc' : 'asc'
8
8
  title = text || scope
9
9
  title = title + "#{direction == 'asc' ? '&#9650;' : '&#9660;'}" 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
@@ -1,3 +1,3 @@
1
1
  module Bolter
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
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.2
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-04-01 00:00:00.000000000 Z
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.4.5
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