basic101 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Changelog.md +5 -1
- data/Gemfile.lock +37 -34
- data/VERSION +1 -1
- data/basic101.gemspec +4 -4
- data/test/spec/transform_spec.rb +6 -6
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 269a729ca6d15c3c74bf87c2ec09bc614d358853
|
|
4
|
+
data.tar.gz: 1fac018929f6e63bf0f1e92c0bbd9d4a72a14cbf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b274784fa0ddff05d7678e3013f7b203a646e63c6d235bcc1b56bb777f121e116f86fc0c4e031f7ecb8abc0937a2a09e50898713da0b3e0265683a030477420
|
|
7
|
+
data.tar.gz: 15cad409113f4ae4a2d2cd6821da981d0a119c546b933e49603ed2605a2e87d3e66bfaa505a0e14f14ae740201692da97f13f0508ca1ac0ca2868be949b70c02
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
addressable (2.3.
|
|
4
|
+
addressable (2.3.8)
|
|
5
5
|
blankslate (3.1.3)
|
|
6
6
|
builder (3.2.2)
|
|
7
7
|
descendants_tracker (0.0.4)
|
|
8
8
|
thread_safe (~> 0.3, >= 0.3.1)
|
|
9
9
|
diff-lcs (1.2.5)
|
|
10
10
|
docile (1.1.5)
|
|
11
|
-
faraday (0.9.
|
|
11
|
+
faraday (0.9.1)
|
|
12
12
|
multipart-post (>= 1.2, < 3)
|
|
13
|
-
git (1.2.
|
|
14
|
-
github_api (0.12.
|
|
13
|
+
git (1.2.9.1)
|
|
14
|
+
github_api (0.12.4)
|
|
15
15
|
addressable (~> 2.3)
|
|
16
16
|
descendants_tracker (~> 0.0.4)
|
|
17
17
|
faraday (~> 0.8, < 0.10)
|
|
18
|
-
hashie (>= 3.
|
|
18
|
+
hashie (>= 3.4)
|
|
19
19
|
multi_json (>= 1.7.5, < 2.0)
|
|
20
|
-
nokogiri (~> 1.6.
|
|
20
|
+
nokogiri (~> 1.6.6)
|
|
21
21
|
oauth2
|
|
22
|
-
hashie (3.
|
|
23
|
-
highline (1.
|
|
22
|
+
hashie (3.4.2)
|
|
23
|
+
highline (1.7.3)
|
|
24
24
|
jeweler (2.0.1)
|
|
25
25
|
builder
|
|
26
26
|
bundler (>= 1.0)
|
|
@@ -30,13 +30,13 @@ GEM
|
|
|
30
30
|
nokogiri (>= 1.5.10)
|
|
31
31
|
rake
|
|
32
32
|
rdoc
|
|
33
|
-
json (1.8.
|
|
34
|
-
jwt (1.
|
|
35
|
-
mini_portile (0.6.
|
|
36
|
-
multi_json (1.
|
|
33
|
+
json (1.8.3)
|
|
34
|
+
jwt (1.5.1)
|
|
35
|
+
mini_portile (0.6.2)
|
|
36
|
+
multi_json (1.11.2)
|
|
37
37
|
multi_xml (0.5.5)
|
|
38
38
|
multipart-post (2.0.0)
|
|
39
|
-
nokogiri (1.6.
|
|
39
|
+
nokogiri (1.6.6.2)
|
|
40
40
|
mini_portile (~> 0.6.0)
|
|
41
41
|
oauth2 (1.0.0)
|
|
42
42
|
faraday (>= 0.8, < 0.10)
|
|
@@ -44,34 +44,34 @@ GEM
|
|
|
44
44
|
multi_json (~> 1.3)
|
|
45
45
|
multi_xml (~> 0.5)
|
|
46
46
|
rack (~> 1.2)
|
|
47
|
-
parslet (1.
|
|
47
|
+
parslet (1.7.1)
|
|
48
48
|
blankslate (>= 2.0, <= 4.0)
|
|
49
|
-
rack (1.
|
|
49
|
+
rack (1.6.4)
|
|
50
50
|
rake (10.4.2)
|
|
51
51
|
rdoc (4.2.0)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
rspec-
|
|
56
|
-
rspec-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
rspec-expectations (3.1.2)
|
|
52
|
+
redcarpet (3.3.2)
|
|
53
|
+
rspec (3.3.0)
|
|
54
|
+
rspec-core (~> 3.3.0)
|
|
55
|
+
rspec-expectations (~> 3.3.0)
|
|
56
|
+
rspec-mocks (~> 3.3.0)
|
|
57
|
+
rspec-core (3.3.2)
|
|
58
|
+
rspec-support (~> 3.3.0)
|
|
59
|
+
rspec-expectations (3.3.1)
|
|
61
60
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
62
|
-
rspec-support (~> 3.
|
|
63
|
-
rspec-its (1.
|
|
61
|
+
rspec-support (~> 3.3.0)
|
|
62
|
+
rspec-its (1.2.0)
|
|
64
63
|
rspec-core (>= 3.0.0)
|
|
65
64
|
rspec-expectations (>= 3.0.0)
|
|
66
|
-
rspec-mocks (3.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
rspec-mocks (3.3.2)
|
|
66
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
67
|
+
rspec-support (~> 3.3.0)
|
|
68
|
+
rspec-support (3.3.0)
|
|
69
|
+
simplecov (0.10.0)
|
|
70
70
|
docile (~> 1.1.0)
|
|
71
|
-
|
|
72
|
-
simplecov-html (~> 0.
|
|
73
|
-
simplecov-html (0.
|
|
74
|
-
thread_safe (0.3.
|
|
71
|
+
json (~> 1.8)
|
|
72
|
+
simplecov-html (~> 0.10.0)
|
|
73
|
+
simplecov-html (0.10.0)
|
|
74
|
+
thread_safe (0.3.5)
|
|
75
75
|
yard (0.8.7.6)
|
|
76
76
|
|
|
77
77
|
PLATFORMS
|
|
@@ -86,3 +86,6 @@ DEPENDENCIES
|
|
|
86
86
|
rspec-its (~> 1.1)
|
|
87
87
|
simplecov (~> 0.9)
|
|
88
88
|
yard (~> 0.8.7)
|
|
89
|
+
|
|
90
|
+
BUNDLED WITH
|
|
91
|
+
1.10.6
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.4.0
|
data/basic101.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: basic101 0.
|
|
5
|
+
# stub: basic101 0.4.0 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "basic101"
|
|
9
|
-
s.version = "0.
|
|
9
|
+
s.version = "0.4.0"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Wayne Conrad"]
|
|
14
|
-
s.date = "
|
|
14
|
+
s.date = "2015-08-31"
|
|
15
15
|
s.description = "[](http://badge.fury.io/rb/basic101) [](https://gemnasium.com/wconrad/basic101) [](https://codeclimate.com/github/wconrad/basic101) [](https://travis-ci.org/wconrad/basic101) basic101 is a circa 1980 BASIC interpreter written in Ruby. It supports a modified subset of Microsoft's BASIC-80 v. 5 and runs the games published in Basic Computer Games, Microcomputer Edition by David H. Ahl"
|
|
16
16
|
s.email = "wconrad@yagni.com"
|
|
17
17
|
s.executables = ["basic101"]
|
|
@@ -649,7 +649,7 @@ Gem::Specification.new do |s|
|
|
|
649
649
|
]
|
|
650
650
|
s.homepage = "http://github.com/wconrad/basic101"
|
|
651
651
|
s.licenses = ["MIT"]
|
|
652
|
-
s.rubygems_version = "2.4.
|
|
652
|
+
s.rubygems_version = "2.4.6"
|
|
653
653
|
s.summary = "Circa 1980 basic intepreter"
|
|
654
654
|
|
|
655
655
|
if s.respond_to? :specification_version then
|
data/test/spec/transform_spec.rb
CHANGED
|
@@ -6,18 +6,18 @@ module Basic101
|
|
|
6
6
|
|
|
7
7
|
let(:parser) {Parser.new}
|
|
8
8
|
|
|
9
|
-
def self.parse(
|
|
10
|
-
parser = Parser.new.send(
|
|
9
|
+
def self.parse(rule_name, s)
|
|
10
|
+
parser = Parser.new.send(rule_name)
|
|
11
11
|
parser.parse(s)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def self.transform(
|
|
15
|
-
parse_tree = parse(
|
|
14
|
+
def self.transform(rule_name, s)
|
|
15
|
+
parse_tree = parse(rule_name, s)
|
|
16
16
|
Transform.new.apply(parse_tree)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
def transform(s,
|
|
20
|
-
self.class.transform(
|
|
19
|
+
def transform(s, rule_name = rule)
|
|
20
|
+
self.class.transform(rule_name, s)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def self.it_should_transform(s, expected_result)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: basic101
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wayne Conrad
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parslet
|
|
@@ -783,7 +783,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
783
783
|
version: '0'
|
|
784
784
|
requirements: []
|
|
785
785
|
rubyforge_project:
|
|
786
|
-
rubygems_version: 2.4.
|
|
786
|
+
rubygems_version: 2.4.6
|
|
787
787
|
signing_key:
|
|
788
788
|
specification_version: 4
|
|
789
789
|
summary: Circa 1980 basic intepreter
|