ore-core 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 0.1.4 / 2011-02-25
2
+
3
+ * Added `core` to the list of namespaces to ignore.
4
+ * Bypass the filtering of `Gem::Specification#has_rdoc=` added by RubyGems
5
+ 1.5.x in {Ore::Project#to_gemspec}.
6
+
1
7
  ### 0.1.3 / 2011-02-12
2
8
 
3
9
  * Added {Ore::Project#emails}.
data/README.md CHANGED
@@ -34,7 +34,7 @@ project information in a single YAML file.
34
34
  require 'ore/specification'
35
35
  retry
36
36
  rescue LoadError
37
- STDERR.puts "The 'my_project.gemspec' file requires Ore."
37
+ STDERR.puts "The '#{__FILE__}' file requires Ore."
38
38
  STDERR.puts "Run `gem install ore-core` to install Ore."
39
39
  end
40
40
  end
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- gem 'rspec', '~> 2.4.0'
5
+ gem 'rspec', '~> 2.4'
6
6
  require 'rspec/core/rake_task'
7
7
 
8
8
  RSpec::Core::RakeTask.new
data/gemspec.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: ore-core
2
- version: 0.1.3
2
+ version: 0.1.4
3
3
  summary: Mine raw RubyGems from YAML
4
4
  description:
5
5
  Ore is a simple RubyGem building solution. Ore handles the
@@ -14,5 +14,5 @@ homepage: http://github.com/ruby-ore/ore-core
14
14
  has_yard: true
15
15
 
16
16
  development_dependencies:
17
+ rspec: ~> 2.4
17
18
  yard: ~> 0.6.1
18
- rspec: ~> 2.4.0
data/lib/ore/naming.rb CHANGED
@@ -28,7 +28,7 @@ module Ore
28
28
  @@pkg_dir = 'pkg'
29
29
 
30
30
  # Words used in project names, but never in directory names
31
- @@ignore_namespaces = %w[ruby rb java]
31
+ @@ignore_namespaces = %w[core ruby rb java]
32
32
 
33
33
  # Common acronyms used in namespaces
34
34
  @@namespace_acronyms = %w[
data/lib/ore/project.rb CHANGED
@@ -448,8 +448,17 @@ module Ore
448
448
  gemspec.executables = @executables
449
449
  gemspec.default_executable = @default_executable
450
450
 
451
- if has_yard
452
- gemspec.has_rdoc = 'yard'
451
+ # forcibly set the @has_rdoc ivar, as RubyGems 1.5.x disables the
452
+ # #has_rdoc= writer method.
453
+ if gemspec.instance_variable_defined?('@has_rdoc')
454
+ case @documentation
455
+ when :yard
456
+ gemspec.instance_variable_set('@has_rdoc','yard')
457
+ when :rdoc
458
+ gemspec.instance_variable_set('@has_rdoc',true)
459
+ when nil
460
+ gemspec.instance_variable_set('@has_rdoc',false)
461
+ end
453
462
  end
454
463
 
455
464
  gemspec.extra_rdoc_files = @extra_doc_files
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- gem 'rspec', '~> 2.4.0'
1
+ gem 'rspec', '~> 2.4'
2
2
  require 'rspec'
3
3
  require 'ore-core'
4
4
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ore-core
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Postmodern
@@ -10,29 +10,29 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-12 00:00:00 -08:00
13
+ date: 2011-02-25 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: yard
17
+ name: rspec
18
18
  prerelease: false
19
19
  requirement: &id001 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 0.6.1
24
+ version: "2.4"
25
25
  type: :development
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec
28
+ name: yard
29
29
  prerelease: false
30
30
  requirement: &id002 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ~>
34
34
  - !ruby/object:Gem::Version
35
- version: 2.4.0
35
+ version: 0.6.1
36
36
  type: :development
37
37
  version_requirements: *id002
38
38
  description: Ore is a simple RubyGem building solution. Ore handles the creation of Gem::Specification objects as well as building '.gem' files. Ore allows the developer to keep all of the project information in a single YAML file.
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  requirements: []
139
139
 
140
140
  rubyforge_project: ore-core
141
- rubygems_version: 1.5.0
141
+ rubygems_version: 1.5.2
142
142
  signing_key:
143
143
  specification_version: 3
144
144
  summary: Mine raw RubyGems from YAML