sexp_processor 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig ADDED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 3.0.2 / 2009-06-23
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Pulled unique.rb from ParseTree to sexp_processor.
6
+ * Switched to minitest.
7
+
1
8
  === 3.0.1 / 2009-01-20
2
9
 
3
10
  * 3 minor enhancements:
data/Manifest.txt CHANGED
@@ -5,6 +5,7 @@ Rakefile
5
5
  lib/composite_sexp_processor.rb
6
6
  lib/sexp.rb
7
7
  lib/sexp_processor.rb
8
+ lib/unique.rb
8
9
  test/test_composite_sexp_processor.rb
9
10
  test/test_environment.rb
10
11
  test/test_sexp.rb
data/Rakefile CHANGED
@@ -5,11 +5,12 @@ require 'hoe'
5
5
 
6
6
  Hoe.add_include_dirs "lib"
7
7
 
8
- require './lib/sexp_processor.rb'
8
+ Hoe.plugin :seattlerb
9
9
 
10
- Hoe.new('sexp_processor', SexpProcessor::VERSION) do |sexp|
11
- sexp.rubyforge_name = 'parsetree'
12
- sexp.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
10
+ Hoe.spec 'sexp_processor' do
11
+ developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
12
+
13
+ self.rubyforge_name = 'parsetree'
13
14
  end
14
15
 
15
- # vim: syntax=Ruby
16
+ # vim: syntax=ruby
@@ -34,7 +34,7 @@ require 'sexp'
34
34
 
35
35
  class SexpProcessor
36
36
 
37
- VERSION = '3.0.1'
37
+ VERSION = '3.0.2'
38
38
 
39
39
  ##
40
40
  # Automatically shifts off the Sexp type before handing the
data/lib/unique.rb ADDED
@@ -0,0 +1,15 @@
1
+ ##
2
+ # Unique creates unique variable names.
3
+
4
+ class Unique
5
+ def self.reset # mostly for testing
6
+ @@curr = 0
7
+ end
8
+
9
+ def self.next
10
+ @@curr += 1
11
+ "temp_#{@@curr}".intern
12
+ end
13
+
14
+ reset
15
+ end
@@ -3,7 +3,7 @@
3
3
  $TESTING = true
4
4
 
5
5
  require 'composite_sexp_processor'
6
- require 'test/unit'
6
+ require 'minitest/autorun'
7
7
 
8
8
  class FakeProcessor1 < SexpProcessor # ZenTest SKIP
9
9
 
@@ -24,7 +24,7 @@ class FakeProcessor1 < SexpProcessor # ZenTest SKIP
24
24
  end
25
25
  end
26
26
 
27
- class TestCompositeSexpProcessor < Test::Unit::TestCase
27
+ class TestCompositeSexpProcessor < MiniTest::Unit::TestCase
28
28
 
29
29
  def setup
30
30
  @p = CompositeSexpProcessor.new
@@ -2,11 +2,10 @@
2
2
 
3
3
  $TESTING = true
4
4
 
5
- require 'test/unit' if $0 == __FILE__
6
- require 'test/unit/testcase'
5
+ require 'minitest/autorun'
7
6
  require 'sexp_processor'
8
7
 
9
- class TestEnvironment < Test::Unit::TestCase
8
+ class TestEnvironment < MiniTest::Unit::TestCase
10
9
 
11
10
  def setup
12
11
  @env = SexpProcessor::Environment.new
data/test/test_sexp.rb CHANGED
@@ -2,20 +2,12 @@
2
2
 
3
3
  $TESTING = true
4
4
 
5
- require 'test/unit' if $0 == __FILE__ unless defined? $ZENTEST and $ZENTEST
6
- require 'test/unit/testcase'
5
+ require 'minitest/autorun'
7
6
  require 'sexp_processor'
8
7
  require 'stringio'
9
8
  require 'pp'
10
9
 
11
- class SexpTestCase < Test::Unit::TestCase
12
-
13
- unless defined? Mini then
14
- alias :refute_nil :assert_not_nil
15
- alias :refute_equal :assert_not_equal
16
- alias :assert_raises :assert_raise
17
- end
18
-
10
+ class SexpTestCase < MiniTest::Unit::TestCase
19
11
  # KEY for regex tests
