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.
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
@@ -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
-
data/shell.nix DELETED
@@ -1,10 +0,0 @@
1
- with (import <nixpkgs> {});
2
- let
3
- env = bundlerEnv {
4
- name = "bundler-env";
5
- gemdir = ./nix/gem;
6
- };
7
- in stdenv.mkDerivation {
8
- name = "shell";
9
- buildInputs = [ env ];
10
- }