Only require simple_po_parser in rake task that needs it

That way we don't need to install it in production, since it's really
not needed there.
This commit is contained in:
Bob Van Landuyt 2017-09-03 19:32:07 +02:00
parent a3af683045
commit 7199e882db
3 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,3 @@
require 'simple_po_parser'
module Gitlab
module I18n
class PoLinter

View file

@ -1,4 +1,5 @@
require "gettext_i18n_rails/tasks"
require 'simple_po_parser'
namespace :gettext do
# Customize list of translatable files

View file

@ -1,4 +1,5 @@
require 'spec_helper'
require 'simple_po_parser'
describe Gitlab::I18n::PoLinter do
let(:linter) { described_class.new(po_path) }