applocale-ruby 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +32 -0
- data/README.md +39 -0
- data/Rakefile +10 -0
- data/applocale-ruby.gemspec +38 -0
- data/bin/applocale +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/applocale +6 -0
- data/lib/applocale/base_command.rb +10 -0
- data/lib/applocale/cli.rb +36 -0
- data/lib/applocale/client.rb +83 -0
- data/lib/applocale/config.rb +58 -0
- data/lib/applocale/file_writer.rb +21 -0
- data/lib/applocale/pull.rb +46 -0
- data/lib/applocale/ruby.rb +19 -0
- data/lib/applocale/version.rb +3 -0
- metadata +135 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cd22813435f5b08b939eb097c9f0e10193a4aa04843491ff439e9eac91745e42
|
4
|
+
data.tar.gz: a1a0c8d9f364f85be39d203502bb0307940727fb417ef9d3e4dced91efb54e45
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6fe6c97dd21584e6f9fe18ff53e3e1e26fd8c8dff6cea7e2f1038500976242fb0353066fd448aa18877e79af37e3e1ae5386b10850f933b14c3f1e0ac390e7cf
|
7
|
+
data.tar.gz: 93814906a356d82240e71de93e5996f22be1b2d4a6257833d4138760ea7a0e2fb5d95ec61d797b70f788cd188ae9b7ce3adb679f2e07a154de095477a7dfee50
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at andrew@zerlex.net. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
applocale-ruby (0.0.2)
|
5
|
+
httparty (~> 0.18.0)
|
6
|
+
thor (~> 1.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
httparty (0.18.0)
|
12
|
+
mime-types (~> 3.0)
|
13
|
+
multi_xml (>= 0.5.2)
|
14
|
+
mime-types (3.3.1)
|
15
|
+
mime-types-data (~> 3.2015)
|
16
|
+
mime-types-data (3.2020.0425)
|
17
|
+
minitest (5.14.0)
|
18
|
+
multi_xml (0.6.0)
|
19
|
+
rake (10.5.0)
|
20
|
+
thor (1.0.1)
|
21
|
+
|
22
|
+
PLATFORMS
|
23
|
+
ruby
|
24
|
+
|
25
|
+
DEPENDENCIES
|
26
|
+
applocale-ruby!
|
27
|
+
bundler (~> 2.0)
|
28
|
+
minitest (~> 5.0)
|
29
|
+
rake (~> 10.0)
|
30
|
+
|
31
|
+
BUNDLED WITH
|
32
|
+
2.0.2
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Applocale::Ruby
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/applocale/ruby`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'applocale-ruby'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install applocale-ruby
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/applocale-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## Code of Conduct
|
38
|
+
|
39
|
+
Everyone interacting in the Applocale::Ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/applocale-ruby/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "applocale/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "applocale-ruby"
|
7
|
+
spec.version = AppLocale::VERSION
|
8
|
+
spec.authors = ["Andrew Fomera"]
|
9
|
+
spec.email = ["andrew@zerlex.net"]
|
10
|
+
|
11
|
+
spec.summary = %q{Easily pull in your locales from AppLocale.dev}
|
12
|
+
spec.description = %q{Easily pull in your locales from AppLocale.dev}
|
13
|
+
spec.homepage = "https://applocale.dev"
|
14
|
+
|
15
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/applocale/applocale-ruby"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/applocale/applocale-ruby"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.required_ruby_version = ">= 2.3.0"
|
31
|
+
|
32
|
+
spec.add_dependency 'httparty', '~> 0.18.0'
|
33
|
+
spec.add_dependency 'thor', '~> 1.0'
|
34
|
+
|
35
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
36
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
37
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
38
|
+
end
|
data/bin/applocale
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "applocale/ruby"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/applocale
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require "thor"
|
2
|
+
|
3
|
+
module AppLocale
|
4
|
+
class Cli < ::Thor
|
5
|
+
class_option 'config-file',
|
6
|
+
default: "config/applocale.yml",
|
7
|
+
desc: "Customize the location of the config file"
|
8
|
+
class_option 'verbose',
|
9
|
+
type: :boolean,
|
10
|
+
desc: "Turn on additional logging, helpful for debugging."
|
11
|
+
|
12
|
+
desc "pull [en es]", "Downloads all translations, optionally pass specifc locales"
|
13
|
+
long_desc <<-LONGDESC
|
14
|
+
`applocale pull` will fetch all locales from AppLocale.
|
15
|
+
|
16
|
+
You can optionally specify language codes, which will only
|
17
|
+
fetch locales for those specifc languages.
|
18
|
+
|
19
|
+
> $ applocale pull en es de
|
20
|
+
LONGDESC
|
21
|
+
def pull(*languages)
|
22
|
+
AppLocale::Pull.new(config, options).call(languages)
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "version", "Print the current version"
|
26
|
+
def version
|
27
|
+
puts "AppLocale Version: #{AppLocale::VERSION}"
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def config
|
33
|
+
@config ||= AppLocale::Config.load(options['config-file'])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
|
3
|
+
module AppLocale
|
4
|
+
class Client
|
5
|
+
include HTTParty
|
6
|
+
attr_reader(:params)
|
7
|
+
|
8
|
+
def initialize(params = {})
|
9
|
+
@params = params
|
10
|
+
end
|
11
|
+
|
12
|
+
# Required params:
|
13
|
+
# - api_key
|
14
|
+
# - project_id
|
15
|
+
#
|
16
|
+
# Optionally:
|
17
|
+
# - locale
|
18
|
+
# pass single code of language for export
|
19
|
+
def export(language = nil)
|
20
|
+
request(:export, body: export_params(language))
|
21
|
+
end
|
22
|
+
|
23
|
+
def project_information
|
24
|
+
request(:project_show)
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def project_id
|
30
|
+
params[:project_id]
|
31
|
+
end
|
32
|
+
|
33
|
+
def export_params(language)
|
34
|
+
export_params = { project_id: project_id }
|
35
|
+
if language
|
36
|
+
export_params.merge!(locale: language)
|
37
|
+
end
|
38
|
+
export_params
|
39
|
+
end
|
40
|
+
|
41
|
+
def request(action, body: {}, options: {})
|
42
|
+
HTTParty.send(
|
43
|
+
routes[action][:method],
|
44
|
+
routes[action][:endpoint],
|
45
|
+
base_payload(body, options)
|
46
|
+
).parsed_response
|
47
|
+
end
|
48
|
+
|
49
|
+
# rubocop: disable Metrics/MethodLength
|
50
|
+
def routes
|
51
|
+
{
|
52
|
+
project_show: {
|
53
|
+
method: :get,
|
54
|
+
endpoint: "#{base_uri}/projects/#{project_id}"
|
55
|
+
},
|
56
|
+
export: {
|
57
|
+
method: :post,
|
58
|
+
endpoint: "#{base_uri}/exports"
|
59
|
+
}
|
60
|
+
}
|
61
|
+
end
|
62
|
+
# rubocop: enable Metrics/MethodLength
|
63
|
+
|
64
|
+
def base_payload(body = {}, options = {})
|
65
|
+
{
|
66
|
+
headers: {
|
67
|
+
'Accept' => 'application/json',
|
68
|
+
'Authorization' => "Bearer #{params[:api_key]}",
|
69
|
+
'User-Agent' => "AppLocale-Ruby:#{AppLocale::VERSION}"
|
70
|
+
},
|
71
|
+
body: body
|
72
|
+
}.merge(options)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Private: base_uri
|
76
|
+
#
|
77
|
+
def base_uri
|
78
|
+
return "http://localhost:5000/api/v1" if ENV['APPLOCALE_DEVELOPMENT']
|
79
|
+
|
80
|
+
"https://applocale.dev/api/v1"
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require "erb"
|
2
|
+
require "yaml"
|
3
|
+
|
4
|
+
module AppLocale
|
5
|
+
class Config
|
6
|
+
attr_accessor(:config_file, :configuration_data, :api_key, :project_id, :locale_directory)
|
7
|
+
|
8
|
+
def self.load(config_file)
|
9
|
+
new(config_file)
|
10
|
+
end
|
11
|
+
|
12
|
+
def initialize(config_file)
|
13
|
+
@config_file = config_file
|
14
|
+
parse_config_file!
|
15
|
+
@api_key = env_or_config_value('api_key')
|
16
|
+
@project_id = env_or_config_value('project_id')
|
17
|
+
@locale_directory = env_or_config_value('locale_directory', default: 'config/locales')
|
18
|
+
end
|
19
|
+
|
20
|
+
def parse_config_file!
|
21
|
+
validate_config_file!
|
22
|
+
|
23
|
+
file_content = File.read(config_file_path)
|
24
|
+
parsed_config_file = ERB.new(file_content).result
|
25
|
+
@configuration_data = YAML.load(parsed_config_file).dig("applocale") || {}
|
26
|
+
end
|
27
|
+
|
28
|
+
def validate_config_file!
|
29
|
+
unless File.exists?(config_file_path)
|
30
|
+
puts "[AppLocale] Error: #{config_file_path} does not exist."
|
31
|
+
exit 1
|
32
|
+
end
|
33
|
+
|
34
|
+
unless File.readable?(config_file_path)
|
35
|
+
puts "[AppLocale] Error: #{config_file_path} is not readable by AppLocale."
|
36
|
+
exit 1
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
private
|
41
|
+
|
42
|
+
def config_file_path
|
43
|
+
File.expand_path(config_file)
|
44
|
+
end
|
45
|
+
|
46
|
+
def env_or_config_value(key, required: true, default: nil)
|
47
|
+
value = ENV["APPLOCALE_#{key.upcase}"] || configuration_data.dig(key.to_s)
|
48
|
+
if required && (!value || value == "") && !default
|
49
|
+
raise ArgumentError, "Missing APPLOCALE_#{key.upcase} or key in config/applocale.yml"
|
50
|
+
end
|
51
|
+
value || default
|
52
|
+
end
|
53
|
+
|
54
|
+
def config_value_or_default(key, default: nil)
|
55
|
+
configuration_data.dig(key.to_s) || default
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module AppLocale
|
4
|
+
class FileWriter < AppLocale::BaseCommand
|
5
|
+
def call(response)
|
6
|
+
create_locale_directory unless File.directory?(config.locale_directory)
|
7
|
+
|
8
|
+
relative_file_path = "#{config.locale_directory}/#{response.dig('language_code')}.yml"
|
9
|
+
file_path = File.expand_path(relative_file_path)
|
10
|
+
File.write(file_path, response.dig('yaml'))
|
11
|
+
puts "[AppLocale] Wrote translations for #{response.dig('language_code')} to #{relative_file_path}"
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def create_locale_directory
|
17
|
+
FileUtils.mkdir_p(config.locale_directory)
|
18
|
+
puts "[AppLocale] Created #{config.locale_directory} directory"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module AppLocale
|
2
|
+
class Pull < AppLocale::BaseCommand
|
3
|
+
def call(languages)
|
4
|
+
# The user did not pass in specifc languages to ask AppLocale about.
|
5
|
+
# Let's fetch the languages for the project and then loop over them.
|
6
|
+
if languages.empty?
|
7
|
+
puts "[AppLocale] Fetching list of languages..."
|
8
|
+
response = client.project_information
|
9
|
+
if response.dig("success")
|
10
|
+
languages = response.dig("languages")
|
11
|
+
puts "[AppLocale] Received #{languages} from AppLocale..." if options[:verbose]
|
12
|
+
else
|
13
|
+
puts "[AppLocale] #{response.dig('message')}"
|
14
|
+
exit 1
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
if languages.any?
|
19
|
+
languages.each do |language_code|
|
20
|
+
puts "[AppLocale] Fetching translations for #{language_code}..."
|
21
|
+
response = client.export(language_code)
|
22
|
+
if response.dig("success")
|
23
|
+
puts "[AppLocale] Received #{response} from AppLocale" if options[:verbose]
|
24
|
+
AppLocale::FileWriter.new(config, options).call(response)
|
25
|
+
else
|
26
|
+
puts "[AppLocale] #{response.dig('message')}"
|
27
|
+
exit 1
|
28
|
+
end
|
29
|
+
end
|
30
|
+
else
|
31
|
+
puts "[AppLocale] Sorry, no languages were found for the project."
|
32
|
+
exit 1
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def params
|
39
|
+
{ api_key: config.api_key, project_id: config.project_id }
|
40
|
+
end
|
41
|
+
|
42
|
+
def client
|
43
|
+
@client ||= AppLocale::Client.new(params)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# This ruby.rb file is required to keep the gem working properly since the
|
2
|
+
# applocale gem was already taken :(
|
3
|
+
# But we want to name our gem files AppLocale anyway and the commands the same.
|
4
|
+
|
5
|
+
require "applocale/version"
|
6
|
+
require "applocale/client"
|
7
|
+
require "applocale/cli"
|
8
|
+
require "applocale/config"
|
9
|
+
|
10
|
+
# BaseCommand holds configuration option used in various other classes
|
11
|
+
require "applocale/base_command"
|
12
|
+
require "applocale/pull"
|
13
|
+
require "applocale/file_writer"
|
14
|
+
|
15
|
+
module Applocale
|
16
|
+
module Ruby
|
17
|
+
class Error < StandardError; end
|
18
|
+
end
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: applocale-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Fomera
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.18.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.18.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '5.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5.0'
|
83
|
+
description: Easily pull in your locales from AppLocale.dev
|
84
|
+
email:
|
85
|
+
- andrew@zerlex.net
|
86
|
+
executables:
|
87
|
+
- applocale
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- CODE_OF_CONDUCT.md
|
93
|
+
- Gemfile
|
94
|
+
- Gemfile.lock
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- applocale-ruby.gemspec
|
98
|
+
- bin/applocale
|
99
|
+
- bin/console
|
100
|
+
- bin/setup
|
101
|
+
- exe/applocale
|
102
|
+
- lib/applocale/base_command.rb
|
103
|
+
- lib/applocale/cli.rb
|
104
|
+
- lib/applocale/client.rb
|
105
|
+
- lib/applocale/config.rb
|
106
|
+
- lib/applocale/file_writer.rb
|
107
|
+
- lib/applocale/pull.rb
|
108
|
+
- lib/applocale/ruby.rb
|
109
|
+
- lib/applocale/version.rb
|
110
|
+
homepage: https://applocale.dev
|
111
|
+
licenses: []
|
112
|
+
metadata:
|
113
|
+
homepage_uri: https://applocale.dev
|
114
|
+
source_code_uri: https://github.com/applocale/applocale-ruby
|
115
|
+
changelog_uri: https://github.com/applocale/applocale-ruby
|
116
|
+
post_install_message:
|
117
|
+
rdoc_options: []
|
118
|
+
require_paths:
|
119
|
+
- lib
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.3.0
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
requirements: []
|
131
|
+
rubygems_version: 3.0.3
|
132
|
+
signing_key:
|
133
|
+
specification_version: 4
|
134
|
+
summary: Easily pull in your locales from AppLocale.dev
|
135
|
+
test_files: []
|