metka 2.0.0 → 2.2.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: 9add2168156651d369dc1cbb040481d55d2e83fdeee318e065153063746036eb
4
- data.tar.gz: 055e9db64b595b512440a58db7c971d3d7ecd4ba87e52fbb05563133aec3774d
3
+ metadata.gz: 81b76694d9f46c48214c49fd4ced765bc238534e0247e01f4cf3b50718d2d775
4
+ data.tar.gz: 659202753ebb523445de4a484c579b1a5b3b6b52628edf90908169a7c21cc14a
5
5
  SHA512:
6
- metadata.gz: ac957fdb84eecbbf711c9ac03f068a15e7b8e40e99e9f255a5ba6fa1ef438681d8c1cab877513174921a7f0a514233fa513e2c2fd5bdd0893ebf628e26105d3a
7
- data.tar.gz: d3fc6a6474c316249c38b8a5eb5344fe27beb425b8979368402c6bfbe015e8aeed1083d16348d312fdbef12cae70259a087eeb2d4804e6e12439f69f4d6d6a73
6
+ metadata.gz: c91e5714a01ce5050da4980c1cd57ea9564717873d8bfba1602fd42cd69a527ec5f1789b84b2fd5f3401dd22c4b55f3f8443cedc0dfd0270f136255b4c27a550
7
+ data.tar.gz: 2bf4bd0866762a273bf594ecbc260595990afcb1f724bafef298c9ea71749b1b88f0459aff66d40c2cb5166680cec682c54a6234cc4e9d087412f04ef9c70e99
@@ -0,0 +1,15 @@
1
+ # Tell us about your environment
2
+
3
+ **Ruby Version:**
4
+
5
+ **Rails Version:**
6
+
7
+ **PostgreSQL Version:**
8
+
9
+ **Metka Version:**
10
+
11
+ ## What did you do?
12
+
13
+ ## What did you expect to happen?
14
+
15
+ ## What actually happened?
@@ -0,0 +1,57 @@
1
+ name: Lint Docs
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ paths:
8
+ - "*.md"
9
+ - "**/*.md"
10
+ pull_request:
11
+ paths:
12
+ - "*.md"
13
+ - "**/*.md"
14
+
15
+ jobs:
16
+ markdownlint:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: 2.7
23
+ - name: Run Markdown linter
24
+ run: |
25
+ gem install mdl
26
+ mdl README.md .github/*.md
27
+ rubocop:
28
+ runs-on: ubuntu-latest
29
+ steps:
30
+ - uses: actions/checkout@v2
31
+ - uses: ruby/setup-ruby@v1
32
+ with:
33
+ ruby-version: 2.7
34
+ - name: Lint Markdown files with RuboCop
35
+ run: |
36
+ gem install bundler
37
+ bundle install --gemfile gemfiles/rubocop.gemfile --jobs 4 --retry 3
38
+ bundle exec --gemfile gemfiles/rubocop.gemfile rubocop -c .rubocop-md.yml
39
+ forspell:
40
+ runs-on: ubuntu-latest
41
+ steps:
42
+ - uses: actions/checkout@v2
43
+ - name: Install Hunspell
44
+ run: |
45
+ sudo apt-get install hunspell
46
+ - uses: ruby/setup-ruby@v1
47
+ with:
48
+ ruby-version: 2.7
49
+ - name: Cache installed gems
50
+ uses: actions/cache@v1
51
+ with:
52
+ path: /home/runner/.rubies/ruby-2.7.0/lib/ruby/gems/2.7.0
53
+ key: gems-cache-${{ runner.os }}
54
+ - name: Install Forspell
55
+ run: gem install forspell
56
+ - name: Run Forspell
57
+ run: forspell *.md .github/*.md
@@ -0,0 +1,84 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+
9
+ jobs:
10
+ rspec:
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ BUNDLE_JOBS: 4
14
+ BUNDLE_RETRY: 3
15
+ CI: true
16
+ RAILS_ENV: test
17
+ DATABASE_URL: postgres://postgres:postgres@localhost:5432
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ ruby: ["2.7"]
22
+ postgres: ["12"]
23
+ gemfile: [
24
+ "gemfiles/rails61.gemfile"
25
+ ]
26
+ fx: ["false"]
27
+ include:
28
+ - ruby: "3.0"
29
+ postgres: "13"
30
+ gemfile: "gemfiles/railsmaster.gemfile"
31
+ fx: "false"
32
+ - ruby: "2.6"
33
+ postgres: "12"
34
+ gemfile: "gemfiles/rails61.gemfile"
35
+ fx: "false"
36
+ - ruby: "2.6"
37
+ postgres: "12"
38
+ gemfile: "gemfiles/rails6.gemfile"
39
+ fx: "false"
40
+ - ruby: "2.5"
41
+ postgres: "11"
42
+ gemfile: "gemfiles/rails52.gemfile"
43
+ fx: "false"
44
+ services:
45
+ postgres:
46
+ image: postgres:${{ matrix.postgres }}
47
+ ports: ["5432:5432"]
48
+ env:
49
+ POSTGRES_PASSWORD: postgres
50
+ options: >-
51
+ --health-cmd pg_isready
52
+ --health-interval 10s
53
+ --health-timeout 5s
54
+ --health-retries 5
55
+ steps:
56
+ - uses: actions/checkout@v2
57
+ - uses: actions/cache@v1
58
+ with:
59
+ path: /home/runner/bundle
60
+ key: bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
61
+ restore-keys: |
62
+ bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-
63
+ - name: Install system deps
64
+ run: |
65
+ sudo apt-get update
66
+ sudo apt-get -yqq install libpq-dev
67
+ - uses: ruby/setup-ruby@v1
68
+ with:
69
+ ruby-version: ${{ matrix.ruby }}
70
+ - name: Bundle install
71
+ run: |
72
+ bundle config path /home/runner/bundle
73
+ bundle config --global gemfile ${{ matrix.gemfile }}
74
+ bundle install
75
+ bundle update
76
+ - name: Prepare test database
77
+ run: |
78
+ bundle exec rake dummy:db:create
79
+ bundle exec rake dummy:db:migrate:reset
80
+ - name: Run RSpec
81
+ env:
82
+ USE_FX: ${{ matrix.fx }}
83
+ run: |
84
+ bundle exec rspec -f d --force-color
@@ -0,0 +1,21 @@
1
+ name: Rubocop
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+
9
+ jobs:
10
+ rubocop:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 2.7
17
+ - name: RuboCop
18
+ run: |
19
+ gem install bundler
20
+ bundle install --gemfile gemfiles/rubocop.gemfile --jobs 4 --retry 3
21
+ bundle exec --gemfile gemfiles/rubocop.gemfile rubocop
data/.gitignore CHANGED
@@ -11,6 +11,7 @@
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
13
  spec/debug.log
14
+ *.gem
14
15
 
15
16
  spec/dummy/log/test.log
16
17
  spec/dummy/log/development.log
data/.mdlrc ADDED
@@ -0,0 +1 @@
1
+ rules "~MD013", "~MD026", "~MD029", "~MD034", "~MD041"
@@ -0,0 +1,17 @@
1
+ inherit_from: ".rubocop.yml"
2
+
3
+ require:
4
+ - rubocop-md
5
+
6
+
7
+ AllCops:
8
+ Include:
9
+ - '**/*.md'
10
+
11
+ Lint/Void:
12
+ Exclude:
13
+ - '**/*.md'
14
+
15
+ Lint/DuplicateMethods:
16
+ Exclude:
17
+ - '**/*.md'
@@ -9,7 +9,6 @@ AllCops:
9
9
  - 'Gemfile'
