renum 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/lib/renum.rb +2 -1
- data/lib/renum/enumerated_value.rb +2 -0
- data/lib/renum/version.rb +2 -2
- data/spec/renum_spec.rb +8 -3
- data/tasks/deployment.rake +1 -1
- data/tasks/rspec.rake +5 -0
- data/website/index.html +7 -3
- data/website/template.rhtml +6 -2
- metadata +44 -37
data/History.txt
CHANGED
data/lib/renum.rb
CHANGED
data/lib/renum/version.rb
CHANGED
data/spec/renum_spec.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper.rb')
|
2
|
-
|
2
|
+
if ENV['USE_GEM']
|
3
|
+
require 'rubygems'
|
4
|
+
require 'renum'
|
5
|
+
else
|
6
|
+
require File.expand_path(File.dirname(__FILE__) + '/../lib/renum')
|
7
|
+
end
|
3
8
|
|
4
9
|
enum :Status, [ :NOT_STARTED, :IN_PROGRESS, :COMPLETE ]
|
5
10
|
|
@@ -16,11 +21,11 @@ end
|
|
16
21
|
describe "enum" do
|
17
22
|
|
18
23
|
it "creates a class for the value type" do
|
19
|
-
Status.
|
24
|
+
Status.should be_an_instance_of(Class)
|
20
25
|
end
|
21
26
|
|
22
27
|
it "makes each value an instance of the value type" do
|
23
|
-
Status::NOT_STARTED.
|
28
|
+
Status::NOT_STARTED.should be_an_instance_of(Status)
|
24
29
|
end
|
25
30
|
|
26
31
|
it "exposes array of values" do
|
data/tasks/deployment.rake
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
desc 'Release the website and new gem version'
|
2
|
-
task :deploy => [:check_version, :website, :release] do
|
2
|
+
task :deploy => [:check_version, :install_gem, :spec_gem, :website, :release] do
|
3
3
|
puts "Remember to create SVN tag:"
|
4
4
|
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
5
5
|
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
data/tasks/rspec.rake
CHANGED
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>renum</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/renum"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/renum" class="numbers">0.0
|
36
|
+
<a href="http://rubyforge.org/projects/renum" class="numbers">0.1.0</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘renum’</h1>
|
39
39
|
|
@@ -135,7 +135,11 @@
|
|
135
135
|
</p>
|
136
136
|
</div>
|
137
137
|
|
138
|
-
|
139
|
-
|
138
|
+
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
|
139
|
+
</script>
|
140
|
+
<script type="text/javascript">
|
141
|
+
_uacct = "UA-2039575-4";
|
142
|
+
urchinTracker();
|
143
|
+
</script>
|
140
144
|
</body>
|
141
145
|
</html>
|
data/website/template.rhtml
CHANGED
@@ -42,7 +42,11 @@
|
|
42
42
|
</p>
|
43
43
|
</div>
|
44
44
|
|
45
|
-
|
46
|
-
|
45
|
+
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
|
46
|
+
</script>
|
47
|
+
<script type="text/javascript">
|
48
|
+
_uacct = "UA-2039575-4";
|
49
|
+
urchinTracker();
|
50
|
+
</script>
|
47
51
|
</body>
|
48
52
|
</html>
|
metadata
CHANGED
@@ -1,33 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.0
|
3
|
-
specification_version: 1
|
4
2
|
name: renum
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0
|
7
|
-
date: 2007-11-02 00:00:00 -04:00
|
8
|
-
summary: Renum is a Ruby enum implementation
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: duelin dot markers at gmail
|
12
|
-
homepage: http://renum.rubyforge.org
|
13
|
-
rubyforge_project: renum
|
14
|
-
description: Renum is a Ruby enum implementation
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.1.0
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- John Hume
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-01-11 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Renum is a Ruby enum implementation
|
17
|
+
email: duelin dot markers at gmail
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- History.txt
|
24
|
+
- License.txt
|
25
|
+
- Manifest.txt
|
26
|
+
- README.txt
|
27
|
+
- website/index.txt
|
31
28
|
files:
|
32
29
|
- History.txt
|
33
30
|
- License.txt
|
@@ -57,22 +54,32 @@ files:
|
|
57
54
|
- website/javascripts/rounded_corners_lite.inc.js
|
58
55
|
- website/stylesheets/screen.css
|
59
56
|
- website/template.rhtml
|
60
|
-
|
61
|
-
|
57
|
+
has_rdoc: true
|
58
|
+
homepage: http://renum.rubyforge.org
|
59
|
+
post_install_message:
|
62
60
|
rdoc_options:
|
63
61
|
- --main
|
64
62
|
- README.txt
|
65
|
-
|
66
|
-
-
|
67
|
-
|
68
|
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
63
|
+
require_paths:
|
64
|
+
- lib
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: "0"
|
70
|
+
version:
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: "0"
|
76
|
+
version:
|
75
77
|
requirements: []
|
76
78
|
|
77
|
-
|
79
|
+
rubyforge_project: renum
|
80
|
+
rubygems_version: 1.0.1
|
81
|
+
signing_key:
|
82
|
+
specification_version: 2
|
83
|
+
summary: Renum is a Ruby enum implementation
|
84
|
+
test_files: []
|
78
85
|
|