transifex-interface-ruby 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +513 -0
- data/Rakefile +1 -0
- data/lib/transifex.rb +87 -0
- data/lib/transifex/crud_requests.rb +99 -0
- data/lib/transifex/errors.rb +25 -0
- data/lib/transifex/formats.rb +9 -0
- data/lib/transifex/json.rb +23 -0
- data/lib/transifex/language.rb +13 -0
- data/lib/transifex/languages.rb +13 -0
- data/lib/transifex/project.rb +38 -0
- data/lib/transifex/project_components/language.rb +39 -0
- data/lib/transifex/project_components/language_components/coordinators.rb +29 -0
- data/lib/transifex/project_components/language_components/reviewers.rb +33 -0
- data/lib/transifex/project_components/language_components/translators.rb +33 -0
- data/lib/transifex/project_components/languages.rb +21 -0
- data/lib/transifex/projects.rb +22 -0
- data/lib/transifex/resource.rb +41 -0
- data/lib/transifex/resource_components/content.rb +54 -0
- data/lib/transifex/resource_components/source.rb +23 -0
- data/lib/transifex/resource_components/stats.rb +26 -0
- data/lib/transifex/resource_components/translation.rb +59 -0
- data/lib/transifex/resource_components/translation_components/string.rb +29 -0
- data/lib/transifex/resource_components/translation_components/strings.rb +39 -0
- data/lib/transifex/resource_components/translation_components/utilities.rb +22 -0
- data/lib/transifex/resources.rb +19 -0
- data/lib/transifex/version.rb +3 -0
- data/spec/lib/transifex/configuration_spec.rb +17 -0
- data/spec/lib/transifex/coordinators_spec.rb +32 -0
- data/spec/lib/transifex/formats_spec.rb +13 -0
- data/spec/lib/transifex/language_spec.rb +19 -0
- data/spec/lib/transifex/languages_spec.rb +13 -0
- data/spec/lib/transifex/project_language_spec.rb +49 -0
- data/spec/lib/transifex/project_languages_spec.rb +35 -0
- data/spec/lib/transifex/project_spec.rb +91 -0
- data/spec/lib/transifex/projects_spec.rb +48 -0
- data/spec/lib/transifex/resource_content_spec.rb +40 -0
- data/spec/lib/transifex/resource_source_spec.rb +30 -0
- data/spec/lib/transifex/resource_spec.rb +66 -0
- data/spec/lib/transifex/resources_spec.rb +50 -0
- data/spec/lib/transifex/reviewers_spec.rb +32 -0
- data/spec/lib/transifex/stats_spec.rb +34 -0
- data/spec/lib/transifex/translation_spec.rb +53 -0
- data/spec/lib/transifex/translation_string_spec.rb +33 -0
- data/spec/lib/transifex/translation_strings_spec.rb +57 -0
- data/spec/lib/transifex/translators_spec.rb +32 -0
- data/spec/lib/yaml/en.yml +26 -0
- data/spec/lib/yaml/fr.yml +4 -0
- data/spec/lib/yaml/resource_content_test.yml +27 -0
- data/spec/lib/yaml/resource_translation_default_content_test.yml +4 -0
- data/spec/lib/yaml/resource_translation_reviewed_content_test.yml +9 -0
- data/spec/spec_helper.rb +96 -0
- data/transifex-interface-ruby.gemspec +25 -0
- metadata +181 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
require_relative "../../spec_helper"
|
2
|
+
|
3
|
+
describe Transifex::ResourceComponents::Stats do
|
4
|
+
before(:all) do
|
5
|
+
@project = Transifex::Project.new("projet-de-test-1")
|
6
|
+
@resource = @project.resource("test")
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "Instanciation" do
|
10
|
+
it "should raise an error when no parameters given" do
|
11
|
+
expect{ Transifex::ResourceComponents::Stats.new }.to raise_error(ArgumentError)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "Fetch" do
|
16
|
+
it "should retrieve the stats for all languages as a hash" do
|
17
|
+
resource_stats = nil
|
18
|
+
resource_details = @project.resource("test").fetch_with_details
|
19
|
+
resource_available_languages = resource_details["available_languages"].map{|language| language["code"]}
|
20
|
+
expect{ resource_stats = @resource.statistics.fetch }.to_not raise_error
|
21
|
+
expect(resource_stats).to be_a_kind_of(Hash)
|
22
|
+
expect(resource_stats.keys).to match_array(resource_available_languages)
|
23
|
+
end
|
24
|
+
it "should retrieve the stats for a specific language as a hash" do
|
25
|
+
resource_stats = nil
|
26
|
+
expect{ resource_stats = @resource.statistics.fetch("en") }.to_not raise_error
|
27
|
+
expect(resource_stats).to be_a_kind_of(Hash)
|
28
|
+
expect(resource_stats.keys).to contain_exactly("reviewed_percentage", "completed", "untranslated_words", "last_commiter", "reviewed", "translated_entities", "translated_words", "last_update", "untranslated_entities")
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require_relative "../../spec_helper"
|
2
|
+
|
3
|
+
describe Transifex::ResourceComponents::Translation do
|
4
|
+
before(:all) do
|
5
|
+
@project = Transifex::Project.new("projet-de-test-1")
|
6
|
+
@resource = @project.resource("test")
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "Instanciation" do
|
10
|
+
it "should raise an error when no parameters given" do
|
11
|
+
expect{ Transifex::ResourceComponents::Translation.new }.to raise_error(Transifex::MissingParametersError)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "Fetch" do
|
16
|
+
it "should raise an error if no language code is provided" do
|
17
|
+
expect{ resource_stats = @resource.translation.fetch }.to raise_error(Transifex::MissingParametersError)
|
18
|
+
end
|
19
|
+
it "should retrieve the translation content as a hash" do
|
20
|
+
translation_content = nil
|
21
|
+
expect{ translation_content = @resource.translation('en').fetch }.to_not raise_error
|
22
|
+
expect(translation_content).to be_a_kind_of(Hash)
|
23
|
+
expect(translation_content.keys).to contain_exactly("content", "mimetype")
|
24
|
+
end
|
25
|
+
it "should retrieve the translation content as a file with default mode" do
|
26
|
+
translation_content = nil
|
27
|
+
path_to_file = File.dirname(__FILE__) + "/../yaml/resource_translation_default_content_test.yml"
|
28
|
+
options = {:path_to_file => path_to_file}
|
29
|
+
expect{ translation_content = @resource.translation('fr').fetch_with_file(options) }.to_not raise_error
|
30
|
+
file_exist = File.file?(path_to_file)
|
31
|
+
expect(file_exist).to eq(true)
|
32
|
+
end
|
33
|
+
it "should retrieve the translation content as a file with a mode" do
|
34
|
+
translation_content = nil
|
35
|
+
path_to_file = File.dirname(__FILE__) + "/../yaml/resource_translation_reviewed_content_test.yml"
|
36
|
+
options = {:path_to_file => path_to_file, :mode => "reviewed"}
|
37
|
+
expect{ translation_content = @resource.translation('en').fetch_with_file(options) }.to_not raise_error
|
38
|
+
file_exist = File.file?(path_to_file)
|
39
|
+
expect(file_exist).to eq(true)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "Update" do
|
44
|
+
it "sould raise an error if try to update source language" do
|
45
|
+
options = {:i18n_type => "YAML", :content => get_yaml_source_trad_file_path('en')}
|
46
|
+
expect{ translation_content = @resource.translation('en').update(options) }.to raise_error(Transifex::TransifexError)
|
47
|
+
end
|
48
|
+
it "should not raise an error and update the resource translation" do
|
49
|
+
options = {:i18n_type => "YAML", :content => get_yaml_source_trad_file_path('fr')}
|
50
|
+
expect{ @resource.translation('fr').update(options) }.to_not raise_error
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require_relative "../../spec_helper"
|
2
|
+
|
3
|
+
describe Transifex::ResourceComponents::TranslationComponents::String do
|
4
|
+
before(:all) do
|
5
|
+
@project = Transifex::Project.new("projet-de-test-1")
|
6
|
+
@resource = @project.resource("test")
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "Instanciation" do
|
10
|
+
it "should raise an error when no parameters given" do
|
11
|
+
expect{ Transifex::ResourceComponents::TranslationComponents::String.new }.to raise_error(Transifex::MissingParametersError)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "Fetch" do
|
16
|
+
it "should raise an error if no key provided" do
|
17
|
+
expect{ retrieved_details = @resource.translation('en').string.fetch }.to raise_error(Transifex::MissingParametersError)
|
18
|
+
end
|
19
|
+
it "should not raise an error and retrieve the details of the string" do
|
20
|
+
retrieved_details = nil
|
21
|
+
expect{ retrieved_details = @resource.translation('en').string('routes.mercury_editor').fetch }.to_not raise_error
|
22
|
+
expect(retrieved_details).to be_a_kind_of(Hash)
|
23
|
+
expect(retrieved_details.keys).to contain_exactly("comment", "context", "tags", "character_limit", "user", "key", "reviewed", "pluralized", "source_string", "translation", "last_update", "occurrences")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe "Update" do
|
28
|
+
it "should not raise an error and update the specified translation string" do
|
29
|
+
params = {:reviewed => true, :translation => "Pouet"}
|
30
|
+
expect{ @resource.translation('fr').string('routes.mercury_editor').update(params) }.to_not raise_error
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require_relative "../../spec_helper"
|
2
|
+
|
3
|
+
describe Transifex::ResourceComponents::TranslationComponents::Strings do
|
4
|
+
before(:all) do
|
5
|
+
@project = Transifex::Project.new("projet-de-test-1")
|
6
|
+
@resource = @project.resource("test")
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "Instanciation" do
|
10
|
+
it "should raise an error when no parameters given" do
|
11
|
+
expect{ Transifex::ResourceComponents::TranslationComponents::Strings.new }.to raise_error(Transifex::MissingParametersError)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "Fetch" do
|
16
|
+
it "should not raise an error and retrieve the strings of the translation without details" do
|
17
|
+
retrieved_strings = nil
|
18
|
+
expect{ retrieved_strings = @resource.translation('en').strings.fetch }.to_not raise_error
|
19
|
+
expect(retrieved_strings).to be_a_kind_of(Array)
|
20
|
+
expect(retrieved_strings.first.keys).to contain_exactly("comment", "context", "key", "reviewed", "pluralized", "source_string", "translation")
|
21
|
+
end
|
22
|
+
it "should not raise an error and retrieve the strings of the translation with details" do
|
23
|
+
retrieved_strings = nil
|
24
|
+
expect{ retrieved_strings = @resource.translation('en').strings.fetch_with_details }.to_not raise_error
|
25
|
+
expect(retrieved_strings).to be_a_kind_of(Array)
|
26
|
+
expect(retrieved_strings.first.keys).to contain_exactly("comment", "context", "tags", "character_limit", "user", "key", "reviewed", "pluralized", "source_string", "translation", "last_update", "occurrences")
|
27
|
+
end
|
28
|
+
it "should not raise an error and retrieve the strings of the translation with the key" do
|
29
|
+
retrieved_strings = nil
|
30
|
+
options = {:key => "routes.mercury_editor"}
|
31
|
+
expect{ retrieved_strings = @resource.translation('en').strings.fetch_with_details(options) }.to_not raise_error
|
32
|
+
expect(retrieved_strings).to be_a_kind_of(Array)
|
33
|
+
expect(retrieved_strings.first.keys).to contain_exactly("comment", "context", "tags", "character_limit", "user", "key", "reviewed", "pluralized", "source_string", "translation", "last_update", "occurrences")
|
34
|
+
end
|
35
|
+
it "should not raise an error and return an empty hash if researched context doesn't exist" do
|
36
|
+
retrieved_strings = nil
|
37
|
+
options = {:context => "notexist"}
|
38
|
+
expect{ retrieved_strings = @resource.translation('en').strings.fetch(options) }.to_not raise_error
|
39
|
+
expect(retrieved_strings).to be_a_kind_of(Array)
|
40
|
+
empty_array = retrieved_strings.empty?
|
41
|
+
expect(empty_array).to eq(true)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe "Update" do
|
46
|
+
it "should raise an error if the key parameter is not provided" do
|
47
|
+
expect{ @resource.translation('fr').strings.update({:translation => "lol"}) }.to raise_error(Transifex::MissingParametersError)
|
48
|
+
end
|
49
|
+
it "should not raise an error and update the specified translation string" do
|
50
|
+
expect{ @resource.translation('fr').strings.update({:key => "routes.mercury_editor", :translation => "lol"}) }.to_not raise_error
|
51
|
+
end
|
52
|
+
it "should not raise an error and update multiple translation strings" do
|
53
|
+
params = [{:key => "routes.mercury_editor", :context => "", :translation => "lol"}, {:key => "date.abbr_day_names", :translation => "lol"}]
|
54
|
+
expect{ @resource.translation('fr').strings.update(params) }.to_not raise_error
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require_relative '../../spec_helper'
|
2
|
+
|
3
|
+
describe Transifex::ProjectComponents::LanguageComponents::Translators do
|
4
|
+
before(:all) do
|
5
|
+
@project = Transifex::Project.new("projet-de-test-1")
|
6
|
+
end
|
7
|
+
|
8
|
+
describe "Instanciation" do
|
9
|
+
it "should raise an error when no parameters given" do
|
10
|
+
expect{ Transifex::ProjectComponents::LanguageComponents::Translators.new }.to raise_error(Transifex::MissingParametersError)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe "Fetch" do
|
15
|
+
it "should not raise an error and retrieve the language's informations" do
|
16
|
+
language_coordinators_infos = nil
|
17
|
+
expect{ language_coordinators_infos = @project.language('en').translators.fetch }.to_not raise_error
|
18
|
+
expect(language_coordinators_infos).to be_a_kind_of(Hash)
|
19
|
+
expect(language_coordinators_infos.keys).to contain_exactly("translators")
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "Update" do
|
24
|
+
it "should not raise an error and update the coordinators list" do
|
25
|
+
expect{ @project.language('en').translators.update(['fredericgrais'])}.to_not raise_error
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should raise an error if the coordinator doesn't exist" do
|
29
|
+
expect{ @project.language('en').translators.update(['grgrgef'])}.to raise_error(Transifex::TransifexError)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
en:
|
2
|
+
routes:
|
3
|
+
mercury_editor: mercury_editor
|
4
|
+
date:
|
5
|
+
abbr_day_names:
|
6
|
+
- Sun
|
7
|
+
- Mon
|
8
|
+
- Tue
|
9
|
+
- Wed
|
10
|
+
- Thu
|
11
|
+
- Fri
|
12
|
+
- Sat
|
13
|
+
abbr_month_names:
|
14
|
+
-
|
15
|
+
- Jan
|
16
|
+
- Feb
|
17
|
+
- Mar
|
18
|
+
- Apr
|
19
|
+
- May
|
20
|
+
- Jun
|
21
|
+
- Jul
|
22
|
+
- Aug
|
23
|
+
- Sep
|
24
|
+
- Oct
|
25
|
+
- Nov
|
26
|
+
- Dec
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
routes:
|
4
|
+
mercury_editor: mercury_editor
|
5
|
+
date:
|
6
|
+
abbr_day_names:
|
7
|
+
- Sun
|
8
|
+
- Mon
|
9
|
+
- Tue
|
10
|
+
- Wed
|
11
|
+
- Thu
|
12
|
+
- Fri
|
13
|
+
- Sat
|
14
|
+
abbr_month_names:
|
15
|
+
-
|
16
|
+
- Jan
|
17
|
+
- Feb
|
18
|
+
- Mar
|
19
|
+
- Apr
|
20
|
+
- May
|
21
|
+
- Jun
|
22
|
+
- Jul
|
23
|
+
- Aug
|
24
|
+
- Sep
|
25
|
+
- Oct
|
26
|
+
- Nov
|
27
|
+
- Dec
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
Bundler.setup
|
3
|
+
|
4
|
+
require_relative '../lib/transifex'
|
5
|
+
|
6
|
+
def reset_transifex_configuration
|
7
|
+
Transifex.configure do |c|
|
8
|
+
c.client_login = 'frederic.grais@gmail.com'
|
9
|
+
c.client_secret = 'futur123'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def get_yaml_source_trad_file_path(locale)
|
14
|
+
File.dirname(__FILE__) + "/lib/yaml/" + locale + ".yml"
|
15
|
+
end
|
16
|
+
reset_transifex_configuration
|
17
|
+
|
18
|
+
|
19
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
20
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
21
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
22
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
23
|
+
#
|
24
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
25
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
26
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
27
|
+
# individual file that may not need all of that loaded. Instead, make a
|
28
|
+
# separate helper file that requires this one and then use it only in the specs
|
29
|
+
# that actually need it.
|
30
|
+
#
|
31
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
32
|
+
# users commonly want.
|
33
|
+
#
|
34
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
35
|
+
RSpec.configure do |config|
|
36
|
+
# The settings below are suggested to provide a good initial experience
|
37
|
+
# with RSpec, but feel free to customize to your heart's content.
|
38
|
+
=begin
|
39
|
+
# These two settings work together to allow you to limit a spec run
|
40
|
+
# to individual examples or groups you care about by tagging them with
|
41
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
42
|
+
# get run.
|
43
|
+
config.filter_run :focus
|
44
|
+
config.run_all_when_everything_filtered = true
|
45
|
+
|
46
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
47
|
+
# file, and it's useful to allow more verbose output when running an
|
48
|
+
# individual spec file.
|
49
|
+
if config.files_to_run.one?
|
50
|
+
# Use the documentation formatter for detailed output,
|
51
|
+
# unless a formatter has already been configured
|
52
|
+
# (e.g. via a command-line flag).
|
53
|
+
config.default_formatter = 'doc'
|
54
|
+
end
|
55
|
+
|
56
|
+
# Print the 10 slowest examples and example groups at the
|
57
|
+
# end of the spec run, to help surface which specs are running
|
58
|
+
# particularly slow.
|
59
|
+
config.profile_examples = 10
|
60
|
+
|
61
|
+
# Run specs in random order to surface order dependencies. If you find an
|
62
|
+
# order dependency and want to debug it, you can fix the order by providing
|
63
|
+
# the seed, which is printed after each run.
|
64
|
+
# --seed 1234
|
65
|
+
config.order = :random
|
66
|
+
|
67
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
68
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
69
|
+
# test failures related to randomization by passing the same `--seed` value
|
70
|
+
# as the one that triggered the failure.
|
71
|
+
Kernel.srand config.seed
|
72
|
+
|
73
|
+
# rspec-expectations config goes here. You can use an alternate
|
74
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
75
|
+
# assertions if you prefer.
|
76
|
+
config.expect_with :rspec do |expectations|
|
77
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
78
|
+
# For more details, see:
|
79
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
80
|
+
expectations.syntax = :expect
|
81
|
+
end
|
82
|
+
|
83
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
84
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
85
|
+
config.mock_with :rspec do |mocks|
|
86
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
87
|
+
# For more details, see:
|
88
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
89
|
+
mocks.syntax = :expect
|
90
|
+
|
91
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
92
|
+
# a real object. This is generally recommended.
|
93
|
+
mocks.verify_partial_doubles = true
|
94
|
+
end
|
95
|
+
=end
|
96
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'transifex/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "transifex-interface-ruby"
|
8
|
+
spec.version = Transifex::VERSION
|
9
|
+
spec.authors = ["Fred-grais"]
|
10
|
+
spec.email = ["frederic.grais@gmail.com"]
|
11
|
+
spec.description = %q{A Transifex API interface written in Ruby}
|
12
|
+
spec.summary = %q{This gem allows you to communicate with the Transifex API to perform every possible actions listed in the documentation: http://docs.transifex.com/developer/api/}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "rspec"
|
24
|
+
spec.add_development_dependency('rails', '~> 4.0.0')
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,181 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: transifex-interface-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Fred-grais
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
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'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.0.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.0.0
|
69
|
+
description: A Transifex API interface written in Ruby
|
70
|
+
email:
|
71
|
+
- frederic.grais@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- .gitignore
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE.txt
|
79
|
+
- README.md
|
80
|
+
- Rakefile
|
81
|
+
- lib/transifex.rb
|
82
|
+
- lib/transifex/crud_requests.rb
|
83
|
+
- lib/transifex/errors.rb
|
84
|
+
- lib/transifex/formats.rb
|
85
|
+
- lib/transifex/json.rb
|
86
|
+
- lib/transifex/language.rb
|
87
|
+
- lib/transifex/languages.rb
|
88
|
+
- lib/transifex/project.rb
|
89
|
+
- lib/transifex/project_components/language.rb
|
90
|
+
- lib/transifex/project_components/language_components/coordinators.rb
|
91
|
+
- lib/transifex/project_components/language_components/reviewers.rb
|
92
|
+
- lib/transifex/project_components/language_components/translators.rb
|
93
|
+
- lib/transifex/project_components/languages.rb
|
94
|
+
- lib/transifex/projects.rb
|
95
|
+
- lib/transifex/resource.rb
|
96
|
+
- lib/transifex/resource_components/content.rb
|
97
|
+
- lib/transifex/resource_components/source.rb
|
98
|
+
- lib/transifex/resource_components/stats.rb
|
99
|
+
- lib/transifex/resource_components/translation.rb
|
100
|
+
- lib/transifex/resource_components/translation_components/string.rb
|
101
|
+
- lib/transifex/resource_components/translation_components/strings.rb
|
102
|
+
- lib/transifex/resource_components/translation_components/utilities.rb
|
103
|
+
- lib/transifex/resources.rb
|
104
|
+
- lib/transifex/version.rb
|
105
|
+
- spec/lib/transifex/configuration_spec.rb
|
106
|
+
- spec/lib/transifex/coordinators_spec.rb
|
107
|
+
- spec/lib/transifex/formats_spec.rb
|
108
|
+
- spec/lib/transifex/language_spec.rb
|
109
|
+
- spec/lib/transifex/languages_spec.rb
|
110
|
+
- spec/lib/transifex/project_language_spec.rb
|
111
|
+
- spec/lib/transifex/project_languages_spec.rb
|
112
|
+
- spec/lib/transifex/project_spec.rb
|
113
|
+
- spec/lib/transifex/projects_spec.rb
|
114
|
+
- spec/lib/transifex/resource_content_spec.rb
|
115
|
+
- spec/lib/transifex/resource_source_spec.rb
|
116
|
+
- spec/lib/transifex/resource_spec.rb
|
117
|
+
- spec/lib/transifex/resources_spec.rb
|
118
|
+
- spec/lib/transifex/reviewers_spec.rb
|
119
|
+
- spec/lib/transifex/stats_spec.rb
|
120
|
+
- spec/lib/transifex/translation_spec.rb
|
121
|
+
- spec/lib/transifex/translation_string_spec.rb
|
122
|
+
- spec/lib/transifex/translation_strings_spec.rb
|
123
|
+
- spec/lib/transifex/translators_spec.rb
|
124
|
+
- spec/lib/yaml/en.yml
|
125
|
+
- spec/lib/yaml/fr.yml
|
126
|
+
- spec/lib/yaml/resource_content_test.yml
|
127
|
+
- spec/lib/yaml/resource_translation_default_content_test.yml
|
128
|
+
- spec/lib/yaml/resource_translation_reviewed_content_test.yml
|
129
|
+
- spec/spec_helper.rb
|
130
|
+
- transifex-interface-ruby.gemspec
|
131
|
+
homepage: ''
|
132
|
+
licenses:
|
133
|
+
- MIT
|
134
|
+
metadata: {}
|
135
|
+
post_install_message:
|
136
|
+
rdoc_options: []
|
137
|
+
require_paths:
|
138
|
+
- lib
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ! '>='
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
requirements: []
|
150
|
+
rubyforge_project:
|
151
|
+
rubygems_version: 2.0.3
|
152
|
+
signing_key:
|
153
|
+
specification_version: 4
|
154
|
+
summary: ! 'This gem allows you to communicate with the Transifex API to perform every
|
155
|
+
possible actions listed in the documentation: http://docs.transifex.com/developer/api/'
|
156
|
+
test_files:
|
157
|
+
- spec/lib/transifex/configuration_spec.rb
|
158
|
+
- spec/lib/transifex/coordinators_spec.rb
|
159
|
+
- spec/lib/transifex/formats_spec.rb
|
160
|
+
- spec/lib/transifex/language_spec.rb
|
161
|
+
- spec/lib/transifex/languages_spec.rb
|
162
|
+
- spec/lib/transifex/project_language_spec.rb
|
163
|
+
- spec/lib/transifex/project_languages_spec.rb
|
164
|
+
- spec/lib/transifex/project_spec.rb
|
165
|
+
- spec/lib/transifex/projects_spec.rb
|
166
|
+
- spec/lib/transifex/resource_content_spec.rb
|
167
|
+
- spec/lib/transifex/resource_source_spec.rb
|
168
|
+
- spec/lib/transifex/resource_spec.rb
|
169
|
+
- spec/lib/transifex/resources_spec.rb
|
170
|
+
- spec/lib/transifex/reviewers_spec.rb
|
171
|
+
- spec/lib/transifex/stats_spec.rb
|
172
|
+
- spec/lib/transifex/translation_spec.rb
|
173
|
+
- spec/lib/transifex/translation_string_spec.rb
|
174
|
+
- spec/lib/transifex/translation_strings_spec.rb
|
175
|
+
- spec/lib/transifex/translators_spec.rb
|
176
|
+
- spec/lib/yaml/en.yml
|
177
|
+
- spec/lib/yaml/fr.yml
|
178
|
+
- spec/lib/yaml/resource_content_test.yml
|
179
|
+
- spec/lib/yaml/resource_translation_default_content_test.yml
|
180
|
+
- spec/lib/yaml/resource_translation_reviewed_content_test.yml
|
181
|
+
- spec/spec_helper.rb
|