trxl 0.1.5 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1,21 @@
1
1
  require 'spec_helper'
2
+
3
+ describe "When working with Strings, the Trxl::Calculator" do
4
+
5
+ include Trxl::SpecHelper
6
+
7
+ before(:each) do
8
+ @parser = Trxl::Calculator.new
9
+ end
10
+
11
+ it "should evaluate string literals to strings using double quotes (\"\")" do
12
+ eval("\"Test String\"").should == "Test String"
13
+ eval("s = \"Test String\"; s;").should == "Test String"
14
+ end
15
+
16
+ it "should evaluate string literals to strings using single quotes ('')" do
17
+ eval("'Test String'").should == "Test String"
18
+ eval("s = 'Test String'; s;").should == "Test String"
19
+ end
20
+
21
+ end
@@ -1,81 +1,58 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{trxl}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Martin Gamsjaeger (snusnu)", "Michael Aufreiter"]
12
- s.date = %q{2010-01-13}
11
+ s.authors = [%q{Martin Gamsjaeger (snusnu)}, %q{Michael Aufreiter}]
12
+ s.date = %q{2011-07-14}
13
13
  s.description = %q{A specced little language written with ruby and treetop. It has lambdas, recursion, conditionals, arrays, hashes, ranges, strings, arithmetics and some other stuff. It even has a small code import facility.}
14
14
  s.email = %q{gamsnjaga [at] gmail [dot] com}
15
15
  s.extra_rdoc_files = [
16
16
  "README"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "README",
21
- "Rakefile",
22
- "VERSION",
23
- "lib/trxl.rb",
24
- "lib/trxl/trxl.rb",
25
- "lib/trxl/trxl_grammar.rb",
26
- "lib/trxl/trxl_grammar.treetop",
27
- "spec/spec.opts",
28
- "spec/spec_helper.rb",
29
- "spec/trxl/arithmetics_spec.rb",
30
- "spec/trxl/arrays_spec.rb",
31
- "spec/trxl/booleans_spec.rb",
32
- "spec/trxl/builtins_spec.rb",
33
- "spec/trxl/closures_spec.rb",
34
- "spec/trxl/comments_spec.rb",
35
- "spec/trxl/common_spec.rb",
36
- "spec/trxl/conditionals_spec.rb",
37
- "spec/trxl/constants_spec.rb",
38
- "spec/trxl/environment_spec.rb",
39
- "spec/trxl/hashes_spec.rb",
40
- "spec/trxl/numbers_spec.rb",
41
- "spec/trxl/ranges_spec.rb",
42
- "spec/trxl/require_spec.rb",
43
- "spec/trxl/stdlib_spec.rb",
44
- "spec/trxl/strings_spec.rb",
45
- "spec/trxl/variables_spec.rb",
46
- "trxl.gemspec"
19
+ "README",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "lib/trxl.rb",
23
+ "lib/trxl/trxl.rb",
24
+ "lib/trxl/trxl_grammar.rb",
25
+ "lib/trxl/trxl_grammar.treetop",
26
+ "spec/spec.opts",
27
+ "spec/spec_helper.rb",
28
+ "spec/trxl/arithmetics_spec.rb",
29
+ "spec/trxl/arrays_spec.rb",
30
+ "spec/trxl/booleans_spec.rb",
31
+ "spec/trxl/builtins_spec.rb",
32
+ "spec/trxl/closures_spec.rb",
33
+ "spec/trxl/comments_spec.rb",
34
+ "spec/trxl/common_spec.rb",
35
+ "spec/trxl/conditionals_spec.rb",
36
+ "spec/trxl/constants_spec.rb",
37
+ "spec/trxl/environment_spec.rb",
38
+ "spec/trxl/hashes_spec.rb",
39
+ "spec/trxl/numbers_spec.rb",
40
+ "spec/trxl/ranges_spec.rb",
41
+ "spec/trxl/require_spec.rb",
42
+ "spec/trxl/stdlib_spec.rb",
43
+ "spec/trxl/strings_spec.rb",
44
+ "spec/trxl/variables_spec.rb",
45
+ "trxl.gemspec"
47
46
  ]
