pg_comment 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +5 -1
- data/.rspec +2 -0
- data/README.markdown +16 -13
- data/Rakefile +37 -5
- data/lib/pg_comment/connection_adapters/abstract/schema_statements.rb +10 -0
- data/lib/pg_comment/connection_adapters/postgresql_adapter.rb +24 -0
- data/lib/pg_comment/migration/command_recorder.rb +15 -2
- data/lib/pg_comment/schema_dumper.rb +6 -0
- data/lib/pg_comment/version.rb +1 -1
- data/pg_comment.gemspec +3 -1
- data/spec/comments_spec.rb +42 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +60 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +12 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/20130502030557_create_vegetables.rb +23 -0
- data/spec/dummy/db/schema.rb +31 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/lib/pg_comment/connection_adapters/abstract/schema_definitions_spec.rb +46 -0
- data/spec/lib/pg_comment/connection_adapters/abstract/schema_statements_spec.rb +25 -0
- data/spec/lib/pg_comment/connection_adapters/postgresql_adapter_spec.rb +63 -0
- data/spec/lib/pg_comment/migration/command_recorder_spec.rb +40 -0
- data/spec/lib/pg_comment/schema_dumper_spec.rb +23 -0
- data/spec/spec_helper.rb +16 -0
- metadata +75 -16
- data/test/fake_connection.rb +0 -9
- data/test/postgre_sql_adapter_test.rb +0 -91
- data/test/schema_dumper_test.rb +0 -42
- data/test/test_helper.rb +0 -16
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation:
|
3
|
+
# first created -> highest priority.
|
4
|
+
|
5
|
+
# Sample of regular route:
|
6
|
+
# match 'products/:id' => 'catalog#view'
|
7
|
+
# Keep in mind you can assign values other than :controller and :action
|
8
|
+
|
9
|
+
# Sample of named route:
|
10
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
+
|
13
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
+
# resources :products
|
15
|
+
|
16
|
+
# Sample resource route with options:
|
17
|
+
# resources :products do
|
18
|
+
# member do
|
19
|
+
# get 'short'
|
20
|
+
# post 'toggle'
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# collection do
|
24
|
+
# get 'sold'
|
25
|
+
# end
|
26
|
+
# end
|
27
|
+
|
28
|
+
# Sample resource route with sub-resources:
|
29
|
+
# resources :products do
|
30
|
+
# resources :comments, :sales
|
31
|
+
# resource :seller
|
32
|
+
# end
|
33
|
+
|
34
|
+
# Sample resource route with more complex sub-resources
|
35
|
+
# resources :products do
|
36
|
+
# resources :comments
|
37
|
+
# resources :sales do
|
38
|
+
# get 'recent', :on => :collection
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
|
42
|
+
# Sample resource route within a namespace:
|
43
|
+
# namespace :admin do
|
44
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
+
# # (app/controllers/admin/products_controller.rb)
|
46
|
+
# resources :products
|
47
|
+
# end
|
48
|
+
|
49
|
+
# You can have the root of your site routed with "root"
|
50
|
+
# just remember to delete public/index.html.
|
51
|
+
# root :to => 'welcome#index'
|
52
|
+
|
53
|
+
# See how all your routes lay out with "rake routes"
|
54
|
+
|
55
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
+
# match ':controller(/:action(/:id))(.:format)'
|
58
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class CreateVegetables < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :vegetables do |t|
|
4
|
+
t.string :name
|
5
|
+
t.decimal :price
|
6
|
+
t.string :comment
|
7
|
+
end
|
8
|
+
|
9
|
+
set_table_comment :vegetables, 'Healthy'
|
10
|
+
|
11
|
+
set_column_comment :vegetables, :name, 'The name of the vegetable'
|
12
|
+
|
13
|
+
set_column_comments :vegetables, :price => 'vegetable cost', :comment => 'thoughts'
|
14
|
+
|
15
|
+
change_table :vegetables do |t|
|
16
|
+
t.set_table_comment 'Healthy and delicious'
|
17
|
+
end
|
18
|
+
|
19
|
+
add_index :vegetables, :name, :unique => true
|
20
|
+
|
21
|
+
set_index_comment :index_vegetables_on_name, "Comment on index"
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20130502030557) do
|
15
|
+
|
16
|
+
create_table "vegetables", :force => true do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.decimal "price"
|
19
|
+
t.string "comment"
|
20
|
+
end
|
21
|
+
|
22
|
+
add_index "vegetables", ["name"], :name => "index_vegetables_on_name", :unique => true
|
23
|
+
|
24
|
+
set_index_comment 'index_vegetables_on_name', 'Comment on index'
|
25
|
+
set_table_comment 'vegetables', 'Healthy and delicious'
|
26
|
+
set_column_comment 'vegetables', 'name', 'The name of the vegetable'
|
27
|
+
set_column_comment 'vegetables', 'price', 'vegetable cost'
|
28
|
+
set_column_comment 'vegetables', 'comment', 'thoughts'
|
29
|
+
|
30
|
+
set_index_comment 'index_vegetables_on_name', 'Comment on index'
|
31
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PgComment::ConnectionAdapters::SchemaDefinitions do
|
4
|
+
class TableStub
|
5
|
+
include ::PgComment::ConnectionAdapters::Table
|
6
|
+
|
7
|
+
attr_reader :table_name, :base
|
8
|
+
|
9
|
+
def initialize
|
10
|
+
@table_name = :foo
|
11
|
+
@base = OpenStruct.new
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
let (:table_stub){ TableStub.new }
|
16
|
+
|
17
|
+
it '.set_table_comment' do
|
18
|
+
table_stub.base.should_receive(:set_table_comment).with(:foo, :bar)
|
19
|
+
table_stub.set_table_comment :bar
|
20
|
+
end
|
21
|
+
|
22
|
+
it '.remove_table_comment' do
|
23
|
+
table_stub.base.should_receive(:remove_table_comment).with(:foo)
|
24
|
+
table_stub.remove_table_comment
|
25
|
+
end
|
26
|
+
|
27
|
+
it '.set_column_comment' do
|
28
|
+
table_stub.base.should_receive(:set_column_comment).with(:foo, :bar, :baz)
|
29
|
+
table_stub.set_column_comment(:bar, :baz)
|
30
|
+
end
|
31
|
+
|
32
|
+
it '.set_column_comments' do
|
33
|
+
table_stub.base.should_receive(:set_column_comments).with(:foo, :bar)
|
34
|
+
table_stub.set_column_comments(:bar)
|
35
|
+
end
|
36
|
+
|
37
|
+
it '.remove_column_comment' do
|
38
|
+
table_stub.base.should_receive(:remove_column_comment).with(:foo, :bar)
|
39
|
+
table_stub.remove_column_comment(:bar)
|
40
|
+
end
|
41
|
+
|
42
|
+
it '.remove_column_comments' do
|
43
|
+
table_stub.base.should_receive(:remove_column_comments).with(:foo, :bar, :baz)
|
44
|
+
table_stub.remove_column_comments(:bar, :baz)
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PgComment::ConnectionAdapters::AbstractAdapter do
|
4
|
+
|
5
|
+
class AbstractAdapterStub
|
6
|
+
include ::PgComment::ConnectionAdapters::AbstractAdapter
|
7
|
+
end
|
8
|
+
|
9
|
+
let(:adapter_stub){ AbstractAdapterStub.new }
|
10
|
+
|
11
|
+
it 'should not support comments by default' do
|
12
|
+
adapter_stub.supports_comments?.should be_false
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should define method stubs for comment methods' do
|
16
|
+
[ :set_table_comment,
|
17
|
+
:set_column_comment,
|
18
|
+
:set_column_comments,
|
19
|
+
:remove_table_comment,
|
20
|
+
:remove_column_comment,
|
21
|
+
:remove_column_comments,
|
22
|
+
:set_index_comment,
|
23
|
+
:remove_index_comment ].each { |method_name| adapter_stub.respond_to?(method_name).should be_true }
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PgComment::ConnectionAdapters::PostgreSQLAdapter do
|
4
|
+
|
5
|
+
class ConnectionStub
|
6
|
+
include ::PgComment::ConnectionAdapters::PostgreSQLAdapter
|
7
|
+
|
8
|
+
def quote_table_name(name)
|
9
|
+
"\"#{name}\""
|
10
|
+
end
|
11
|
+
|
12
|
+
alias_method :quote_column_name, :quote_table_name
|
13
|
+
alias_method :quote_string, :quote_table_name
|
14
|
+
end
|
15
|
+
|
16
|
+
let(:connection){ ConnectionStub.new }
|
17
|
+
|
18
|
+
it 'should support comments' do
|
19
|
+
connection.supports_comments?.should be_true
|
20
|
+
end
|
21
|
+
|
22
|
+
context 'comment methods' do
|
23
|
+
it '.set_table_comment' do
|
24
|
+
connection.should_receive(:execute).with("COMMENT ON TABLE \"foo\" IS $$bar$$;")
|
25
|
+
connection.set_table_comment :foo, :bar
|
26
|
+
end
|
27
|
+
|
28
|
+
it '.set_column_comment' do
|
29
|
+
connection.should_receive(:execute).with("COMMENT ON COLUMN \"foo\".\"bar\" IS $$baz$$;")
|
30
|
+
connection.set_column_comment :foo, :bar, :baz
|
31
|
+
end
|
32
|
+
|
33
|
+
it '.set_column_comments' do
|
34
|
+
connection.should_receive(:execute).with("COMMENT ON COLUMN \"foo\".\"bar\" IS $$baz$$;")
|
35
|
+
connection.set_column_comments :foo, :bar => :baz
|
36
|
+
end
|
37
|
+
|
38
|
+
it '.remove_table_comment' do
|
39
|
+
connection.should_receive(:execute).with("COMMENT ON TABLE \"foo\" IS NULL;")
|
40
|
+
connection.remove_table_comment :foo
|
41
|
+
end
|
42
|
+
|
43
|
+
it '.remove_column_comment' do
|
44
|
+
connection.should_receive(:execute).with("COMMENT ON COLUMN \"foo\".\"bar\" IS NULL;")
|
45
|
+
connection.remove_column_comment :foo, :bar
|
46
|
+
end
|
47
|
+
|
48
|
+
it '.remove_column_comments' do
|
49
|
+
connection.should_receive(:execute).with("COMMENT ON COLUMN \"foo\".\"bar\" IS NULL;")
|
50
|
+
connection.remove_column_comments :foo, :bar
|
51
|
+
end
|
52
|
+
|
53
|
+
it '.set_index_comment' do
|
54
|
+
connection.should_receive(:execute).with("COMMENT ON INDEX \"foo\" IS $$bar$$;")
|
55
|
+
connection.set_index_comment :foo, :bar
|
56
|
+
end
|
57
|
+
|
58
|
+
it '.remove_index_comment' do
|
59
|
+
connection.should_receive(:execute).with("COMMENT ON INDEX \"foo\" IS NULL;")
|
60
|
+
connection.remove_index_comment :foo
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PgComment::Migration::CommandRecorder do
|
4
|
+
class CommandRecorderStub
|
5
|
+
include ::PgComment::Migration::CommandRecorder
|
6
|
+
end
|
7
|
+
|
8
|
+
let(:command_recorder_stub){ CommandRecorderStub.new }
|
9
|
+
|
10
|
+
[ :set_table_comment,
|
11
|
+
:remove_table_comment,
|
12
|
+
:set_column_comment,
|
13
|
+
:set_column_comments,
|
14
|
+
:remove_column_comment,
|
15
|
+
:remove_column_comments,
|
16
|
+
:set_index_comment,
|
17
|
+
:remove_index_comment ].each{ |method_name|
|
18
|
+
|
19
|
+
it ".#{method_name}" do
|
20
|
+
command_recorder_stub.should_receive(:record).with(method_name, [])
|
21
|
+
command_recorder_stub.send(method_name)
|
22
|
+
end
|
23
|
+
}
|
24
|
+
|
25
|
+
it '.invert_set_table_comment' do
|
26
|
+
command_recorder_stub.invert_set_table_comment([:foo, :bar]).should == [:remove_table_comment, [:foo]]
|
27
|
+
end
|
28
|
+
|
29
|
+
it '.invert_set_column_comment' do
|
30
|
+
command_recorder_stub.invert_set_column_comment([:foo, :bar, :baz]).should == [:remove_column_comment, [:foo, :bar]]
|
31
|
+
end
|
32
|
+
|
33
|
+
it '.invert_set_column_comments' do
|
34
|
+
command_recorder_stub.invert_set_column_comments([:foo, {:bar => :baz}]).should == [:remove_column_comments, [:foo, :bar]]
|
35
|
+
end
|
36
|
+
|
37
|
+
it '.invert_set_index_comment' do
|
38
|
+
command_recorder_stub.invert_set_index_comment([:foo, :bar]).should == [:remove_index_comment, [:foo]]
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe ActiveRecord::SchemaDumper do
|
4
|
+
before(:all) do
|
5
|
+
stream = StringIO.new
|
6
|
+
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
|
7
|
+
@dump = stream.string
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'dumps table comments' do
|
11
|
+
@dump.should =~ /set_table_comment 'vegetables', 'Healthy and delicious'/
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'dumps column comments' do
|
15
|
+
@dump.should =~ /set_column_comment 'vegetables', 'name', 'The name of the vegetable'/
|
16
|
+
@dump.should =~ /set_column_comment 'vegetables', 'price', 'vegetable cost'/
|
17
|
+
@dump.should =~ /set_column_comment 'vegetables', 'comment', 'thoughts'/
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'dumps index comments' do
|
21
|
+
@dump.should =~ /set_index_comment 'index_vegetables_on_name', 'Comment on index'/
|
22
|
+
end
|
23
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
ENV['RAILS_ENV'] = 'test'
|
2
|
+
|
3
|
+
unless ENV['TRAVIS']
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start do
|
6
|
+
add_filter 'spec/'
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
11
|
+
require 'rspec/rails'
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.mock_with :rspec
|
15
|
+
config.use_transactional_fixtures = true
|
16
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_comment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Arthur Shagall
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-02
|
11
|
+
date: 2013-05-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activerecord
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,15 +20,41 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '3.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.2'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pg
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-rails
|
32
57
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
58
|
requirements:
|
35
59
|
- - ! '>='
|
36
60
|
- !ruby/object:Gem::Version
|
@@ -38,7 +62,6 @@ dependencies:
|
|
38
62
|
type: :development
|
39
63
|
prerelease: false
|
40
64
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
65
|
requirements:
|
43
66
|
- - ! '>='
|
44
67
|
- !ruby/object:Gem::Version
|
@@ -52,6 +75,7 @@ extensions: []
|
|
52
75
|
extra_rdoc_files: []
|
53
76
|
files:
|
54
77
|
- .gitignore
|
78
|
+
- .rspec
|
55
79
|
- Gemfile
|
56
80
|
- LICENSE
|
57
81
|
- README.markdown
|
@@ -65,32 +89,67 @@ files:
|
|
65
89
|
- lib/pg_comment/schema_dumper.rb
|
66
90
|
- lib/pg_comment/version.rb
|
67
91
|
- pg_comment.gemspec
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
92
|
+
- spec/comments_spec.rb
|
93
|
+
- spec/dummy/Rakefile
|
94
|
+
- spec/dummy/app/assets/javascripts/application.js
|
95
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
96
|
+
- spec/dummy/app/controllers/application_controller.rb
|
97
|
+
- spec/dummy/app/helpers/application_helper.rb
|
98
|
+
- spec/dummy/app/mailers/.gitkeep
|
99
|
+
- spec/dummy/app/models/.gitkeep
|
100
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
101
|
+
- spec/dummy/config.ru
|
102
|
+
- spec/dummy/config/application.rb
|
103
|
+
- spec/dummy/config/boot.rb
|
104
|
+
- spec/dummy/config/database.yml
|
105
|
+
- spec/dummy/config/environment.rb
|
106
|
+
- spec/dummy/config/environments/development.rb
|
107
|
+
- spec/dummy/config/environments/production.rb
|
108
|
+
- spec/dummy/config/environments/test.rb
|
109
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
110
|
+
- spec/dummy/config/initializers/inflections.rb
|
111
|
+
- spec/dummy/config/initializers/mime_types.rb
|
112
|
+
- spec/dummy/config/initializers/secret_token.rb
|
113
|
+
- spec/dummy/config/initializers/session_store.rb
|
114
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
115
|
+
- spec/dummy/config/locales/en.yml
|
116
|
+
- spec/dummy/config/routes.rb
|
117
|
+
- spec/dummy/db/migrate/20130502030557_create_vegetables.rb
|
118
|
+
- spec/dummy/db/schema.rb
|
119
|
+
- spec/dummy/lib/assets/.gitkeep
|
120
|
+
- spec/dummy/log/.gitkeep
|
121
|
+
- spec/dummy/public/404.html
|
122
|
+
- spec/dummy/public/422.html
|
123
|
+
- spec/dummy/public/500.html
|
124
|
+
- spec/dummy/public/favicon.ico
|
125
|
+
- spec/dummy/script/rails
|
126
|
+
- spec/lib/pg_comment/connection_adapters/abstract/schema_definitions_spec.rb
|
127
|
+
- spec/lib/pg_comment/connection_adapters/abstract/schema_statements_spec.rb
|
128
|
+
- spec/lib/pg_comment/connection_adapters/postgresql_adapter_spec.rb
|
129
|
+
- spec/lib/pg_comment/migration/command_recorder_spec.rb
|
130
|
+
- spec/lib/pg_comment/schema_dumper_spec.rb
|
131
|
+
- spec/spec_helper.rb
|
72
132
|
homepage: https://github.com/albertosaurus/pg_comment
|
73
133
|
licenses: []
|
134
|
+
metadata: {}
|
74
135
|
post_install_message:
|
75
136
|
rdoc_options: []
|
76
137
|
require_paths:
|
77
138
|
- lib
|
78
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
140
|
requirements:
|
81
141
|
- - ! '>='
|
82
142
|
- !ruby/object:Gem::Version
|
83
143
|
version: '0'
|
84
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
145
|
requirements:
|
87
146
|
- - ! '>='
|
88
147
|
- !ruby/object:Gem::Version
|
89
148
|
version: '0'
|
90
149
|
requirements: []
|
91
150
|
rubyforge_project: pg_comment
|
92
|
-
rubygems_version:
|
151
|
+
rubygems_version: 2.0.3
|
93
152
|
signing_key:
|
94
|
-
specification_version:
|
153
|
+
specification_version: 4
|
95
154
|
summary: Postgres Comments for Rails
|
96
155
|
test_files: []
|