10
10
  - 'vendor/**/*'
11
11
  - 'gemfiles/**/*'
12
- - '**/*.md'
13
12
  DisplayCopNames: true
14
13
  TargetRubyVersion: 2.5
15
14
 
@@ -19,7 +18,7 @@ Style/TrailingCommaInArrayLiteral:
19
18
  Style/TrailingCommaInHashLiteral:
20
19
  EnforcedStyleForMultiline: no_comma
21
20
 
22
- Layout/AlignParameters:
21
+ Layout/ParameterAlignment:
23
22
  EnforcedStyle: with_first_parameter
24
23
 
25
24
  # See https://github.com/rubocop-hq/rubocop/issues/4222
@@ -0,0 +1 @@
1
+ 2.7.2
@@ -22,8 +22,7 @@ include:
22
22
 
23
23
  Examples of unacceptable behavior by participants include:
24
24
 
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
27
26
  * Trolling, insulting/derogatory comments, and personal or political attacks
28
27
  * Public or private harassment
29
28
  * Publishing others' private information, such as a physical or electronic
@@ -67,8 +66,8 @@ members of the project's leadership.
67
66
 
68
67
  ## Attribution
69
68
 
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
69
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
70
+ version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
72
71
 
73
72
  [homepage]: http://contributor-covenant.org