48
47
  s.homepage = %q{http://github.com/snusnu/trxl}
49
- s.rdoc_options = ["--charset=UTF-8"]
50
- s.require_paths = ["lib"]
51
- s.rubygems_version = %q{1.3.5}
48
+ s.require_paths = [%q{lib}]
49
+ s.rubygems_version = %q{1.8.5}
52
50
  s.summary = %q{A specced little language written with ruby and treetop.}
53
- s.test_files = [
54
- "spec/spec_helper.rb",
55
- "spec/trxl/arithmetics_spec.rb",
56
- "spec/trxl/arrays_spec.rb",
57
- "spec/trxl/booleans_spec.rb",
58
- "spec/trxl/builtins_spec.rb",
59
- "spec/trxl/closures_spec.rb",
60
- "spec/trxl/comments_spec.rb",
61
- "spec/trxl/common_spec.rb",
62
- "spec/trxl/conditionals_spec.rb",
63
- "spec/trxl/constants_spec.rb",
64
- "spec/trxl/environment_spec.rb",
65
- "spec/trxl/hashes_spec.rb",
66
- "spec/trxl/numbers_spec.rb",
67
- "spec/trxl/ranges_spec.rb",
68
- "spec/trxl/require_spec.rb",
69
- "spec/trxl/stdlib_spec.rb",
70
- "spec/trxl/strings_spec.rb",
71
- "spec/trxl/variables_spec.rb"
72
- ]
73
51
 
74
52
  if s.respond_to? :specification_version then
75
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
76
53
  s.specification_version = 3
77
54
 
78
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
55
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
79
56
  s.add_runtime_dependency(%q<treetop>, [">= 1.4"])
80
57
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
81
58
  else
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trxl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ hash: 11
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 8
10
+ version: 0.1.8
5
11
  platform: ruby
6
12
  authors:
7
13
  - Martin Gamsjaeger (snusnu)
@@ -10,29 +16,39 @@ autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2010-01-13 00:00:00 +01:00
14
- default_executable:
19
+ date: 2011-07-14 00:00:00 Z
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
22
  name: treetop
18
- type: :runtime
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
21
26
  requirements:
22
27
  - - ">="
23
28
  - !ruby/object:Gem::Version
29
+ hash: 7
30
+ segments:
31
+ - 1
32
+ - 4
24
33
  version: "1.4"
25
- version:
34
+ type: :runtime
35
+ version_requirements: *id001
26
36
  - !ruby/object:Gem::Dependency
27
37
  name: rspec
28
- type: :development
29
- version_requirement:
30
- version_requirements: !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
31
41
  requirements:
32
42
  - - ">="
33
43
  - !ruby/object:Gem::Version
44
+ hash: 13
45
+ segments:
46
+ - 1
47
+ - 2
48
+ - 9
34
49
  version: 1.2.9
35
- version:
50
+ type: :development
51
+ version_requirements: *id002
36
52
  description: A specced little language written with ruby and treetop. It has lambdas, recursion, conditionals, arrays, hashes, ranges, strings, arithmetics and some other stuff. It even has a small code import facility.
37
53
  email: gamsnjaga [at] gmail [dot] com
38
54
  executables: []
@@ -42,7 +58,6 @@ extensions: []
42
58
  extra_rdoc_files:
43
59
  - README
44
60
  files:
45
- - .gitignore
46
61
  - README
47
62
  - Rakefile
48
63
  - VERSION
@@ -70,50 +85,38 @@ files:
70
85
  - spec/trxl/strings_spec.rb
71
86
  - spec/trxl/variables_spec.rb
72
87
  - trxl.gemspec
73
- has_rdoc: true
74
88
  homepage: http://github.com/snusnu/trxl
75
89
  licenses: []
76
90
 
77
91
  post_install_message:
78
- rdoc_options:
79
- - --charset=UTF-8
92
+ rdoc_options: []
93
+
80
94
  require_paths:
81
95
  - lib
82
96
  required_ruby_version: !ruby/object:Gem::Requirement
97
+ none: false
83
98
  requirements:
84
99
  - - ">="
85
100
  - !ruby/object:Gem::Version
101
+ hash: 3
102
+ segments:
103
+ - 0
86
104
  version: "0"
87
- version:
88
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
+ none: false
89
107
  requirements:
90
108
  - - ">="
91
109
  - !ruby/object:Gem::Version
110
+ hash: 3
111
+ segments:
112
+ - 0
92
113
  version: "0"
93
- version:
94
114
  requirements: []
95
115
 
96
116
  rubyforge_project:
97
- rubygems_version: 1.3.5
117
+ rubygems_version: 1.8.5
98
118
  signing_key:
99
119
  specification_version: 3
100
120
  summary: A specced little language written with ruby and treetop.
101
- test_files:
102
- - spec/spec_helper.rb
103
- - spec/trxl/arithmetics_spec.rb
104
- - spec/trxl/arrays_spec.rb
105
- - spec/trxl/booleans_spec.rb
106
- - spec/trxl/builtins_spec.rb
107
- - spec/trxl/closures_spec.rb
108
- - spec/trxl/comments_spec.rb
109
- - spec/trxl/common_spec.rb
110
- - spec/trxl/conditionals_spec.rb
111
- - spec/trxl/constants_spec.rb
112
- - spec/trxl/environment_spec.rb
113
- - spec/trxl/hashes_spec.rb
114
- - spec/trxl/numbers_spec.rb
115
- - spec/trxl/ranges_spec.rb
116
- - spec/trxl/require_spec.rb
117
- - spec/trxl/stdlib_spec.rb
118
- - spec/trxl/strings_spec.rb
119
- - spec/trxl/variables_spec.rb
121
+ test_files: []
122
+
data/.gitignore DELETED
@@ -1,24 +0,0 @@
1
- test_log
2
- pkg
3
- pkg/*
4
- */pkg/*
5
- bundle
6
- bundle/*
7
- doc
8
- *.log
9
- log
10
- !log*.rb
11
- */log
12
- log/*
13
- */log/*
14
- coverage
15
- */coverage
16
- lib/dm-more.rb
17
- *.db
18
- nbproject
19
- .DS_Store
20
- rspec_report.html
21
- *.swp
22
- _Yardoc
23
- */ri
24
-