roll 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+
3
+ testrb test/
4
+
5
+
@@ -0,0 +1,10 @@
1
+ require 'roll/library'
2
+
3
+ p Library.list
4
+
5
+ tl = Library.open('temp')
6
+
7
+ p tl
8
+
9
+ tl.require('dir1/gemorder/temp')
10
+
@@ -0,0 +1,71 @@
1
+ require 'roll/version'
2
+ require 'test/unit'
3
+
4
+ class TestVersionNumber < Test::Unit::TestCase
5
+
6
+ def initialize( *args )
7
+ args = args.join('.').split(/\W+/)
8
+ @self = args.collect { |i| i.to_i }
9
+ end
10
+
11
+ def test_to_s
12
+ v = VersionNumber.new('1.2.3')
13
+ assert_equal('1.2.3', v.to_s)
14
+ end
15
+
16
+ def test_to_str
17
+ v = VersionNumber.new('1.2.3')
18
+ assert_equal('1.2.3', v.to_str)
19
+ end
20
+
21
+ def test_inspect
22
+ v = VersionNumber.new('1.2.3')
23
+ assert_equal('1.2.3', v.inspect)
24
+ end
25
+
26
+ def test_op_fetch
27
+ v = VersionNumber.new('1.2.3')
28
+ assert_equal(1, v[0])
29
+ assert_equal(2, v[1])
30
+ assert_equal(3, v[2])
31
+ end
32
+
33
+ def test_spaceship
34
+ v1 = VersionNumber.new('1.2.3')
35
+ v2 = VersionNumber.new('1.2.4')
36
+ assert_equal(1, v2 <=> v1)
37
+ end
38
+
39
+ # def =~( other )
40
+ # #other = other.to_t
41
+ # upver = other.dup
42
+ # upver[0] += 1
43
+ # @self >= other and @self < upver
44
+ # end
45
+
46
+ def test_pessimistic
47
+ v1 = VersionNumber.new('1.3')
48
+ v2 = VersionNumber.new('1.2.4')
49
+ assert_equal(true, v2 <=> v1)
50
+ end
51
+
52
+ def test_major
53
+ v = VersionNumber.new('1.2.3')
54
+ assert_equal(1, v.major)
55
+ end
56
+
57
+ def test_minor
58
+ v = VersionNumber.new('1.2.3')
59
+ assert_equal(2, v.minor)
60
+ end
61
+
62
+ def test_teeny
63
+ v = VersionNumber.new('1.2.3')
64
+ assert_equal(3, v.teeny)
65
+ end
66
+
67
+ def test_parse_constraint
68
+ assert_equal(["=~", VersionNumber('1.0.0')], VersionNumber.parse_constraint("~> 1.0.0"))
69
+ end
70
+
71
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.4
3
+ specification_version: 1
4
+ name: roll
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.8.0
7
+ date: 2007-10-29 00:00:00 -04:00
8
+ summary: Roll is a library manager for Ruby. Code repositories can be made visible to Ruby just by setting an environment variable. Rolls effectively trivializes Ruby package management.
9
+ require_paths:
10
+ - lib
11
+ email: transfire@gmail.com
12
+ homepage: http://roll.rubyforge.org
13
+ rubyforge_project:
14
+ description: Roll is a library manager for Ruby. Code repositories can be made visible to Ruby just by setting an environment variable. Rolls effectively trivializes Ruby package management.
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc:
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Thomas Sawyer
31
+ files:
32
+ - LICENSE
33
+ - README
34
+ - bin
35
+ - bin/roll
36
+ - demo
37
+ - demo/bench
38
+ - demo/bench/bench_load.rb
39
+ - demo/sample
40
+ - demo/sample/inspect.rb
41
+ - demo/sample/tryme
42
+ - demo/sample/tryme/1.0
43
+ - demo/sample/tryme/1.0/lib
44
+ - demo/sample/tryme/1.0/lib/tryme.rb
45
+ - demo/sample/tryme/1.1
46
+ - demo/sample/tryme/1.1/lib
47
+ - demo/sample/tryme/1.1/lib/tryme.rb
48
+ - lib
49
+ - lib/oll.rb
50
+ - lib/roll
51
+ - lib/roll/attributes.rb
52
+ - lib/roll/library.rb
53
+ - lib/roll/package.rb
54
+ - lib/roll/remote.rb
55
+ - lib/roll/version.rb
56
+ - meta
57
+ - meta/ROLL-0.8.0.roll
58
+ - task
59
+ - task/rdoc
60
+ - task/setup
61
+ - task/test
62
+ - test
63
+ - test/test_library.rb
64
+ - test/test_version.rb
65
+ test_files:
66
+ - test/test_library.rb
67
+ - test/test_version.rb
68
+ rdoc_options: []
69
+
70
+ extra_rdoc_files: []
71
+
72
+ executables: []
73
+
74
+ extensions: []
75
+
76
+ requirements: []
77
+
78
+ dependencies: []
79
+