i18n-migrations 2.0.5 → 2.0.7

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: 2f7ee2c5ac86c602a98d44d88d9beb2b56f5982521bfd0d4d786d40b0cf5a0ab
4
- data.tar.gz: 0a0104497bb427863c9b882ed4012d4987df4505aa31e940dcb95825db3553ea
3
+ metadata.gz: facb1509b9acea8a8384ff0d606f9c6342804558aed9323dc2154e95d2f4e7e0
4
+ data.tar.gz: 32b22a921f168c3860d3a9e8a7aa657bc02734e43066d335d485d2c265bcff91
5
5
  SHA512:
6
- metadata.gz: 9e424e65f15509548832954508ecf5f691be5d8375c5b22c6d026ee6e245aedf740913cfbc194efd05da112bb8fc540c973ceb1fe58ae91f21a0d69f826fc93e
7
- data.tar.gz: 0dcea94acec54b24bf839a0173f43cf67c7ce440ac9ad696bb08a553bc22ef408f90189fc4491567576ae6fe9afc1c389dddb7296d58e4bcaa430ed377b2acdc
6
+ metadata.gz: 9488e7b3ce118e4f1771537d13f479bce9bc4709ed427aceb3bb4ad8f449dad084e8946d60c9fb1a10a2c036730d7243d7fd9f0e16d4d73d13d75996cd8bf5c0
7
+ data.tar.gz: 40fafc68097b05dc5e2af21e7979756815c6d3583b13943cc6b0462d27708f9f2e4f70883bea0562574cf3593139b99dac6e58e53a584ed102df436fe5c0b0db
@@ -0,0 +1,17 @@
1
+ version: 2.1
2
+ orbs:
3
+ ruby: circleci/ruby@1.8
4
+ jobs:
5
+ rspec:
6
+ docker:
7
+ - image: cimg/ruby:3.1.2
8
+ steps:
9
+ - checkout
10
+ - ruby/install-deps
11
+ - ruby/rspec-test
12
+ - store_test_results:
13
+ path: spec/reports
14
+ workflows:
15
+ test_suite:
16
+ jobs:
17
+ - rspec
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/Gemfile.lock ADDED
@@ -0,0 +1,164 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ i18n-migrations (2.0.7)
5
+ activesupport
6
+ colorize
7
+ faraday
8
+ google_drive
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activesupport (6.1.7)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ i18n (>= 1.6, < 2)
16
+ minitest (>= 5.1)
17
+ tzinfo (~> 2.0)
18
+ zeitwerk (~> 2.3)
19
+ addressable (2.8.1)
20
+ public_suffix (>= 2.0.2, < 6.0)
21
+ autoparse (0.3.3)
22
+ addressable (>= 2.3.1)
23
+ extlib (>= 0.9.15)
24
+ multi_json (>= 1.0.0)
25
+ colorize (0.8.1)
26
+ concurrent-ruby (1.1.10)
27
+ connection_pool (2.2.5)
28
+ diff-lcs (1.5.0)
29
+ domain_name (0.5.20190701)
30
+ unf (>= 0.0.5, < 1.0.0)
31
+ extlib (0.9.16)
32
+ faraday (2.5.2)
33
+ faraday-net_http (>= 2.0, < 3.1)
34
+ ruby2_keywords (>= 0.0.4)
35
+ faraday-net_http (3.0.0)
36
+ google-api-client (0.7.1)
37
+ addressable (>= 2.3.2)
38
+ autoparse (>= 0.3.3)
39
+ extlib (>= 0.9.15)
40
+ faraday (>= 0.9.0)
41
+ jwt (>= 0.1.5)
42
+ launchy (>= 2.1.1)
43
+ multi_json (>= 1.0.0)
44
+ retriable (>= 1.4)
45
+ signet (>= 0.5.0)
46
+ uuidtools (>= 2.1.0)
47
+ google_drive (1.0.6)
48
+ google-api-client (>= 0.7.0, < 0.9)
49
+ nokogiri (>= 1.4.4, != 1.5.2, != 1.5.1)
50
+ oauth (>= 0.3.6)
51
+ oauth2 (>= 0.5.0)
52
+ hashie (5.0.0)
53
+ http-cookie (1.0.5)
54
+ domain_name (~> 0.5)
55
+ i18n (1.12.0)
56
+ concurrent-ruby (~> 1.0)
57
+ jwt (2.5.0)
58
+ launchy (2.5.0)
59
+ addressable (~> 2.7)
60
+ mail (2.7.1)
61
+ mini_mime (>= 0.1.1)
62
+ mechanize (2.8.5)
63
+ addressable (~> 2.8)
64
+ domain_name (~> 0.5, >= 0.5.20190701)
65
+ http-cookie (~> 1.0, >= 1.0.3)
66
+ mime-types (~> 3.0)
67
+ net-http-digest_auth (~> 1.4, >= 1.4.1)
68
+ net-http-persistent (>= 2.5.2, < 5.0.dev)
69
+ nokogiri (~> 1.11, >= 1.11.2)
70
+ rubyntlm (~> 0.6, >= 0.6.3)
71
+ webrick (~> 1.7)
72
+ webrobots (~> 0.1.2)
73
+ mime (0.4.4)
74
+ mime-types (3.4.1)
75
+ mime-types-data (~> 3.2015)
76
+ mime-types-data (3.2022.0105)
77
+ mini_mime (1.1.2)
78
+ mini_portile2 (2.8.0)
79
+ minitest (5.16.3)
80
+ multi_json (1.15.0)
81
+ multi_xml (0.6.0)
82
+ net-http-digest_auth (1.4.1)
83
+ net-http-persistent (4.0.1)
84
+ connection_pool (~> 2.2)
85
+ nokogiri (1.13.8)
86
+ mini_portile2 (~> 2.8.0)
87
+ racc (~> 1.4)
88
+ nokogiri (1.13.8-x86_64-linux)
89
+ racc (~> 1.4)
90
+ oauth (0.6.2)
91
+ snaky_hash (~> 2.0)
92
+ version_gem (~> 1.1)
93
+ oauth2 (2.0.8)
94
+ faraday (>= 0.17.3, < 3.0)
95
+ jwt (>= 1.0, < 3.0)
96
+ multi_xml (~> 0.5)
97
+ rack (>= 1.2, < 3)
98
+ snaky_hash (~> 2.0)
99
+ version_gem (~> 1.1)
100
+ public_suffix (5.0.0)
101
+ racc (1.6.0)
102
+ rack (2.2.4)
103
+ rake (10.5.0)
104
+ retriable (3.1.2)
105
+ rspec (3.11.0)
106
+ rspec-core (~> 3.11.0)
107
+ rspec-expectations (~> 3.11.0)
108
+ rspec-mocks (~> 3.11.0)
109
+ rspec-core (3.11.0)
110
+ rspec-support (~> 3.11.0)
111
+ rspec-expectations (3.11.1)
112
+ diff-lcs (>= 1.2.0, < 2.0)
113
+ rspec-support (~> 3.11.0)
114
+ rspec-mocks (3.11.1)
115
+ diff-lcs (>= 1.2.0, < 2.0)
116
+ rspec-support (~> 3.11.0)
117
+ rspec-support (3.11.1)
118
+ rspec_junit_formatter (0.5.1)
119
+ rspec-core (>= 2, < 4, != 2.12.0)
120
+ ruby-gmail (0.3.1)
121
+ mail (>= 2.2.1)
122
+ mime (>= 0.1)
123
+ shared-mime-info
124
+ ruby2_keywords (0.0.5)
125
+ rubyntlm (0.6.3)
126
+ shared-mime-info (0.2.5)
127
+ signet (0.17.0)
128
+ addressable (~> 2.8)
129
+ faraday (>= 0.17.5, < 3.a)
130
+ jwt (>= 1.5, < 3.0)
131
+ multi_json (~> 1.10)
132
+ snaky_hash (2.0.0)
133
+ hashie
134
+ version_gem (~> 1.1)
135
+ tzinfo (2.0.5)
136
+ concurrent-ruby (~> 1.0)
137
+ unf (0.1.4)
138
+ unf_ext
139
+ unf_ext (0.0.8.2)
140
+ uuidtools (2.2.0)
141
+ version_gem (1.1.0)
142
+ webrick (1.7.0)
143
+ webrobots (0.1.2)
144
+ zeitwerk (2.6.0)
145
+
146
+ PLATFORMS
147
+ ruby
148
+ x86_64-linux
149
+
150
+ DEPENDENCIES
151
+ activesupport
152
+ bundler (~> 2.3)
153
+ colorize
154
+ faraday
155
+ google_drive
156
+ i18n-migrations!
157
+ mechanize
158
+ rake (~> 10.0)
159
+ rspec
160
+ rspec_junit_formatter
161
+ ruby-gmail
162
+
163
+ BUNDLED WITH
164
+ 2.3.22
data/README.md CHANGED
@@ -27,11 +27,11 @@ And then execute:
27
27
  Or install it yourself as:
