solidus_i18n 1.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +35 -0
  3. data/.gem_release.yml +5 -0
  4. data/.github/stale.yml +17 -0
  5. data/.gitignore +4 -8
  6. data/.hound.yml +1 -1
  7. data/.rspec +2 -0
  8. data/.rubocop.yml +3 -6
  9. data/.rubocop_todo.yml +18 -0
  10. data/Gemfile +24 -6
  11. data/{LICENSE.md → LICENSE} +2 -2
  12. data/README.md +63 -29
  13. data/Rakefile +10 -73
  14. data/bin/console +17 -0
  15. data/bin/rails +12 -4
  16. data/bin/setup +8 -0
  17. data/config/locales/bg.yml +1 -47
  18. data/config/locales/ca.yml +12 -49
  19. data/config/locales/cs.yml +1 -48
  20. data/config/locales/da.yml +238 -139
  21. data/config/locales/de-CH.yml +0 -48
  22. data/config/locales/de.yml +476 -102
  23. data/config/locales/en-AU.yml +0 -48
  24. data/config/locales/en-GB.yml +1 -47
  25. data/config/locales/en-IN.yml +2 -48
  26. data/config/locales/en-NZ.yml +0 -48
  27. data/config/locales/es-CL.yml +1 -49
  28. data/config/locales/es-EC.yml +1 -47
  29. data/config/locales/es-MX.yml +417 -111
  30. data/config/locales/es.yml +1525 -797
  31. data/config/locales/et.yml +0 -50
  32. data/config/locales/fa.yml +0 -48
  33. data/config/locales/fi.yml +1 -47
  34. data/config/locales/fr.yml +677 -275
  35. data/config/locales/id.yml +2 -46
  36. data/config/locales/it.yml +1303 -445
  37. data/config/locales/ja.yml +598 -536
  38. data/config/locales/ko.yml +0 -48
  39. data/config/locales/lv.yml +0 -48
  40. data/config/locales/nb.yml +0 -48
  41. data/config/locales/nl.yml +1 -47
  42. data/config/locales/pl.yml +1 -47
  43. data/config/locales/pt-BR.yml +1101 -249
  44. data/config/locales/pt.yml +0 -48
  45. data/config/locales/ro.yml +3 -48
  46. data/config/locales/ru.yml +1884 -1237
  47. data/config/locales/sk.yml +722 -577
  48. data/config/locales/sl-SI.yml +0 -48
  49. data/config/locales/sv.yml +1 -47
  50. data/config/locales/th.yml +1 -45
  51. data/config/locales/tr.yml +1 -45
  52. data/config/locales/uk.yml +370 -381
  53. data/config/locales/vi.yml +1 -45
  54. data/config/locales/zh-CN.yml +1 -45
  55. data/config/locales/zh-TW.yml +1 -45
  56. data/config/routes.rb +2 -4
  57. data/i18n-tasks.yml +4 -0
  58. data/lib/generators/solidus_i18n/install/install_generator.rb +10 -13
  59. data/lib/solidus_i18n.rb +5 -6
  60. data/lib/solidus_i18n/engine.rb +9 -36
  61. data/lib/solidus_i18n/factories.rb +4 -0
  62. data/lib/solidus_i18n/version.rb +3 -16
  63. data/lib/tasks/solidus_i18n/upgrade.rake +13 -11
  64. data/solidus_i18n.gemspec +29 -39
  65. data/spec/solidus_i18n_spec.rb +67 -0
  66. data/spec/spec_helper.rb +15 -13
  67. metadata +231 -292
  68. data/.travis.yml +0 -12
  69. data/Guardfile +0 -11
  70. data/app/assets/javascripts/spree/backend/solidus_i18n.js +0 -2
  71. data/app/assets/javascripts/spree/backend/translations.js.coffee +0 -5
  72. data/app/assets/javascripts/spree/frontend/cart_decorator.js.coffee +0 -5
  73. data/app/assets/javascripts/spree/frontend/locale.js.coffee +0 -3
  74. data/app/assets/javascripts/spree/frontend/solidus_i18n.js +0 -2
  75. data/app/assets/stylesheets/spree/backend/solidus_i18n.css +0 -8
  76. data/app/assets/stylesheets/spree/frontend/solidus_i18n.css +0 -8
  77. data/app/controllers/spree/admin/general_settings_controller_decorator.rb +0 -12
  78. data/app/controllers/spree/api/base_controller_decorator.rb +0 -3
  79. data/app/controllers/spree/base_controller_decorator.rb +0 -3
  80. data/app/controllers/spree/locale_controller_decorator.rb +0 -6
  81. data/app/helpers/solidus_i18n/locale_helper.rb +0 -31
  82. data/app/overrides/spree/admin/general_settings/edit/localization_settings.html.erb.deface +0 -20
  83. data/app/overrides/spree/shared/_main_nav_bar/cart_link.html.erb.deface +0 -9
  84. data/app/overrides/spree/shared/_main_nav_bar/locale_selector.html.erb.deface +0 -16
  85. data/config/initializers/country_names.rb +0 -51
  86. data/config/initializers/routing_filter.rb +0 -2
  87. data/db/migrate/20150609154031_remove_translations_from_spree_tables.rb +0 -65
  88. data/lib/solidus_i18n/configuration.rb +0 -9
  89. data/lib/solidus_i18n/controller_locale_helper.rb +0 -29
  90. data/lib/solidus_i18n/locale.rb +0 -13
  91. data/lib/solidus_i18n/utils.rb +0 -56
  92. data/spec/controllers/locales_controller_spec.rb +0 -24
  93. data/spec/features/admin/translations_spec.rb +0 -33
  94. data/spec/features/russian_errors_translation_spec.rb +0 -17
  95. data/spec/features/translation_spec.rb +0 -31
  96. data/spec/features/translations_spec.rb +0 -28
  97. data/spec/support/capybara.rb +0 -11
  98. data/spec/support/database_cleaner.rb +0 -23
  99. data/spec/support/factory_girl.rb +0 -5
  100. data/spec/support/i18n.rb +0 -5
  101. data/spec/support/spree.rb +0 -12
