xezat 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -5
- data/.gitmodules +3 -3
- data/.rspec +2 -0
- data/.travis.yml +5 -3
- data/Gemfile +3 -1
- data/LICENSE.txt +17 -18
- data/README.md +9 -236
- data/Rakefile +4 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/xezat +16 -0
- data/lib/xezat.rb +9 -5
- data/lib/xezat/command/bump.rb +89 -110
- data/lib/xezat/command/debug.rb +13 -20
- data/lib/xezat/command/doctor.rb +9 -19
- data/lib/xezat/command/generate.rb +7 -111
- data/lib/xezat/command/init.rb +77 -0
- data/lib/xezat/command/port.rb +25 -44
- data/lib/xezat/config.rb +14 -0
- data/lib/xezat/cygchangelog.rb +7 -6
- data/lib/xezat/cygclasses.rb +10 -15
- data/lib/xezat/cygversion.rb +2 -3
- data/lib/xezat/debugger/linguist.rb +31 -0
- data/lib/xezat/debugger/variable.rb +18 -0
- data/lib/xezat/detector/autoconf.rb +1 -4
- data/lib/xezat/detector/automake.rb +1 -4
- data/lib/xezat/detector/boost.m4.rb +4 -8
- data/lib/xezat/detector/cmake.rb +2 -5
- data/lib/xezat/detector/gengetopt.rb +1 -4
- data/lib/xezat/detector/gnulib.rb +14 -0
- data/lib/xezat/detector/gobject-introspection.rb +2 -12
- data/lib/xezat/detector/halibut.rb +1 -4
- data/lib/xezat/detector/libQt5Core-devel.rb +1 -12
- data/lib/xezat/detector/libtool.rb +1 -4
- data/lib/xezat/detector/make.rb +4 -6
- data/lib/xezat/detector/meson.rb +9 -0
- data/lib/xezat/detector/ninja.rb +14 -0
- data/lib/xezat/detector/python-docutils.rb +4 -8
- data/lib/xezat/detector/roundup.rb +14 -0
- data/lib/xezat/detector/waf.rb +9 -0
- data/lib/xezat/detectors.rb +6 -23
- data/lib/xezat/ext/linguist/file_blob.rb +13 -0
- data/lib/xezat/generator/pkgconfig.rb +90 -0
- data/lib/xezat/main.rb +59 -9
- data/lib/xezat/packages.rb +8 -17
- data/lib/xezat/variables.rb +10 -37
- data/lib/xezat/version.rb +1 -1
- data/share/xezat/compilers.json +13 -1
- data/share/xezat/languages.json +12 -0
- data/share/xezat/repository/bitbucket.json +3 -3
- data/share/xezat/repository/github.json +3 -3
- data/share/xezat/repository/savannah.json +1 -1
- data/share/xezat/repository/sourceforge.json +1 -1
- data/share/xezat/template/cmake.erb +7 -0
- data/share/xezat/template/cygport.erb +12 -12
- data/share/xezat/template/pkgconfig.erb +1 -1
- data/xezat.gemspec +25 -21
- metadata +70 -171
- data/bin/xezat +0 -14
- data/lib/xezat/command/create.rb +0 -105
- data/lib/xezat/command/validate.rb +0 -43
- data/lib/xezat/commands.rb +0 -32
- data/lib/xezat/refine/linguist/file_blob.rb +0 -14
- data/lib/xezat/validator/m4.rb +0 -31
- data/lib/xezat/validator/pkgconfig.rb +0 -36
- data/lib/xezat/validators.rb +0 -38
- data/share/xezat/repository/google.json +0 -7
- data/share/xezat/show_cygport_description.sh +0 -8
- data/share/xezat/template/pkgconfig.cmake +0 -8
- data/share/xezat/template/setup.erb +0 -17
- data/test/test.rb +0 -25
- data/test/xezat/command/fixture/doctor/a.lst.gz +0 -0
- data/test/xezat/command/fixture/doctor/b1.lst.gz +0 -0
- data/test/xezat/command/fixture/doctor/b2.lst.gz +0 -0
- data/test/xezat/command/test_bump.rb +0 -25
- data/test/xezat/command/test_create.rb +0 -48
- data/test/xezat/command/test_doctor.rb +0 -17
- data/test/xezat/detector/fixture/autoconf/no/configure.scan +0 -1
- data/test/xezat/detector/fixture/autoconf/yes_root/configure.ac +0 -1
- data/test/xezat/detector/fixture/autoconf/yes_subdir/subdir/configure.ac +0 -1
- data/test/xezat/detector/fixture/automake/no/Makefile.in +0 -1
- data/test/xezat/detector/fixture/automake/yes_root/Makefile.am +0 -1
- data/test/xezat/detector/fixture/automake/yes_subdir/subdir/Makefile.am +0 -1
- data/test/xezat/detector/fixture/boost.m4/no/configure.ac +0 -1
- data/test/xezat/detector/fixture/boost.m4/yes/configure.ac +0 -1
- data/test/xezat/detector/fixture/cmake/no/CMakeList.txt +0 -1
- data/test/xezat/detector/fixture/cmake/yes_root/CMakeLists.txt +0 -1
- data/test/xezat/detector/fixture/cmake/yes_subdir/subdir/CMakeLists.txt +0 -1
- data/test/xezat/detector/fixture/gengetopt/no/xezat.log +0 -1
- data/test/xezat/detector/fixture/gengetopt/yes_root/xezat.ggo +0 -1
- data/test/xezat/detector/fixture/gengetopt/yes_subdir/subdir/xezat.ggo +0 -1
- data/test/xezat/detector/fixture/gobject-introspection/no/configure.ac +0 -1
- data/test/xezat/detector/fixture/gobject-introspection/yes/configure.ac +0 -1
- data/test/xezat/detector/fixture/halibut/no/halibut.txt +0 -1
- data/test/xezat/detector/fixture/halibut/yes_root/halibut.but +0 -1
- data/test/xezat/detector/fixture/halibut/yes_subdir/subdir/halibut.but +0 -1
- data/test/xezat/detector/fixture/libQt5Core-devel/no/foo.cygport +0 -1
- data/test/xezat/detector/fixture/libQt5Core-devel/yes_cygport/foo.cygport +0 -1
- data/test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.cygport +0 -1
- data/test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.pro +0 -1
- data/test/xezat/detector/fixture/python-docutils/no/configure.ac +0 -1
- data/test/xezat/detector/fixture/python-docutils/yes/configure.ac +0 -1
- data/test/xezat/detector/test_autoconf.rb +0 -24
- data/test/xezat/detector/test_automake.rb +0 -24
- data/test/xezat/detector/test_boost.m4.rb +0 -20
- data/test/xezat/detector/test_cmake.rb +0 -24
- data/test/xezat/detector/test_gengetopt.rb +0 -24
- data/test/xezat/detector/test_gobject-introspection.rb +0 -20
- data/test/xezat/detector/test_halibut.rb +0 -24
- data/test/xezat/detector/test_libQt5Core-devel.rb +0 -30
- data/test/xezat/detector/test_python-docutils.rb +0 -20
- data/test/xezat/test_cygchangelog.rb +0 -26
- data/test/xezat/test_cygclasses.rb +0 -32
- data/test/xezat/test_cygversion.rb +0 -47
- data/test/xezat/test_variables.rb +0 -16
- data/test/xezat/validator/fixture/m4/no/usr/share/aclocal/.gitkeep +0 -0
- data/test/xezat/validator/fixture/m4/yes/usr/share/aclocal/test.m4 +0 -1
- data/test/xezat/validator/fixture/pkgconfig/no_at/usr/lib/pkgconfig/xezat.pc +0 -11
- data/test/xezat/validator/fixture/pkgconfig/no_link/usr/lib/pkgconfig/xezat.pc +0 -11
- data/test/xezat/validator/fixture/pkgconfig/skip/usr/lib/pkgconfig/.gitkeep +0 -0
- data/test/xezat/validator/fixture/pkgconfig/yes/usr/lib/pkgconfig/xezat.pc +0 -10
- data/test/xezat/validator/test_m4.rb +0 -24
- data/test/xezat/validator/test_pkgconfig.rb +0 -31
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
|
File without changes
|
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'xezat/validator/m4'
|
2
|
-
|
3
|
-
module Xezat::Test::Validator
|
4
|
-
class M4Test < Test::Unit::TestCase
|
5
|
-
include Xezat::Validator
|
6
|
-
include Xezat
|
7
|
-
|
8
|
-
def setup
|
9
|
-
@validator = ValidatorManager[:m4]
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_skip
|
13
|
-
variables = {D: Dir.tmpdir, T: Dir.tmpdir}
|
14
|
-
result, detail = @validator.validate(variables)
|
15
|
-
assert_nil(result)
|
16
|
-
end
|
17
|
-
|
18
|
-
def test_yes
|
19
|
-
variables = {D: File::join(File.dirname(__FILE__), 'fixture', 'm4', 'yes'), T: Dir::tmpdir}
|
20
|
-
result, detail = @validator.validate(variables)
|
21
|
-
assert_true(result)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
require 'xezat/validator/pkgconfig'
|
2
|
-
|
3
|
-
module Xezat::Test::Validator
|
4
|
-
class PkgconfigTest < Test::Unit::TestCase
|
5
|
-
include Xezat
|
6
|
-
|
7
|
-
def setup
|
8
|
-
@validator = ValidatorManager[:pkgconfig]
|
9
|
-
end
|
10
|
-
|
11
|
-
def test_skip
|
12
|
-
variables = {D: Dir.tmpdir}
|
13
|
-
assert_equal([nil, nil], @validator.validate(variables))
|
14
|
-
end
|
15
|
-
|
16
|
-
def test_no_at
|
17
|
-
variables = {D: File::join(File.dirname(__FILE__), 'fixture', 'pkgconfig', 'no_at')}
|
18
|
-
assert_equal([false, '/usr/lib/pkgconfig/xezat.pc: contains @'], @validator.validate(variables))
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_no_link
|
22
|
-
variables = {D: File::join(File.dirname(__FILE__), 'fixture', 'pkgconfig', 'no_link')}
|
23
|
-
assert_equal([false, '/usr/lib/pkgconfig/xezat.pc: no library flags found'], @validator.validate(variables))
|
24
|
-
end
|
25
|
-
|
26
|
-
def test_yes
|
27
|
-
variables = {D: File::join(File.dirname(__FILE__), 'fixture', 'pkgconfig', 'yes')}
|
28
|
-
assert_equal([true, nil], @validator.validate(variables))
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|