28
28
 
29
29
  $ gem install i18n-migrations
30
-
30
+
31
31
  From your project file, you'll want to run
32
32
 
33
33
  $ i18n-migrate setup
34
-
34
+
35
35
  This will create a config file you can edit.
36
36
 
37
37
  ## Usage
@@ -45,7 +45,7 @@ Let's imagine that your config file look like this:
45
45
  - es
46
46
  ..
47
47
 
48
- In your project file, you should then have all your english terms in ```config/locales/en.yml```
48
+ In your project file, you should then have all your English terms in ```config/locales/en.yml```
49
49
 
50
50
  You can:
51
51
 
@@ -20,10 +20,11 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = ["i18n-migrate"]
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.required_ruby_version = '~> 2.4'
23
+ spec.required_ruby_version = ['>= 2.4', '< 3.2']
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.9"
25
+ spec.add_development_dependency "bundler", "~> 2.3"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec_junit_formatter"
27
28
 
28
29
  spec.add_dependency 'google_drive'
29
30
  spec.add_dependency 'activesupport'
@@ -1,4 +1,3 @@
1
- require_relative './google_spreadsheet'
2
1
  require_relative '../metadata'
3
2
 
4
3
  module I18n
@@ -123,6 +123,13 @@ end
123
123
  &block)