@@ -237,50 +237,6 @@ vi:
237
237
  spree/user:
238
238
  spree/variant:
239
239
  spree/zone:
240
- devise:
241
- confirmations:
242
- confirmed: Tài khoản của bạn đã được xác nhận thành công. Bạn đang đăng nhập vào.
243
- send_instructions: Bạn sẽ nhận được thư hướng dẫn xác nhận tài khoản của mình trong một vài phút tới.
244
- failure:
245
- inactive: Tài khoản của bạn chưa được kích hoạt.
246
- invalid: "Địa chỉ hòm thư hoặc mật khẩu không hợp lệ."
247
- invalid_token: Token ủy quyền không đúng.
248
- locked: Tài khoản của bạn đang bị khoá.
249
- timeout: Session hết hạn, xin vui lòng đăng nhập lại.
250
- unauthenticated: Bạn cần đăng nhập hoặc đăng kí trước khi tiếp tục.
251
- unconfirmed: Bạn phải xác nhận tài khoản của mình trước khi tiếp tục.
252
- mailer:
253
- confirmation_instructions:
254
- subject: Hướng dẫn chứng thực
255
- reset_password_instructions:
256
- subject: Hướng dẫn thiết lập lại mật khẩu.
257
- unlock_instructions:
258
- subject: Hướng dẫn mở khoá
259
- oauth_callbacks:
260
- failure: Không thể ủy quyền bạn từ %{kind} vì %{reason}.
261
- success: Thành công ủy quyền từ tài khoản %{kind}.
262
- unlocks:
263
- send_instructions: Bạn sẽ nhận được email với hướng dẫn cách mở khoá tài khoản trong ít phút nữa.
264
- unlocked: Tài khoản đã được mở khoá. Bạn bây giờ đã đăng nhập.
265
- user_passwords:
266
- user:
267
- cannot_be_blank: Mật khẩu của bạn không được bỏ trống.
268
- send_instructions: Bạn sẽ nhận được email với hướng dẫn cách cài lại mật khẩu trong ít phút nữa.
269
- updated: Mật mã đã thành công thay đổi. Bạn bây giờ đã được đăng nhập.
270
- user_registrations:
271
- destroyed: Tạm biệt! Tài khoản đã bị huỷ. Hẹn gặp lại.
272
- inactive_signed_up: Bạn đã thành công đăng kí. Nhưng bạn chưa thể đăng nhập vì tài khoản bị %{reason}
273
- signed_up: Chào mừng! Bạn đã thành công đăng kí.
274
- updated: Bạn đã thành công cập nhật tài khoản.
275
- user_sessions:
276
- signed_in: "Đăng nhập thành công."
277
- signed_out: "Đăng xuất thành công."
278
- errors:
279
- messages:
280
- already_confirmed: "đã được chứng nhận"
281
- not_found: không tìm thấy
282
- not_locked: không bị khoá
283
- not_saved: "%{count} lỗi cấm %{resource} này lưu:"
284
240
  spree:
