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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edc05e2758e3747ad424a36f97920ba9cc391af0c455e8d64bcf0ef7c10fa1f4
4
- data.tar.gz: 5a387045ebdff1edf2ee26eed149637025cb8c116c2777d6a42de3c47d98d493
3
+ metadata.gz: 5e5fed6907be62754990aeb2dba4b4ac37967db2d4a4bed37e18238f0d64cfeb
4
+ data.tar.gz: b8e920220eeb8fe97556e858a39ac66b3a63620182bf356cad09797b03b4a481
5
5
  SHA512:
6
- metadata.gz: 5a0acd02e5ddea2c8a8b71348ba12de111a0e886cc2b4c2accd9cff3ced575fb15fa3a32f57fc8ddb2ade088fd30698c03cf43aa2d420d486be845d6b14c6df4
7
- data.tar.gz: 9aadba08caf2bccf9466654e08eb491a62f868e273f60288f1a5db24169ce934a84b6f190bebc367f881904786e44df12f83c675feb84baf46d7dad5ba6c4228
6
+ metadata.gz: dfbf4d668a6441eb72e604c975c1829ee2a3ec183e861e9ad4abed432b43a2f7ada7b06bf647e442684f70a39241d5ee1e40d12443c72869d82e8702d662acb1
7
+ data.tar.gz: b17d41ace5806241252335edd7a84ddc0b3c485b740f3206fa801cb0366ba13d5d41ab38f2bca0fe667c4690eb9a2473fc0d5e82dee63dee00925cce526d8a30
data/.circleci/config.yml CHANGED
@@ -16,7 +16,7 @@ version: 2
16
16
  jobs:
17
17
  test:
18
18
  docker:
19
- - image: circleci/ruby:2.4-jessie-node
19
+ - image: cimg/ruby:2.7.4
20
20
  steps:
21
21
  - checkout
22
22
  - *step_restore_vendor_cache
@@ -40,4 +40,4 @@ workflows:
40
40
 
41
41
  test:
42
42
  jobs:
43
- - test
43
+ - test
data/.rubocop.yml CHANGED
@@ -9,7 +9,7 @@ AllCops:
9
9
  # Opinionated cops
10
10
  #
11
11
 
12
- Layout/IndentHash:
12
+ Layout/FirstHashElementIndentation:
13
13
  EnforcedStyle: consistent
14
14
 
15
15
  Metrics/AbcSize:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.4.4
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.2)
5
- activerecord (~> 5.0)
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 (5.2.1)
11
- activesupport (= 5.2.1)
12
- activerecord (5.2.1)
13
- activemodel (= 5.2.1)
14
- activesupport (= 5.2.1)
15
- arel (>= 9.0)
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 (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- arel (9.0.0)
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.2)
24
- concurrent-ruby (1.0.5)
25
- diff-lcs (1.3)
26
- docile (1.3.1)
27
- ffi (1.9.25)
28
- formatador (0.2.5)
29
- guard (2.14.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.9.12)
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.1.0)
45
+ i18n (1.10.0)
47
46
  concurrent-ruby (~> 1.0)
48
- jaro_winkler (1.5.1)
49
- json (2.1.0)
50
- listen (3.1.5)
51
- rb-fsevent (~> 0.9, >= 0.9.4)
52
- rb-inotify (~> 0.9, >= 0.9.7)
53
- ruby_dep (~> 1.2)
54
- lumberjack (1.0.13)
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.1)
55
+ notiffany (0.1.3)
59
56
  nenv (~> 0.1)
60
57
  shellany (~> 0.0)
61
- parallel (1.12.1)
62
- parser (2.5.1.2)
58
+ parallel (1.19.1)
59
+ parser (2.7.0.2)
63
60
  ast (~> 2.4.0)
64
- powerpack (0.1.2)
65
- pry (0.11.3)
66
- coderay (~> 1.1.0)
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 (10.5.0)
70
- rb-fsevent (0.10.3)
71
- rb-inotify (0.9.10)
72
- ffi (>= 0.5.0, < 2)
73
- rspec (3.8.0)
74
- rspec-core (~> 3.8.0)
75
- rspec-expectations (~> 3.8.0)
76
- rspec-mocks (~> 3.8.0)
77
- rspec-core (3.8.0)
78
- rspec-support (~> 3.8.0)
79
- rspec-expectations (3.8.1)
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.8.0)
82
- rspec-mocks (3.8.0)
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.8.0)
85
- rspec-support (3.8.0)
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.59.0)
84
+ rubocop (0.79.0)
89
85
  jaro_winkler (~> 1.5.1)
90
86
  parallel (~> 1.10)
91
- parser (>= 2.5, != 2.5.1.1)
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 (~> 1.0, >= 1.0.1)
96
- rubocop-rspec (1.29.1)
97
- rubocop (>= 0.58.0)
98
- ruby-progressbar (1.10.0)
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.16.1)
95
+ simplecov (0.18.1)
102
96
  docile (~> 1.1)
103
- json (>= 1.8, < 3)
104
- simplecov-html (~> 0.10.0)
105
- simplecov-html (0.10.2)
106
- thor (0.20.0)
107
- thread_safe (0.3.6)
108
- tzinfo (1.2.5)
109
- thread_safe (~> 0.1)
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 (~> 1.16)
110
+ bundler
118
111
  guard-rspec
119
112
  guard-rubocop
120
- rake (~> 10.0)
121
- rspec (~> 3.0)
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
- 1.16.1
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 = ["Drivy", "Howard Wilson", "David Bourguignon"]
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", "~> 1.16"
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", "~> 10.0"
26
- spec.add_development_dependency "rspec", "~> 3.0"
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", "~> 5.0"
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.starts_with?("`") }
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
- STDERR.puts sprintf(
45
+ warn sprintf(
46
46
  Birdspotting.configuration.encoding_check_message,
47
- type: type,
47
+ type: type,
48
48
  column_name: column_name
49
49
  )
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module Birdspotting
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.5".freeze
3
3
  end
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.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drivy
8
8
  - Howard Wilson
9
9
  - David Bourguignon
10
- autorequire:
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: 2018-09-19 00:00:00.000000000 Z
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: '1.16'
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: '1.16'
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: '10.0'
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: '10.0'
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: '3.0'
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: '3.0'
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: '5.0'
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: '5.0'
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
- rubyforge_project:
203
- rubygems_version: 2.7.6
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: []