xezat 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -5
  3. data/.gitmodules +3 -3
  4. data/.rspec +2 -0
  5. data/.travis.yml +5 -3
  6. data/Gemfile +3 -1
  7. data/LICENSE.txt +17 -18
  8. data/README.md +9 -236
  9. data/Rakefile +4 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/exe/xezat +16 -0
  13. data/lib/xezat.rb +9 -5
  14. data/lib/xezat/command/bump.rb +89 -110
  15. data/lib/xezat/command/debug.rb +13 -20
  16. data/lib/xezat/command/doctor.rb +9 -19
  17. data/lib/xezat/command/generate.rb +7 -111
  18. data/lib/xezat/command/init.rb +77 -0
  19. data/lib/xezat/command/port.rb +25 -44
  20. data/lib/xezat/config.rb +14 -0
  21. data/lib/xezat/cygchangelog.rb +7 -6
  22. data/lib/xezat/cygclasses.rb +10 -15
  23. data/lib/xezat/cygversion.rb +2 -3
  24. data/lib/xezat/debugger/linguist.rb +31 -0
  25. data/lib/xezat/debugger/variable.rb +18 -0
  26. data/lib/xezat/detector/autoconf.rb +1 -4
  27. data/lib/xezat/detector/automake.rb +1 -4
  28. data/lib/xezat/detector/boost.m4.rb +4 -8
  29. data/lib/xezat/detector/cmake.rb +2 -5
  30. data/lib/xezat/detector/gengetopt.rb +1 -4
  31. data/lib/xezat/detector/gnulib.rb +14 -0
  32. data/lib/xezat/detector/gobject-introspection.rb +2 -12
  33. data/lib/xezat/detector/halibut.rb +1 -4
  34. data/lib/xezat/detector/libQt5Core-devel.rb +1 -12
  35. data/lib/xezat/detector/libtool.rb +1 -4
  36. data/lib/xezat/detector/make.rb +4 -6
  37. data/lib/xezat/detector/meson.rb +9 -0
  38. data/lib/xezat/detector/ninja.rb +14 -0
  39. data/lib/xezat/detector/python-docutils.rb +4 -8
  40. data/lib/xezat/detector/roundup.rb +14 -0
  41. data/lib/xezat/detector/waf.rb +9 -0
  42. data/lib/xezat/detectors.rb +6 -23
  43. data/lib/xezat/ext/linguist/file_blob.rb +13 -0
  44. data/lib/xezat/generator/pkgconfig.rb +90 -0
  45. data/lib/xezat/main.rb +59 -9
  46. data/lib/xezat/packages.rb +8 -17
  47. data/lib/xezat/variables.rb +10 -37
  48. data/lib/xezat/version.rb +1 -1
  49. data/share/xezat/compilers.json +13 -1
  50. data/share/xezat/languages.json +12 -0
  51. data/share/xezat/repository/bitbucket.json +3 -3
  52. data/share/xezat/repository/github.json +3 -3
  53. data/share/xezat/repository/savannah.json +1 -1
  54. data/share/xezat/repository/sourceforge.json +1 -1
  55. data/share/xezat/template/cmake.erb +7 -0
  56. data/share/xezat/template/cygport.erb +12 -12
  57. data/share/xezat/template/pkgconfig.erb +1 -1
  58. data/xezat.gemspec +25 -21
  59. metadata +70 -171
  60. data/bin/xezat +0 -14
  61. data/lib/xezat/command/create.rb +0 -105
  62. data/lib/xezat/command/validate.rb +0 -43
  63. data/lib/xezat/commands.rb +0 -32
  64. data/lib/xezat/refine/linguist/file_blob.rb +0 -14
  65. data/lib/xezat/validator/m4.rb +0 -31
  66. data/lib/xezat/validator/pkgconfig.rb +0 -36
  67. data/lib/xezat/validators.rb +0 -38
  68. data/share/xezat/repository/google.json +0 -7
  69. data/share/xezat/show_cygport_description.sh +0 -8
  70. data/share/xezat/template/pkgconfig.cmake +0 -8
  71. data/share/xezat/template/setup.erb +0 -17
  72. data/test/test.rb +0 -25
  73. data/test/xezat/command/fixture/doctor/a.lst.gz +0 -0
  74. data/test/xezat/command/fixture/doctor/b1.lst.gz +0 -0
  75. data/test/xezat/command/fixture/doctor/b2.lst.gz +0 -0
  76. data/test/xezat/command/test_bump.rb +0 -25
  77. data/test/xezat/command/test_create.rb +0 -48
  78. data/test/xezat/command/test_doctor.rb +0 -17
  79. data/test/xezat/detector/fixture/autoconf/no/configure.scan +0 -1
  80. data/test/xezat/detector/fixture/autoconf/yes_root/configure.ac +0 -1
  81. data/test/xezat/detector/fixture/autoconf/yes_subdir/subdir/configure.ac +0 -1
  82. data/test/xezat/detector/fixture/automake/no/Makefile.in +0 -1
  83. data/test/xezat/detector/fixture/automake/yes_root/Makefile.am +0 -1
  84. data/test/xezat/detector/fixture/automake/yes_subdir/subdir/Makefile.am +0 -1
  85. data/test/xezat/detector/fixture/boost.m4/no/configure.ac +0 -1
  86. data/test/xezat/detector/fixture/boost.m4/yes/configure.ac +0 -1
  87. data/test/xezat/detector/fixture/cmake/no/CMakeList.txt +0 -1
  88. data/test/xezat/detector/fixture/cmake/yes_root/CMakeLists.txt +0 -1
  89. data/test/xezat/detector/fixture/cmake/yes_subdir/subdir/CMakeLists.txt +0 -1
  90. data/test/xezat/detector/fixture/gengetopt/no/xezat.log +0 -1
  91. data/test/xezat/detector/fixture/gengetopt/yes_root/xezat.ggo +0 -1
  92. data/test/xezat/detector/fixture/gengetopt/yes_subdir/subdir/xezat.ggo +0 -1
  93. data/test/xezat/detector/fixture/gobject-introspection/no/configure.ac +0 -1
  94. data/test/xezat/detector/fixture/gobject-introspection/yes/configure.ac +0 -1
  95. data/test/xezat/detector/fixture/halibut/no/halibut.txt +0 -1
  96. data/test/xezat/detector/fixture/halibut/yes_root/halibut.but +0 -1
  97. data/test/xezat/detector/fixture/halibut/yes_subdir/subdir/halibut.but +0 -1
  98. data/test/xezat/detector/fixture/libQt5Core-devel/no/foo.cygport +0 -1
  99. data/test/xezat/detector/fixture/libQt5Core-devel/yes_cygport/foo.cygport +0 -1
  100. data/test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.cygport +0 -1
  101. data/test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.pro +0 -1
  102. data/test/xezat/detector/fixture/python-docutils/no/configure.ac +0 -1
  103. data/test/xezat/detector/fixture/python-docutils/yes/configure.ac +0 -1
  104. data/test/xezat/detector/test_autoconf.rb +0 -24
  105. data/test/xezat/detector/test_automake.rb +0 -24
  106. data/test/xezat/detector/test_boost.m4.rb +0 -20
  107. data/test/xezat/detector/test_cmake.rb +0 -24
  108. data/test/xezat/detector/test_gengetopt.rb +0 -24
  109. data/test/xezat/detector/test_gobject-introspection.rb +0 -20
  110. data/test/xezat/detector/test_halibut.rb +0 -24
  111. data/test/xezat/detector/test_libQt5Core-devel.rb +0 -30
  112. data/test/xezat/detector/test_python-docutils.rb +0 -20
  113. data/test/xezat/test_cygchangelog.rb +0 -26
  114. data/test/xezat/test_cygclasses.rb +0 -32
  115. data/test/xezat/test_cygversion.rb +0 -47
  116. data/test/xezat/test_variables.rb +0 -16
  117. data/test/xezat/validator/fixture/m4/no/usr/share/aclocal/.gitkeep +0 -0
  118. data/test/xezat/validator/fixture/m4/yes/usr/share/aclocal/test.m4 +0 -1
  119. data/test/xezat/validator/fixture/pkgconfig/no_at/usr/lib/pkgconfig/xezat.pc +0 -11
  120. data/test/xezat/validator/fixture/pkgconfig/no_link/usr/lib/pkgconfig/xezat.pc +0 -11
  121. data/test/xezat/validator/fixture/pkgconfig/skip/usr/lib/pkgconfig/.gitkeep +0 -0
  122. data/test/xezat/validator/fixture/pkgconfig/yes/usr/lib/pkgconfig/xezat.pc +0 -10
  123. data/test/xezat/validator/test_m4.rb +0 -24
  124. data/test/xezat/validator/test_pkgconfig.rb +0 -31
