soundcord_rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  #SoundCord Rails
2
+
3
+ [![Build Status](https://secure.travis-ci.org/lukasalexandre/soundcord_rails.png)](http://travis-ci.org/lukasalexandre/soundcord)
4
+
2
5
  SoundCord Rails is intended as an easy phonetic engine for Active Record. The intent behind it was to keep setup, and dealing with it, as easy as possible and to treat phonetic database searchs as much like other attributes as possible. This means that the possible results for a query are maximized by the phonetic algorithm, even when the input has writing errors.
3
6
 
4
7
  The basics of soundcord_rails are quite simple: Declare that your model has a phonetic field with the `phonetized` method and give it a name.
@@ -14,7 +17,7 @@ Include the gem in you gemfile.
14
17
  gem "soundcord_rails"
15
18
  ```
16
19
 
17
- Or, if you want to get the latest, you can get master from the main soundcord_rails repository:
20
+ Or, if you want to get the latest, you can get master from the main SoundCord Rails repository:
18
21
 
19
22
  ```
20
23
  gem "soundcord_rails", :git => "git@github.com:lukasalexandre/soundcord_rails.git"
@@ -23,14 +26,6 @@ gem "soundcord_rails", :git => "git@github.com:lukasalexandre/soundcord_rails.gi
23
26
  If you`are trying to use features that don't seem to be in the latest released gem, but are mentioned in the README, then you probably need to specify the master branch if you want to use them. This README is probably ahead of the latest released version, if you're reading it on GitHub.
24
27
 
25
28
  ##Quick start
26
- In your model:
27
-
28
- ```ruby
29
- Class User < ActiveRecord::Base
30
- phonetized :name
31
- end
32
- ```
33
-
34
29
  In your migrations:
35
30
 
36
31
  ```ruby
@@ -47,7 +42,15 @@ class addPhonetizedColumnsToUsers < ActiveRecord::Migration
47
42
  end
48
43
  ```
49
44
 
50
- Or you can use migration generator: `rails generate soundcord_rails user name`
45
+ Or you can use migration generator: `rails generate soundcord_rails [model] [fields]`
46
+
47
+ In your model:
48
+
49
+ ```ruby
50
+ Class User < ActiveRecord::Base
51
+ phonetized :name
52
+ end
53
+ ```
51
54
 
52
55
  ##Information
53
56
 
@@ -1,3 +1,3 @@
1
1
  module SoundcordRails
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency 'soundcord', '~> 0.1.1'
21
+ s.add_dependency 'soundcord', '~> 0.2.0'
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soundcord_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-21 00:00:00.000000000 Z
12
+ date: 2012-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: soundcord
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.1.1
21
+ version: 0.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.1.1
29
+ version: 0.2.0
30
30
  description: Easy phonetic comparisons for ActiveRecord
31
31
  email:
32
32
  - lukeskytm@gmail.com