birdspotting 0.1.2 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -2
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/Gemfile.lock +67 -74
- data/birdspotting.gemspec +13 -5
- data/lib/birdspotting/reorder_columns.rb +1 -1
- data/lib/birdspotting/schema_statements.rb +2 -2
- data/lib/birdspotting/version.rb +1 -1
- metadata +33 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e5fed6907be62754990aeb2dba4b4ac37967db2d4a4bed37e18238f0d64cfeb
|
4
|
+
data.tar.gz: b8e920220eeb8fe97556e858a39ac66b3a63620182bf356cad09797b03b4a481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfbf4d668a6441eb72e604c975c1829ee2a3ec183e861e9ad4abed432b43a2f7ada7b06bf647e442684f70a39241d5ee1e40d12443c72869d82e8702d662acb1
|
7
|
+
data.tar.gz: b17d41ace5806241252335edd7a84ddc0b3c485b740f3206fa801cb0366ba13d5d41ab38f2bca0fe667c4690eb9a2473fc0d5e82dee63dee00925cce526d8a30
|
data/.circleci/config.yml
CHANGED
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.7.4
|
data/Gemfile.lock
CHANGED
@@ -1,38 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
birdspotting (0.1.
|
5
|
-
activerecord (
|
4
|
+
birdspotting (0.1.5)
|
5
|
+
activerecord (>= 6.0, < 7.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (
|
11
|
-
activesupport (=
|
12
|
-
activerecord (
|
13
|
-
activemodel (=
|
14
|
-
activesupport (=
|
15
|
-
|
16
|
-
activesupport (5.2.1)
|
10
|
+
activemodel (6.1.6)
|
11
|
+
activesupport (= 6.1.6)
|
12
|
+
activerecord (6.1.6)
|
13
|
+
activemodel (= 6.1.6)
|
14
|
+
activesupport (= 6.1.6)
|
15
|
+
activesupport (6.1.6)
|
17
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (>=
|
19
|
-
minitest (
|
20
|
-
tzinfo (~>
|
21
|
-
|
17
|
+
i18n (>= 1.6, < 2)
|
18
|
+
minitest (>= 5.1)
|
19
|
+
tzinfo (~> 2.0)
|
20
|
+
zeitwerk (~> 2.3)
|
22
21
|
ast (2.4.0)
|
23
|
-
coderay (1.1.
|
24
|
-
concurrent-ruby (1.
|
25
|
-
diff-lcs (1.
|
26
|
-
docile (1.3.
|
27
|
-
ffi (1.
|
28
|
-
formatador (
|
29
|
-
guard (2.
|
22
|
+
coderay (1.1.3)
|
23
|
+
concurrent-ruby (1.1.10)
|
24
|
+
diff-lcs (1.5.0)
|
25
|
+
docile (1.3.2)
|
26
|
+
ffi (1.15.5)
|
27
|
+
formatador (1.1.0)
|
28
|
+
guard (2.18.0)
|
30
29
|
formatador (>= 0.2.4)
|
31
30
|
listen (>= 2.7, < 4.0)
|
32
31
|
lumberjack (>= 1.0.12, < 2.0)
|
33
32
|
nenv (~> 0.1)
|
34
33
|
notiffany (~> 0.0)
|
35
|
-
pry (>= 0.
|
34
|
+
pry (>= 0.13.0)
|
36
35
|
shellany (~> 0.0)
|
37
36
|
thor (>= 0.18.1)
|
38
37
|
guard-compat (1.2.1)
|
@@ -43,86 +42,80 @@ GEM
|
|
43
42
|
guard-rubocop (1.3.0)
|
44
43
|
guard (~> 2.0)
|
45
44
|
rubocop (~> 0.20)
|
46
|
-
i18n (1.
|
45
|
+
i18n (1.10.0)
|
47
46
|
concurrent-ruby (~> 1.0)
|
48
|
-
jaro_winkler (1.5.
|
49
|
-
|
50
|
-
|
51
|
-
rb-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
method_source (0.9.0)
|
56
|
-
minitest (5.11.3)
|
47
|
+
jaro_winkler (1.5.4)
|
48
|
+
listen (3.7.1)
|
49
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
50
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
51
|
+
lumberjack (1.2.8)
|
52
|
+
method_source (1.0.0)
|
53
|
+
minitest (5.15.0)
|
57
54
|
nenv (0.3.0)
|
58
|
-
notiffany (0.1.
|
55
|
+
notiffany (0.1.3)
|
59
56
|
nenv (~> 0.1)
|
60
57
|
shellany (~> 0.0)
|
61
|
-
parallel (1.
|
62
|
-
parser (2.
|
58
|
+
parallel (1.19.1)
|
59
|
+
parser (2.7.0.2)
|
63
60
|
ast (~> 2.4.0)
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
method_source (~> 0.9.0)
|
61
|
+
pry (0.14.1)
|
62
|
+
coderay (~> 1.1)
|
63
|
+
method_source (~> 1.0)
|
68
64
|
rainbow (3.0.0)
|
69
|
-
rake (
|
70
|
-
rb-fsevent (0.
|
71
|
-
rb-inotify (0.
|
72
|
-
ffi (
|
73
|
-
rspec (3.
|
74
|
-
rspec-core (~> 3.
|
75
|
-
rspec-expectations (~> 3.
|
76
|
-
rspec-mocks (~> 3.
|
77
|
-
rspec-core (3.
|
78
|
-
rspec-support (~> 3.
|
79
|
-
rspec-expectations (3.
|
65
|
+
rake (13.0.3)
|
66
|
+
rb-fsevent (0.11.1)
|
67
|
+
rb-inotify (0.10.1)
|
68
|
+
ffi (~> 1.0)
|
69
|
+
rspec (3.11.0)
|
70
|
+
rspec-core (~> 3.11.0)
|
71
|
+
rspec-expectations (~> 3.11.0)
|
72
|
+
rspec-mocks (~> 3.11.0)
|
73
|
+
rspec-core (3.11.0)
|
74
|
+
rspec-support (~> 3.11.0)
|
75
|
+
rspec-expectations (3.11.0)
|
80
76
|
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
-
rspec-support (~> 3.
|
82
|
-
rspec-mocks (3.
|
77
|
+
rspec-support (~> 3.11.0)
|
78
|
+
rspec-mocks (3.11.1)
|
83
79
|
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
-
rspec-support (~> 3.
|
85
|
-
rspec-support (3.
|
80
|
+
rspec-support (~> 3.11.0)
|
81
|
+
rspec-support (3.11.0)
|
86
82
|
rspec_junit_formatter (0.4.1)
|
87
83
|
rspec-core (>= 2, < 4, != 2.12.0)
|
88
|
-
rubocop (0.
|
84
|
+
rubocop (0.79.0)
|
89
85
|
jaro_winkler (~> 1.5.1)
|
90
86
|
parallel (~> 1.10)
|
91
|
-
parser (>= 2.
|
92
|
-
powerpack (~> 0.1)
|
87
|
+
parser (>= 2.7.0.1)
|
93
88
|
rainbow (>= 2.2.2, < 4.0)
|
94
89
|
ruby-progressbar (~> 1.7)
|
95
|
-
unicode-display_width (
|
96
|
-
rubocop-rspec (1.
|
97
|
-
rubocop (>= 0.
|
98
|
-
ruby-progressbar (1.10.
|
99
|
-
ruby_dep (1.5.0)
|
90
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
91
|
+
rubocop-rspec (1.38.0)
|
92
|
+
rubocop (>= 0.68.1)
|
93
|
+
ruby-progressbar (1.10.1)
|
100
94
|
shellany (0.0.1)
|
101
|
-
simplecov (0.
|
95
|
+
simplecov (0.18.1)
|
102
96
|
docile (~> 1.1)
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
unicode-display_width (1.4.0)
|
97
|
+
simplecov-html (~> 0.11.0)
|
98
|
+
simplecov-html (0.11.0)
|
99
|
+
thor (1.2.1)
|
100
|
+
tzinfo (2.0.4)
|
101
|
+
concurrent-ruby (~> 1.0)
|
102
|
+
unicode-display_width (1.6.1)
|
103
|
+
zeitwerk (2.5.4)
|
111
104
|
|
112
105
|
PLATFORMS
|
113
106
|
ruby
|
114
107
|
|
115
108
|
DEPENDENCIES
|
116
109
|
birdspotting!
|
117
|
-
bundler
|
110
|
+
bundler
|
118
111
|
guard-rspec
|
119
112
|
guard-rubocop
|
120
|
-
rake
|
121
|
-
rspec
|
113
|
+
rake
|
114
|
+
rspec
|
122
115
|
rspec_junit_formatter
|
123
116
|
rubocop
|
124
117
|
rubocop-rspec
|
125
118
|
simplecov
|
126
119
|
|
127
120
|
BUNDLED WITH
|
128
|
-
|
121
|
+
2.3.8
|
data/birdspotting.gemspec
CHANGED
@@ -5,7 +5,15 @@ require "birdspotting/version"
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "birdspotting"
|
7
7
|
spec.version = Birdspotting::VERSION
|
8
|
-
spec.authors = [
|
8
|
+
spec.authors = [
|
9
|
+
"Drivy",
|
10
|
+
"Howard Wilson",
|
11
|
+
"David Bourguignon",
|
12
|
+
"Alice Morin",
|
13
|
+
"Laurent Humez",
|
14
|
+
"Rémy Hannequin",
|
15
|
+
"Hugo Dornbierer",
|
16
|
+
]
|
9
17
|
spec.email = ["oss@drivy.com"]
|
10
18
|
|
11
19
|
spec.summary = "Rails migration helpers."
|
@@ -19,15 +27,15 @@ Gem::Specification.new do |spec|
|
|
19
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
28
|
spec.require_paths = ["lib"]
|
21
29
|
|
22
|
-
spec.add_development_dependency "bundler"
|
30
|
+
spec.add_development_dependency "bundler"
|
23
31
|
spec.add_development_dependency "guard-rspec"
|
24
32
|
spec.add_development_dependency "guard-rubocop"
|
25
|
-
spec.add_development_dependency "rake"
|
26
|
-
spec.add_development_dependency "rspec"
|
33
|
+
spec.add_development_dependency "rake"
|
34
|
+
spec.add_development_dependency "rspec"
|
27
35
|
spec.add_development_dependency "rspec_junit_formatter"
|
28
36
|
spec.add_development_dependency "rubocop"
|
29
37
|
spec.add_development_dependency "rubocop-rspec"
|
30
38
|
spec.add_development_dependency "simplecov"
|
31
39
|
|
32
|
-
spec.add_runtime_dependency "activerecord", "
|
40
|
+
spec.add_runtime_dependency "activerecord", ">= 6.0", "< 7.0"
|
33
41
|
end
|
@@ -35,7 +35,7 @@ module Birdspotting::ReorderColumns
|
|
35
35
|
.connection
|
36
36
|
.execute("SHOW CREATE TABLE `#{table_name}`")
|
37
37
|
.to_h[table_name.to_s]
|
38
|
-
column_definitions = table_definition.lines.map(&:strip).select { |l| l.
|
38
|
+
column_definitions = table_definition.lines.map(&:strip).select { |l| l.start_with?("`") }
|
39
39
|
|
40
40
|
Hash[column_definitions.map { |d| d.match(/`(.*)`\s*(.+?)(,|)\z/)[1, 2] }]
|
41
41
|
end
|
@@ -42,9 +42,9 @@ module Birdspotting::SchemaStatements
|
|
42
42
|
return unless Birdspotting.configuration.encoding_check?
|
43
43
|
return unless %i[text string].include?(type)
|
44
44
|
|
45
|
-
|
45
|
+
warn sprintf(
|
46
46
|
Birdspotting.configuration.encoding_check_message,
|
47
|
-
type:
|
47
|
+
type: type,
|
48
48
|
column_name: column_name
|
49
49
|
)
|
50
50
|
end
|
data/lib/birdspotting/version.rb
CHANGED
metadata
CHANGED
@@ -1,31 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: birdspotting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drivy
|
8
8
|
- Howard Wilson
|
9
9
|
- David Bourguignon
|
10
|
-
|
10
|
+
- Alice Morin
|
11
|
+
- Laurent Humez
|
12
|
+
- Rémy Hannequin
|
13
|
+
- Hugo Dornbierer
|
14
|
+
autorequire:
|
11
15
|
bindir: exe
|
12
16
|
cert_chain: []
|
13
|
-
date:
|
17
|
+
date: 2022-05-24 00:00:00.000000000 Z
|
14
18
|
dependencies:
|
15
19
|
- !ruby/object:Gem::Dependency
|
16
20
|
name: bundler
|
17
21
|
requirement: !ruby/object:Gem::Requirement
|
18
22
|
requirements:
|
19
|
-
- - "
|
23
|
+
- - ">="
|
20
24
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
25
|
+
version: '0'
|
22
26
|
type: :development
|
23
27
|
prerelease: false
|
24
28
|
version_requirements: !ruby/object:Gem::Requirement
|
25
29
|
requirements:
|
26
|
-
- - "
|
30
|
+
- - ">="
|
27
31
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
32
|
+
version: '0'
|
29
33
|
- !ruby/object:Gem::Dependency
|
30
34
|
name: guard-rspec
|
31
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,30 +62,30 @@ dependencies:
|
|
58
62
|
name: rake
|
59
63
|
requirement: !ruby/object:Gem::Requirement
|
60
64
|
requirements:
|
61
|
-
- - "
|
65
|
+
- - ">="
|
62
66
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
67
|
+
version: '0'
|
64
68
|
type: :development
|
65
69
|
prerelease: false
|
66
70
|
version_requirements: !ruby/object:Gem::Requirement
|
67
71
|
requirements:
|
68
|
-
- - "
|
72
|
+
- - ">="
|
69
73
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
74
|
+
version: '0'
|
71
75
|
- !ruby/object:Gem::Dependency
|
72
76
|
name: rspec
|
73
77
|
requirement: !ruby/object:Gem::Requirement
|
74
78
|
requirements:
|
75
|
-
- - "
|
79
|
+
- - ">="
|
76
80
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
81
|
+
version: '0'
|
78
82
|
type: :development
|
79
83
|
prerelease: false
|
80
84
|
version_requirements: !ruby/object:Gem::Requirement
|
81
85
|
requirements:
|
82
|
-
- - "
|
86
|
+
- - ">="
|
83
87
|
- !ruby/object:Gem::Version
|
84
|
-
version: '
|
88
|
+
version: '0'
|
85
89
|
- !ruby/object:Gem::Dependency
|
86
90
|
name: rspec_junit_formatter
|
87
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,17 +146,23 @@ dependencies:
|
|
142
146
|
name: activerecord
|
143
147
|
requirement: !ruby/object:Gem::Requirement
|
144
148
|
requirements:
|
145
|
-
- - "
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '6.0'
|
152
|
+
- - "<"
|
146
153
|
- !ruby/object:Gem::Version
|
147
|
-
version: '
|
154
|
+
version: '7.0'
|
148
155
|
type: :runtime
|
149
156
|
prerelease: false
|
150
157
|
version_requirements: !ruby/object:Gem::Requirement
|
151
158
|
requirements:
|
152
|
-
- - "
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '6.0'
|
162
|
+
- - "<"
|
153
163
|
- !ruby/object:Gem::Version
|
154
|
-
version: '
|
155
|
-
description:
|
164
|
+
version: '7.0'
|
165
|
+
description:
|
156
166
|
email:
|
157
167
|
- oss@drivy.com
|
158
168
|
executables: []
|
@@ -184,7 +194,7 @@ homepage: https://github.com/drivy/birdspotting
|
|
184
194
|
licenses:
|
185
195
|
- MIT
|
186
196
|
metadata: {}
|
187
|
-
post_install_message:
|
197
|
+
post_install_message:
|
188
198
|
rdoc_options: []
|
189
199
|
require_paths:
|
190
200
|
- lib
|
@@ -199,9 +209,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
209
|
- !ruby/object:Gem::Version
|
200
210
|
version: '0'
|
201
211
|
requirements: []
|
202
|
-
|
203
|
-
|
204
|
-
signing_key:
|
212
|
+
rubygems_version: 3.1.6
|
213
|
+
signing_key:
|
205
214
|
specification_version: 4
|
206
215
|
summary: Rails migration helpers.
|
207
216
|
test_files: []
|