xezat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/README.md +3 -0
- data/lib/xezat/command/bump.rb +1 -0
- data/lib/xezat/detector/automake.rb +1 -1
- data/lib/xezat/detector/halibut.rb +17 -0
- data/lib/xezat/variables.rb +2 -0
- data/lib/xezat/version.rb +1 -1
- data/share/xezat/compilers.json +6 -0
- data/test/test.rb +8 -1
- data/test/xezat/detector/fixture/halibut/no/halibut.txt +1 -0
- data/test/xezat/detector/fixture/halibut/yes_root/halibut.but +1 -0
- data/test/xezat/detector/fixture/halibut/yes_subdir/subdir/halibut.but +1 -0
- data/test/xezat/detector/test_halibut.rb +24 -0
- data/xezat.gemspec +2 -0
- metadata +41 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37e5c3e340fd440548e19f1c141f7e98098007a4
|
4
|
+
data.tar.gz: 2beec1b142223c633dc6ba867115d9eda5c20c3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 886a4a0057fd8afb3d4ccb99f0afc2e622377b580a1b1bb571b38937520741e555797fcc71c76625ec2d5479351b88afe51c5ff7218c617fbe74b28c2ec9c074
|
7
|
+
data.tar.gz: 65b2630f54a628da9158d7dabf10995b8a1cef7625e90271e2809aee5f9962c8f48a14fa9c3e09831d795b33e00fb720c3543e33d6c94626c5ef2e3c14c7f311
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/fd00/xezat.svg?branch=master)](https://travis-ci.org/fd00/xezat)
|
2
|
+
[![Coverage Status](https://coveralls.io/repos/fd00/xezat/badge.svg?branch=master)](https://coveralls.io/r/fd00/xezat?branch=master)
|
3
|
+
|
1
4
|
# Xezat
|
2
5
|
|
3
6
|
Complement of cygport
|
data/lib/xezat/command/bump.rb
CHANGED
@@ -87,6 +87,7 @@ module Xezat
|
|
87
87
|
command = ['bash', File.expand_path(File.join(DATA_DIR, 'invoke_cygport_dep.sh')), cygport]
|
88
88
|
result, error, status = Open3.capture3(command.join(' '))
|
89
89
|
raise CygportProcessError, error unless status.success?
|
90
|
+
result.gsub!(/^.*\*\*\*.*$/, '')
|
90
91
|
result.split($/).map! do |runtime|
|
91
92
|
runtime.lstrip
|
92
93
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'find'
|
2
|
+
require 'xezat/detectors'
|
3
|
+
|
4
|
+
module Xezat
|
5
|
+
module Detector
|
6
|
+
class Halibut
|
7
|
+
DetectorManager::register(:halibut, self)
|
8
|
+
|
9
|
+
def detect(variables)
|
10
|
+
Find::find(variables[:S]) do |file|
|
11
|
+
return true if file.end_with?('.but')
|
12
|
+
end
|
13
|
+
false
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/xezat/variables.rb
CHANGED
@@ -36,11 +36,13 @@ module Xezat
|
|
36
36
|
command = ['bash', File.expand_path(File.join(DATA_DIR, 'show_cygport_variable.sh')), cygport]
|
37
37
|
result, error, status = Open3.capture3(command.join(' '))
|
38
38
|
raise CygportProcessError, error unless status.success?
|
39
|
+
result.gsub!(/^.*\*\*\*.*$/, '')
|
39
40
|
|
40
41
|
# DESCRIPTION だけ改行を保持したまま取り込みたい
|
41
42
|
command = ['bash', File.expand_path(File.join(DATA_DIR, 'show_cygport_description.sh')), cygport]
|
42
43
|
description, error, status = Open3.capture3(command.join(' '))
|
43
44
|
raise CygportProcessError, error unless status.success?
|
45
|
+
description.gsub!(/^.*\*\*\*.*$/, '')
|
44
46
|
|
45
47
|
self.new(result, description)
|
46
48
|
end
|
data/lib/xezat/version.rb
CHANGED
data/share/xezat/compilers.json
CHANGED
@@ -22,6 +22,9 @@
|
|
22
22
|
"gcc-core"
|
23
23
|
]
|
24
24
|
},
|
25
|
+
"Lex": {
|
26
|
+
"package": "flex"
|
27
|
+
},
|
25
28
|
"Objective-C": {
|
26
29
|
"package": "gcc-objc",
|
27
30
|
"dependencies": [
|
@@ -38,5 +41,8 @@
|
|
38
41
|
},
|
39
42
|
"Ruby": {
|
40
43
|
"package": "ruby"
|
44
|
+
},
|
45
|
+
"Yacc": {
|
46
|
+
"package": "bison"
|
41
47
|
}
|
42
48
|
}
|
data/test/test.rb
CHANGED
@@ -6,12 +6,19 @@ $:.unshift File::expand_path(File::join(here))
|
|
6
6
|
Encoding::default_external = 'UTF-8'
|
7
7
|
|
8
8
|
require 'mercenary'
|
9
|
-
require 'pry'
|
10
9
|
require 'test/unit'
|
11
10
|
require 'xezat'
|
12
11
|
require 'xezat/commands'
|
13
12
|
require 'xezat/detectors'
|
14
13
|
|
14
|
+
if ENV['CI']
|
15
|
+
require 'coveralls'
|
16
|
+
Coveralls.wear!
|
17
|
+
|
18
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[Coveralls::SimpleCov::Formatter]
|
19
|
+
SimpleCov.start 'test_frameworks'
|
20
|
+
end
|
21
|
+
|
15
22
|
Xezat::CommandManager::program = Mercenary::Program.new(:xezat)
|
16
23
|
Xezat::DetectorManager::load_default_detectors
|
17
24
|
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'xezat/detectors'
|
2
|
+
|
3
|
+
module Xezat::Test::Detector
|
4
|
+
class HalibutTest < Test::Unit::TestCase
|
5
|
+
include Xezat::Detector
|
6
|
+
include Xezat
|
7
|
+
|
8
|
+
def setup
|
9
|
+
@detector = DetectorManager[:halibut]
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_yes_root
|
13
|
+
assert_true(@detector.detect({S: File::join(File::dirname(__FILE__), 'fixture', 'halibut', 'yes_root')}))
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_yes_subdir
|
17
|
+
assert_true(@detector.detect({S: File::join(File::dirname(__FILE__), 'fixture', 'halibut', 'yes_subdir')}))
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_no
|
21
|
+
assert_false(@detector.detect({S: File::join(File::dirname(__FILE__), 'fixture', 'halibut', 'no')}))
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/xezat.gemspec
CHANGED
@@ -27,4 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.7"
|
29
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"
|
30
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xezat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fd0
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facets
|
@@ -122,6 +122,34 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '10.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: test-unit
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.0.9
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.0.9
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: coveralls
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.8.1
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.8.1
|
125
153
|
description: 'Complement of cygport '
|
126
154
|
email:
|
127
155
|
- booleanlabel@gmail.com
|
@@ -132,6 +160,7 @@ extra_rdoc_files: []
|
|
132
160
|
files:
|
133
161
|
- ".gitignore"
|
134
162
|
- ".gitmodules"
|
163
|
+
- ".travis.yml"
|
135
164
|
- Gemfile
|
136
165
|
- LICENSE.txt
|
137
166
|
- README.md
|
@@ -155,6 +184,7 @@ files:
|
|
155
184
|
- lib/xezat/detector/cmake.rb
|
156
185
|
- lib/xezat/detector/gengetopt.rb
|
157
186
|
- lib/xezat/detector/gobject-introspection.rb
|
187
|
+
- lib/xezat/detector/halibut.rb
|
158
188
|
- lib/xezat/detector/libQt5Core-devel.rb
|
159
189
|
- lib/xezat/detector/libtool.rb
|
160
190
|
- lib/xezat/detector/make.rb
|
@@ -206,6 +236,9 @@ files:
|
|
206
236
|
- test/xezat/detector/fixture/gengetopt/yes_subdir/subdir/xezat.ggo
|
207
237
|
- test/xezat/detector/fixture/gobject-introspection/no/configure.ac
|
208
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
|
209
242
|
- test/xezat/detector/fixture/libQt5Core-devel/no/foo.cygport
|
210
243
|
- test/xezat/detector/fixture/libQt5Core-devel/yes_cygport/foo.cygport
|
211
244
|
- test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.cygport
|
@@ -218,6 +251,7 @@ files:
|
|
218
251
|
- test/xezat/detector/test_cmake.rb
|
219
252
|
- test/xezat/detector/test_gengetopt.rb
|
220
253
|
- test/xezat/detector/test_gobject-introspection.rb
|
254
|
+
- test/xezat/detector/test_halibut.rb
|
221
255
|
- test/xezat/detector/test_libQt5Core-devel.rb
|
222
256
|
- test/xezat/detector/test_python-docutils.rb
|
223
257
|
- test/xezat/test_cygchangelog.rb
|
@@ -253,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
287
|
version: '0'
|
254
288
|
requirements: []
|
255
289
|
rubyforge_project:
|
256
|
-
rubygems_version: 2.
|
290
|
+
rubygems_version: 2.5.1
|
257
291
|
signing_key:
|
258
292
|
specification_version: 4
|
259
293
|
summary: Complement of cygport
|
@@ -281,6 +315,9 @@ test_files:
|
|
281
315
|
- test/xezat/detector/fixture/gengetopt/yes_subdir/subdir/xezat.ggo
|
282
316
|
- test/xezat/detector/fixture/gobject-introspection/no/configure.ac
|
283
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
|
284
321
|
- test/xezat/detector/fixture/libQt5Core-devel/no/foo.cygport
|
285
322
|
- test/xezat/detector/fixture/libQt5Core-devel/yes_cygport/foo.cygport
|
286
323
|
- test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.cygport
|
@@ -293,6 +330,7 @@ test_files:
|
|
293
330
|
- test/xezat/detector/test_cmake.rb
|
294
331
|
- test/xezat/detector/test_gengetopt.rb
|
295
332
|
- test/xezat/detector/test_gobject-introspection.rb
|
333
|
+
- test/xezat/detector/test_halibut.rb
|
296
334
|
- test/xezat/detector/test_libQt5Core-devel.rb
|
297
335
|
- test/xezat/detector/test_python-docutils.rb
|
298
336
|
- test/xezat/test_cygchangelog.rb
|