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:
parent
a3af683045
commit
7199e882db
3 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,3 @@
|
||||||
require 'simple_po_parser'
|
|
||||||
|
|
||||||
module Gitlab
|
module Gitlab
|
||||||
module I18n
|
module I18n
|
||||||
class PoLinter
|
class PoLinter
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
require "gettext_i18n_rails/tasks"
|
require "gettext_i18n_rails/tasks"
|
||||||
|
require 'simple_po_parser'
|
||||||
|
|
||||||
namespace :gettext do
|
namespace :gettext do
|
||||||
# Customize list of translatable files
|
# Customize list of translatable files
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
require 'simple_po_parser'
|
||||||
|
|
||||||
describe Gitlab::I18n::PoLinter do
|
describe Gitlab::I18n::PoLinter do
|
||||||
let(:linter) { described_class.new(po_path) }
|
let(:linter) { described_class.new(po_path) }
|
||||||
|
|
Loading…
Reference in a new issue