polyglot-sync 0.1.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 +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +91 -0
- data/LICENSE.txt +21 -0
- data/README.md +59 -0
- data/Rakefile +12 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/generators/polyglot/install_generator.rb +14 -0
- data/lib/generators/templates/polyglot_sync_initializer.rb +12 -0
- data/lib/polyglot/aws_service.rb +57 -0
- data/lib/polyglot/json_to_yml_converter.rb +36 -0
- data/lib/polyglot/railtie.rb +13 -0
- data/lib/polyglot/sync.rb +36 -0
- data/lib/polyglot/sync/version.rb +5 -0
- data/lib/polyglot/tasks/export.rake +17 -0
- data/lib/polyglot/tasks/import.rake +13 -0
- data/lib/polyglot/yml_to_json_converter.rb +41 -0
- data/polyglot-sync.gemspec +37 -0
- metadata +134 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 58f13a85389aed49af07bfe23cf37b9958e4cea157f63cc0a5afc256df3eb3e0
|
4
|
+
data.tar.gz: f516a5c9184c26a804d9ba71de8a9f62c442ae698e38759e087196f327725108
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cb1fc6427f8ddbbc8c7d23ad198708f920e88d0d607d3b9e86cfc8bad011a0c27f32b20e927575f4cd5258937446aad1238db9aecdc9eae5af8d4f25be0b346a
|
7
|
+
data.tar.gz: 484fc42fd6cb9862b45dcdb2a3b5b3d67016caedbf7f028b40e68458b5246fa31b14b357a646e9cab9e1e02cfcf47a55730080ff0069e08e0886dec6a4848fe3
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
polyglot-sync (0.1.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
actionpack (5.2.4.2)
|
10
|
+
actionview (= 5.2.4.2)
|
11
|
+
activesupport (= 5.2.4.2)
|
12
|
+
rack (~> 2.0, >= 2.0.8)
|
13
|
+
rack-test (>= 0.6.3)
|
14
|
+
rails-dom-testing (~> 2.0)
|
15
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
16
|
+
actionview (5.2.4.2)
|
17
|
+
activesupport (= 5.2.4.2)
|
18
|
+
builder (~> 3.1)
|
19
|
+
erubi (~> 1.4)
|
20
|
+
rails-dom-testing (~> 2.0)
|
21
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
22
|
+
activesupport (5.2.4.2)
|
23
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
24
|
+
i18n (>= 0.7, < 2)
|
25
|
+
minitest (~> 5.1)
|
26
|
+
tzinfo (~> 1.1)
|
27
|
+
builder (3.2.4)
|
28
|
+
coderay (1.1.2)
|
29
|
+
concurrent-ruby (1.1.6)
|
30
|
+
crass (1.0.6)
|
31
|
+
diff-lcs (1.3)
|
32
|
+
erubi (1.9.0)
|
33
|
+
i18n (1.8.2)
|
34
|
+
concurrent-ruby (~> 1.0)
|
35
|
+
loofah (2.5.0)
|
36
|
+
crass (~> 1.0.2)
|
37
|
+
nokogiri (>= 1.5.9)
|
38
|
+
method_source (1.0.0)
|
39
|
+
mini_portile2 (2.4.0)
|
40
|
+
minitest (5.14.0)
|
41
|
+
nokogiri (1.10.9)
|
42
|
+
mini_portile2 (~> 2.4.0)
|
43
|
+
pry (0.13.1)
|
44
|
+
coderay (~> 1.1)
|
45
|
+
method_source (~> 1.0)
|
46
|
+
rack (2.2.2)
|
47
|
+
rack-test (1.1.0)
|
48
|
+
rack (>= 1.0, < 3)
|
49
|
+
rails-dom-testing (2.0.3)
|
50
|
+
activesupport (>= 4.2.0)
|
51
|
+
nokogiri (>= 1.6)
|
52
|
+
rails-html-sanitizer (1.3.0)
|
53
|
+
loofah (~> 2.3)
|
54
|
+
railties (5.2.4.2)
|
55
|
+
actionpack (= 5.2.4.2)
|
56
|
+
activesupport (= 5.2.4.2)
|
57
|
+
method_source
|
58
|
+
rake (>= 0.8.7)
|
59
|
+
thor (>= 0.19.0, < 2.0)
|
60
|
+
rake (10.5.0)
|
61
|
+
rspec (3.9.0)
|
62
|
+
rspec-core (~> 3.9.0)
|
63
|
+
rspec-expectations (~> 3.9.0)
|
64
|
+
rspec-mocks (~> 3.9.0)
|
65
|
+
rspec-core (3.9.1)
|
66
|
+
rspec-support (~> 3.9.1)
|
67
|
+
rspec-expectations (3.9.1)
|
68
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
69
|
+
rspec-support (~> 3.9.0)
|
70
|
+
rspec-mocks (3.9.1)
|
71
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
72
|
+
rspec-support (~> 3.9.0)
|
73
|
+
rspec-support (3.9.2)
|
74
|
+
thor (1.0.1)
|
75
|
+
thread_safe (0.3.6)
|
76
|
+
tzinfo (1.2.7)
|
77
|
+
thread_safe (~> 0.1)
|
78
|
+
|
79
|
+
PLATFORMS
|
80
|
+
ruby
|
81
|
+
|
82
|
+
DEPENDENCIES
|
83
|
+
bundler (~> 2.0)
|
84
|
+
polyglot-sync!
|
85
|
+
pry
|
86
|
+
railties (~> 5)
|
87
|
+
rake (~> 10.0)
|
88
|
+
rspec (~> 3.0)
|
89
|
+
|
90
|
+
BUNDLED WITH
|
91
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Carlos Uva Silva
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# Polyglot-Sync
|
2
|
+
|
3
|
+
A gem to sync translation strings between your Rails backend & the Polyglot API.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'polyglot-sync'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install polyglot-sync
|
20
|
+
|
21
|
+
To run the generator:
|
22
|
+
|
23
|
+
$ rails g polyglot:install
|
24
|
+
|
25
|
+
Or create the polyglot_sync.rb initializer file yourself, containing the following:
|
26
|
+
|
27
|
+
Polyglot::Sync.configure do |config|
|
28
|
+
config.aws_s3_bucket_name = 'BUCKET NAME'
|
29
|
+
|
30
|
+
config.project_slug = 'PROJECT SLUG'
|
31
|
+
|
32
|
+
config.organization_secret_key = 'SECRET KEY'
|
33
|
+
|
34
|
+
config.aws_cloudfront_host = 'CLOUDFRONT HOST'
|
35
|
+
|
36
|
+
config.aws_region = 'AWS REGION'
|
37
|
+
end
|
38
|
+
|
39
|
+
If you do not know the details of your AWS configuration for the Polyglot API, you will need to contact Gaspard+Bruno directly.
|
40
|
+
|
41
|
+
## Usage
|
42
|
+
|
43
|
+
To download existing project strings from your Polyglot API dashboard, run the following command in your terminal:
|
44
|
+
|
45
|
+
$ rake sync:import
|
46
|
+
|
47
|
+
To upload the .yml files located in config/locales, run the following command in your terminal:
|
48
|
+
|
49
|
+
$ rake sync:export
|
50
|
+
|
51
|
+
Be aware that importing or exporting will override alternative strings at the destination.
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Gaspard-Bruno/polyglot-sync.
|
56
|
+
|
57
|
+
## License
|
58
|
+
|
59
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
|
4
|
+
require 'polyglot/sync'
|
5
|
+
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
7
|
+
|
8
|
+
task :default => :spec
|
9
|
+
|
10
|
+
path = File.expand_path(__dir__)
|
11
|
+
Dir.glob("#{path}/lib/polyglot/tasks/*.rake").each { |f| import f }
|
12
|
+
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "polyglot/sync"
|
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
@@ -0,0 +1,14 @@
|
|
1
|
+
module Polyglot
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path("../../templates", __FILE__)
|
5
|
+
desc "Creates initializer for polyglot-sync"
|
6
|
+
|
7
|
+
def copy_initializer
|
8
|
+
template "polyglot_sync_initializer.rb", "config/initializers/polyglot_sync.rb"
|
9
|
+
|
10
|
+
puts "Install complete!"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Polyglot::Sync.configure do |config|
|
2
|
+
config.aws_s3_bucket_name = 'BUCKET NAME'
|
3
|
+
|
4
|
+
config.project_slug = 'PROJECT SLUG'
|
5
|
+
|
6
|
+
config.organization_secret_key = 'SECRET KEY'
|
7
|
+
|
8
|
+
config.aws_cloudfront_host = 'CLOUDFRONT HOST'
|
9
|
+
|
10
|
+
config.aws_region = 'AWS REGION'
|
11
|
+
end
|
12
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'net/http'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module Polyglot
|
5
|
+
module Sync
|
6
|
+
class AwsService
|
7
|
+
attr_reader :json
|
8
|
+
def initialize
|
9
|
+
# @aws_s3_bucket_name = 'polyglot-assets'
|
10
|
+
@aws_s3_bucket_name = Polyglot::Sync.configuration.aws_s3_bucket_name
|
11
|
+
|
12
|
+
# @aws_cloudfront_host = 'd8wlqn7pvlrac.cloudfront.net'
|
13
|
+
@aws_cloudfront_host = Polyglot::Sync.configuration.aws_cloudfront_host
|
14
|
+
|
15
|
+
# @organization_secret_key = 'c4ca4238a0b923820dcc509a6f75849b'
|
16
|
+
@organization_secret_key = Polyglot::Sync.configuration.organization_secret_key
|
17
|
+
|
18
|
+
# @project_slug = 'polyglot'
|
19
|
+
@project_slug = Polyglot::Sync.configuration.project_slug
|
20
|
+
|
21
|
+
# @aws_region = 'eu-west-1'
|
22
|
+
@aws_region = Polyglot::Sync.configuration.aws_region
|
23
|
+
|
24
|
+
@json = fetch_project_json
|
25
|
+
end
|
26
|
+
|
27
|
+
def fetch_project_json
|
28
|
+
# get_path = "https://#{@aws_cloudfront_host}/#{@organization_secret_key}/#{@project_slug}/all.json"
|
29
|
+
get_path = "https://#{@aws_s3_bucket_name}.s3-#{@aws_region}.amazonaws.com/#{@organization_secret_key}/#{@project_slug}/all.json"
|
30
|
+
uri = URI(get_path)
|
31
|
+
result = Net::HTTP.get(uri)
|
32
|
+
|
33
|
+
json = JSON.parse(result)
|
34
|
+
end
|
35
|
+
|
36
|
+
def publish_project_json(json)
|
37
|
+
post_path = "http://localhost:3000/api/books"
|
38
|
+
|
39
|
+
path_to_file = "all.json"
|
40
|
+
|
41
|
+
File.delete(path_to_file) if File.exist?(path_to_file)
|
42
|
+
json_file = File.new(path_to_file, 'a')
|
43
|
+
json_file.write(json)
|
44
|
+
json_file.close
|
45
|
+
|
46
|
+
s3 = Aws::S3::Resource.new(region: @aws_region)
|
47
|
+
|
48
|
+
obj = s3.bucket(@aws_s3_bucket_name).object("#{@organization_secret_key}/#{@project_slug}/#{path_to_file}")
|
49
|
+
|
50
|
+
obj.upload_file(path_to_file, content_type: 'application/json')
|
51
|
+
|
52
|
+
File.delete(path_to_file) if File.exist?(path_to_file)
|
53
|
+
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Polyglot
|
2
|
+
module Sync
|
3
|
+
class JsonToYmlConverter
|
4
|
+
attr_reader :json_file
|
5
|
+
attr_reader :locales_path
|
6
|
+
|
7
|
+
def initialize(json_file)
|
8
|
+
@locales_path = get_file_path
|
9
|
+
@json_file = json_file
|
10
|
+
end
|
11
|
+
|
12
|
+
def fetch_api_data
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
def get_file_path
|
17
|
+
if Kernel.const_defined? 'Rails'
|
18
|
+
File.join(Rails.root, 'config/locales')
|
19
|
+
else
|
20
|
+
raise 'I need Rails to run!'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def parse_json_to_yml # creates individual ymls for each locale
|
25
|
+
locale_arr = []
|
26
|
+
@json_file.keys.each { |key| locale_arr << {key => @json_file[key]} }
|
27
|
+
|
28
|
+
locale_arr.each do |locale|
|
29
|
+
y_file = File.open("#{@locales_path}/#{locale.keys.first}.yml", 'w')
|
30
|
+
y_file.write(YAML.dump(locale))
|
31
|
+
y_file.close
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'json'
|
3
|
+
require 'fileutils'
|
4
|
+
require 'pry'
|
5
|
+
|
6
|
+
require "polyglot/sync/version"
|
7
|
+
require "polyglot/json_to_yml_converter.rb"
|
8
|
+
|
9
|
+
require 'polyglot/railtie' if defined?(Rails)
|
10
|
+
|
11
|
+
module Polyglot
|
12
|
+
module Sync
|
13
|
+
class Error < StandardError; end
|
14
|
+
|
15
|
+
class << self
|
16
|
+
attr_accessor :configuration
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.configure
|
20
|
+
self.configuration ||= Configuration.new
|
21
|
+
yield(configuration)
|
22
|
+
end
|
23
|
+
|
24
|
+
class Configuration
|
25
|
+
attr_accessor :aws_s3_bucket_name
|
26
|
+
attr_accessor :project_slug
|
27
|
+
attr_accessor :organization_secret_key
|
28
|
+
attr_accessor :aws_cloudfront_host
|
29
|
+
attr_accessor :aws_region
|
30
|
+
|
31
|
+
def initialize
|
32
|
+
@aws_region = 'default thing'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'polyglot/yml_to_json_converter'
|
2
|
+
require 'polyglot/aws_service'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
namespace :sync do
|
6
|
+
desc "Converts the yml files in config/locales into a single json object"
|
7
|
+
|
8
|
+
task :export do
|
9
|
+
puts "updating json"
|
10
|
+
|
11
|
+
converter = Polyglot::Sync::YmlToJsonConverter.new
|
12
|
+
converter.iterate_locale_dir
|
13
|
+
|
14
|
+
aws_service = Polyglot::Sync::AwsService.new
|
15
|
+
aws_service.publish_project_json(converter.json)
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'polyglot/json_to_yml_converter'
|
2
|
+
require 'polyglot/aws_service'
|
3
|
+
|
4
|
+
namespace :sync do
|
5
|
+
desc "Converts json & generates yml files in config/locales for i18n"
|
6
|
+
|
7
|
+
task :import do
|
8
|
+
aws_service = Polyglot::Sync::AwsService.new
|
9
|
+
|
10
|
+
converter = Polyglot::Sync::JsonToYmlConverter.new(aws_service.json)
|
11
|
+
converter.parse_json_to_yml
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Polyglot
|
2
|
+
module Sync
|
3
|
+
class YmlToJsonConverter
|
4
|
+
attr_reader :json
|
5
|
+
def initialize
|
6
|
+
@locales_path = get_file_path
|
7
|
+
@json = {}
|
8
|
+
end
|
9
|
+
|
10
|
+
def return_json
|
11
|
+
iterate_locale_dir
|
12
|
+
end
|
13
|
+
|
14
|
+
def get_file_path
|
15
|
+
if Kernel.const_defined? 'Rails'
|
16
|
+
File.join(Rails.root, 'config/locales')
|
17
|
+
else
|
18
|
+
raise 'I need Rails to run!'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def parse_yml_to_json(yml_file)
|
23
|
+
j_file = YAML.load_file(File.open("#{yml_file}", 'r'))
|
24
|
+
end
|
25
|
+
|
26
|
+
def iterate_locale_dir # returns full json of all ymls
|
27
|
+
Dir.foreach(@locales_path) do |filename|
|
28
|
+
|
29
|
+
next if filename == '.' or filename == '..' or filename.include? "devise"
|
30
|
+
|
31
|
+
parsed_yml = parse_yml_to_json("#{@locales_path}/#{filename}")
|
32
|
+
key = parsed_yml.keys.first
|
33
|
+
|
34
|
+
@json[key] = parsed_yml[key]
|
35
|
+
end
|
36
|
+
@json = @json.to_json
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "polyglot/sync/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "polyglot-sync"
|
7
|
+
spec.version = Polyglot::Sync::VERSION
|
8
|
+
spec.authors = ["Carlos Uva Silva"]
|
9
|
+
spec.email = ["carlos.uva.silva@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Gem to sync a project with the Polyglot API"
|
12
|
+
spec.description = "Gem to sync a project with the Polyglot API"
|
13
|
+
spec.homepage = "https://github.com/Gaspard-Bruno/polyglot-sync"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
17
|
+
|
18
|
+
# spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
# spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
20
|
+
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
25
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
end
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_development_dependency "pry"
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_development_dependency 'railties', '~> 5'
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: polyglot-sync
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Carlos Uva Silva
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: pry
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: railties
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '5'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5'
|
83
|
+
description: Gem to sync a project with the Polyglot API
|
84
|
+
email:
|
85
|
+
- carlos.uva.silva@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- Gemfile
|
94
|
+
- Gemfile.lock
|
95
|
+
- LICENSE.txt
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
100
|
+
- lib/generators/polyglot/install_generator.rb
|
101
|
+
- lib/generators/templates/polyglot_sync_initializer.rb
|
102
|
+
- lib/polyglot/aws_service.rb
|
103
|
+
- lib/polyglot/json_to_yml_converter.rb
|
104
|
+
- lib/polyglot/railtie.rb
|
105
|
+
- lib/polyglot/sync.rb
|
106
|
+
- lib/polyglot/sync/version.rb
|
107
|
+
- lib/polyglot/tasks/export.rake
|
108
|
+
- lib/polyglot/tasks/import.rake
|
109
|
+
- lib/polyglot/yml_to_json_converter.rb
|
110
|
+
- polyglot-sync.gemspec
|
111
|
+
homepage: https://github.com/Gaspard-Bruno/polyglot-sync
|
112
|
+
licenses:
|
113
|
+
- MIT
|
114
|
+
metadata: {}
|
115
|
+
post_install_message:
|
116
|
+
rdoc_options: []
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
requirements: []
|
130
|
+
rubygems_version: 3.1.3
|
131
|
+
signing_key:
|
132
|
+
specification_version: 4
|
133
|
+
summary: Gem to sync a project with the Polyglot API
|
134
|
+
test_files: []
|