tablature 0.1.1 → 1.0.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +68 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -1
- data/.yardopts +1 -0
- data/Gemfile +8 -0
- data/README.md +99 -2
- data/lib/tablature.rb +8 -1
- data/lib/tablature/adapters/postgres.rb +76 -5
- data/lib/tablature/adapters/postgres/connection.rb +14 -0
- data/lib/tablature/adapters/postgres/errors.rb +19 -2
- data/lib/tablature/adapters/postgres/handlers/base.rb +4 -0
- data/lib/tablature/adapters/postgres/handlers/list.rb +57 -3
- data/lib/tablature/adapters/postgres/handlers/range.rb +62 -3
- data/lib/tablature/adapters/postgres/indexes.rb +96 -0
- data/lib/tablature/adapters/postgres/partitioned_tables.rb +20 -8
- data/lib/tablature/adapters/postgres/quoting.rb +5 -0
- data/lib/tablature/command_recorder.rb +93 -0
- data/lib/tablature/model.rb +70 -0
- data/lib/tablature/partition.rb +23 -0
- data/lib/tablature/partitioned_table.rb +51 -7
- data/lib/tablature/schema_dumper.rb +66 -3
- data/lib/tablature/statements.rb +67 -11
- data/lib/tablature/version.rb +1 -1
- data/tablature.gemspec +6 -4
- metadata +18 -19
- data/.circleci/config.yml +0 -81
- data/Gemfile.lock +0 -106
- data/bin/console +0 -10
- data/bin/setup +0 -8
data/.circleci/config.yml
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
# TODO: Simplify this
|
2
|
-
version: 2
|
3
|
-
jobs:
|
4
|
-
postgres_10:
|
5
|
-
working_directory: ~/tablature-rb
|
6
|
-
docker:
|
7
|
-
- image: circleci/ruby:2.4
|
8
|
-
environment:
|
9
|
-
DATABASE_URL: "postgres://postgres@localhost:5432/dummy_test"
|
10
|
-
- image: circleci/postgres:10-alpine
|
11
|
-
environment:
|
12
|
-
POSTGRES_USER: postgres
|
13
|
-
POSTGRES_DB: dummy_test
|
14
|
-
POSTGRES_PASSWORD: ""
|
15
|
-
steps:
|
16
|
-
- checkout
|
17
|
-
|
18
|
-
- type: cache-restore
|
19
|
-
name: Restore bundle cache
|
20
|
-
key: tablature-{{ checksum "tablature.gemspec" }}-{{ checksum "Gemfile" }}
|
21
|
-
|
22
|
-
- run:
|
23
|
-
name: Install dependencies
|
24
|
-
command: bundle install --path vendor/bundle
|
25
|
-
|
26
|
-
- type: cache-save
|
27
|
-
name: Store bundle cache
|
28
|
-
key: tablature-{{ checksum "tablature.gemspec" }}-{{ checksum "Gemfile" }}
|
29
|
-
paths:
|
30
|
-
- vendor/bundle
|
31
|
-
|
32
|
-
- run:
|
33
|
-
name: Wait for Postgres
|
34
|
-
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
35
|
-
|
36
|
-
- run:
|
37
|
-
name: Run tests
|
38
|
-
command: bundle exec rspec --tag ~postgres_11
|
39
|
-
|
40
|
-
postgres_11:
|
41
|
-
working_directory: ~/tablature-rb
|
42
|
-
docker:
|
43
|
-
- image: circleci/ruby:2.4
|
44
|
-
environment:
|
45
|
-
DATABASE_URL: "postgres://postgres@localhost:5432/dummy_test"
|
46
|
-
- image: circleci/postgres:11-alpine
|
47
|
-
environment:
|
48
|
-
POSTGRES_USER: postgres
|
49
|
-
POSTGRES_DB: dummy_test
|
50
|
-
POSTGRES_PASSWORD: ""
|
51
|
-
steps:
|
52
|
-
- checkout
|
53
|
-
|
54
|
-
- type: cache-restore
|
55
|
-
name: Restore bundle cache
|
56
|
-
key: tablature-{{ checksum "tablature.gemspec" }}-{{ checksum "Gemfile" }}
|
57
|
-
|
58
|
-
- run:
|
59
|
-
name: Install dependencies
|
60
|
-
command: bundle install --path vendor/bundle
|
61
|
-
|
62
|
-
- type: cache-save
|
63
|
-
name: Store bundle cache
|
64
|
-
key: tablature-{{ checksum "tablature.gemspec" }}-{{ checksum "Gemfile" }}
|
65
|
-
paths:
|
66
|
-
- vendor/bundle
|
67
|
-
|
68
|
-
- run:
|
69
|
-
name: Wait for Postgres
|
70
|
-
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
71
|
-
|
72
|
-
- run:
|
73
|
-
name: Run tests
|
74
|
-
command: bundle exec rspec
|
75
|
-
|
76
|
-
workflows:
|
77
|
-
version: 2
|
78
|
-
tablature:
|
79
|
-
jobs:
|
80
|
-
- postgres_10
|
81
|
-
- postgres_11
|
data/Gemfile.lock
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
tablature (0.1.1)
|
5
|
-
activerecord (>= 5.0.0)
|
6
|
-
railties (>= 5.0.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actionpack (5.2.2)
|
12
|
-
actionview (= 5.2.2)
|
13
|
-
activesupport (= 5.2.2)
|
14
|
-
rack (~> 2.0)
|
15
|
-
rack-test (>= 0.6.3)
|
16
|
-
rails-dom-testing (~> 2.0)
|
17
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
18
|
-
actionview (5.2.2)
|
19
|
-
activesupport (= 5.2.2)
|
20
|
-
builder (~> 3.1)
|
21
|
-
erubi (~> 1.4)
|
22
|
-
rails-dom-testing (~> 2.0)
|
23
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
24
|
-
activemodel (5.2.2)
|
25
|
-
activesupport (= 5.2.2)
|
26
|
-
activerecord (5.2.2)
|
27
|
-
activemodel (= 5.2.2)
|
28
|
-
activesupport (= 5.2.2)
|
29
|
-
arel (>= 9.0)
|
30
|
-
activesupport (5.2.2)
|
31
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
32
|
-
i18n (>= 0.7, < 2)
|
33
|
-
minitest (~> 5.1)
|
34
|
-
tzinfo (~> 1.1)
|
35
|
-
arel (9.0.0)
|
36
|
-
builder (3.2.3)
|
37
|
-
coderay (1.1.2)
|
38
|
-
concurrent-ruby (1.1.3)
|
39
|
-
crass (1.0.4)
|
40
|
-
database_cleaner (1.7.0)
|
41
|
-
diff-lcs (1.3)
|
42
|
-
erubi (1.7.1)
|
43
|
-
i18n (1.1.1)
|
44
|
-
concurrent-ruby (~> 1.0)
|
45
|
-
loofah (2.2.3)
|
46
|
-
crass (~> 1.0.2)
|
47
|
-
nokogiri (>= 1.5.9)
|
48
|
-
method_source (0.9.0)
|
49
|
-
mini_portile2 (2.3.0)
|
50
|
-
minitest (5.11.3)
|
51
|
-
nokogiri (1.8.5)
|
52
|
-
mini_portile2 (~> 2.3.0)
|
53
|
-
pg (0.21.0)
|
54
|
-
pry (0.12.2)
|
55
|
-
coderay (~> 1.1.0)
|
56
|
-
method_source (~> 0.9.0)
|
57
|
-
rack (2.0.6)
|
58
|
-
rack-test (1.1.0)
|
59
|
-
rack (>= 1.0, < 3)
|
60
|
-
rails-dom-testing (2.0.3)
|
61
|
-
activesupport (>= 4.2.0)
|
62
|
-
nokogiri (>= 1.6)
|
63
|
-
rails-html-sanitizer (1.0.4)
|
64
|
-
loofah (~> 2.2, >= 2.2.2)
|
65
|
-
railties (5.2.2)
|
66
|
-
actionpack (= 5.2.2)
|
67
|
-
activesupport (= 5.2.2)
|
68
|
-
method_source
|
69
|
-
rake (>= 0.8.7)
|
70
|
-
thor (>= 0.19.0, < 2.0)
|
71
|
-
rake (10.5.0)
|
72
|
-
rspec (3.7.0)
|
73
|
-
rspec-core (~> 3.7.0)
|
74
|
-
rspec-expectations (~> 3.7.0)
|
75
|
-
rspec-mocks (~> 3.7.0)
|
76
|
-
rspec-core (3.7.1)
|
77
|
-
rspec-support (~> 3.7.0)
|
78
|
-
rspec-expectations (3.7.0)
|
79
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
80
|
-
rspec-support (~> 3.7.0)
|
81
|
-
rspec-instafail (1.0.0)
|
82
|
-
rspec
|
83
|
-
rspec-mocks (3.7.0)
|
84
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
85
|
-
rspec-support (~> 3.7.0)
|
86
|
-
rspec-support (3.7.1)
|
87
|
-
thor (0.20.3)
|
88
|
-
thread_safe (0.3.6)
|
89
|
-
tzinfo (1.2.5)
|
90
|
-
thread_safe (~> 0.1)
|
91
|
-
|
92
|
-
PLATFORMS
|
93
|
-
ruby
|
94
|
-
|
95
|
-
DEPENDENCIES
|
96
|
-
bundler (~> 1.16)
|
97
|
-
database_cleaner
|
98
|
-
pg (~> 0.19)
|
99
|
-
pry
|
100
|
-
rake (~> 10.0)
|
101
|
-
rspec (~> 3.0)
|
102
|
-
rspec-instafail
|
103
|
-
tablature!
|
104
|
-
|
105
|
-
BUNDLED WITH
|
106
|
-
1.16.6
|
data/bin/console
DELETED