pronto-rails_migrations_annotated 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6065b7c38e7407e8fde0f6e9fd5d632a4d0de62d9542414e478b45ca0c920ada
4
- data.tar.gz: ddf96cc0d415652fcec8c72bef50099dae13641e6c3f3fc30acb476d6e56904c
3
+ metadata.gz: '0059dc87d72506d7f19442b67a4f1676808fb6c2b51ae4b96b8ff71ad5c685d4'
4
+ data.tar.gz: 1aab7edb7c1330d1bd109cd30f072dbd8f6b50c951e4cfe3aa92ac7591b0f7bb
5
5
  SHA512:
6
- metadata.gz: 8b0e1ae9348893b19dcd636fb8a981b265a0c6e860c18b0136a2554573fe397fe8d922f539fc7a3a44282e4faf47fcf8c26545dc369e3a797d25c5e10954e152
7
- data.tar.gz: 2e77fca5880a6823506c68772754ee1306685544d2311b25b04398c73a9e2862dd8112ec293a693432ea349633d2207de3c3609023f86ff31c324be2444786f0
6
+ metadata.gz: 2756210f07ff1f7f121484e9010a3aa722640fd80963da0754fa1c6de4d65e17eddbd80cbb05f29397735705f3f703e7d059bbcd69354190ca0123e37ce081d7
7
+ data.tar.gz: 449dae8b1aed2930b5dfa73f56c3d09e1b2dc1eddfc98da560388570a543758fd79f98aca294b8bfc8837882d71b97948a7eb968a112f1c16f0842e2aa8882a1
data/Gemfile CHANGED
@@ -13,3 +13,5 @@ gem "rubocop", "~> 1.21"
13
13
  gem "rubocop-performance"
14
14
  gem "rubocop-rake"
15
15
  gem "rubocop-rspec"
16
+
17
+ gem 'base64' # fix pronto dependency
data/Gemfile.lock CHANGED
@@ -1,96 +1,120 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pronto-rails_migrations_annotated (0.0.7)
4
+ pronto-rails_migrations_annotated (0.0.8)
5
5
  pronto (~> 0.11)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- addressable (2.8.6)
11
- public_suffix (>= 2.0.2, < 6.0)
12
- ast (2.4.2)
13
- diff-lcs (1.4.4)
14
- faraday (2.9.0)
15
- faraday-net_http (>= 2.0, < 3.2)
16
- faraday-net_http (3.1.0)
17
- net-http
18
- gitlab (4.19.0)
10
+ addressable (2.8.7)
11
+ public_suffix (>= 2.0.2, < 7.0)
12
+ ast (2.4.3)
13
+ base64 (0.3.0)
14
+ bigdecimal (3.2.2)
15
+ csv (3.3.5)
16
+ diff-lcs (1.6.2)
17
+ faraday (2.13.3)
18
+ faraday-net_http (>= 2.0, < 3.5)
19
+ json
20
+ logger
21
+ faraday-net_http (3.4.1)
22
+ net-http (>= 0.5.0)
23
+ gitlab (4.20.1)
19
24
  httparty (~> 0.20)
20
25
  terminal-table (>= 1.5.1)
21
- httparty (0.21.0)
26
+ httparty (0.23.1)
27
+ csv
22
28
  mini_mime (>= 1.0.0)
23
29
  multi_xml (>= 0.5.2)
30
+ json (2.13.0)
31
+ language_server-protocol (3.17.0.5)
32
+ lint_roller (1.1.0)
33
+ logger (1.7.0)
24
34
  mini_mime (1.1.5)
25
- multi_xml (0.6.0)
26
- net-http (0.4.1)
35
+ multi_xml (0.7.2)
36
+ bigdecimal (~> 3.1)
37
+ net-http (0.6.0)
27
38
  uri
28
- octokit (7.2.0)
39
+ octokit (10.0.0)
29
40
  faraday (>= 1, < 3)
30
41
  sawyer (~> 0.9)
31
- parallel (1.21.0)
32
- parser (3.0.2.0)
42
+ parallel (1.27.0)
43
+ parser (3.3.8.0)
33
44
  ast (~> 2.4.1)
34
- pronto (0.11.2)
45
+ racc
46
+ prism (1.4.0)
47
+ pronto (0.11.4)
35
48
  gitlab (>= 4.4.0, < 5.0)
36
49
  httparty (>= 0.13.7, < 1.0)
37
- octokit (>= 4.7.0, < 8.0)
50
+ octokit (>= 4.7.0, < 11.0)
38
51
  rainbow (>= 2.2, < 4.0)
39
52
  rexml (>= 3.2.5, < 4.0)
40
53
  rugged (>= 0.23.0, < 2.0)
41
54
  thor (>= 0.20.3, < 2.0)
42
- public_suffix (5.0.5)
43
- rainbow (3.0.0)
44
- rake (13.0.6)
45
- regexp_parser (2.1.1)
46
- rexml (3.2.5)
47
- rspec (3.10.0)
48
- rspec-core (~> 3.10.0)
49
- rspec-expectations (~> 3.10.0)
50
- rspec-mocks (~> 3.10.0)
51
- rspec-core (3.10.1)
52
- rspec-support (~> 3.10.0)
53
- rspec-expectations (3.10.1)
55
+ public_suffix (6.0.2)
56
+ racc (1.8.1)
57
+ rainbow (3.1.1)
58
+ rake (13.3.0)
59
+ regexp_parser (2.10.0)
60
+ rexml (3.4.1)
61
+ rspec (3.13.1)
62
+ rspec-core (~> 3.13.0)
63
+ rspec-expectations (~> 3.13.0)
64
+ rspec-mocks (~> 3.13.0)
65
+ rspec-core (3.13.5)
66
+ rspec-support (~> 3.13.0)
67
+ rspec-expectations (3.13.5)
54
68
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.10.0)
56
- rspec-mocks (3.10.2)
69
+ rspec-support (~> 3.13.0)
70
+ rspec-mocks (3.13.5)
57
71
  diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.10.0)