285
241
  abbreviation: Từ khóa tắt
286
242
  accept:
@@ -521,7 +477,7 @@ vi:
521
477
  date_picker:
522
478
  first_day:
523
479
  format: "%d/%m/%Y"
524
- js_format: dd/mm/yy
480
+ js_format: d/m/Y
525
481
  date_range: Giới hạn ngày
526
482
  default:
527
483
  default_refund_amount:
@@ -290,50 +290,6 @@ zh-CN:
290
290
  spree/zone:
291
291
  one: "区域"
292
292
  other: "区域"
293
- devise:
294
- confirmations:
295
- confirmed: "您已成功确认您的帐户信息。您现在已登录。"
296
- send_instructions: "您将在几分钟后收到一封说明如何确认帐号的邮件。"
297
- failure:
298
- inactive: "您的帐号尚未激活。"
299
- invalid: "找不到该电子邮件地址或者密码,请更正并再次尝试。"
300
- invalid_token: "无效的授权口令。"
301
- locked: "您的帐号已被冻结。"
302
- timeout: "您的登录时间过长,请重新登录后继续其他操作。"
303
- unauthenticated: "您需要在继续操作之前进行登录或者注册。"
304
- unconfirmed: "您需要在继续操作之前确认您的帐号。"
305
- mailer:
306
- confirmation_instructions:
307
- subject: "确认帐号说明"
308
- reset_password_instructions:
309
- subject: "重置密码说明"
310
- unlock_instructions:
311
- subject: "帐号解锁说明"
312
- oauth_callbacks:
313
- failure: "由于%{reason},您暂时无法从%{kind}获得授权。"
314
- success: "成功地从%{kind}帐号获得授权。"
315
- unlocks:
316
- send_instructions: "您将在几分钟之后收到一封说明如何解锁帐号的邮件。"
317
- unlocked: "您的帐号已被成功解锁。您现在已登录。"
318
- user_passwords:
319
- user:
320
- cannot_be_blank: "密码不能为空。"
321
- send_instructions: "您将在几分钟之后收到一封说明如何重置密码的邮件。"
322
- updated: "您已成功修改您的密码,您现在已登录。"
323
- user_registrations:
324
- destroyed: "再见!您已成功取消帐号注册。希望您再次光临。"
325
- inactive_signed_up: "您已成功注册。但是,由于您的帐号%{reason},您暂时无法登录。"
326
- signed_up: "欢迎!您已成功注册。"
327
- updated: "您已成功更新您的帐号信息。"
328
- user_sessions:
329
- signed_in: "成功登录。"
330
- signed_out: "成功注销。"
331
- errors:
332
- messages:
333
- already_confirmed: "已被确认"
334
- not_found: "无法找到"
335
- not_locked: "未冻结"
336
- not_saved: "由于以下%{count}个错误,导致%{resource}无法保存:"
337
293
  spree:
338
294
  abbreviation: "缩写"
339
295
  accept:
@@ -574,7 +530,7 @@ zh-CN:
574
530
  date_picker:
575
531
  first_day:
576
532
  format: "%Y/%m/%d"
577
- js_format: yy/mm/dd
533
+ js_format: Y/m/d
578
534
  date_range: "时间范围"
579
535
  default: "默认"
580
536
  default_refund_amount:
@@ -241,50 +241,6 @@ zh-TW:
241
241
  spree/user: "使用者"
242
242
  spree/variant: "型號"
243
243
  spree/zone: "區域"