@@ -1,13 +1,63 @@
1
- require 'logger/colors'
2
- require 'mercenary'
3
- require 'xezat/commands'
1
+ require 'thor'
2
+ require 'thor/zsh_completion'
3
+ require 'xezat'
4
4
  require 'xezat/version'
5
5
 
6
- Mercenary.program(:xezat) do |p|
7
- p.version Xezat::VERSION
8
- p.description 'Xezat is the complement of cygport'
9
- p.syntax 'xezat <subcommand> [options]'
6
+ module Xezat
7
+ class Main < Thor
8
+ include ZshCompletion::Command
9
+ class_option :config, type: :string, aliases: '-c', desc: 'specify config', default: INI_FILE
10
+ class_option :help, type: :boolean, aliases: '-h', desc: 'help message'
10
11
 
11
- Xezat::CommandManager::program = p
12
- Xezat::CommandManager::load_default_commands
12
+ desc 'version', 'Print version'
13
+
14
+ def version()
15
+ puts "Xezat #{Xezat::VERSION}"
16
+ end
17
+
18
+ desc 'init cygport', 'Create new cygport'
19
+ option :category, type: :string, desc: 'specify category'
20
+ option :description, type: :string, desc: 'specify description'
21
+ option :inherit, type: :string, aliases: '-i', desc: 'specify cygclasses (comma-separated)'
22
+ option :overwrite, type: :boolean, aliases: '-o', desc: 'overwrite CYGPORT'
23
+ option :repository, type: :string, aliases: '-r', desc: 'specify repository'
24
+
25
+ def init(cygport)
26
+ require 'xezat/command/init'
27
+ Command::Init.new(options, cygport).execute
28
+ end
29
+
30
+ desc 'bump cygport', 'Bump version (rewrite README)'
31
+ option :message, type: :string, aliases: '-m', desc: 'specify message'
32
+
33
+ def bump(cygport)
34
+ require 'xezat/command/bump'
35
+ Command::Bump.new(options, cygport).execute
36
+ end
37
+
38
+ desc 'debug subcommand', 'Debug cygport'
39
+ require 'xezat/command/debug'
40
+ subcommand 'debug',Command::Debug
41
+
42
+ desc 'doctor', 'Check your system for potential problems'
43
+
44
+ def doctor
45
+ require 'xezat/command/doctor'
46
+ Command::Doctor.new.execute
47
+ end
48
+
49
+ desc 'generate subcommand', 'Generate development file'
50
+ require 'xezat/command/generate'
51
+ subcommand 'generate', Command::Generate
52
+
53
+ desc 'port cygport', 'Copy cygport to git repository'
54
+ option :noop, type: :boolean, aliases: '-n', desc: 'dry run'
55
+ option :portdir, type: :string, aliases: '-p', desc: 'specify port directory'
56
+
57
+ def port(cygport)
58
+ require 'xezat/command/port'
59
+ Command::Port.new(options, cygport).execute
60
+ end
61
+
62
+ end
13
63
  end
