phraseapp_updater 2.1.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/phraseapp_common.sh +13 -7
- data/bin/synchronize_phraseapp.sh +4 -4
- data/lib/phraseapp_updater/phraseapp_api.rb +134 -98
- data/lib/phraseapp_updater/version.rb +1 -1
- data/lib/phraseapp_updater.rb +5 -4
- metadata +13 -28
- data/.circleci/config.yml +0 -98
- data/.envrc +0 -1
- data/.gitignore +0 -9
- data/.rspec +0 -2
- data/.travis.yml +0 -5
- data/CODE_OF_CONDUCT.markdown +0 -50
- data/Gemfile +0 -8
- data/README.markdown +0 -177
- data/Rakefile +0 -7
- data/nix/gem/Gemfile +0 -24
- data/nix/gem/Gemfile.lock +0 -68
- data/nix/gem/gemset.nix +0 -230
- data/nix/generate.rb +0 -41
- data/phraseapp_updater.gemspec +0 -35
- data/shell.nix +0 -10
data/nix/generate.rb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
#! /usr/bin/env nix-shell
|
2
|
-
#! nix-shell -i ruby -p ruby -p bundler -p bundix
|
3
|
-
# frozen_string_literal: true
|
4
|
-
|
5
|
-
# Bundix doesn't support `gemspec` directive in Gemfiles, as it doesn't copy the
|
6
|
-
# gemspec (and its dependencies) into the store.
|
7
|
-
# This workaround is from https://github.com/manveru/bundix/issues/10#issuecomment-405879379
|
8
|
-
|
9
|
-
require 'shellwords'
|
10
|
-
|
11
|
-
def sh(*args)
|
12
|
-
warn args.shelljoin
|
13
|
-
system(*args) || raise
|
14
|
-
end
|
15
|
-
|
16
|
-
sh 'bundle', 'lock'
|
17
|
-
|
18
|
-
require 'fileutils'
|
19
|
-
require 'bundler'
|
20
|
-
|
21
|
-
lockfile = Bundler::LockfileParser.new(File.read('Gemfile.lock'))
|
22
|
-
gems = lockfile.specs.select { |spec| spec.source.is_a?(Bundler::Source::Rubygems) }
|
23
|
-
sources = [URI('https://rubygems.org/')] | gems.map(&:source).flat_map(&:remotes)
|
24
|
-
|
25
|
-
FileUtils.mkdir_p 'nix/gem'
|
26
|
-
Dir.chdir 'nix/gem' do
|
27
|
-
['Gemfile', 'Gemfile.lock', 'gemset.nix'].each do |f|
|
28
|
-
File.delete(f) if File.exist?(f)
|
29
|
-
end
|
30
|
-
|
31
|
-
File.open('Gemfile', 'w') do |gemfile|
|
32
|
-
sources.each { |source| gemfile.puts "source #{source.to_s.inspect}" }
|
33
|
-
gemfile.puts
|
34
|
-
|
35
|
-
gems.each do |gem|
|
36
|
-
gemfile.puts "gem #{gem.name.inspect}, #{gem.version.to_s.inspect}"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
sh 'bundix', '-l'
|
41
|
-
end
|
data/phraseapp_updater.gemspec
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'phraseapp_updater/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "phraseapp_updater"
|
8
|
-
spec.version = PhraseAppUpdater::VERSION
|
9
|
-
spec.authors = ["Kevin Griffin"]
|
10
|
-
spec.email = ["kev@bibo.com.ph"]
|
11
|
-
|
12
|
-
spec.summary = %q{A three-way differ for PhraseApp projects.}
|
13
|
-
spec.description = %q{A tool for merging data on PhraseApp with local changes (usually two git revisions)}
|
14
|
-
spec.homepage = "https://app.engoo.com"
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
-
spec.bindir = "bin"
|
19
|
-
spec.executables = ["phraseapp_updater"]
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
spec.add_dependency "thor", "~> 0.19"
|
23
|
-
spec.add_dependency "phraseapp-ruby", "~> 1.3"
|
24
|
-
spec.add_dependency "hashdiff", "~> 0.3"
|
25
|
-
spec.add_dependency "multi_json", "~> 1.12"
|
26
|
-
spec.add_dependency "oj", "~> 2.18"
|
27
|
-
spec.add_dependency "deep_merge", "~> 1.1"
|
28
|
-
spec.add_dependency "parallel", "~> 1.12"
|
29
|
-
|
30
|
-
spec.add_development_dependency "bundler", "~> 1.12"
|
31
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
-
spec.add_development_dependency "pry", "~> 0.10"
|
34
|
-
end
|
35
|
-
|