74
73
  [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -8,5 +8,5 @@ local_gemfile = "#{File.dirname(__FILE__)}/Gemfile.local"
8
8
  if File.exist?(local_gemfile)
9
9
  eval(File.read(local_gemfile)) # rubocop:disable Lint/Eval
10
10
  else
11
- gem 'activerecord', '~> 5.1.1'
11
+ gem 'activerecord', '>= 5.2.4', '< 6.2'
12
12
  end
@@ -1,194 +1,189 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metka (1.0.2)
4
+ metka (2.1.0)
5
5
  dry-configurable (>= 0.8)
6
- rails (>= 5.1)
6
+ rails (>= 5.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.1.7)
12
- actionpack (= 5.1.7)
11
+ actioncable (6.1.0)
12
+ actionpack (= 6.1.0)
13
+ activesupport (= 6.1.0)
13
14
  nio4r (~> 2.0)
14
- websocket-driver (~> 0.6.1)
15
- actionmailer (5.1.7)
16
- actionpack (= 5.1.7)
17
- actionview (= 5.1.7)
18
- activejob (= 5.1.7)
15
+ websocket-driver (>= 0.6.1)
16
+ actionmailbox (6.1.0)
17
+ actionpack (= 6.1.0)
18
+ activejob (= 6.1.0)
19
+ activerecord (= 6.1.0)
20
+ activestorage (= 6.1.0)
21
+ activesupport (= 6.1.0)
22
+ mail (>= 2.7.1)
23
+ actionmailer (6.1.0)
24
+ actionpack (= 6.1.0)
25
+ actionview (= 6.1.0)
26
+ activejob (= 6.1.0)
27
+ activesupport (= 6.1.0)
19
28
  mail (~> 2.5, >= 2.5.4)
20
29
  rails-dom-testing (~> 2.0)
21
- actionpack (5.1.7)
22
- actionview (= 5.1.7)
23
- activesupport (= 5.1.7)
24
- rack (~> 2.0)
30
+ actionpack (6.1.0)
31
+ actionview (= 6.1.0)
32
+ activesupport (= 6.1.0)
33
+ rack (~> 2.0, >= 2.0.9)
25
34
  rack-test (>= 0.6.3)
26
35
  rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.1.7)
29
- activesupport (= 5.1.7)
36
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
+ actiontext (6.1.0)
38
+ actionpack (= 6.1.0)
39
+ activerecord (= 6.1.0)
40
+ activestorage (= 6.1.0)
41
+ activesupport (= 6.1.0)
42
+ nokogiri (>= 1.8.5)
43
+ actionview (6.1.0)
44
+ activesupport (= 6.1.0)
30
45
  builder (~> 3.1)
31
46
  erubi (~> 1.4)
32
47
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.1.7)
35
- activesupport (= 5.1.7)
48
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
+ activejob (6.1.0)
50
+ activesupport (= 6.1.0)
36
51
  globalid (>= 0.3.6)
37
- activemodel (5.1.7)
38
- activesupport (= 5.1.7)
39
- activerecord (5.1.7)
40
- activemodel (= 5.1.7)
41
- activesupport (= 5.1.7)
42
- arel (~> 8.0)
43
- activesupport (5.1.7)
52
+ activemodel (6.1.0)
53
+ activesupport (= 6.1.0)
54
+ activerecord (6.1.0)
55
+ activemodel (= 6.1.0)
56
+ activesupport (= 6.1.0)
57
+ activestorage (6.1.0)
58
+ actionpack (= 6.1.0)
59
+ activejob (= 6.1.0)
60
+ activerecord (= 6.1.0)
61
+ activesupport (= 6.1.0)
62
+ marcel (~> 0.3.1)
63
+ mimemagic (~> 0.3.2)
64
+ activesupport (6.1.0)
44
65
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
- i18n (>= 0.7, < 2)
46
- minitest (~> 5.1)
47
- tzinfo (~> 1.1)
66
+ i18n (>= 1.6, < 2)
67
+ minitest (>= 5.1)
68
+ tzinfo (~> 2.0)
69
+ zeitwerk (~> 2.3)
48
70
  ammeter (1.1.4)
49
71
  activesupport (>= 3.0)
50
72
  railties (>= 3.0)
51
73
  rspec-rails (>= 2.2)
52
- arel (8.0.0)
53
- ast (2.4.0)
54
- builder (3.2.3)
55
- coderay (1.1.2)
56
- concurrent-ruby (1.1.6)
57
- crass (1.0.5)
58
- database_cleaner (1.7.0)
59
- diff-lcs (1.3)
60
- dry-configurable (0.11.5)
74
+ builder (3.2.4)
75
+ coderay (1.1.3)
76
+ concurrent-ruby (1.1.7)
77
+ crass (1.0.6)
78
+ database_cleaner (1.8.5)
79
+ diff-lcs (1.4.4)
80
+ dry-configurable (0.12.0)
61
81
  concurrent-ruby (~> 1.0)
