table_saw 2.5.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e59849f10340f5303141bb40cc142664aa3c0ae0b69ea8ef55d35a917058a0f3
4
- data.tar.gz: f3ee222d576c0df5e1ead7a19762dbf948188ff771c1f99d25ec6673dc0bd48e
3
+ metadata.gz: 73052f9f389e923a44a30245537349bf20aeccb941b6c9a737cd724429d99816
4
+ data.tar.gz: 46a3903eaf79023dd986c0977fbe330ee3bebada1aada3da149ce7d59d3d4a36
5
5
  SHA512:
6
- metadata.gz: 4b35a9db958e6ad546d6fb25fd4e58c1d853b787cf2b9cc4fe7f64cdb31d4d0e5834f45ccd66ae1d3a2f322b25dc704203965554821fa8407a5e83de518e3068
7
- data.tar.gz: dcaa3a15bdb561306694436af670622c5e386bd1b75d76cbc551e0f4092aee25120a46e24eabdd8460894e11ed14fc096c51646f008dfa2f25b8a464a9c667fc
6
+ metadata.gz: 10511fdee69e7277992eed0bd5d7566ed880c1c33f24470f056fb470eba1ec2b808adbe3d88a65ecc9183bb378eab1cc6114f04f01ed6a43d4389f5dc7a474b8
7
+ data.tar.gz: 21fd89f55177bc4d44a1061d6336689dd0e330950e647d3e85bf9c0e967e18eed377639cca9cf4460b3402ba400b9b2ea81cb416b8accaa8b52a36d8babcf520
@@ -0,0 +1,54 @@
1
+ name: Ruby
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ matrix:
12
+ ruby:
13
+ - '2.6.6'
14
+ - '2.7.2'
15
+ - '3.0.0'
16
+ activerecord:
17
+ - '6.0.0'
18
+ - '6.1.0'
19
+
20
+ env:
21
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/activerecord_${{ matrix.activerecord }}.gemfile
22
+
23
+ services:
24
+ postgres:
25
+ image: postgres:12.4
26
+ env:
27
+ POSTGRES_USER: postgres
28
+ POSTGRES_PASSWORD: postgres
29
+ POSTGRES_DB: table_saw_test
30
+ ports:
31
+ - 5432:5432
32
+ # needed because the postgres container does not provide a healthcheck
33
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
34
+
35
+ steps:
36
+ - uses: actions/checkout@v2
37
+
38
+ - name: Set up Ruby
39
+ uses: ruby/setup-ruby@v1
40
+ with:
41
+ ruby-version: ${{ matrix.ruby }}
42
+ bundler-cache: true
43
+
44
+ - name: Install PostgreSQL client
45
+ run: |
46
+ sudo apt-get -yqq install libpq-dev
47
+
48
+ - name: Run tests with RSpec
49
+ uses: paambaati/codeclimate-action@v2.7.5
50
+ env:
51
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
52
+ with:
53
+ coverageCommand: bundle exec rspec
54
+ debug: false
data/.rubocop.yml CHANGED
@@ -1,16 +1,28 @@
1
1
  require: rubocop-rspec
2
2
 
3
3
  AllCops:
4
+ NewCops: enable
4
5
  TargetRubyVersion: 2.6