244
- devise:
245
- confirmations:
246
- confirmed: "您的帳號已驗證成功. 現已登入."
247
- send_instructions: "您將在幾分鐘內收到一封說明如何驗證帳號的電子郵件."
248
- failure:
249
- inactive: "您的帳號尚未啓用."
250
- invalid: "錯誤的帳號或者密碼."
251
- invalid_token: "不正確的認證辨識碼."
252
- locked: "您的帳號已被鎖定."
253
- timeout: "您的連線已過期, 請重新登入."
254
- unauthenticated: "您必須先登入或者註冊."
255
- unconfirmed: "您必須先驗證帳號才能繼續."
256
- mailer:
257
- confirmation_instructions:
258
- subject: "驗證說明"
259
- reset_password_instructions:
260
- subject: "重置密碼說明"
261
- unlock_instructions:
262
- subject: "帳號解鎖說明"
263
- oauth_callbacks:
264
- failure: "由於%{reason}, 您無法從%{kind} 獲得授權."
265
- success: "成功從%{kind} 帳號取得授權."
266
- unlocks:
267
- send_instructions: "您將在數分鐘內收到一封說明如何解鎖帳號的電子郵件."
268
- unlocked: "您的帳號已成功解鎖. 現已登入."
269
- user_passwords:
270
- user:
271
- cannot_be_blank: "密碼不能空白."
272
- send_instructions: "您將在數分鐘內收到一封說明如何重置密碼的電子郵件."
273
- updated: "密碼變更成功, 現已登入."
274
- user_registrations:
275
- destroyed: "再會! 您的帳號已註銷, 希望您再度造訪."
276
- inactive_signed_up: "您已註冊成功. 但由於您的帳號%{reason}, 故無法登入."
277
- signed_up: "歡迎! 您已註冊成功."
278
- updated: "您的帳號已更新成功."
279
- user_sessions:
280
- signed_in: "登入成功."
281
- signed_out: "登出成功."
282
- errors:
283
- messages:
284
- already_confirmed: "已驗證"
285
- not_found: "找不到"
286
- not_locked: "未鎖定"
287
- not_saved: "在儲存%{resource}時遭遇%{count} 個錯誤"
288
244
  spree:
289
245
  abbreviation: "縮寫"
290
246
  accept:
@@ -524,7 +480,7 @@ zh-TW:
524
480
  date_picker:
525
481
  first_day: 0
526
482
  format: "%Y/%m/%d"
527
- js_format: yy/mm/dd
483
+ js_format: Y/m/d
528
484
  date_range: "日期範圍"
529
485
  default: "預設"
530
486
  default_refund_amount:
data/config/routes.rb CHANGED
@@ -1,6 +1,4 @@
1
- Spree::Core::Engine.add_routes do
2
- # from routing-filter gem
3
- filter :locale
1
+ # frozen_string_literal: true
4
2
 
5
- post '/locale/set', to: 'locale#set', defaults: { format: :json }, as: :set_locale
3
+ Spree::Core::Engine.routes.draw do
6
4
  end
data/i18n-tasks.yml ADDED
@@ -0,0 +1,4 @@
1
+ data:
2
+ yaml:
3
+ write:
4
+ line_width: 140
@@ -1,25 +1,22 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SolidusI18n
2
4
  module Generators
3
5
  class InstallGenerator < Rails::Generators::Base
4
- class_option :auto_run_migrations, type: :boolean, default: true
5
-
6
- def add_javascripts
7
- append_file 'vendor/assets/javascripts/spree/backend/all.js',
8
- "//= require spree/backend/solidus_i18n\n"
9
- append_file 'vendor/assets/javascripts/spree/frontend/all.js',
10
- "//= require spree/frontend/solidus_i18n\n"
11
- end
6
+ class_option :auto_run_migrations, type: :boolean, default: false
12
7
 
13
8
  def add_migrations
14
- run 'bin/rake solidus_i18n:install:migrations'
9
+ run 'bundle exec rake railties:install:migrations FROM=solidus_i18n'
15
10
  end
16
11
 
17
12
  def run_migrations
18
- if options[:auto_run_migrations] ||
19
- ['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]'))
20
- run 'bin/rake db:migrate'
13
+ run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(
14
+ ask('Would you like to run the migrations now? [Y/n]')
15
+ )
16
+ if run_migrations
17
+ run 'bundle exec rake db:migrate'
21
18
  else
22
- puts "Skiping rake db:migrate, don't forget to run it!"
19
+ puts 'Skipping rake db:migrate, don\'t forget to run it!' # rubocop:disable Rails/Output
23
20
  end
24
21
  end
25
22
  end
data/lib/solidus_i18n.rb CHANGED
@@ -1,8 +1,7 @@
1
- require 'sass/rails'
2
- require 'rails-i18n'
1
+ # frozen_string_literal: true
2
+
3
3
  require 'solidus_core'
