deil_sexpistol 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 +16 -39
- data/VERSION +1 -1
- data/deil_sexpistol.gemspec +9 -9
- data/lib/sexpistol/sexpistol_parser.rb +5 -5
- metadata +23 -42
data/Rakefile
CHANGED
@@ -1,42 +1,19 @@
|
|
1
|
-
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
|
5
|
-
desc 'Default: run unit tests.'
|
6
|
-
task :default => :test
|
7
|
-
|
8
|
-
begin
|
9
|
-
require 'jeweler'
|
10
|
-
Jeweler::Tasks.new do |gemspec|
|
11
|
-
gemspec.name = "deil_sexpistol"
|
12
|
-
gemspec.summary = "An S-Expression Parser Library for Ruby. Forked"
|
13
|
-
gemspec.description = "Sexpistol is an easy-to-use S-Expression parser for Ruby. It is fast and has no dependencies."
|
14
|
-
gemspec.email = "aaron@aarongough.com"
|
15
|
-
gemspec.homepage = "http://github.com/aarongough/sexpistol"
|
16
|
-
gemspec.authors = ["Aaron Gough", "Anton Kosyakin"]
|
17
|
-
gemspec.rdoc_options << '--line-numbers' << '--inline-source'
|
18
|
-
gemspec.extra_rdoc_files = ['README.rdoc', 'MIT-LICENSE']
|
19
|
-
end
|
20
|
-
rescue LoadError
|
21
|
-
puts "Jeweler not available. Install it with: gem install jeweler"
|
22
|
-
end
|
1
|
+
# encoding: utf-8
|
23
2
|
|
3
|
+
require 'rubygems'
|
4
|
+
require 'rake'
|
24
5
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
6
|
+
require 'jeweler'
|
7
|
+
Jeweler::Tasks.new do |gemspec|
|
8
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
9
|
+
gemspec.name = "deil_sexpistol"
|
10
|
+
gemspec.summary = "An S-Expression Parser Library for Ruby. Forked"
|
11
|
+
gemspec.description = "Sexpistol is an easy-to-use S-Expression parser for Ruby. It is fast and has no dependencies."
|
12
|
+
gemspec.email = "aaron@aarongough.com"
|
13
|
+
gemspec.homepage = "http://github.com/aarongough/sexpistol"
|
14
|
+
gemspec.authors = ["Aaron Gough", "Anton Kosyakin"]
|
15
|
+
gemspec.rdoc_options << '--line-numbers' << '--inline-source'
|
16
|
+
gemspec.extra_rdoc_files = ['README.rdoc', 'MIT-LICENSE']
|
17
|
+
#gem.files.exclude 'tmp'
|
31
18
|
end
|
32
|
-
|
33
|
-
|
34
|
-
desc 'Generate documentation for sexpistol.'
|
35
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
36
|
-
rdoc.rdoc_dir = 'rdoc'
|
37
|
-
rdoc.title = 'Koi'
|
38
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
39
|
-
rdoc.rdoc_files.include('README.rdoc')
|
40
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
41
|
-
rdoc.rdoc_files.include('app/**/*.rb')
|
42
|
-
end
|
19
|
+
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/deil_sexpistol.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.0.
|
7
|
+
s.name = "deil_sexpistol"
|
8
|
+
s.version = "0.0.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aaron Gough", "Anton Kosyakin"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2013-02-03"
|
13
|
+
s.description = "Sexpistol is an easy-to-use S-Expression parser for Ruby. It is fast and has no dependencies."
|
14
|
+
s.email = "aaron@aarongough.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"MIT-LICENSE",
|
17
17
|
"README.rdoc"
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
"README.rdoc",
|
22
22
|
"Rakefile",
|
23
23
|
"VERSION",
|
24
|
+
"deil_sexpistol.gemspec",
|
24
25
|
"lib/sexpistol.rb",
|
25
26
|
"lib/sexpistol/sexpistol.rb",
|
26
27
|
"lib/sexpistol/sexpistol_parser.rb",
|
@@ -37,14 +38,13 @@ Gem::Specification.new do |s|
|
|
37
38
|
"test/unit/symbol_test.rb",
|
38
39
|
"test/unit/to_sexp_test.rb"
|
39
40
|
]
|
40
|
-
s.homepage =
|
41
|
+
s.homepage = "http://github.com/aarongough/sexpistol"
|
41
42
|
s.rdoc_options = ["--line-numbers", "--inline-source"]
|
42
43
|
s.require_paths = ["lib"]
|
43
|
-
s.rubygems_version =
|
44
|
-
s.summary =
|
44
|
+
s.rubygems_version = "1.8.24"
|
45
|
+
s.summary = "An S-Expression Parser Library for Ruby. Forked"
|
45
46
|
|
46
47
|
if s.respond_to? :specification_version then
|
47
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
48
|
s.specification_version = 3
|
49
49
|
|
50
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
@@ -22,9 +22,9 @@ class SexpistolParser < StringScanner
|
|
22
22
|
when '(' then exp << [:quote].concat([parse])
|
23
23
|
else exp << [:quote, @token]
|
24
24
|
end
|
25
|
-
when String, Fixnum, Float, Symbol
|
25
|
+
when String, Fixnum, Bignum, Float, Symbol
|
26
26
|
exp << @token
|
27
|
-
when nil
|
27
|
+
when nil
|
28
28
|
break
|
29
29
|
end
|
30
30
|
end
|
@@ -34,10 +34,10 @@ class SexpistolParser < StringScanner
|
|
34
34
|
def fetch_token
|
35
35
|
skip(/\s+/)
|
36
36
|
return nil if(eos?)
|
37
|
-
|
38
|
-
@token =
|
37
|
+
|
38
|
+
@token =
|
39
39
|
# Match parentheses
|
40
|
-
if scan(/[\(\)]/)
|
40
|
+
if scan(/[\(\)]/)
|
41
41
|
matched
|
42
42
|
# Match a string literal
|
43
43
|
elsif scan(/"([^"\\]|\\.)*"/)
|
metadata
CHANGED
@@ -1,35 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: deil_sexpistol
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 8
|
10
|
-
version: 0.0.8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.9
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Aaron Gough
|
14
9
|
- Anton Kosyakin
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2011-09-14 00:00:00 +04:00
|
20
|
-
default_executable:
|
13
|
+
date: 2013-02-03 00:00:00.000000000 Z
|
21
14
|
dependencies: []
|
22
|
-
|
23
|
-
|
15
|
+
description: Sexpistol is an easy-to-use S-Expression parser for Ruby. It is fast
|
16
|
+
and has no dependencies.
|
24
17
|
email: aaron@aarongough.com
|
25
18
|
executables: []
|
26
|
-
|
27
19
|
extensions: []
|
28
|
-
|
29
|
-
extra_rdoc_files:
|
20
|
+
extra_rdoc_files:
|
30
21
|
- MIT-LICENSE
|
31
22
|
- README.rdoc
|
32
|
-
files:
|
23
|
+
files:
|
33
24
|
- MIT-LICENSE
|
34
25
|
- README.rdoc
|
35
26
|
- Rakefile
|
@@ -50,40 +41,30 @@ files:
|
|
50
41
|
- test/unit/structure_test.rb
|
51
42
|
- test/unit/symbol_test.rb
|
52
43
|
- test/unit/to_sexp_test.rb
|
53
|
-
has_rdoc: true
|
54
44
|
homepage: http://github.com/aarongough/sexpistol
|
55
45
|
licenses: []
|
56
|
-
|
57
46
|
post_install_message:
|
58
|
-
rdoc_options:
|
47
|
+
rdoc_options:
|
59
48
|
- --line-numbers
|
60
49
|
- --inline-source
|
61
|
-
require_paths:
|
50
|
+
require_paths:
|
62
51
|
- lib
|
63
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
53
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
70
|
-
- 0
|
71
|
-
version: "0"
|
72
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
59
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
segments:
|
79
|
-
- 0
|
80
|
-
version: "0"
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
81
64
|
requirements: []
|
82
|
-
|
83
65
|
rubyforge_project:
|
84
|
-
rubygems_version: 1.
|
66
|
+
rubygems_version: 1.8.24
|
85
67
|
signing_key:
|
86
68
|
specification_version: 3
|
87
69
|
summary: An S-Expression Parser Library for Ruby. Forked
|
88
70
|
test_files: []
|
89
|
-
|