62
- dry-core (~> 0.4, >= 0.4.7)
63
- dry-equalizer (~> 0.2)
64
- dry-core (0.4.9)
82
+ dry-core (~> 0.5, >= 0.5.0)
83
+ dry-core (0.5.0)
65
84
  concurrent-ruby (~> 1.0)
66
- dry-equalizer (0.3.0)
67
- erubi (1.9.0)
68
- faker (2.8.0)
69
- i18n (>= 1.6, < 1.8)
85
+ erubi (1.10.0)
86
+ faker (2.15.1)
87
+ i18n (>= 1.6, < 2)
70
88
  globalid (0.4.2)
71
89
  activesupport (>= 4.2.0)
72
- i18n (1.7.0)
90
+ i18n (1.8.5)
73
91
  concurrent-ruby (~> 1.0)
74
- jaro_winkler (1.5.4)
75
- jetrockets-standard (1.0.4)
76
- rubocop-rails (~> 2.3.2)
77
- rubocop-rspec (~> 1.35.0)
78
- standard (~> 0.1.4)
79
- loofah (2.4.0)
92
+ loofah (2.8.0)
80
93
  crass (~> 1.0.2)
81
94
  nokogiri (>= 1.5.9)
82
95
  mail (2.7.1)
83
96
  mini_mime (>= 0.1.1)
84
- method_source (0.9.2)
97
+ marcel (0.3.3)
98
+ mimemagic (~> 0.3.2)
99
+ method_source (1.0.0)
100
+ mimemagic (0.3.5)
85
101
  mini_mime (1.0.2)
86
102
  mini_portile2 (2.4.0)
87
- minitest (5.13.0)
88
- nio4r (2.5.2)
89
- nokogiri (1.10.8)
103
+ minitest (5.14.2)
104
+ nio4r (2.5.4)
105
+ nokogiri (1.10.10)
90
106
  mini_portile2 (~> 2.4.0)
91
- parallel (1.19.1)
92
- parser (2.6.5.0)
93
- ast (~> 2.4.0)
94
- pg (1.1.4)
95
- pry (0.12.2)
96
- coderay (~> 1.1.0)
97
- method_source (~> 0.9.0)
98
- rack (2.0.8)
107
+ pg (1.2.3)
108
+ pry (0.13.1)
109
+ coderay (~> 1.1)
110
+ method_source (~> 1.0)
111
+ rack (2.2.3)
99
112
  rack-test (1.1.0)
100
113
  rack (>= 1.0, < 3)
101
- rails (5.1.7)
102
- actioncable (= 5.1.7)
103
- actionmailer (= 5.1.7)
104
- actionpack (= 5.1.7)
105
- actionview (= 5.1.7)
106
- activejob (= 5.1.7)
107
- activemodel (= 5.1.7)
108
- activerecord (= 5.1.7)
109
- activesupport (= 5.1.7)
110
- bundler (>= 1.3.0)
111
- railties (= 5.1.7)
114
+ rails (6.1.0)
115
+ actioncable (= 6.1.0)
116
+ actionmailbox (= 6.1.0)
117
+ actionmailer (= 6.1.0)
118
+ actionpack (= 6.1.0)
119
+ actiontext (= 6.1.0)
120
+ actionview (= 6.1.0)
121
+ activejob (= 6.1.0)
122
+ activemodel (= 6.1.0)
123
+ activerecord (= 6.1.0)
124
+ activestorage (= 6.1.0)
125
+ activesupport (= 6.1.0)
126
+ bundler (>= 1.15.0)
127
+ railties (= 6.1.0)
112
128
  sprockets-rails (>= 2.0.0)
113
129
  rails-dom-testing (2.0.3)
114
130
  activesupport (>= 4.2.0)
115
131
  nokogiri (>= 1.6)
116
132
  rails-html-sanitizer (1.3.0)
117
133
  loofah (~> 2.3)
118
- railties (5.1.7)
119
- actionpack (= 5.1.7)
120
- activesupport (= 5.1.7)
134
+ railties (6.1.0)
135
+ actionpack (= 6.1.0)
136
+ activesupport (= 6.1.0)
121
137
  method_source
122
138
  rake (>= 0.8.7)
