rprb 0.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +21 -0
- data/LICENSE.txt +20 -0
- data/Rakefile +55 -0
- data/VERSION +1 -0
- data/lib/rprb.rb +7 -1
- data/rprb.gemspec +60 -0
- metadata +66 -67
data/.document
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
git (1.2.5)
|
5
|
+
jeweler (1.8.4)
|
6
|
+
bundler (~> 1.0)
|
7
|
+
git (>= 1.2.5)
|
8
|
+
rake
|
9
|
+
rdoc
|
10
|
+
json (1.7.3)
|
11
|
+
rake (0.9.2.2)
|
12
|
+
rdoc (3.12)
|
13
|
+
json (~> 1.4)
|
14
|
+
rockit (0.7.2)
|
15
|
+
|
16
|
+
PLATFORMS
|
17
|
+
ruby
|
18
|
+
|
19
|
+
DEPENDENCIES
|
20
|
+
jeweler
|
21
|
+
rockit (~> 0.7.2)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Jimmy Thrasher
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "rprb"
|
18
|
+
gem.homepage = "http://github.com/jjthrash/rprb"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %q{Provides Ruby in RPN style, ostensibly for a dc replacement}
|
21
|
+
gem.description = ''
|
22
|
+
gem.email = "jimmy@jimmythrasher.com"
|
23
|
+
gem.authors = ["Jimmy Thrasher", "Justin Dubs"]
|
24
|
+
gem.executables = %w(rprb)
|
25
|
+
gem.has_rdoc = false
|
26
|
+
# dependencies defined in Gemfile
|
27
|
+
end
|
28
|
+
Jeweler::RubygemsDotOrgTasks.new
|
29
|
+
|
30
|
+
require 'rake/testtask'
|
31
|
+
Rake::TestTask.new(:test) do |test|
|
32
|
+
test.libs << 'lib' << 'test'
|
33
|
+
test.pattern = 'test/**/test_*.rb'
|
34
|
+
test.verbose = true
|
35
|
+
end
|
36
|
+
|
37
|
+
#require 'rcov/rcovtask'
|
38
|
+
#Rcov::RcovTask.new do |test|
|
39
|
+
# test.libs << 'test'
|
40
|
+
# test.pattern = 'test/**/test_*.rb'
|
41
|
+
# test.verbose = true
|
42
|
+
# test.rcov_opts << '--exclude "gems/*"'
|
43
|
+
#end
|
44
|
+
#
|
45
|
+
#task :default => :test
|
46
|
+
#
|
47
|
+
#require 'rdoc/task'
|
48
|
+
#Rake::RDocTask.new do |rdoc|
|
49
|
+
# version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
50
|
+
#
|
51
|
+
# rdoc.rdoc_dir = 'rdoc'
|
52
|
+
# rdoc.title = "rprb #{version}"
|
53
|
+
# rdoc.rdoc_files.include('README*')
|
54
|
+
# rdoc.rdoc_files.include('lib/**/*.rb')
|
55
|
+
#end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.2.0
|
data/lib/rprb.rb
CHANGED
@@ -105,7 +105,13 @@ class DC
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def read(val)
|
108
|
-
@reader.read val
|
108
|
+
@reader.read without_comments(val)
|
109
|
+
end
|
110
|
+
|
111
|
+
def without_comments(string)
|
112
|
+
string.lines.map do |line|
|
113
|
+
line.gsub(/#.*$/, '')
|
114
|
+
end.join('')
|
109
115
|
end
|
110
116
|
|
111
117
|
def eval(tokens)
|
data/rprb.gemspec
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "rprb"
|
8
|
+
s.version = "0.2.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jimmy Thrasher", "Justin Dubs"]
|
12
|
+
s.date = "2012-06-27"
|
13
|
+
s.description = ""
|
14
|
+
s.email = "jimmy@jimmythrasher.com"
|
15
|
+
s.executables = ["rprb"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE",
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE",
|
26
|
+
"LICENSE.txt",
|
27
|
+
"README",
|
28
|
+
"Rakefile",
|
29
|
+
"VERSION",
|
30
|
+
"bin/rprb",
|
31
|
+
"lib/expr.rb",
|
32
|
+
"lib/rprb.rb",
|
33
|
+
"rprb.gemspec",
|
34
|
+
"test/tc_evaluator.rb",
|
35
|
+
"test/tc_misc.rb",
|
36
|
+
"test/tc_reader.rb",
|
37
|
+
"test/ts_all.rb"
|
38
|
+
]
|
39
|
+
s.homepage = "http://github.com/jjthrash/rprb"
|
40
|
+
s.licenses = ["MIT"]
|
41
|
+
s.require_paths = ["lib"]
|
42
|
+
s.rubygems_version = "1.8.11"
|
43
|
+
s.summary = "Provides Ruby in RPN style, ostensibly for a dc replacement"
|
44
|
+
|
45
|
+
if s.respond_to? :specification_version then
|
46
|
+
s.specification_version = 3
|
47
|
+
|
48
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
49
|
+
s.add_runtime_dependency(%q<rockit>, ["~> 0.7.2"])
|
50
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
51
|
+
else
|
52
|
+
s.add_dependency(%q<rockit>, ["~> 0.7.2"])
|
53
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
54
|
+
end
|
55
|
+
else
|
56
|
+
s.add_dependency(%q<rockit>, ["~> 0.7.2"])
|
57
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
metadata
CHANGED
@@ -1,92 +1,91 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rprb
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
version: "0.1"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
- Jimmy Thrasher
|
7
|
+
authors:
|
8
|
+
- Jimmy Thrasher
|
9
|
+
- Justin Dubs
|
13
10
|
autorequire:
|
14
11
|
bindir: bin
|
15
12
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-06-27 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
21
16
|
name: rockit
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &70130668647200 !ruby/object:Gem::Requirement
|
24
18
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 7
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
- 7
|
32
|
-
- 2
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
33
22
|
version: 0.7.2
|
34
23
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70130668647200
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: jeweler
|
28
|
+
requirement: &70130668646200 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *70130668646200
|
37
|
+
description: ''
|
38
|
+
email: jimmy@jimmythrasher.com
|
39
|
+
executables:
|
39
40
|
- rprb
|
40
41
|
extensions: []
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
-
|
42
|
+
extra_rdoc_files:
|
43
|
+
- LICENSE
|
44
|
+
- LICENSE.txt
|
45
|
+
- README
|
46
|
+
files:
|
47
|
+
- .document
|
48
|
+
- Gemfile
|
49
|
+
- Gemfile.lock
|
50
|
+
- LICENSE
|
51
|
+
- LICENSE.txt
|
52
|
+
- README
|
53
|
+
- Rakefile
|
54
|
+
- VERSION
|
47
55
|
- bin/rprb
|
48
|
-
-
|
56
|
+
- lib/expr.rb
|
57
|
+
- lib/rprb.rb
|
58
|
+
- rprb.gemspec
|
49
59
|
- test/tc_evaluator.rb
|
50
|
-
- test/tc_reader.rb
|
51
60
|
- test/tc_misc.rb
|
52
|
-
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
61
|
+
- test/tc_reader.rb
|
62
|
+
- test/ts_all.rb
|
63
|
+
homepage: http://github.com/jjthrash/rprb
|
64
|
+
licenses:
|
65
|
+
- MIT
|
58
66
|
post_install_message:
|
59
67
|
rdoc_options: []
|
60
|
-
|
61
|
-
require_paths:
|
68
|
+
require_paths:
|
62
69
|
- lib
|
63
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
71
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
segments:
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
segments:
|
70
77
|
- 0
|
71
|
-
|
72
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
hash: 1991828342754375058
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
80
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
segments:
|
79
|
-
- 0
|
80
|
-
version: "0"
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
81
85
|
requirements: []
|
82
|
-
|
83
86
|
rubyforge_project:
|
84
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.8.11
|
85
88
|
signing_key:
|
86
89
|
specification_version: 3
|
87
90
|
summary: Provides Ruby in RPN style, ostensibly for a dc replacement
|
88
|
-
test_files:
|
89
|
-
- test/ts_all.rb
|
90
|
-
- test/tc_evaluator.rb
|
91
|
-
- test/tc_reader.rb
|
92
|
-
- test/tc_misc.rb
|
91
|
+
test_files: []
|