59
- rspec-support (3.10.3)
60
- rubocop (1.23.0)
72
+ rspec-support (~> 3.13.0)
73
+ rspec-support (3.13.4)
74
+ rubocop (1.78.0)
75
+ json (~> 2.3)
76
+ language_server-protocol (~> 3.17.0.2)
77
+ lint_roller (~> 1.1.0)
61
78
  parallel (~> 1.10)
62
- parser (>= 3.0.0.0)
79
+ parser (>= 3.3.0.2)
63
80
  rainbow (>= 2.2.2, < 4.0)
64
- regexp_parser (>= 1.8, < 3.0)
65
- rexml
66
- rubocop-ast (>= 1.12.0, < 2.0)
81
+ regexp_parser (>= 2.9.3, < 3.0)
82
+ rubocop-ast (>= 1.45.1, < 2.0)
67
83
  ruby-progressbar (~> 1.7)
68
- unicode-display_width (>= 1.4.0, < 3.0)
69
- rubocop-ast (1.13.0)
70
- parser (>= 3.0.1.1)
71
- rubocop-performance (1.12.0)
72
- rubocop (>= 1.7.0, < 2.0)
73
- rubocop-ast (>= 0.4.0)
74
- rubocop-rake (0.6.0)
75
- rubocop (~> 1.0)
76
- rubocop-rspec (2.6.0)
77
- rubocop (~> 1.19)
78
- ruby-progressbar (1.11.0)
79
- rugged (1.7.1)
84
+ unicode-display_width (>= 2.4.0, < 4.0)
85
+ rubocop-ast (1.46.0)
86
+ parser (>= 3.3.7.2)
87
+ prism (~> 1.4)
88
+ rubocop-performance (1.25.0)
89
+ lint_roller (~> 1.1)
90
+ rubocop (>= 1.75.0, < 2.0)
91
+ rubocop-ast (>= 1.38.0, < 2.0)
92
+ rubocop-rake (0.7.1)
93
+ lint_roller (~> 1.1)
94
+ rubocop (>= 1.72.1)
95
+ rubocop-rspec (3.6.0)
96
+ lint_roller (~> 1.1)
97
+ rubocop (~> 1.72, >= 1.72.1)
98
+ ruby-progressbar (1.13.0)
99
+ rugged (1.9.0)
80
100
  sawyer (0.9.2)
81
101
  addressable (>= 2.3.5)
82
102
  faraday (>= 0.17.3, < 3)
83
- terminal-table (3.0.2)
84
- unicode-display_width (>= 1.1.1, < 3)
85
- thor (1.3.1)
86
- unicode-display_width (1.8.0)
87
- uri (0.13.0)
103
+ terminal-table (4.0.0)
104
+ unicode-display_width (>= 1.1.1, < 4)
105
+ thor (1.4.0)
106
+ unicode-display_width (3.1.4)
107
+ unicode-emoji (~> 4.0, >= 4.0.4)
108
+ unicode-emoji (4.0.4)
109
+ uri (1.0.3)
88
110
 
89
111
  PLATFORMS
90
112
  arm64-darwin-22
113
+ arm64-darwin-24
91
114
  x86_64-darwin-21
92
115
 
93
116
  DEPENDENCIES
117
+ base64
94
118
  pronto-rails_migrations_annotated!
95
119
  rake (~> 13.0)
96
120
  rspec (~> 3.0)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Pronto
4
4
  module RailsMigrationsAnnotatedVersion
5
- VERSION = "0.0.7"
5
+ VERSION = "0.0.8"
6
6
  end
7
7
  end
@@ -186,11 +186,10 @@ module Pronto
186
186
 
187
187
  def check_structure_ending(structure_file_lines)
188
188
  return if structure_patches.none?
189
- return if structure_file_lines.last(2) == %W[\n \n] && structure_file_lines[-3] != "\n"
190
- return if structure_file_lines.last.match?(/\A\s*[^\s]+\s*\n/)
189
+ return if structure_file_lines.last.end_with?("\n")
191
190
 
192
191
  add_message_at_patch(structure_patches.last,
193
- "structure.sql must end with a newline or 2 empty lines", line: :last)
192
+ "structure.sql must end with newline", line: :last)
194
193
  end
195
194
 
196
195
  def gitignored?(path)
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-rails_migrations_annotated
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasily Fedoseyev
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-07-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: pronto
@@ -49,7 +48,6 @@ licenses:
49
48
  metadata:
50
49
  homepage_uri: https://github.com/Vasfed/pronto-rails_migrations_annotated
51
50
  source_code_uri: https://github.com/Vasfed/pronto-rails_migrations_annotated
52
- post_install_message:
53
51
  rdoc_options: []
54
52
  require_paths:
55
53
  - lib
@@ -64,8 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
62
  - !ruby/object:Gem::Version
65
63
  version: '0'
66
64
  requirements: []
67
- rubygems_version: 3.4.10
68
- signing_key:
65
+ rubygems_version: 3.6.7
69
66
  specification_version: 4
70
67
  summary: Pronto runner to check rails migrations to be separate from other code, but
71
68
  allow annotations