@@ -1,21 +1,12 @@
1
1
  module Xezat
2
- class PackageManager
3
- # install.db を解析して Hash にする
4
- def initialize(str)
5
- @packages = {}
6
- str.lines do |line|
7
- record = line.split(/\s+/)
8
- next unless record.size == 3 # /^hoge hoge-ver-rel.tar.bz2 0$/
9
- @packages[record[0].intern] = record[1].gsub(/\.tar\.bz2$/, '')
10
- end
11
- end
12
-
13
- def [](key)
14
- @packages[key]
15
- end
16
-
17
- def self.get_installed_packages(db_path = '/etc/setup/installed.db')
18
- self.new(File::read(db_path))
2
+ def packages(db_path = '/etc/setup/installed.db')
3
+ raise ArgumentError, "#{db_path} not found" unless File.exist?(db_path)
4
+ packages = {}
5
+ File.read(db_path).lines do |line|
6
+ record = line.split(/\s+/)
7
+ next unless record.size == 3 # /^hoge hoge-ver-rel.tar.bz2 0$/
8
+ packages[record[0].intern] = record[1].gsub(/\.tar\.bz2$/, '')
19
9
  end
10
+ packages
20
11
  end
21
12
  end
@@ -1,50 +1,23 @@
1
+ require 'facets/string/word_wrap'
1
2
  require 'open3'
2
3
  require 'uri'
3
4
  require 'yaml'
4
5
  require 'xezat'
5
6
 
6
7
  module Xezat
7
- # cygport 外部プロセスが異常終了した場合に投げられる例外
8
8
  class CygportProcessError < StandardError
9
9
  end
10
10
 
11
- # cygport 変数を管理するクラス
12
- class VariableManager
13
- def initialize(str, description = nil)
14
- @variables = YAML.load(str).each_value do |v|
15
- v.strip! if v.respond_to?(:strip)
16
- end
17
- @variables[:DESCRIPTION] = description unless description.nil?
18
- end
19
-
20
- def [](key)
21
- @variables[key]
22
- end
23
-
24
- def key?(key)
25
- @variables.key?(key)
26
- end
27
-
28
- def each(&block)
29
- @variables.each do |key, value|
30
- block.call(key, value)
31
- end
32
- end
33
-
34
- # 指定された cygport に基づいたシェル変数群を取得する
35
- def self.get_default_variables(cygport)
36
- command = ['bash', File.expand_path(File.join(DATA_DIR, 'show_cygport_variable.sh')), cygport]
37
- result, error, status = Open3.capture3(command.join(' '))
38
- raise CygportProcessError, error unless status.success?
39
- result.gsub!(/^.*\*\*\*.*$/, '')
40
-
41
- # DESCRIPTION だけ改行を保持したまま取り込みたい
42
- command = ['bash', File.expand_path(File.join(DATA_DIR, 'show_cygport_description.sh')), cygport]
43
- description, error, status = Open3.capture3(command.join(' '))
44
- raise CygportProcessError, error unless status.success?
45
- description.gsub!(/^.*\*\*\*.*$/, '')
11
+ def variables(cygport)
12
+ command = ['bash', File.expand_path(File.join(DATA_DIR, 'show_cygport_variable.sh')), cygport]
13
+ result, error, status = Open3.capture3(command.join(' '))
14
+ raise CygportProcessError, error unless status.success?
15
+ result.gsub!(/^.*\*\*\*.*$/, '')
46
16
 
