numb 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.document CHANGED
@@ -1,5 +1,4 @@
1
- README.rdoc
1
+ #README.markdown
2
2
  lib/**/*.rb
3
3
  bin/*
4
4
  features/**/*.feature
5
- LICENSE
data/.gitignore CHANGED
@@ -1,5 +1,5 @@
1
1
  *.sw?
2
2
  .DS_Store
3
3
  coverage
4
- rdoc
4
+ doc
5
5
  pkg
@@ -1,10 +1,12 @@
1
- = numb
1
+ numb
2
+ ====
2
3
 
3
4
  Experiments in number theory by extending the Integer class with predicate
4
5
  methods such as #perfect? and #weird?.
5
6
 
6
7
  Requires Ruby 1.9.
7
8
 
8
- == Copyright
9
+ Copyright
10
+ ---------
9
11
 
10
12
  Copyright (c) 2009 Run Paint Run Run. See LICENSE for details.
data/Rakefile CHANGED
@@ -11,6 +11,9 @@ begin
11
11
  gem.homepage = "http://github.com/runpaint/numb"
12
12
  gem.authors = ["Run Paint Run Run"]
13
13
  gem.required_ruby_version = '>= 1.9.1'
14
+ gem.has_rdoc = 'yard'
15
+ gem.add_development_dependency "yard"
16
+ gem.add_dependency "gemcutter", ">= 0.1.0"
14
17
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
18
  end
16
19
  Jeweler::GemcutterTasks.new
@@ -30,23 +33,13 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
30
33
  spec.rcov = true
31
34
  end
32
35
 
33
-
34
36
  task :default => :spec
35
37
 
36
- require 'rake/rdoctask'
37
- Rake::RDocTask.new do |rdoc|
38
- if File.exist?('VERSION.yml')
39
- config = YAML.load(File.read('VERSION.yml'))
40
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
41
- else
42
- version = ""
38
+ begin
39
+ require 'yard'
40
+ YARD::Rake::YardocTask.new do |t|
41
+ t.files = FileList['lib/**/*.rb'].exclude('lib/numb/prime.rb')
43
42
  end
44
-
45
- rdoc.rdoc_dir = 'rdoc'
46
- rdoc.title = "numb #{version}"
47
- rdoc.rdoc_files.include('README*')
48
- rdoc.rdoc_files.include('lib/**/*.rb')
49
- rdoc.options << '--line-numbers' << '--inline-source'
50
- rdoc.options << '--charset' << 'utf-8'
43
+ rescue LoadError
44
+ task :yard => :check_dependencies
51
45
  end
52
-
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Run Paint Run Run
@@ -11,8 +11,27 @@ cert_chain: []
11
11
 
12
12
  date: 2009-12-31 00:00:00 +00:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: yard
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: gemcutter
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.0
34
+ version:
16
35
  description:
17
36
  email: runrun@runpaint.org
18
37
  executables: []
@@ -21,12 +40,12 @@ extensions: []
21
40
 
22
41
  extra_rdoc_files:
23
42
  - LICENSE
24
- - README.rdoc
43
+ - README.markdown
25
44
  files:
26
45
  - .document
27
46
  - .gitignore
28
47
  - LICENSE
29
- - README.rdoc
48
+ - README.markdown
30
49
  - Rakefile
31
50
  - VERSION
32
51
  - lib/numb.rb
@@ -80,7 +99,6 @@ files:
80
99
  - lib/numb/undulating.rb
81
100
  - lib/numb/vampire.rb
82
101
  - lib/numb/weird.rb
83
- - numb.gemspec
84
102
  - spec/abundant_spec.rb
85
103
  - spec/achilles_spec.rb
86
104
  - spec/automorphic_spec.rb
@@ -133,7 +151,7 @@ files:
133
151
  - spec/undulating_spec.rb
134
152
  - spec/vampire_spec.rb
135
153
  - spec/weird_spec.rb
136
- has_rdoc: true
154
+ has_rdoc: yard
137
155
  homepage: http://github.com/runpaint/numb
138
156
  licenses: []
139
157
 