123
- thor (>= 0.18.1, < 2.0)
124
- rainbow (3.0.0)
125
- rake (13.0.1)
126
- rspec (3.9.0)
127
- rspec-core (~> 3.9.0)
128
- rspec-expectations (~> 3.9.0)
129
- rspec-mocks (~> 3.9.0)
130
- rspec-core (3.9.0)
131
- rspec-support (~> 3.9.0)
132
- rspec-expectations (3.9.0)
139
+ thor (~> 1.0)
140
+ rake (13.0.3)
141
+ rspec (3.10.0)
142
+ rspec-core (~> 3.10.0)
143
+ rspec-expectations (~> 3.10.0)
144
+ rspec-mocks (~> 3.10.0)
145
+ rspec-core (3.10.1)
146
+ rspec-support (~> 3.10.0)
147
+ rspec-expectations (3.10.1)
133
148
  diff-lcs (>= 1.2.0, < 2.0)
134
- rspec-support (~> 3.9.0)
135
- rspec-mocks (3.9.0)
149
+ rspec-support (~> 3.10.0)
150
+ rspec-mocks (3.10.0)
136
151
  diff-lcs (>= 1.2.0, < 2.0)
137
- rspec-support (~> 3.9.0)
138
- rspec-rails (3.9.0)
139
- actionpack (>= 3.0)
140
- activesupport (>= 3.0)
141
- railties (>= 3.0)
142
- rspec-core (~> 3.9.0)
143
- rspec-expectations (~> 3.9.0)
144
- rspec-mocks (~> 3.9.0)
145
- rspec-support (~> 3.9.0)
146
- rspec-support (3.9.0)
147
- rubocop (0.75.1)
148
- jaro_winkler (~> 1.5.1)
149
- parallel (~> 1.10)
150
- parser (>= 2.6)
151
- rainbow (>= 2.2.2, < 4.0)
152
- ruby-progressbar (~> 1.7)
153
- unicode-display_width (>= 1.4.0, < 1.7)
154
- rubocop-performance (1.5.1)
155
- rubocop (>= 0.71.0)
156
- rubocop-rails (2.3.2)
157
- rack (>= 1.1)
158
- rubocop (>= 0.72.0)
159
- rubocop-rspec (1.35.0)
160
- rubocop (>= 0.60.0)
161
- ruby-progressbar (1.10.1)
162
- sprockets (4.0.0)
152
+ rspec-support (~> 3.10.0)
153
+ rspec-rails (4.0.2)
154
+ actionpack (>= 4.2)
155
+ activesupport (>= 4.2)
156
+ railties (>= 4.2)
157
+ rspec-core (~> 3.10)
158
+ rspec-expectations (~> 3.10)
159
+ rspec-mocks (~> 3.10)
160
+ rspec-support (~> 3.10)
161
+ rspec-support (3.10.1)
162
+ sprockets (4.0.2)
163
163
  concurrent-ruby (~> 1.0)
164
164
  rack (> 1, < 3)
165
- sprockets-rails (3.2.1)
165
+ sprockets-rails (3.2.2)
166
166
  actionpack (>= 4.0)
167
167
  activesupport (>= 4.0)
168
168
  sprockets (>= 3.0.0)
169
- standard (0.1.6)
170
- rubocop (~> 0.75.0)
171
- rubocop-performance (~> 1.5.0)
172
- thor (0.20.3)
173
- thread_safe (0.3.6)
174
- timecop (0.9.1)
175
- tzinfo (1.2.5)
176
- thread_safe (~> 0.1)
177
- unicode-display_width (1.6.0)
178
- websocket-driver (0.6.5)
169
+ thor (1.0.1)
170
+ timecop (0.9.2)
171
+ tzinfo (2.0.4)
172
+ concurrent-ruby (~> 1.0)
173
+ websocket-driver (0.7.3)
179
174
  websocket-extensions (>= 0.1.0)
180
- websocket-extensions (0.1.4)
175
+ websocket-extensions (0.1.5)
176
+ zeitwerk (2.4.2)
181
177
 
182
178
  PLATFORMS
183
179
  ruby
184
180
 
185
181
  DEPENDENCIES
186
- activerecord (~> 5.1.1)
182
+ activerecord (>= 5.2.4, < 6.2)
187
183
  ammeter (>= 1.1)
188
184
  bundler (>= 1.3)
189
185
  database_cleaner (>= 1.7)
190
186
  faker (>= 2.8)
191
- jetrockets-standard (~> 1.0.1)
192
187
  metka!
193
188
  pg (>= 1.1)
194
189
  pry (>= 0.12.2)