mongoid-fulltextable 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ # encoding: utf-8
2
+
3
+ require 'unicode_utils'
4
+
5
+ class String
6
+
7
+ def without_accents
8
+ UnicodeUtils.nfkd(self).gsub(/[^\x00-\x7F]/, '').to_s
9
+ end
10
+
11
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mongoid
4
4
  module Fulltextable
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'active_support/concern'
4
+ require 'core_ext/string'
4
5
 
5
6
  module Mongoid
6
7
 
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.rubyforge_project = "mongoid-fulltextable"
16
16
 
17
17
  s.add_dependency 'activesupport', '~> 3.0.1'
18
+ s.add_dependency 'unicode_utils', '~> 1.0.0'
18
19
 
19
20
  s.files = `git ls-files`.split("\n")
20
21
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Ji\xC5\x99\xC3\xAD Zajpt"
@@ -32,6 +32,21 @@ dependencies:
32
32
  version: 3.0.1
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: unicode_utils
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 1
45
+ - 0
46
+ - 0
47
+ version: 1.0.0
48
+ type: :runtime
49
+ version_requirements: *id002
35
50
  description: Simple & stupid 'fulltext' searching for Mongoid.
36
51
  email:
37
52
  - jzajpt@blueberry.cz
@@ -45,6 +60,7 @@ files:
45
60
  - .gitignore
46
61
  - Gemfile
47
62
  - Rakefile
63
+ - lib/core_ext/string.rb
48
64
  - lib/mongoid/fulltextable-version.rb
49
65
  - lib/mongoid/fulltextable.rb
50
66
  - mongoid-fulltextable.gemspec