iv-phonic 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +8 -2
- data/ext/include/iv/lexer.h +4 -10
- metadata +9 -24
data/Rakefile
CHANGED
@@ -5,12 +5,14 @@ require 'rake/extensiontask'
|
|
5
5
|
require 'hoe'
|
6
6
|
require 'pp'
|
7
7
|
$root = File.dirname(__FILE__)
|
8
|
+
$name = 'iv-phonic'
|
9
|
+
$version = '0.0.9'
|
8
10
|
|
9
11
|
directory "ext/include/iv"
|
10
12
|
|
11
|
-
HOE = Hoe.spec
|
13
|
+
HOE = Hoe.spec $name do
|
12
14
|
developer('Constellation', 'utatane.tea@gmail.com')
|
13
|
-
self.version =
|
15
|
+
self.version = $version
|
14
16
|
self.readme_file = 'README.rdoc'
|
15
17
|
self.history_file = 'ChangeLog'
|
16
18
|
self.extra_rdoc_files = FileList['*.rdoc']
|
@@ -51,4 +53,8 @@ task :checkout => ["ext/include/iv"] do |t|
|
|
51
53
|
end
|
52
54
|
end
|
53
55
|
|
56
|
+
task :push => :gem do |f|
|
57
|
+
system("gem push pkg/#{$name}-#{$version}.gem")
|
58
|
+
end
|
59
|
+
|
54
60
|
# vim: syntax=ruby
|
data/ext/include/iv/lexer.h
CHANGED
@@ -760,24 +760,18 @@ class Lexer: private Noncopyable<Lexer<Source> >::type {
|
|
760
760
|
type = OCTAL;
|
761
761
|
Record8Advance();
|
762
762
|
while (true) {
|
763
|
-
if (c_ == '8' || c_ == '9') {
|
764
|
-
// not octal digits
|
765
|
-
type = DECIMAL;
|
766
|
-
break;
|
767
|
-
}
|
768
763
|
if (c_ < '0' || '7' < c_) {
|
769
764
|
break;
|
770
765
|
}
|
771
766
|
Record8Advance();
|
772
767
|
}
|
773
768
|
}
|
769
|
+
} else {
|
770
|
+
ScanDecimalDigits();
|
774
771
|
}
|
775
|
-
if (type == DECIMAL) {
|
772
|
+
if (type == DECIMAL && c_ == '.') {
|
773
|
+
Record8Advance();
|
776
774
|
ScanDecimalDigits();
|
777
|
-
if (c_ == '.') {
|
778
|
-
Record8Advance();
|
779
|
-
ScanDecimalDigits();
|
780
|
-
}
|
781
775
|
}
|
782
776
|
}
|
783
777
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 9
|
9
|
+
version: 0.0.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Constellation
|
@@ -14,11 +14,11 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-20 00:00:00 +09:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: rake-compiler
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
@@ -26,14 +26,12 @@ dependencies:
|
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
|
-
- 2
|
30
29
|
- 0
|
31
|
-
|
32
|
-
version: 2.0.4
|
30
|
+
version: "0"
|
33
31
|
type: :development
|
34
32
|
version_requirements: *id001
|
35
33
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
34
|
+
name: hoe
|
37
35
|
prerelease: false
|
38
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
37
|
none: false
|
@@ -41,25 +39,12 @@ dependencies:
|
|
41
39
|
- - ">="
|
42
40
|
- !ruby/object:Gem::Version
|
43
41
|
segments:
|
42
|
+
- 2
|
43
|
+
- 8
|
44
44
|
- 0
|
45
|
-
version:
|
45
|
+
version: 2.8.0
|
46
46
|
type: :development
|
47
47
|
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: hoe
|
50
|
-
prerelease: false
|
51
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
|
-
requirements:
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
segments:
|
57
|
-
- 2
|
58
|
-
- 6
|
59
|
-
- 2
|
60
|
-
version: 2.6.2
|
61
|
-
type: :development
|
62
|
-
version_requirements: *id003
|
63
48
|
description: phonic is ruby binding for iv AST API
|
64
49
|
email:
|
65
50
|
- utatane.tea@gmail.com
|