data/numb.gemspec DELETED
@@ -1,201 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{numb}
8
- s.version = "0.3.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Run Paint Run Run"]
12
- s.date = %q{2009-12-31}
13
- s.email = %q{runrun@runpaint.org}
14
- s.extra_rdoc_files = [
15
- "LICENSE",
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- ".document",
20
- ".gitignore",
21
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "lib/numb.rb",
26
- "lib/numb/abundant.rb",
27
- "lib/numb/achilles.rb",
28
- "lib/numb/automorphic.rb",
29
- "lib/numb/carol.rb",
30
- "lib/numb/deficient.rb",
31
- "lib/numb/dihedral_prime.rb",
32
- "lib/numb/dudeney.rb",
33
- "lib/numb/economical.rb",
34
- "lib/numb/emrip.rb",
35
- "lib/numb/equidigital.rb",
36
- "lib/numb/extravagant.rb",
37
- "lib/numb/factorion.rb",
38
- "lib/numb/frugal.rb",
39
- "lib/numb/happy.rb",
40
- "lib/numb/harshad.rb",
41
- "lib/numb/hilbert.rb",
42
- "lib/numb/hyperperfect.rb",
43
- "lib/numb/impolite.rb",
44
- "lib/numb/kaprekar.rb",
45
- "lib/numb/keith.rb",
46
- "lib/numb/kynea.rb",
47
- "lib/numb/mms_pair.rb",
48
- "lib/numb/mobius.rb",
49
- "lib/numb/narcissistic.rb",
50
- "lib/numb/nivenmorphic.rb",
51
- "lib/numb/ordinal.rb",
52
- "lib/numb/parasitic.rb",
53
- "lib/numb/perfect.rb",
54
- "lib/numb/perfect_power.rb",
55
- "lib/numb/polite.rb",
56
- "lib/numb/polydivisible.rb",
57
- "lib/numb/powerful.rb",
58
- "lib/numb/practical.rb",
59
- "lib/numb/prime.rb",
60
- "lib/numb/ruby1.8.rb",
61
- "lib/numb/ruby1.9.rb",
62
- "lib/numb/self.rb",
63
- "lib/numb/self_descriptive.rb",
64
- "lib/numb/semi_perfect.rb",
65
- "lib/numb/semiprime.rb",
66
- "lib/numb/smarandache_wellin.rb",
67
- "lib/numb/smith.rb",
68
- "lib/numb/sphenic.rb",
69
- "lib/numb/square.rb",
70
- "lib/numb/square_free.rb",
71
- "lib/numb/triangular.rb",
72
- "lib/numb/trimorphic.rb",
73
- "lib/numb/undulating.rb",
74
- "lib/numb/vampire.rb",
75
- "lib/numb/weird.rb",
76
- "numb.gemspec",
77
- "spec/abundant_spec.rb",
78
- "spec/achilles_spec.rb",
79
- "spec/automorphic_spec.rb",
80
- "spec/carol_spec.rb",
81
- "spec/deficient_spec.rb",
82
- "spec/digital_sum_spec.rb",
83
- "spec/dihedral_prime_spec.rb",
84
- "spec/dudeney_spec.rb",
85
- "spec/economical_spec.rb",
86
- "spec/emrip_spec.rb",
87
- "spec/equidigital_spec.rb",
88
- "spec/extravagant_spec.rb",
89
- "spec/factor_spec.rb",
90
- "spec/factorion_spec.rb",
91
- "spec/frugal_spec.rb",
92
- "spec/happy_spec.rb",
93
- "spec/harshad_spec.rb",
94
- "spec/hilbert_spec.rb",
95
- "spec/hyperperfect_spec.rb",
96
- "spec/kaprekar_spec.rb",
97
- "spec/keith_spec.rb",
98
- "spec/kynea_spec.rb",
99
- "spec/maris_mcgwire_sosa_pair_spec.rb",
100
- "spec/mobius_spec.rb",
101
- "spec/narcissistic_spec.rb",
102
- "spec/nivenmorphic_spec.rb",
103
- "spec/number_of_distinct_prime_factors_spec.rb",
104
- "spec/number_of_prime_factors_spec.rb",
105
- "spec/ordinal_spec.rb",
106
- "spec/parasitic_spec.rb",
107
- "spec/perfect_power_spec.rb",
108
- "spec/perfect_spec.rb",
109
- "spec/polite_spec.rb",
110
- "spec/politeness_spec.rb",
111
- "spec/polydivisible_spec.rb",
112
- "spec/powerful_spec.rb",
113
- "spec/practical_spec.rb",
114
- "spec/self_descriptive_spec.rb",
115
- "spec/self_spec.rb",
116
- "spec/semi_perfect_spec.rb",
117
- "spec/semiprime_spec.rb",
118
- "spec/smarandache_wellin_spec.rb",
119
- "spec/smith_spec.rb",
120
- "spec/spec_helper.rb",
121
- "spec/sphenic_spec.rb",
122
- "spec/square_free_spec.rb",
123
- "spec/square_spec.rb",
124
- "spec/triangular_spec.rb",
125
- "spec/trimorphic_spec.rb",
126
- "spec/undulating_spec.rb",
127
- "spec/vampire_spec.rb",
128
- "spec/weird_spec.rb"
129
- ]
130
- s.homepage = %q{http://github.com/runpaint/numb}
131
- s.rdoc_options = ["--charset=UTF-8"]
132
- s.require_paths = ["lib"]
133
- s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
134
- s.rubygems_version = %q{1.3.5}
135
- s.summary = %q{Experiments in number theory with new predicate methods for Integer.}
136
- s.test_files = [
137
- "spec/economical_spec.rb",
138
- "spec/polydivisible_spec.rb",
139
- "spec/equidigital_spec.rb",
140
- "spec/nivenmorphic_spec.rb",
141
- "spec/dudeney_spec.rb",
142
- "spec/square_free_spec.rb",
143
- "spec/abundant_spec.rb",
144
- "spec/self_spec.rb",
145
- "spec/square_spec.rb",
146
- "spec/ordinal_spec.rb",
147
- "spec/perfect_spec.rb",
148
- "spec/perfect_power_spec.rb",
149
- "spec/polite_spec.rb",
150
- "spec/automorphic_spec.rb",
151
- "spec/hyperperfect_spec.rb",
152
- "spec/spec_helper.rb",
153
- "spec/kynea_spec.rb",
154
- "spec/factor_spec.rb",
155
- "spec/emrip_spec.rb",
156
- "spec/smith_spec.rb",
157
- "spec/vampire_spec.rb",
158
- "spec/dihedral_prime_spec.rb",
159
- "spec/sphenic_spec.rb",
160
- "spec/practical_spec.rb",
161
- "spec/parasitic_spec.rb",
162
- "spec/number_of_prime_factors_spec.rb",
163
- "spec/frugal_spec.rb",
164
- "spec/semiprime_spec.rb",
165
- "spec/deficient_spec.rb",
166
- "spec/happy_spec.rb",
167
- "spec/triangular_spec.rb",
168
- "spec/semi_perfect_spec.rb",
169
- "spec/smarandache_wellin_spec.rb",
170
- "spec/maris_mcgwire_sosa_pair_spec.rb",
171
- "spec/trimorphic_spec.rb",
172
- "spec/harshad_spec.rb",
173
- "spec/carol_spec.rb",
174
- "spec/powerful_spec.rb",
175
- "spec/weird_spec.rb",
176
- "spec/number_of_distinct_prime_factors_spec.rb",
177
- "spec/digital_sum_spec.rb",
178
- "spec/factorion_spec.rb",
179
- "spec/undulating_spec.rb",
180
- "spec/extravagant_spec.rb",
181
- "spec/self_descriptive_spec.rb",
182
- "spec/kaprekar_spec.rb",
183
- "spec/hilbert_spec.rb",
184
- "spec/keith_spec.rb",
185
- "spec/narcissistic_spec.rb",
186
- "spec/achilles_spec.rb",
187
- "spec/politeness_spec.rb",
188
- "spec/mobius_spec.rb"
189
- ]
190
-
191
- if s.respond_to? :specification_version then
192
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
193
- s.specification_version = 3
194
-
195
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
196
- else
197
- end
198
- else
199
- end
200
- end
201
-