renum 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
1
+ == 0.0.3 2007-11-02
2
+
3
+ * Support nesting enums inside other modules.
4
+ * Add Comparable
5
+
1
6
  == 0.0.1 2007-11-01
2
7
 
3
8
  * 1 major enhancement:
4
9
  * Initial release
10
+
@@ -9,6 +9,7 @@ module Renum
9
9
  end
10
10
 
11
11
  extend Renum
12
+
12
13
  Module.module_eval do
13
14
  include Renum
14
- end
15
+ end
@@ -1,3 +1,5 @@
1
+ require 'forwardable'
2
+
1
3
  module Renum
2
4
  class EnumeratedValue
3
5
 
@@ -1,8 +1,8 @@
1
1
  module Renum #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 0
5
- TINY = 3
4
+ MINOR = 1
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,5 +1,10 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper.rb')
2
- require File.expand_path(File.dirname(__FILE__) + '/../lib/renum')
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.class.should == Class
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.class.should == Status
28
+ Status::NOT_STARTED.should be_an_instance_of(Status)
24
29
  end
25
30
 
26
31
  it "exposes array of values" do
@@ -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} "
@@ -19,3 +19,8 @@ Spec::Rake::SpecTask.new do |t|
19
19
  t.spec_opts = ['--options', "spec/spec.opts"]
20
20
  t.spec_files = FileList['spec/*_spec.rb']
21
21
  end
22
+
23
+ task :spec_gem do
24
+ ENV['USE_GEM'] = 'y'
25
+ Rake::Task[:spec].invoke
26
+ end
@@ -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.3</a>
36
+ <a href="http://rubyforge.org/projects/renum" class="numbers">0.1.0</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;renum&#8217;</h1>
39
39
 
@@ -135,7 +135,11 @@
135
135
  </p>
136
136
  </div>
137
137
 
138
- <!-- insert site tracking codes here, like Google Urchin -->
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>
@@ -42,7 +42,11 @@
42
42
  </p>
43
43
  </div>
44
44
 
45
- <!-- insert site tracking codes here, like Google Urchin -->
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.3
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
- test_files: []
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
- extra_rdoc_files:
66
- - History.txt
67
- - License.txt
68
- - Manifest.txt
69
- - README.txt
70
- - website/index.txt
71
- executables: []
72
-
73
- extensions: []
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
- dependencies: []
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