lokalise_manager 2.1.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/LICENSE +1 -1
- data/README.md +17 -15
- data/lib/lokalise_manager/error.rb +1 -0
- data/lib/lokalise_manager/global_config.rb +2 -1
- data/lib/lokalise_manager/task_definitions/base.rb +9 -8
- data/lib/lokalise_manager/task_definitions/exporter.rb +9 -9
- data/lib/lokalise_manager/task_definitions/importer.rb +1 -0
- data/lib/lokalise_manager/utils/hash_utils.rb +3 -2
- data/lib/lokalise_manager/version.rb +1 -1
- data/lib/lokalise_manager.rb +13 -9
- data/lokalise_manager.gemspec +4 -4
- metadata +22 -31
- data/lib/lokalise_manager/utils/array_utils.rb +0 -27
- data/spec/lib/lokalise_manager/global_config_spec.rb +0 -114
- data/spec/lib/lokalise_manager/task_definitions/base_spec.rb +0 -113
- data/spec/lib/lokalise_manager/task_definitions/exporter_spec.rb +0 -240
- data/spec/lib/lokalise_manager/task_definitions/importer_spec.rb +0 -200
- data/spec/lib/lokalise_manager_spec.rb +0 -15
- data/spec/lib/utils/array_utils_spec.rb +0 -18
- data/spec/lib/utils/hash_utils_spec.rb +0 -13
- data/spec/spec_helper.rb +0 -24
- data/spec/support/file_manager.rb +0 -64
- data/spec/support/spec_addons.rb +0 -16
- data/spec/support/vcr.rb +0 -13
data/spec/support/spec_addons.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module SpecAddons
|
4
|
-
def allow_project_id(obj, value)
|
5
|
-
allow(obj.config).to receive(:project_id).and_return(value)
|
6
|
-
return unless block_given?
|
7
|
-
|
8
|
-
yield
|
9
|
-
expect(obj.config).to have_received(:project_id)
|
10
|
-
end
|
11
|
-
|
12
|
-
def expect_file_exist(path, file)
|
13
|
-
file_path = File.join path, file
|
14
|
-
expect(File.file?(file_path)).to be true
|
15
|
-
end
|
16
|
-
end
|
data/spec/support/vcr.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'vcr'
|
4
|
-
|
5
|
-
VCR.configure do |c|
|
6
|
-
c.ignore_hosts 'codeclimate.com'
|
7
|
-
c.hook_into :faraday
|
8
|
-
c.cassette_library_dir = File.join(File.dirname(__FILE__), '..', 'fixtures', 'vcr_cassettes')
|
9
|
-
c.filter_sensitive_data('<LOKALISE_TOKEN>') do |_i|
|
10
|
-
ENV.fetch('LOKALISE_API_TOKEN')
|
11
|
-
end
|
12
|
-
c.configure_rspec_metadata!
|
13
|
-
end
|