47
- self.new(result, description)
17
+ variables = YAML.load(result).each_value do |v|
18
+ v.strip! if v.respond_to?(:strip)
48
19
  end
20
+ variables[:DESCRIPTION].word_wrap!(79)
21
+ variables
49
22
  end
50
23
  end
@@ -1,3 +1,3 @@
1
1
  module Xezat
2
- VERSION = '0.0.4'
2
+ VERSION = '0.1.0'.freeze
3
3
  end
@@ -15,7 +15,7 @@
15
15
  "gcc-core"
16
16
  ]
17
17
  },
18
- "FORTRAN": {
18
+ "Fortran": {
19
19
  "package": "gcc-fortran",
20
20
  "dependencies": [
21
21
  "binutils",
@@ -25,6 +25,9 @@
25
25
  "Lex": {
26
26
  "package": "flex"
27
27
  },
28
+ "Lua": {
29
+ "package": "lua"
30
+ },
28
31
  "Objective-C": {
29
32
  "package": "gcc-objc",
30
33
  "dependencies": [
@@ -39,9 +42,18 @@
39
42
  "gcc-core"
40
43
  ]
41
44
  },
45
+ "Python": {
46
+ "package": "python"
47
+ },
48
+ "Ragel": {
49
+ "package": "ragel"
50
+ },
42
51
  "Ruby": {
43
52
  "package": "ruby"
44
53
  },
54
+ "Vala": {
55
+ "package": "vala"
56
+ },
45
57
  "Yacc": {
46
58
  "package": "bison"
47
59
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ ".C": "C++",
3
+ ".CXX": "C++",
4
+ ".H": "C++",
5
+ ".HXX": "C++",
6
+ ".c": "C",
7
+ ".cpp": "C++",
8
+ ".cxx": "C++",
9
+ ".h": "C",
10
+ ".hpp": "C++",
11
+ ".hxx": "C++"
12
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "HOMEPAGE": "https://bitbucket.org/fd00/${PN}",
3
- "SRC_URI": "https://bitbucket.org/fd00/${PN}/downloads/${P}.tar.gz",
4
- "HG_URI": "https://bitbucket.org/fd00/${PN}"
2
+ "HOMEPAGE": "https://bitbucket.org/${BITBUCKET_USER}/${PN}",
3
+ "SRC_URI": "https://bitbucket.org/${BITBUCKET_USER}/${PN}/downloads/${P}.tar.gz",
4
+ "HG_URI": "https://bitbucket.org/${BITBUCKET_USER}/${PN}"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "HOMEPAGE": "https://github.com/fd00/${PN}",
3
- "SRC_URI": "https://github.com/fd00/${PN}/archive/v${PV}.tar.gz",
4
- "GIT_URI": "https://github.com/fd00/${PN}.git"
2
+ "HOMEPAGE": "https://github.com/-/${PN}",
3
+ "SRC_URI": "https://github.com/-/${PN}/archive/v${PV}.tar.gz",
4
+ "GIT_URI": "git://github.com/-/${PN}.git"
5
5
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "HOMEPAGE": "http://www.nongnu.org/${PN}/",
2
+ "HOMEPAGE": "http://www.nongnu.org/${PN}/",
3
3
  "SRC_URI": "mirror://savannah/${PN}/${P}.tar.gz"
4
4
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "HOMEPAGE": "http://${PN}.sf.net/",
2
+ "HOMEPAGE": "https://${PN}.sourceforge.io/",
3
3
  "SRC_URI": "mirror://sourceforge/${PN}/${P}.tar.gz",
4
4
  "SVN_URI": "svn://svn.code.sf.net/p/${PN}/code",
5
5
  "GIT_URI": "git://git.code.sf.net/p/${PN}/code"
@@ -0,0 +1,7 @@
1
+
2
+ SET(prefix ${CMAKE_INSTALL_PREFIX})
3
+ SET(exec_prefix ${CMAKE_INSTALL_PREFIX})
4
+ SET(libdir ${CMAKE_INSTALL_PREFIX}/lib)
5
+ SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
6
+ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/<%= variables[:PN] %>.pc.in ${CMAKE_BINARY_DIR}/<%= variables[:PN] %>.pc @ONLY)
7
+ INSTALL(FILES ${CMAKE_BINARY_DIR}/<%= variables[:PN] %>.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
@@ -9,25 +9,25 @@ DESCRIPTION="<%= description %>"
9
9
  <% cygclasses.each do |cygclass| -%>
10
10
  inherit <%= cygclass %>
11
11
  <% end -%>
12
- <% pkg_name = cygport.gsub(/-[0-9].*$/, '').gsub(/[+-\.]/, '_') -%>
13
- <% unless apponly then -%>
12
+
13
+ <% pkg_name = cygport.gsub(/-[0-9].*$/, '') -%>
14
+ <% pkg_name_var = pkg_name.gsub(/[+-\.]/, '_') -%>
14
15
  PKG_NAMES="
15
- ${PN}
16
- lib${PN}0
17
- lib${PN}-devel
16
+ <%= pkg_name %>
17
+ lib<%= pkg_name.gsub(/^lib/, '') %>0
18
+ lib<%= pkg_name.gsub(/^lib/, '') %>-devel
18
19
  "
19
- <%= pkg_name %>_CONTENTS="
20
+ <%= pkg_name_var %>_CONTENTS="
20
21
  usr/bin/*.exe
21
22
  usr/share
22
23
  "
23
- lib<%= pkg_name %>0_CONTENTS="
24
+ lib<%= pkg_name_var.gsub(/^lib/, '') %>0_CONTENTS="
24
25
  usr/bin/*.dll
25
26
  "
26
- lib<%= pkg_name %>_devel_CONTENTS="
27
+ lib<%= pkg_name_var.gsub(/^lib/, '') %>_devel_CONTENTS="
27
28
  usr/include
28
29
  usr/lib
29
30
  "
30
- <%= pkg_name %>_SUMMARY="${SUMMARY} (licensing & readmes)"
31
- lib<%= pkg_name %>0_SUMMARY="${SUMMARY} (runtime)"
32
- lib<%= pkg_name %>_devel_SUMMARY="${SUMMARY} (development)"
33
- <% end -%>
31
+ <%= pkg_name_var %>_SUMMARY="${SUMMARY} (licensing & readmes)"
32
+ lib<%= pkg_name_var.gsub(/^lib/, '') %>0_SUMMARY="${SUMMARY} (runtime)"
33
+ lib<%= pkg_name_var.gsub(/^lib/, '') %>_devel_SUMMARY="${SUMMARY} (development)"
@@ -6,5 +6,5 @@ includedir=@includedir@
6
6
  Name: <%= variables[:PN] %>
7
7
  Description: <%= variables[:SUMMARY] %>
8
8
  Version: @VERSION@
9
- Libs: -L${libdir} -l<%= variables[:PN] %>
9
+ Libs: -L${libdir} -l<%= variables[:PN].gsub(/^lib/, '') %>
10
10
  Cflags: -I${includedir}
@@ -4,29 +4,33 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'xezat/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "xezat"
7
+ spec.name = 'xezat'
8
8
  spec.version = Xezat::VERSION
9
- spec.authors = ["fd0"]
10
- spec.email = ["booleanlabel@gmail.com"]
11
- spec.summary = 'Complement of cygport'
12
- spec.description = 'Complement of cygport '
13
- spec.homepage = "https://github.com/fd00/xezat"
14
- spec.license = "MIT"
9
+ spec.authors = ['Daisuke Fujimura (fd0)']
10
+ spec.email = ['booleanlabel@gmail.com']
15
11
 
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
12
+ spec.summary = %q{xezat helps you win at cygport.}
13
+ spec.description = %q{xezat helps you win at cygport.}
14
+ spec.homepage = 'https://github.com/fd00/xezat'
15
+ spec.license = 'MIT'
20
16
 
21
- spec.add_runtime_dependency "facets", "~> 3.0"
22
- spec.add_runtime_dependency "github-linguist", "~> 4.3"
23
- spec.add_runtime_dependency "inifile", "~> 3.0"
24
- spec.add_runtime_dependency "logger-colors", "~> 1.0"
25
- spec.add_runtime_dependency "mercenary", "~> 0.3.5"
26
- spec.add_runtime_dependency "string-scrub", "~> 0.0.5"
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+ spec.required_ruby_version = '>= 2.3.3'
27
24
 
28
- spec.add_development_dependency "bundler", "~> 1.7"
29
- spec.add_development_dependency "rake", "~> 10.0"
30
- spec.add_development_dependency "test-unit", "~> 3.0.9"
31
- spec.add_development_dependency "coveralls", "~> 0.8.1"
25
+ spec.add_runtime_dependency 'facets', '>= 3.1.0'
26
+ spec.add_runtime_dependency 'github-linguist', '>= 6.1.0'
27
+ spec.add_runtime_dependency 'inifile', '>= 3.0.0'
28
+ spec.add_runtime_dependency 'io-console', '>= 0.4.6'
29
+ spec.add_runtime_dependency 'thor', '>= 0.19.4'
30
+ spec.add_runtime_dependency 'thor-zsh_completion', '>= 0.1.5'
31
+
32
+ spec.add_development_dependency 'bundler', '>= 1.15.3'
33
+ spec.add_development_dependency 'rake', '>= 12.0'
34
+ spec.add_development_dependency 'rspec', '>= 3.7.0'
35
+ spec.add_development_dependency 'coveralls', '>= 0.8.21'
32
36
  end
metadata CHANGED
@@ -1,156 +1,156 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xezat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - fd0
7
+ - Daisuke Fujimura (fd0)
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-20 00:00:00.000000000 Z
11
+ date: 2018-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facets
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: 3.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: 3.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: github-linguist
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '4.3'
33
+ version: 6.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '4.3'
40
+ version: 6.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: inifile
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: 3.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: 3.0.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: logger-colors
56
+ name: io-console
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: 0.4.6
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: 0.4.6
69
69
  - !ruby/object:Gem::Dependency
70
- name: mercenary
70
+ name: thor
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.3.5
75
+ version: 0.19.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 0.3.5
82
+ version: 0.19.4
83
83
  - !ruby/object:Gem::Dependency
84
- name: string-scrub
84
+ name: thor-zsh_completion
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.0.5
89
+ version: 0.1.5
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 0.0.5
96
+ version: 0.1.5
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '1.7'
103
+ version: 1.15.3
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '1.7'
110
+ version: 1.15.3
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '10.0'
117
+ version: '12.0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '10.0'
124
+ version: '12.0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: test-unit
126
+ name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 3.0.9
131
+ version: 3.7.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 3.0.9
138
+ version: 3.7.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: coveralls
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.8.1
145
+ version: 0.8.21
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 0.8.1
153
- description: 'Complement of cygport '
152
+ version: 0.8.21
153
+ description: xezat helps you win at cygport.
154
154
  email:
155
155
  - booleanlabel@gmail.com
156
156
  executables:
@@ -160,112 +160,64 @@ extra_rdoc_files: []
160
160
  files:
161
161
  - ".gitignore"
162
162
  - ".gitmodules"
163
+ - ".rspec"
163
164
  - ".travis.yml"
164
165
  - Gemfile
165
166
  - LICENSE.txt
166
167
  - README.md
167
168
  - Rakefile
168
- - bin/xezat
169
+ - bin/console
170
+ - bin/setup
171
+ - exe/xezat
169
172
  - lib/xezat.rb
170
173
  - lib/xezat/command/bump.rb
171
- - lib/xezat/command/create.rb
172
174
  - lib/xezat/command/debug.rb
173
175
  - lib/xezat/command/doctor.rb
174
176
  - lib/xezat/command/generate.rb
177
+ - lib/xezat/command/init.rb
175
178
  - lib/xezat/command/port.rb
176
- - lib/xezat/command/validate.rb
177
- - lib/xezat/commands.rb
179
+ - lib/xezat/config.rb
178
180
  - lib/xezat/cygchangelog.rb
179
181
  - lib/xezat/cygclasses.rb
180
182
  - lib/xezat/cygversion.rb
183
+ - lib/xezat/debugger/linguist.rb
184
+ - lib/xezat/debugger/variable.rb
181
185
  - lib/xezat/detector/autoconf.rb
182
186
  - lib/xezat/detector/automake.rb
183
187
  - lib/xezat/detector/boost.m4.rb
184
188
  - lib/xezat/detector/cmake.rb
185
189
  - lib/xezat/detector/gengetopt.rb
190
+ - lib/xezat/detector/gnulib.rb
186
191
  - lib/xezat/detector/gobject-introspection.rb
187
192
  - lib/xezat/detector/halibut.rb
188
193
  - lib/xezat/detector/libQt5Core-devel.rb
189
194
  - lib/xezat/detector/libtool.rb
190
195
  - lib/xezat/detector/make.rb
196
+ - lib/xezat/detector/meson.rb
197
+ - lib/xezat/detector/ninja.rb
191
198
  - lib/xezat/detector/python-docutils.rb
199
+ - lib/xezat/detector/roundup.rb
200
+ - lib/xezat/detector/waf.rb
192
201
  - lib/xezat/detectors.rb
202
+ - lib/xezat/ext/linguist/file_blob.rb
203
+ - lib/xezat/generator/pkgconfig.rb
193
204
  - lib/xezat/main.rb
194
205
  - lib/xezat/packages.rb
195
- - lib/xezat/refine/linguist/file_blob.rb
196
- - lib/xezat/validator/m4.rb
197
- - lib/xezat/validator/pkgconfig.rb
198
- - lib/xezat/validators.rb
199
206
  - lib/xezat/variables.rb
200
207
  - lib/xezat/version.rb
201
208
  - share/xezat/compilers.json
202
209
  - share/xezat/invoke_cygport_dep.sh
210
+ - share/xezat/languages.json
203
211
  - share/xezat/repository/bitbucket.json
204
212
  - share/xezat/repository/github.json
205
- - share/xezat/repository/google.json
206
213
  - share/xezat/repository/savannah.json
207
214
  - share/xezat/repository/sourceforge.json
208
- - share/xezat/show_cygport_description.sh
209
215
  - share/xezat/show_cygport_variable.sh
210
216
  - share/xezat/template/Makefile.am
211
217
  - share/xezat/template/README.erb
218
+ - share/xezat/template/cmake.erb
212
219
  - share/xezat/template/cygport.erb
213
- - share/xezat/template/pkgconfig.cmake
214
220
  - share/xezat/template/pkgconfig.erb
215
- - share/xezat/template/setup.erb
216
- - test/test.rb
217
- - test/xezat/command/fixture/doctor/a.lst.gz
218
- - test/xezat/command/fixture/doctor/b1.lst.gz
219
- - test/xezat/command/fixture/doctor/b2.lst.gz
220
- - test/xezat/command/test_bump.rb
221
- - test/xezat/command/test_create.rb
222
- - test/xezat/command/test_doctor.rb
223
- - test/xezat/detector/fixture/autoconf/no/configure.scan
224
- - test/xezat/detector/fixture/autoconf/yes_root/configure.ac
225
- - test/xezat/detector/fixture/autoconf/yes_subdir/subdir/configure.ac
226
- - test/xezat/detector/fixture/automake/no/Makefile.in
227
- - test/xezat/detector/fixture/automake/yes_root/Makefile.am
228
- - test/xezat/detector/fixture/automake/yes_subdir/subdir/Makefile.am
229
- - test/xezat/detector/fixture/boost.m4/no/configure.ac
230
- - test/xezat/detector/fixture/boost.m4/yes/configure.ac
231
- - test/xezat/detector/fixture/cmake/no/CMakeList.txt
232
- - test/xezat/detector/fixture/cmake/yes_root/CMakeLists.txt
233
- - test/xezat/detector/fixture/cmake/yes_subdir/subdir/CMakeLists.txt
234
- - test/xezat/detector/fixture/gengetopt/no/xezat.log
235
- - test/xezat/detector/fixture/gengetopt/yes_root/xezat.ggo
236
- - test/xezat/detector/fixture/gengetopt/yes_subdir/subdir/xezat.ggo
237
- - test/xezat/detector/fixture/gobject-introspection/no/configure.ac
238
- - test/xezat/detector/fixture/gobject-introspection/yes/configure.ac
239
- - test/xezat/detector/fixture/halibut/no/halibut.txt
240
- - test/xezat/detector/fixture/halibut/yes_root/halibut.but
241
- - test/xezat/detector/fixture/halibut/yes_subdir/subdir/halibut.but
242
- - test/xezat/detector/fixture/libQt5Core-devel/no/foo.cygport
243
- - test/xezat/detector/fixture/libQt5Core-devel/yes_cygport/foo.cygport
244
- - test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.cygport
245
- - test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.pro
246
- - test/xezat/detector/fixture/python-docutils/no/configure.ac
247
- - test/xezat/detector/fixture/python-docutils/yes/configure.ac
248
- - test/xezat/detector/test_autoconf.rb
249
- - test/xezat/detector/test_automake.rb
250
- - test/xezat/detector/test_boost.m4.rb
251
- - test/xezat/detector/test_cmake.rb
252
- - test/xezat/detector/test_gengetopt.rb
253
- - test/xezat/detector/test_gobject-introspection.rb
254
- - test/xezat/detector/test_halibut.rb
255
- - test/xezat/detector/test_libQt5Core-devel.rb
256
- - test/xezat/detector/test_python-docutils.rb
257
- - test/xezat/test_cygchangelog.rb
258
- - test/xezat/test_cygclasses.rb
259
- - test/xezat/test_cygversion.rb
260
- - test/xezat/test_variables.rb
261
- - test/xezat/validator/fixture/m4/no/usr/share/aclocal/.gitkeep
262
- - test/xezat/validator/fixture/m4/yes/usr/share/aclocal/test.m4
263
- - test/xezat/validator/fixture/pkgconfig/no_at/usr/lib/pkgconfig/xezat.pc
264
- - test/xezat/validator/fixture/pkgconfig/no_link/usr/lib/pkgconfig/xezat.pc
265
- - test/xezat/validator/fixture/pkgconfig/skip/usr/lib/pkgconfig/.gitkeep
266
- - test/xezat/validator/fixture/pkgconfig/yes/usr/lib/pkgconfig/xezat.pc
267
- - test/xezat/validator/test_m4.rb
268
- - test/xezat/validator/test_pkgconfig.rb
269
221
  - xezat.gemspec
270
222
  homepage: https://github.com/fd00/xezat
271
223
  licenses:
@@ -279,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
279
231
  requirements:
280
232
  - - ">="
281
233
  - !ruby/object:Gem::Version
282
- version: '0'
234
+ version: 2.3.3
283
235
  required_rubygems_version: !ruby/object:Gem::Requirement
284
236
  requirements:
285
237
  - - ">="
@@ -287,61 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
239
  version: '0'
288
240
  requirements: []
289
241
  rubyforge_project:
290
- rubygems_version: 2.5.1
242
+ rubygems_version: 2.6.14
291
243
  signing_key:
292
244
  specification_version: 4
293
- summary: Complement of cygport
294
- test_files:
295
- - test/test.rb
296
- - test/xezat/command/fixture/doctor/a.lst.gz
297
- - test/xezat/command/fixture/doctor/b1.lst.gz
298
- - test/xezat/command/fixture/doctor/b2.lst.gz
299
- - test/xezat/command/test_bump.rb
300
- - test/xezat/command/test_create.rb
301
- - test/xezat/command/test_doctor.rb
302
- - test/xezat/detector/fixture/autoconf/no/configure.scan
303
- - test/xezat/detector/fixture/autoconf/yes_root/configure.ac
304
- - test/xezat/detector/fixture/autoconf/yes_subdir/subdir/configure.ac
305
- - test/xezat/detector/fixture/automake/no/Makefile.in
306
- - test/xezat/detector/fixture/automake/yes_root/Makefile.am
307
- - test/xezat/detector/fixture/automake/yes_subdir/subdir/Makefile.am
308
- - test/xezat/detector/fixture/boost.m4/no/configure.ac
309
- - test/xezat/detector/fixture/boost.m4/yes/configure.ac
310
- - test/xezat/detector/fixture/cmake/no/CMakeList.txt
311
- - test/xezat/detector/fixture/cmake/yes_root/CMakeLists.txt
312
- - test/xezat/detector/fixture/cmake/yes_subdir/subdir/CMakeLists.txt
313
- - test/xezat/detector/fixture/gengetopt/no/xezat.log
314
- - test/xezat/detector/fixture/gengetopt/yes_root/xezat.ggo
315
- - test/xezat/detector/fixture/gengetopt/yes_subdir/subdir/xezat.ggo
316
- - test/xezat/detector/fixture/gobject-introspection/no/configure.ac
317
- - test/xezat/detector/fixture/gobject-introspection/yes/configure.ac
318
- - test/xezat/detector/fixture/halibut/no/halibut.txt
319
- - test/xezat/detector/fixture/halibut/yes_root/halibut.but
320
- - test/xezat/detector/fixture/halibut/yes_subdir/subdir/halibut.but
321
- - test/xezat/detector/fixture/libQt5Core-devel/no/foo.cygport
322
- - test/xezat/detector/fixture/libQt5Core-devel/yes_cygport/foo.cygport
323
- - test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.cygport
324
- - test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.pro
325
- - test/xezat/detector/fixture/python-docutils/no/configure.ac
326
- - test/xezat/detector/fixture/python-docutils/yes/configure.ac
327
- - test/xezat/detector/test_autoconf.rb
328
- - test/xezat/detector/test_automake.rb
329
- - test/xezat/detector/test_boost.m4.rb
330
- - test/xezat/detector/test_cmake.rb
331
- - test/xezat/detector/test_gengetopt.rb
332
- - test/xezat/detector/test_gobject-introspection.rb
333
- - test/xezat/detector/test_halibut.rb
334
- - test/xezat/detector/test_libQt5Core-devel.rb
335
- - test/xezat/detector/test_python-docutils.rb
336
- - test/xezat/test_cygchangelog.rb
337
- - test/xezat/test_cygclasses.rb
338
- - test/xezat/test_cygversion.rb
339
- - test/xezat/test_variables.rb
340
- - test/xezat/validator/fixture/m4/no/usr/share/aclocal/.gitkeep
341
- - test/xezat/validator/fixture/m4/yes/usr/share/aclocal/test.m4
342
- - test/xezat/validator/fixture/pkgconfig/no_at/usr/lib/pkgconfig/xezat.pc
343
- - test/xezat/validator/fixture/pkgconfig/no_link/usr/lib/pkgconfig/xezat.pc
344
- - test/xezat/validator/fixture/pkgconfig/skip/usr/lib/pkgconfig/.gitkeep
345
- - test/xezat/validator/fixture/pkgconfig/yes/usr/lib/pkgconfig/xezat.pc
346
- - test/xezat/validator/test_m4.rb
347
- - test/xezat/validator/test_pkgconfig.rb
245
+ summary: xezat helps you win at cygport.
246
+ test_files: []