4
- require 'solidus_i18n/engine'
4
+ require 'solidus_support'
5
+
5
6
  require 'solidus_i18n/version'
6
- require 'solidus_i18n/utils'
7
- require 'coffee_script'
8
- require 'deface'
7
+ require 'solidus_i18n/engine'
@@ -1,45 +1,18 @@
1
- require 'routing_filter'
2
- require 'kaminari-i18n/engine'
1
+ # frozen_string_literal: true
2
+
3
+ require 'spree/core'
3
4
 
4
5
  module SolidusI18n
5
6
  class Engine < Rails::Engine
6
- engine_name 'solidus_i18n'
7
-
8
- config.autoload_paths += %W(#{config.root}/lib)
9
-
10
- initializer 'solidus.i18n' do |app|
11
- SolidusI18n::Engine.instance_eval do
12
- pattern = pattern_from app.config.i18n.available_locales
7
+ include SolidusSupport::EngineExtensions
13
8
 
14
- add("config/locales/#{pattern}/*.{rb,yml}")
15
- add("config/locales/#{pattern}.{rb,yml}")
16
- end
17
- end
18
-
19
- initializer 'solidus.i18n.environment', before: :load_config_initializers do |app|
20
- app.config.i18n.fallbacks = true
21
- I18n.locale = app.config.i18n.default_locale if app.config.i18n.default_locale
22
- SolidusI18n::Config = SolidusI18n::Configuration.new
23
- end
9
+ isolate_namespace ::Spree
24
10
 
25
- def self.activate
26
- Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
27
- Rails.configuration.cache_classes ? require(c) : load(c)
28
- end
29
- end
30
-
31
- config.to_prepare(&method(:activate).to_proc)
32
-
33
- protected
34
-
35
- def self.add(pattern)
36
- files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
37
- I18n.load_path.concat(files)
38
- end
11
+ engine_name 'solidus_i18n'
39
12
 
40
- def self.pattern_from(args)
41
- array = Array(args || [])
42
- array.blank? ? '*' : "{#{array.join ','}}"
13
+ # use rspec for tests
14
+ config.generators do |g|
15
+ g.test_framework :rspec
43
16
  end
44
17
  end
45
18
  end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ FactoryBot.define do
4
+ end
@@ -1,18 +1,5 @@
1
- module SolidusI18n
2
- module_function
3
-
4
- # Returns the version of the currently loaded SolidusI18n as a
5
- # <tt>Gem::Version</tt>.
6
- def version
7
- Gem::Version.new VERSION::STRING
8
- end
1
+ # frozen_string_literal: true
9
2
 
10
- module VERSION
11
- MAJOR = 1
12
- MINOR = 0
13
- TINY = 0
14
- PRE = nil
15
-
16
- STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
17
- end
3
+ module SolidusI18n
4
+ VERSION = '2.1.0'
18
5
  end
@@ -1,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fileutils'
2
4
 
3
5
  namespace :solidus_i18n do
4
6
  desc 'Upgrades to version without globalize.'
5
7
  task upgrade: :environment do
6
- files = %w(
8
+ files = %w[
7
9
  add_translations_to_main_models
8
10
  add_translations_to_product_permalink
9
11
  add_translations_to_option_value
@@ -13,7 +15,7 @@ namespace :solidus_i18n do
13
15
  remove_null_constraints_from_spree_tables
14
16
  add_deleted_at_to_translation_tables
15
17
  add_translations_to_store
16
- ).collect do |file_name|
18
+ ].collect do |file_name|
17
19
  Dir.glob Rails.root.join('db', 'migrate', "*_#{file_name}*.rb")
18
20
  end.flatten
19
21
 
@@ -23,21 +25,21 @@ namespace :solidus_i18n do
23
25
  # Install new migrations
24
26
  Rake::Task['solidus_i18n:install:migrations'].invoke
25
27
 
26
- puts <<-DESC
27
- Upgraded migrations successfully.
28
+ puts <<~DESC
29
+ Upgraded migrations successfully.
28
30
 
29
- Now please remove these lines from your vendor/assets folder:
31
+ Now please remove these lines from your vendor/assets folder:
30
32
 
31
- From `vendor/assets/javascripts/spree/backend/all.js`
33
+ From `vendor/assets/javascripts/spree/backend/all.js`
32
34
 
33
- //= require spree/backend/spree_i18n
35
+ //= require spree/backend/spree_i18n
34
36
 
35
- and from `vendor/assets/stylesheets/spree/backend/all.css`
37
+ and from `vendor/assets/stylesheets/spree/backend/all.css`
36
38
 
37
- *= require spree/backend/spree_i18n
39
+ *= require spree/backend/spree_i18n
38
40
 
39
- Don't forget to run `rake db:migrate` now.
41
+ Don't forget to run `rake db:migrate` now.
40
42
 
41
- DESC
43
+ DESC
42
44
  end
43
45
  end
data/solidus_i18n.gemspec CHANGED
@@ -1,46 +1,36 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib/', __FILE__)
3
- $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
1
+ # frozen_string_literal: true
4
2
 
3
+ $:.push File.expand_path('lib', __dir__)
5
4
  require 'solidus_i18n/version'
6
5
 
7
6
  Gem::Specification.new do |s|
8
- s.platform = Gem::Platform::RUBY
9
7
  s.name = 'solidus_i18n'
10
- s.version = SolidusI18n.version
8
+ s.version = SolidusI18n::VERSION
11
9
  s.summary = 'Provides locale information for use in Solidus.'
12
- s.description = s.summary
13
-
14
- s.author = 'Thomas von Deyen'
15
- s.email = 'tvd@magiclabs.de'
16
- s.homepage = 'https://solidus.io'
17
- s.license = 'BSD-3'
18
-
19
- s.files = `git ls-files`.split("\n")
20
- s.test_files = `git ls-files -- spec/*`.split("\n")
21
- s.require_path = 'lib'
22
- s.requirements << 'none'
23
-
24
- s.has_rdoc = false
25
-
26
- s.add_runtime_dependency 'i18n_data', '~> 0.7.0'
27
- s.add_runtime_dependency 'rails-i18n', '~> 4.0.1'
28
- s.add_runtime_dependency 'kaminari-i18n', '~> 0.3.2'
29
- s.add_runtime_dependency 'routing-filter', '~> 0.5.0'
30
- s.add_runtime_dependency 'solidus_core', '~> 1.0'
31
- s.add_runtime_dependency 'deface', '~> 1.0'
32
-
33
- s.add_development_dependency 'byebug'
34
- s.add_development_dependency 'capybara', '~> 2.4.4'
35
- s.add_development_dependency 'coffee-rails', '~> 4.0.0'
36
- s.add_development_dependency 'database_cleaner', '~> 1.3'
37
- s.add_development_dependency 'factory_girl', '~> 4.5'
38
- s.add_development_dependency 'ffaker', '>= 1.25.0'
39
- s.add_development_dependency 'poltergeist', '~> 1.5'
40
- s.add_development_dependency 'pry-rails', '>= 0.3.0'
41
- s.add_development_dependency 'rubocop', '>= 0.24.1'
42
- s.add_development_dependency 'rspec-rails', '~> 3.1'
43
- s.add_development_dependency 'sass-rails', '~> 5.0.0'
44
- s.add_development_dependency 'simplecov', '~> 0.9'
45
- s.add_development_dependency 'guard-rspec', '>= 4.2.0'
10
+ s.description = 'A collection of translations for Solidus.'
11
+
12
+ s.required_ruby_version = '~> 2.4'
13
+
14
+ s.author = 'Thomas von Deyen'
15
+ s.email = 'tvd@magiclabs.de'
16
+ s.homepage = 'https://github.com/solidusio/solidus_i18n'
17
+ s.license = 'BSD-3-Clause'
18
+
19
+ s.files = Dir.chdir(File.expand_path(__dir__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ s.test_files = Dir['spec/**/*']
23
+ s.bindir = "exe"
24
+ s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ s.require_paths = ["lib"]
26
+
27
+ if s.respond_to?(:metadata)
28
+ s.metadata["homepage_uri"] = s.homepage if s.homepage
29
+ s.metadata["source_code_uri"] = s.homepage if s.homepage
30
+ end
31
+
32
+ s.add_runtime_dependency 'solidus_core', ['>= 1.1', '< 4']
33
+ s.add_runtime_dependency 'solidus_support', '~> 0.4'
34
+
35
+ s.add_development_dependency 'solidus_dev_support'
46
36
  end