activerecord-postgresql-citext 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Activerecord::Postgres::Citext
1
+ # ActiveRecord support for citext
2
2
 
3
- TODO: Write a gem description
3
+ Adds support for citext to active_record
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,18 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ In a database migration you need to first enable `citext` as an extension, then you can create columns of type citext.
22
+
23
+ ```ruby
24
+ def up
25
+ enable_extension("citext")
26
+
27
+ create_table :models, :force => true do |t|
28
+ t.citext :name
29
+ t.timestamps
30
+ end
31
+ end
32
+ ```
22
33
 
23
34
  ## Contributing
24
35
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "activerecord-postgresql-citext"
7
- spec.version = "0.0.1"
7
+ spec.version = "0.1.0"
8
8
  spec.authors = ["Braintree"]
9
9
  spec.email = ["code@getbraintree.com"]
10
10
  spec.description = "citext support for rails"
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^spec/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "activerecord", "~> 4.0.0"
20
+ spec.add_dependency "activerecord", ">= 4.0.0", "< 5.0.0"
21
21
  spec.add_dependency "pg"
22
22
 
23
23
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-postgresql-citext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-30 00:00:00.000000000 Z
12
+ date: 2013-12-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 4.0.0
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: 5.0.0
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  none: false
26
29
  requirements:
27
- - - ~>
30
+ - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: 4.0.0
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: 5.0.0
30
36
  - !ruby/object:Gem::Dependency
31
37
  name: pg
32
38
  requirement: !ruby/object:Gem::Requirement