124
124
  locale_names = name == 'all' ? all_locale_names : [name]
125
125
 
126
+ # do the main locale first, so we aren't updating it and reading it for other locales at the same time
127
+ if locale_names.include?(config.main_locale)
128
+ locale_names -= [config.main_locale]
129
+
130
+ report_locale_on_error(locale_for(config.main_locale), &block)
131
+ end
132
+
126
133
  if async
127
134
  puts "Using #{concurrency} concurrency"
128
135
  locale_names.each_slice(concurrency) do |some_locale_names|
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Migrations
3
- VERSION = "2.0.5"
3
+ VERSION = "2.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Lightsmith
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-28 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.9'
19
+ version: '2.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.9'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec_junit_formatter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: google_drive
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -103,13 +117,14 @@ executables:
103
117
  extensions: []
104
118
  extra_rdoc_files: []
105
119
  files:
120
+ - ".circleci/config.yml"
106
121
  - ".gitignore"
107
122
  - ".i18n-migrations.default.yml"
108
123
  - ".rspec"
109
124
  - ".ruby-version"
110
- - ".travis.yml"
111
125
  - CODE_OF_CONDUCT.md
112
126
  - Gemfile
127
+ - Gemfile.lock
113
128
  - LICENSE.txt
114
129
  - README.md
115
130
  - Rakefile
@@ -139,23 +154,26 @@ homepage: https://github.com/transparentclassroom/i18n-migrations
139
154
  licenses:
140
155
  - MIT
141
156
  metadata: {}
142
- post_install_message:
157
+ post_install_message:
143
158
  rdoc_options: []
144
159
  require_paths:
145
160
  - lib
146
161
  required_ruby_version: !ruby/object:Gem::Requirement
147
162
  requirements:
148
- - - "~>"
163
+ - - ">="
149
164
  - !ruby/object:Gem::Version
150
165
  version: '2.4'
166
+ - - "<"
167
+ - !ruby/object:Gem::Version
168
+ version: '3.2'
151
169
  required_rubygems_version: !ruby/object:Gem::Requirement
152
170
  requirements:
153
171
  - - ">="
154
172
  - !ruby/object:Gem::Version
155
173
  version: '0'
156
174
  requirements: []
157
- rubygems_version: 3.1.2
158
- signing_key:
175
+ rubygems_version: 3.0.9
176
+ signing_key:
159
177
  specification_version: 4
160
178
  summary: Migrations for doing i18n.
161
179
  test_files: []
data/.travis.yml DELETED
@@ -1,2 +0,0 @@
1
- language: ruby
2
- cache: bundler