6
+ Exclude:
7
+ - gemfiles/*
8
+
9
+ Layout/LineLength:
10
+ Max: 120
5
11
 
6
12
  Layout/MultilineMethodCallIndentation:
7
13
  EnforcedStyle: indented_relative_to_receiver
8
14
 
9
- Metrics/LineLength:
10
- Max: 120
15
+ Layout/SpaceAroundMethodCallOperator:
16
+ Enabled: true
17
+
18
+ Lint/RaiseException:
19
+ Enabled: true
20
+
21
+ Lint/StructNewOverride:
22
+ Enabled: true
11
23
 
12
24
  Naming/PredicateName:
13
- NameWhitelist:
25
+ AllowedMethods:
14
26
  - has_many
15
27
 
16
28
  Style/Documentation:
@@ -19,9 +31,21 @@ Style/Documentation:
19
31
  Style/EmptyMethod:
20
32
  EnforcedStyle: expanded
21
33
 
34
+ Style/ExponentialNotation:
35
+ Enabled: true
36
+
22
37
  Style/FormatStringToken:
23
38
  EnforcedStyle: template
24
39
 
40
+ Style/HashEachMethods:
41
+ Enabled: true
42
+
43
+ Style/HashTransformKeys:
44
+ Enabled: true
45
+
46
+ Style/HashTransformValues:
47
+ Enabled: true
48
+
25
49
  Style/PercentLiteralDelimiters:
26
50
  PreferredDelimiters:
27
51
  default: ()
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 3.0.0
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.0.0
data/Appraisals ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'activerecord-6.0.0' do
4
+ gem 'activerecord', '~> 6.0', '< 6.1'
5
+ end
6
+
7
+ appraise 'activerecord-6.1.0' do
8
+ gem 'activerecord', '~> 6.1', '< 6.2'
9
+ end
data/Gemfile CHANGED
@@ -4,3 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in table_saw.gemspec
6
6
  gemspec
7
+
8
+ gem 'appraisal'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- table_saw (2.5.0)
4
+ table_saw (2.9.0)
5
5
  activerecord (>= 5.2)
6
6
  pg
7
7
  thor
@@ -9,63 +9,68 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (6.0.2.1)
13
- actionview (= 6.0.2.1)
14
- activesupport (= 6.0.2.1)
15
- rack (~> 2.0, >= 2.0.8)
12
+ actionpack (6.1.0)
13
+ actionview (= 6.1.0)
14
+ activesupport (= 6.1.0)
15
+ rack (~> 2.0, >= 2.0.9)
16
16
  rack-test (>= 0.6.3)
17
17
  rails-dom-testing (~> 2.0)
18
18
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (6.0.2.1)
20
- activesupport (= 6.0.2.1)
19
+ actionview (6.1.0)
20
+ activesupport (= 6.1.0)
21
21
  builder (~> 3.1)
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
24
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- activemodel (6.0.2.1)
26
- activesupport (= 6.0.2.1)
27
- activerecord (6.0.2.1)
28
- activemodel (= 6.0.2.1)
29
- activesupport (= 6.0.2.1)
30
- activesupport (6.0.2.1)
25
+ activemodel (6.1.0)
26
+ activesupport (= 6.1.0)
27
+ activerecord (6.1.0)
28
+ activemodel (= 6.1.0)
29
+ activesupport (= 6.1.0)
30
+ activesupport (6.1.0)
31
31
  concurrent-ruby (~> 1.0, >= 1.0.2)
32
- i18n (>= 0.7, < 2)
33
- minitest (~> 5.1)
34
- tzinfo (~> 1.1)
35
- zeitwerk (~> 2.2)
36
- ast (2.4.0)
32
+ i18n (>= 1.6, < 2)
33
+ minitest (>= 5.1)
34
+ tzinfo (~> 2.0)
35
+ zeitwerk (~> 2.3)
36
+ appraisal (2.3.0)
37
+ bundler
38
+ rake
39
+ thor (>= 0.14.0)
40
+ ast (2.4.1)
37
41
  builder (3.2.4)
38
42
  coderay (1.1.2)
39
- combustion (1.1.2)
43
+ combustion (1.3.1)
40
44
  activesupport (>= 3.0.0)
41
45
  railties (>= 3.0.0)
42
46
  thor (>= 0.14.6)
43
- concurrent-ruby (1.1.5)
47
+ concurrent-ruby (1.1.7)
44
48
  crass (1.0.6)
45
49
  database_cleaner (1.7.0)
46
50
  diff-lcs (1.3)
47
51
  docile (1.3.1)
48
- erubi (1.9.0)
49
- i18n (1.8.2)
52
+ erubi (1.10.0)
53
+ i18n (1.8.5)
50
54
  concurrent-ruby (~> 1.0)
51
- jaro_winkler (1.5.2)
52
- json (2.2.0)
53
- loofah (2.4.0)
55
+ json (2.3.1)
56
+ loofah (2.8.0)
54
57
  crass (~> 1.0.2)
55
58
  nokogiri (>= 1.5.9)
56
59
  method_source (0.9.2)
57
- mini_portile2 (2.4.0)
58
- minitest (5.14.0)
59
- nokogiri (1.10.7)
60
- mini_portile2 (~> 2.4.0)
61
- parallel (1.17.0)
62
- parser (2.6.3.0)
63
- ast (~> 2.4.0)
64
- pg (1.2.2)
60
+ mini_portile2 (2.5.0)
61
+ minitest (5.14.2)
62
+ nokogiri (1.11.1)
63
+ mini_portile2 (~> 2.5.0)
64
+ racc (~> 1.4)
65
+ parallel (1.20.1)
66
+ parser (3.0.0.0)
67
+ ast (~> 2.4.1)
68
+ pg (1.2.3)
65
69
  pry (0.12.2)
66
70
  coderay (~> 1.1.0)
67
71
  method_source (~> 0.9.0)
68
- rack (2.1.1)
72
+ racc (1.5.2)
73
+ rack (2.2.3)
69
74
  rack-test (1.1.0)
70
75
  rack (>= 1.0, < 3)
71
76
  rails-dom-testing (2.0.3)
@@ -73,38 +78,45 @@ GEM
73
78
  nokogiri (>= 1.6)
74
79
  rails-html-sanitizer (1.3.0)
75
80
  loofah (~> 2.3)
76
- railties (6.0.2.1)
77
- actionpack (= 6.0.2.1)
78
- activesupport (= 6.0.2.1)
81
+ railties (6.1.0)
82
+ actionpack (= 6.1.0)
83
+ activesupport (= 6.1.0)
79
84
  method_source
80
85
  rake (>= 0.8.7)
81
- thor (>= 0.20.3, < 2.0)
86
+ thor (~> 1.0)
82
87
  rainbow (3.0.0)
83
- rake (10.5.0)
84
- rspec (3.8.0)
85
- rspec-core (~> 3.8.0)
86
- rspec-expectations (~> 3.8.0)
87
- rspec-mocks (~> 3.8.0)
88
- rspec-core (3.8.0)
89
- rspec-support (~> 3.8.0)
90
- rspec-expectations (3.8.3)
88
+ rake (13.0.1)
89
+ regexp_parser (2.0.3)
90
+ rexml (3.2.4)
91
+ rspec (3.9.0)
92
+ rspec-core (~> 3.9.0)
93
+ rspec-expectations (~> 3.9.0)
94
+ rspec-mocks (~> 3.9.0)
95
+ rspec-core (3.9.1)
96
+ rspec-support (~> 3.9.1)
97
+ rspec-expectations (3.9.0)
91
98
  diff-lcs (>= 1.2.0, < 2.0)
92
- rspec-support (~> 3.8.0)
93
- rspec-mocks (3.8.0)
99
+ rspec-support (~> 3.9.0)
100
+ rspec-mocks (3.9.1)
94
101
  diff-lcs (>= 1.2.0, < 2.0)
95
- rspec-support (~> 3.8.0)
96
- rspec-support (3.8.0)
97
- rubocop (0.71.0)
98
- jaro_winkler (~> 1.5.1)
102
+ rspec-support (~> 3.9.0)
103
+ rspec-support (3.9.2)
104
+ rubocop (0.93.1)
99
105
  parallel (~> 1.10)
100
- parser (>= 2.6)
106
+ parser (>= 2.7.1.5)
101
107
  rainbow (>= 2.2.2, < 4.0)
108
+ regexp_parser (>= 1.8)
109
+ rexml
110
+ rubocop-ast (>= 0.6.0)
102
111
  ruby-progressbar (~> 1.7)
103
- unicode-display_width (>= 1.4.0, < 1.7)
104
- rubocop-rspec (1.33.0)
105
- rubocop (>= 0.60.0)
106
- ruby-progressbar (1.10.1)
107
- scenic (1.5.1)
112
+ unicode-display_width (>= 1.4.0, < 2.0)
113
+ rubocop-ast (1.3.0)
114
+ parser (>= 2.7.1.5)
115
+ rubocop-rspec (1.44.1)
116
+ rubocop (~> 0.87)
117
+ rubocop-ast (>= 0.7.1)
118
+ ruby-progressbar (1.11.0)
119
+ scenic (1.5.4)
108
120
  activerecord (>= 4.0.0)
109
121
  railties (>= 4.0.0)
110
122
  simplecov (0.16.1)
@@ -113,21 +125,21 @@ GEM
113
125
  simplecov-html (~> 0.10.0)
114
126
  simplecov-html (0.10.2)
115
127
  thor (1.0.1)
116
- thread_safe (0.3.6)
117
- tzinfo (1.2.6)
118
- thread_safe (~> 0.1)
119
- unicode-display_width (1.6.0)
120
- zeitwerk (2.2.2)
128
+ tzinfo (2.0.3)
129
+ concurrent-ruby (~> 1.0)
130
+ unicode-display_width (1.7.0)
131
+ zeitwerk (2.4.2)
121
132
 
122
133
  PLATFORMS
123
134
  ruby
124
135
 
125
136
  DEPENDENCIES
137
+ appraisal
126
138
  bundler (~> 2.0)
127
- combustion (~> 1.1)
139
+ combustion (~> 1.3)
128
140
  database_cleaner (~> 1.7)
129
141
  pry
130
- rake (~> 10.0)
142
+ rake (~> 13.0)
131
143
  rspec (~> 3.0)
132
144
  rubocop-rspec (~> 1.33)
133
145
  scenic (~> 1.5)
@@ -135,4 +147,4 @@ DEPENDENCIES
135
147
  table_saw!
136
148
 
137
149
  BUNDLED WITH
138
- 2.1.4
150
+ 2.2.3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/hasghari/table_saw.svg?branch=master)](https://travis-ci.org/hasghari/table_saw)
1
+ ![](https://github.com/hasghari/table_saw/workflows/Ruby/badge.svg)
2
2
  [![Maintainability](https://api.codeclimate.com/v1/badges/abd5b5451c764d3249f1/maintainability)](https://codeclimate.com/github/hasghari/table_saw/maintainability)
3
3
  [![Test Coverage](https://api.codeclimate.com/v1/badges/abd5b5451c764d3249f1/test_coverage)](https://codeclimate.com/github/hasghari/table_saw/test_coverage)
4
4
 
data/exe/table-saw CHANGED
@@ -25,6 +25,8 @@ class CLI < Thor
25
25
  method_option :manifest, aliases: '-m', required: true
26
26
  method_option :output, aliases: '-o', default: 'output.dump'
27
27
  method_option :format, type: :hash, default: { 'type' => 'copy' }
28
+ method_option :variables, aliases: '-v', type: :hash, default: {},
29
+ desc: 'This option takes a hash to override variables provided in the manifest'
28
30
  def dump
29
31
  TableSaw.configure(options.to_hash)
30
32
  records = TableSaw::DependencyGraph::Build.new(TableSaw::Manifest.instance).call
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "activerecord", "~> 6.0", "< 6.1"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,151 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ table_saw (2.9.0)
5
+ activerecord (>= 5.2)
6
+ pg
7
+ thor
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionpack (6.0.3.4)
13
+ actionview (= 6.0.3.4)
14
+ activesupport (= 6.0.3.4)
15
+ rack (~> 2.0, >= 2.0.8)
16
+ rack-test (>= 0.6.3)
17
+ rails-dom-testing (~> 2.0)
18
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
+ actionview (6.0.3.4)
20
+ activesupport (= 6.0.3.4)
21
+ builder (~> 3.1)
22
+ erubi (~> 1.4)
23
+ rails-dom-testing (~> 2.0)
24
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
+ activemodel (6.0.3.4)
26
+ activesupport (= 6.0.3.4)
27
+ activerecord (6.0.3.4)
28
+ activemodel (= 6.0.3.4)
29
+ activesupport (= 6.0.3.4)
30
+ activesupport (6.0.3.4)
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ i18n (>= 0.7, < 2)
33
+ minitest (~> 5.1)
34
+ tzinfo (~> 1.1)
35
+ zeitwerk (~> 2.2, >= 2.2.2)
36
+ appraisal (2.3.0)
37
+ bundler
38
+ rake
39
+ thor (>= 0.14.0)
40
+ ast (2.4.1)
41
+ builder (3.2.4)
42
+ coderay (1.1.3)
43
+ combustion (1.3.1)
44
+ activesupport (>= 3.0.0)
45
+ railties (>= 3.0.0)
46
+ thor (>= 0.14.6)
47
+ concurrent-ruby (1.1.7)
48
+ crass (1.0.6)
49
+ database_cleaner (1.8.5)
50
+ diff-lcs (1.4.4)
51
+ docile (1.3.4)
52
+ erubi (1.10.0)
53
+ i18n (1.8.5)
54
+ concurrent-ruby (~> 1.0)
55
+ loofah (2.8.0)
56
+ crass (~> 1.0.2)
57
+ nokogiri (>= 1.5.9)
58
+ method_source (1.0.0)
59
+ mini_portile2 (2.4.0)
60
+ minitest (5.14.2)
61
+ nokogiri (1.10.10)
62
+ mini_portile2 (~> 2.4.0)
63
+ parallel (1.20.1)
64
+ parser (3.0.0.0)
65
+ ast (~> 2.4.1)
66
+ pg (1.2.3)
67
+ pry (0.13.1)
68
+ coderay (~> 1.1)
69
+ method_source (~> 1.0)
70
+ rack (2.2.3)
71
+ rack-test (1.1.0)
72
+ rack (>= 1.0, < 3)
73
+ rails-dom-testing (2.0.3)
74
+ activesupport (>= 4.2.0)
75
+ nokogiri (>= 1.6)
76
+ rails-html-sanitizer (1.3.0)
77
+ loofah (~> 2.3)
78
+ railties (6.0.3.4)
79
+ actionpack (= 6.0.3.4)
80
+ activesupport (= 6.0.3.4)
81
+ method_source
82
+ rake (>= 0.8.7)
83
+ thor (>= 0.20.3, < 2.0)
84
+ rainbow (3.0.0)
85
+ rake (13.0.3)
86
+ regexp_parser (2.0.3)
87
+ rexml (3.2.4)
88
+ rspec (3.10.0)
89
+ rspec-core (~> 3.10.0)
90
+ rspec-expectations (~> 3.10.0)
91
+ rspec-mocks (~> 3.10.0)
92
+ rspec-core (3.10.1)
93
+ rspec-support (~> 3.10.0)
94
+ rspec-expectations (3.10.1)
95
+ diff-lcs (>= 1.2.0, < 2.0)
96
+ rspec-support (~> 3.10.0)
97
+ rspec-mocks (3.10.1)
98
+ diff-lcs (>= 1.2.0, < 2.0)
99
+ rspec-support (~> 3.10.0)
100
+ rspec-support (3.10.1)
101
+ rubocop (0.93.1)
102
+ parallel (~> 1.10)
103
+ parser (>= 2.7.1.5)
104
+ rainbow (>= 2.2.2, < 4.0)
105
+ regexp_parser (>= 1.8)
106
+ rexml
107
+ rubocop-ast (>= 0.6.0)
108
+ ruby-progressbar (~> 1.7)
109
+ unicode-display_width (>= 1.4.0, < 2.0)
110
+ rubocop-ast (1.3.0)
111
+ parser (>= 2.7.1.5)
112
+ rubocop-rspec (1.44.1)
113
+ rubocop (~> 0.87)
114
+ rubocop-ast (>= 0.7.1)
115
+ ruby-progressbar (1.11.0)
116
+ scenic (1.5.4)
117
+ activerecord (>= 4.0.0)
118
+ railties (>= 4.0.0)
119
+ simplecov (0.20.0)
120
+ docile (~> 1.1)
121
+ simplecov-html (~> 0.11)
122
+ simplecov_json_formatter (~> 0.1)
123
+ simplecov-html (0.12.3)
124
+ simplecov_json_formatter (0.1.2)
125
+ thor (1.0.1)
126
+ thread_safe (0.3.6)
127
+ tzinfo (1.2.9)
128
+ thread_safe (~> 0.1)
129
+ unicode-display_width (1.7.0)
130
+ zeitwerk (2.4.2)
131
+
132
+ PLATFORMS
133
+ x86_64-darwin-20
134
+ x86_64-linux
135
+
136
+ DEPENDENCIES
137
+ activerecord (~> 6.0, < 6.1)
138
+ appraisal
139
+ bundler (~> 2.0)
140
+ combustion (~> 1.3)
141
+ database_cleaner (~> 1.7)
142
+ pry
143
+ rake (~> 13.0)
144
+ rspec (~> 3.0)
145
+ rubocop-rspec (~> 1.33)
146
+ scenic (~> 1.5)
147
+ simplecov (~> 0.16)
148
+ table_saw!
149
+
150
+ BUNDLED WITH
151
+ 2.2.3