activerecord-postgres-hstore 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -58,9 +58,13 @@ Finally you can create your own tables using hstore type. It’s easy:
58
58
  You’re done.
59
59
  Well, not yet. Don’t forget to add indexes. Like this:
60
60
 
61
- ```sql CREATE INDEX people_gist_data ON people USING GIST(data);```
61
+ ```sql
62
+ CREATE INDEX people_gist_data ON people USING GIST(data);
63
+ ```
62
64
  or
63
- ```sql CREATE INDEX people_gin_data ON people USING GIN(data);```
65
+ ```sql
66
+ CREATE INDEX people_gin_data ON people USING GIN(data);
67
+ ```
64
68
 
65
69
  This gem provides some functions to generate this kind of index inside your migrations.
66
70
  For the model Person we could create an index (defaults to type GIST) over the data field with this migration:
@@ -68,7 +72,7 @@ For the model Person we could create an index (defaults to type GIST) over the d
68
72
  ```ruby
69
73
  class AddIndexToPeople < ActiveRecord::Migration
70
74
  def change
71
- add_hstore_index :people, :data
75
+ add_hstore_index :people, :data
72
76
  end
73
77
  end
74
78
  ```
@@ -4,13 +4,13 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "activerecord-postgres-hstore"
7
- s.version = "0.7.0"
7
+ s.version = "0.7.1"
8
8
 
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.license = "MIT"
11
11
  s.authors = ["Juan Maiz", "Diogo Biazus"]
12
12
  s.email = "juanmaiz@gmail.com"
13
- s.homepage = "http://github.com/softa/activerecord-postgres-hstore"
13
+ s.homepage = "http://github.com/engageis/activerecord-postgres-hstore"
14
14
  s.summary = "Goodbye serialize, hello hstore"
15
15
  s.description = "This gem adds support for the postgres hstore type. It is the _just right_ alternative for storing hashes instead of using seralization or dynamic tables."
16
16
  s.required_ruby_version = ">= 1.8.7"
@@ -48,6 +48,11 @@ describe ActiveRecord::Coders::Hstore do
48
48
  it{ should eql('"a"=>"a"') }
49
49
  end
50
50
 
51
+ context 'when key and value have dollar sign char' do
52
+ let(:value){ {"foo$bar" => "$ 5.00"} }
53
+ it{ should eql("\"foo$bar\"=>\"$ 5.00\"") }
54
+ end
55
+
51
56
  context 'when key and value have newline char' do
52
57
  let(:value){ {"foo\nbar" => "\nnewline"} }
53
58
  it{ should eql("\"foo\nbar\"=>\"\nnewline\"") }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-postgres-hstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-04 00:00:00.000000000 Z
13
+ date: 2013-02-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -117,7 +117,7 @@ files:
117
117
  - lib/templates/setup_hstore91.rb
118
118
  - spec/activerecord-coders-hstore_spec.rb
119
119
  - spec/spec_helper.rb
120
- homepage: http://github.com/softa/activerecord-postgres-hstore
120
+ homepage: http://github.com/engageis/activerecord-postgres-hstore
121
121
  licenses:
122
122
  - MIT
123
123
  post_install_message: