transifex-ruby-fork-jg 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ea5f60b1c7a7c441cfc6220daf3827b233a7428c
4
+ data.tar.gz: 951033a827afd01aa53b38385b97fb5caf289b61
5
+ SHA512:
6
+ metadata.gz: 62815507c06687aa545eab01739426c724e2138c5254bb1e3ed16bf713abd00ff023bc8d0e8c632eee5b93c3de6d419b197a8424dc80b84b5cb453615cee1043
7
+ data.tar.gz: 45b8230736b1685652c60a41b0d472dd127e8d27ba58beecc346ad6c3fcb531453327a22e264754e947d4faacd5f9cb3e54e335e6121fce4019634d1d5852acf
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ *.DS_Store
4
+ .bundle
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in transifex-ruby.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Toru Maesaka
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,119 @@
1
+ # Ruby Client for the Transifex API
2
+
3
+ ## Introduction
4
+
5
+ transifex-ruby is a Ruby client library for mechanically accessing Transifex via its API. It is intended to be simple and only provide a primitive interface to the API.
6
+
7
+ ## Status
8
+
9
+ transifex-ruby is currently under development and should not be used for mission critical purposes at this stage.
10
+
11
+ ## Installation
12
+
13
+ This gem is only available on GitHub at this time. Add the following line to your Gemfile if you wish to use it.
14
+
15
+ gem 'transifex-ruby', git: 'git@github.com:tmaesaka/transifex-ruby.git'
16
+
17
+ ## Quick Examples
18
+
19
+ ### It all begins by requiring
20
+
21
+ ```ruby
22
+ require 'transifex'
23
+ ```
24
+
25
+ ### Providing Credentials
26
+
27
+ For obvious reasons you must authenticate the user in order to use the API. There are two ways to setup the library with your Transifex credentials.
28
+
29
+ #### Method 1: Global Scope
30
+
31
+ ```ruby
32
+ Transifex.configure do |config|
33
+ config.username = 'banana'
34
+ config.password = 'smoothy'
35
+ end
36
+ ```
37
+
38
+ #### Method 2: Credentials per Transifex::Client object
39
+
40
+ This is the preferred way if your application is intended for multiple Transifex users. Object level credentials have greater precedence than the globally scoped ones shown in method 1.
41
+
42
+ ```ruby
43
+ Transifex::Client.new(username: 'banana', password: 'smoothy')
44
+ ```
45
+
46
+ ### Retrieving a list of Projects that the user has access to
47
+
48
+ ```ruby
49
+ transifex = Transifex::Client.new
50
+ transifex.projects # => Array of Transifex::Project objects
51
+ transifex.projects.each do |project|
52
+ project.name
53
+ project.slug
54
+ project.description
55
+ end
56
+ ```
57
+
58
+ ### Retrieving a particular Project by its identifier (slug)
59
+
60
+ ```ruby
61
+ slug = 'transifex'
62
+ transifex = Transifex::Client.new
63
+ transifex.project(slug) # => Transifex::Project object
64
+ ```
65
+
66
+ ### Retrieving the Resource(s) of a particular Project
67
+
68
+ ```ruby
69
+ slug = 'transifex'
70
+ transifex = Transifex::Client.new
71
+ project = transifex.project(slug) # => Transifex::Project object
72
+ project.resources # => Array of Transifex::Resource objects
73
+ project.resources.each do |resource|
74
+ resource.name
75
+ resource.slug
76
+ ...
77
+ end
78
+
79
+ ```
80
+
81
+ ### Retrieving a particular Resource of a Project by its identifier (slug)
82
+
83
+ ```ruby
84
+ project_slug = 'ima_project'
85
+ resource_slug = 'ima_resource'
86
+ transifex = Transifex::Client.new
87
+ project = transifex.project(project_slug) # => Transifex::Project object
88
+ resource = project.resource(resource_slug) # => Transifex::Resource object
89
+ resource.translation(:en) # => English Translation (if exists)
90
+ resource.translation(:ja) # => Japanese Translation (if exists)
91
+ ...
92
+ ```
93
+
94
+ ### Retrieving the Language(s) of a particular Project
95
+
96
+ ```ruby
97
+ slug = 'transifex'
98
+ transifex = Transifex::Client.new
99
+ project = transifex.project(slug) # => Transifex::Project object
100
+ project.languages # => Array of Transifex::Language objects
101
+ project.languages.each do |language|
102
+ language.language_code
103
+ language.reviewers
104
+ ...
105
+ end
106
+
107
+ ```
108
+
109
+ ## Caching
110
+
111
+ transifex-ruby won't do any read-through caching so your application is responsible for caching the results in order to avoid throwing wasteful HTTP requests. Response caching at the library level may be supported in the future but we're not too concerned about this right now.
112
+
113
+ ## Thread Safety
114
+
115
+ The first version of transifex-ruby is naive in a way that Transifex::Resource and Transifex::Project objects will reuse the connection of the Transifex::Client object that had instantiated them. We will change this design if there's enough demand.
116
+
117
+ ## Reaching Out
118
+
119
+ Please feel free to ping [@tmaesaka](http://twitter.com/tmaesaka) if you'd like to hit the author up or send me a message here on GitHub.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/lib/transifex.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'transifex/config'
2
+
3
+ module Transifex
4
+ extend Config
5
+ end
6
+
7
+ require 'transifex/request'
8
+ require 'transifex/client'
9
+ require 'transifex/project'
10
+ require 'transifex/resource'
11
+ require 'transifex/language'
@@ -0,0 +1,26 @@
1
+ require 'transifex/request'
2
+
3
+ module Transifex
4
+ class Client
5
+ include Transifex::Request
6
+
7
+ def initialize(options = {})
8
+ set_credentials(
9
+ options[:username] || Transifex.username,
10
+ options[:password] || Transifex.password
11
+ )
12
+ end
13
+
14
+ def projects
15
+ get('/projects/').map do |project|
16
+ Transifex::Project.new(project).tap {|p| p.client = self }
17
+ end
18
+ end
19
+
20
+ def project(slug)
21
+ Transifex::Project.new(get("/project/#{slug}/")).tap do |project|
22
+ project.client = self
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,16 @@
1
+ require 'transifex/version'
2
+ require 'transifex/response/raise_http_exception'
3
+
4
+ module Transifex
5
+ module Config
6
+ BASE_URL = ENV['TRANSIFEX_BASE_URL'] || 'https://www.transifex.com'
7
+ USER_AGENT = "transifex-ruby #{Transifex::VERSION}"
8
+ VALID_OPTIONS = [:username, :password]
9
+
10
+ attr_accessor *VALID_OPTIONS
11
+
12
+ def configure
13
+ yield self
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ module Transifex
2
+ class Error < StandardError
3
+ attr_accessor :response
4
+ def initialize(response = nil)
5
+ @response = response
6
+ super
7
+ end
8
+ end
9
+
10
+ class Unauthorized < Error; end
11
+ class Forbidden < Error; end
12
+ class NotFound < Error; end
13
+ class NotAcceptable < Error; end
14
+ class Conflict < Error; end
15
+ class UnsupportedMediaType < Error; end
16
+ class UnprocessableEntity < Error; end
17
+ end
@@ -0,0 +1,14 @@
1
+ module Transifex
2
+ class Language
3
+ attr_accessor :client, :language_code, :coordinators, :translators, :reviewers
4
+
5
+ def initialize(project_slug, transifex_data)
6
+ @project_slug = project_slug
7
+ @language_code = transifex_data[:language_code]
8
+ @coordinators = transifex_data[:coordinators]
9
+ @translators = transifex_data[:translators]
10
+ @reviewers = transifex_data[:reviewers]
11
+ end
12
+
13
+ end
14
+ end
@@ -0,0 +1,38 @@
1
+ module Transifex
2
+ class Project
3
+ attr_accessor :client, :name, :description, :source_language_code, :slug
4
+
5
+ def initialize(transifex_data)
6
+ @name = transifex_data[:name]
7
+ @description = transifex_data[:description]
8
+ @source_language_code = transifex_data[:source_langauge_code]
9
+ @slug = transifex_data[:slug]
10
+ end
11
+
12
+ def details
13
+ @details || details!
14
+ end
15
+
16
+ def details!
17
+ @details = client.get("/project/#{@slug}?details")
18
+ end
19
+
20
+ def resources
21
+ client.get("/project/#{@slug}/resources/").map do |resource|
22
+ Transifex::Resource.new(@slug, resource).tap {|r| r.client = client }
23
+ end
24
+ end
25
+
26
+ def resource(resource_slug)
27
+ resource = client.get("/project/#{@slug}/resource/#{resource_slug}")
28
+ Transifex::Resource.new(@slug, resource).tap {|r| r.client = client }
29
+ end
30
+
31
+ def languages
32
+ client.get("/project/#{@slug}/languages/").map do |language|
33
+ Transifex::Language.new(@slug, language).tap {|r| r.client = client }
34
+ end
35
+ end
36
+
37
+ end
38
+ end
@@ -0,0 +1,51 @@
1
+ require 'faraday'
2
+ require 'faraday_middleware'
3
+
4
+ module Transifex
5
+ module Request
6
+ def set_credentials(username, password)
7
+ @username = username
8
+ @password = password
9
+ end
10
+
11
+ def connection
12
+ @connection ||= make_connection(@username, @password)
13
+ end
14
+
15
+ def get(path, params = {})
16
+ response = connection.get(build_path(:v2, path), params)
17
+ response.body
18
+ end
19
+
20
+ private
21
+
22
+ def build_path(version, path)
23
+ "/api/2/#{path}"
24
+ end
25
+
26
+ def make_connection(username, password)
27
+ options = {
28
+ headers: {
29
+ 'Accept' => 'application/json',
30
+ 'User-Agent' => Transifex::Config::USER_AGENT,
31
+ },
32
+ url: Transifex::Config::BASE_URL
33
+ }
34
+
35
+ Faraday.new(options) do |builder|
36
+ builder.use FaradayMiddleware::Mashify
37
+ builder.use Faraday::Response::ParseJson, :content_type => /\bjson$/
38
+ builder.use Transifex::Response::RaiseHttpException
39
+
40
+ # Authentiation
41
+ builder.basic_auth(username, password)
42
+
43
+ # Request Middleware
44
+ builder.use Faraday::Request::Multipart
45
+ builder.use Faraday::Request::UrlEncoded
46
+
47
+ builder.adapter :net_http
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,38 @@
1
+ module Transifex
2
+ class Resource
3
+ attr_accessor :client, :category, :i18n_type, :source_language_code, :slug, :name
4
+
5
+ def initialize(project_slug, transifex_data)
6
+ @project_slug = project_slug
7
+ @name = transifex_data[:name]
8
+ @category = transifex_data[:category]
9
+ @i18n_type = transifex_data[:i18n_type]
10
+ @source_language_code = transifex_data[:source_language_code]
11
+ @slug = transifex_data[:slug]
12
+ end
13
+
14
+ def details
15
+ @details || details!
16
+ end
17
+
18
+ def details!
19
+ @details = client.get("/project/#{@project_slug}/resource/#{@slug}?details")
20
+ end
21
+
22
+ def stats
23
+ @stats || stats!
24
+ end
25
+
26
+ def stats!
27
+ @stats = client.get("/project/#{@project_slug}/resource/#{@slug}/stats/")
28
+ end
29
+
30
+ def content
31
+ client.get("/project/#{@project_slug}/resource/#{@slug}/content/")
32
+ end
33
+
34
+ def translation(lang)
35
+ client.get("/project/#{@project_slug}/resource/#{@slug}/translation/#{lang}/")
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,30 @@
1
+ require 'transifex/error'
2
+ require 'faraday_middleware'
3
+
4
+ module Transifex
5
+ module Response
6
+ class RaiseHttpException < Faraday::Response::Middleware
7
+ def call(env)
8
+ @app.call(env).on_complete do |response|
9
+ resp = response[:response]
10
+ case response[:status].to_i
11
+ when 401
12
+ raise Transifex::Unauthorized.new(resp)
13
+ when 403
14
+ raise Transifex::Forbidden.new(resp)
15
+ when 404
16
+ raise Transifex::NotFound.new(resp)
17
+ when 406
18
+ raise Transifex::NotAcceptable.new(resp)
19
+ when 409
20
+ raise Transifex::Conflict.new(resp)
21
+ when 415
22
+ raise Transifex::UnsupportedMediaType.new(resp)
23
+ when 422
24
+ raise Transifex::UnprocessableEntity.new(resp)
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,3 @@
1
+ module Transifex
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "language_code": "el",
4
+ "coordinators": [
5
+ "kbairak",
6
+ "glezos"
7
+ ],
8
+ "translators": [
9
+ "mpessas",
10
+ "jkal"
11
+ ],
12
+ "reviewers": [
13
+ "sawidis",
14
+ "ilias"
15
+ ]
16
+ },
17
+ {
18
+ "language_code": "hi",
19
+ "coordinators": [
20
+ "rajeshr",
21
+ "rtnpro"
22
+ ],
23
+ "translators": [
24
+ "sayan"
25
+ ],
26
+ "reviewers": [
27
+ "chandankumar"
28
+ ]
29
+ }
30
+ ]
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "Social Localization Platform",
3
+ "source_language_code": "en",
4
+ "slug": "transifex",
5
+ "name": "Transifex"
6
+ }
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "description": "test",
4
+ "source_language_code": "en",
5
+ "slug": "tesuto",
6
+ "name": "テスト"
7
+ },
8
+ {
9
+ "description": "test",
10
+ "source_language_code": "en",
11
+ "slug": "tesutopuroziekuto",
12
+ "name": "テストプロジェクト"
13
+ },
14
+ {
15
+ "description": "3D printer software",
16
+ "source_language_code": "en",
17
+ "slug": "03dzyx",
18
+ "name": "03dzyx"
19
+ },
20
+ {
21
+ "description": "A simple yet challenging puzzle game.",
22
+ "source_language_code": "en",
23
+ "slug": "100boxes",
24
+ "name": "100 Boxes"
25
+ }
26
+ ]
@@ -0,0 +1,20 @@
1
+ require 'uri'
2
+ require 'pry'
3
+ require 'rspec'
4
+ require 'transifex'
5
+ require 'webmock/rspec'
6
+
7
+ BASE_HEADERS = { :content_type => 'application/json; charset=utf-8' }
8
+
9
+ def make_endpoint(path)
10
+ URI.join(Transifex::Config::BASE_URL, "/api/2/#{path}").to_s
11
+ end
12
+
13
+ def stub_get(path)
14
+ stub_request(:get, make_endpoint(path))
15
+ end
16
+
17
+ def fixture(file)
18
+ prefix = File.expand_path('../fixtures', __FILE__)
19
+ File.new(File.join(prefix, file))
20
+ end
@@ -0,0 +1,52 @@
1
+ require 'spec_helper'
2
+
3
+ describe Transifex::Client do
4
+ let(:client) { Transifex::Client.new }
5
+
6
+ describe '#projects' do
7
+ subject { client.projects }
8
+
9
+ before do
10
+ stub_get('/projects/').to_return(
11
+ body: fixture('projects.json'),
12
+ headers: BASE_HEADERS
13
+ )
14
+ end
15
+
16
+ it 'returns an array of Project objects' do
17
+ subject.each {|p| p.should be_a Transifex::Project }
18
+ end
19
+ end
20
+
21
+ describe '#project' do
22
+ let(:slug) { 'transifex' }
23
+ subject { client.project(slug) }
24
+
25
+ before do
26
+ stub_get("/project/#{slug}/").to_return(
27
+ body: fixture('project.json'),
28
+ headers: BASE_HEADERS
29
+ )
30
+ end
31
+
32
+ it 'returns a Project object' do
33
+ should be_a Transifex::Project
34
+ end
35
+
36
+ describe '#languages' do
37
+ subject { client.project(slug).languages }
38
+
39
+ before do
40
+ stub_get("/project/#{slug}/languages/").to_return(
41
+ body: fixture('languages.json'),
42
+ headers: BASE_HEADERS
43
+ )
44
+ end
45
+
46
+ it 'returns an array of Language objects' do
47
+ subject.each {|p| p.should be_a Transifex::Language }
48
+ end
49
+ end
50
+
51
+ end
52
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+ describe Transifex::Error do
4
+ let(:client) { Transifex::Client.new }
5
+
6
+ {
7
+ 401 => Transifex::Unauthorized,
8
+ 403 => Transifex::Forbidden,
9
+ 404 => Transifex::NotFound,
10
+ 406 => Transifex::NotAcceptable,
11
+ 409 => Transifex::Conflict,
12
+ 415 => Transifex::UnsupportedMediaType,
13
+ 422 => Transifex::UnprocessableEntity,
14
+ }.each do |status, exception|
15
+ context "when HTTP response status is #{status}" do
16
+ before do
17
+ stub_get('/project/xyz/').to_return(status: status)
18
+ end
19
+
20
+ it "should raise #{exception.name} error" do
21
+ expect {
22
+ client.project('xyz')
23
+ }.to raise_error(exception) { |e|
24
+ e.should be_a_kind_of(Transifex::Error)
25
+ e.should respond_to(:response)
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe Transifex do
4
+ describe '#configure' do
5
+ let(:username) { 'nadia' }
6
+ let(:password) { 'candy' }
7
+
8
+ before do
9
+ Transifex.configure do |config|
10
+ config.username = username
11
+ config.password = password
12
+ end
13
+ end
14
+
15
+ it 'stores the username' do
16
+ expect(Transifex.username).to eql username
17
+ end
18
+
19
+ it 'stores the password' do
20
+ expect(Transifex.password).to eql password
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require 'transifex/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.version = Transifex::VERSION
9
+ s.name = 'transifex-ruby-fork-jg'
10
+ s.license = 'MIT'
11
+ s.homepage = 'http://github.com/tmaesaka/transifex-ruby'
12
+ s.summary = 'Ruby client library for Transifex API'
13
+ s.description = s.summary
14
+
15
+ s.files = `git ls-files`.split($/)
16
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
+ s.require_paths = ['lib']
19
+ s.authors = ['Toru Maesaka']
20
+ s.email = ['toru@tmaesaka.com']
21
+
22
+ s.add_dependency 'faraday', '~> 0.8.0'
23
+ s.add_dependency 'faraday_middleware', '~> 0.9.0'
24
+ s.add_dependency 'hashie', '~> 1.2.0'
25
+
26
+ s.add_development_dependency 'bundler', '~> 1.3'
27
+ s.add_development_dependency 'rake'
28
+ s.add_development_dependency 'rspec'
29
+ s.add_development_dependency 'guard-rspec'
30
+ s.add_development_dependency 'webmock'
31
+ s.add_development_dependency 'pry'
32
+ end
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: transifex-ruby-fork-jg
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Toru Maesaka
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.8.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.8.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.9.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.9.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: hashie
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.2.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.2.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Ruby client library for Transifex API
140
+ email:
141
+ - toru@tmaesaka.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - Gemfile
148
+ - LICENSE
149
+ - README.md
150
+ - Rakefile
151
+ - lib/transifex.rb
152
+ - lib/transifex/client.rb
153
+ - lib/transifex/config.rb
154
+ - lib/transifex/error.rb
155
+ - lib/transifex/language.rb
156
+ - lib/transifex/project.rb
157
+ - lib/transifex/request.rb
158
+ - lib/transifex/resource.rb
159
+ - lib/transifex/response/raise_http_exception.rb
160
+ - lib/transifex/version.rb
161
+ - spec/fixtures/languages.json
162
+ - spec/fixtures/project.json
163
+ - spec/fixtures/projects.json
164
+ - spec/spec_helper.rb
165
+ - spec/transifex/client_spec.rb
166
+ - spec/transifex/error_spec.rb
167
+ - spec/transifex_spec.rb
168
+ - transifex-ruby.gemspec
169
+ homepage: http://github.com/tmaesaka/transifex-ruby
170
+ licenses:
171
+ - MIT
172
+ metadata: {}
173
+ post_install_message:
174
+ rdoc_options: []
175
+ require_paths:
176
+ - lib
177
+ required_ruby_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ requirements: []
188
+ rubyforge_project:
189
+ rubygems_version: 2.2.2
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: Ruby client library for Transifex API
193
+ test_files:
194
+ - spec/fixtures/languages.json
195
+ - spec/fixtures/project.json
196
+ - spec/fixtures/projects.json
197
+ - spec/spec_helper.rb
198
+ - spec/transifex/client_spec.rb
199
+ - spec/transifex/error_spec.rb
200
+ - spec/transifex_spec.rb