20
12
  # :a == no change
21
13
  # :b == will change (but sometimes ONLY once)
@@ -4,7 +4,7 @@ $TESTING = true
4
4
 
5
5
  require 'sexp_processor'
6
6
  require 'stringio'
7
- require 'test/unit'
7
+ require 'minitest/autorun'
8
8
  require 'pp'
9
9
 
10
10
  # Fake test classes:
@@ -93,7 +93,7 @@ end
93
93
 
94
94
  # Real test classes:
95
95
 
96
- class TestSexpProcessor < Test::Unit::TestCase
96
+ class TestSexpProcessor < MiniTest::Unit::TestCase
97
97
 
98
98
  def setup
99
99
  @processor = TestProcessor.new
metadata CHANGED
@@ -1,15 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sexp_processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
+ GRYDY29tMB4XDTA5MDMwNjE4NTMxNVoXDTEwMDMwNjE4NTMxNVowRTETMBEGA1UE
16
+ AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
+ b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
19
+ taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
20
+ oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
21
+ GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
+ qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
+ gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQAY59gYvDxqSqgC92nAP9P8dnGgfZgLxP237xS6XxFGJSghdz/nI6pusfCWKM8m
26
+ vzjjH2wUMSSf3tNudQ3rCGLf2epkcU13/rguI88wO6MrE0wi4ZqLQX+eZQFskJb/
27
+ w6x9W1ur8eR01s397LSMexySDBrJOh34cm2AlfKr/jokKCTwcM0OvVZnAutaovC0
28
+ l1SVZ0ecg88bsWHA0Yhh7NFxK1utWoIhtB6AFC/+trM0FQEB/jZkIS8SaNzn96Rl
29
+ n0sZEf77FLf5peR8TP/PtmIg7Cyqz23sLM4mCOoTGIy5OcZ8TdyiyINUHtb5ej/T
30
+ FBHgymkyj/AOSqKRIpXPhjC6
31
+ -----END CERTIFICATE-----
11
32
 
12
- date: 2009-01-20 00:00:00 -08:00
33
+ date: 2009-06-23 00:00:00 -07:00
13
34
  default_executable:
14
35
  dependencies:
15
36
  - !ruby/object:Gem::Dependency
@@ -20,9 +41,12 @@ dependencies:
20
41
  requirements:
21
42
  - - ">="
22
43
  - !ruby/object:Gem::Version
23
- version: 1.8.2
44
+ version: 2.3.0
24
45
  version:
25
- description: sexp_processor branches from ParseTree bringing all the generic sexp processing tools with it. Sexp, SexpProcessor, Environment, etc... all for your language processing pleasure.
46
+ description: |-
47
+ sexp_processor branches from ParseTree bringing all the generic sexp
48
+ processing tools with it. Sexp, SexpProcessor, Environment, etc... all
49
+ for your language processing pleasure.
26
50
  email:
27
51
  - ryand-ruby@zenspider.com
28
52
  executables: []
@@ -41,12 +65,15 @@ files:
41
65
  - lib/composite_sexp_processor.rb
42
66
  - lib/sexp.rb
43
67
  - lib/sexp_processor.rb
68
+ - lib/unique.rb
44
69
  - test/test_composite_sexp_processor.rb
45
70
  - test/test_environment.rb
46
71
  - test/test_sexp.rb
47
72
  - test/test_sexp_processor.rb
48
73
  has_rdoc: true
49
74
  homepage: http://rubyforge.org/projects/parsetree/
75
+ licenses: []
76
+
50
77
  post_install_message:
51
78
  rdoc_options:
52
79
  - --main
@@ -68,9 +95,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
95
  requirements: []
69
96
 
70
97
  rubyforge_project: parsetree
71
- rubygems_version: 1.3.1
98
+ rubygems_version: 1.3.4
72
99
  signing_key:
73
- specification_version: 2
100
+ specification_version: 3
74
101
  summary: sexp_processor branches from ParseTree bringing all the generic sexp processing tools with it
75
102
  test_files:
76
103
  - test/test_composite_sexp_processor.rb
metadata.gz.sig ADDED
Binary file