open_namespace 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour --format documentation
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.3.1 / 2011-03-08
2
+
3
+ * Fixed a typo in {OpenNamespace::ClassMethods#require_file}.
4
+
1
5
  ### 0.3.0 / 2010-04-28
2
6
 
3
7
  * Added {OpenNamespace.constant_path}.
data/LICENSE.txt CHANGED
@@ -1,5 +1,4 @@
1
-
2
- Copyright (c) 2010 Hal Brodigan
1
+ Copyright (c) 2010-2011 Hal Brodigan
3
2
 
4
3
  Permission is hereby granted, free of charge, to any person obtaining
5
4
  a copy of this software and associated documentation files (the
@@ -19,4 +18,3 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19
18
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20
19
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21
20
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
-
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # OpenNamespace
2
2
 
3
- * [github.com/postmodern/open_namespace](http://github.com/postmodern/open_namespace)
4
- * [github.com/postmodern/open_namespace/issues](http://github.com/postmodern/open_namespace/issues)
5
- * Postmodern (postmodern.mod3 at gmail.com)
3
+ * [Source](http://github.com/postmodern/open_namespace)
4
+ * [Issues](http://github.com/postmodern/open_namespace/issues)
5
+ * [Documentation](http://rubydoc.info/gems/open_namespace/frames)
6
+ * [Email](mailto:postmodern.mod3 at gmail.com)
6
7
 
7
8
  ## Description
8
9
 
@@ -66,5 +67,6 @@ Loading constants from alternate namespace root directories:
66
67
 
67
68
  ## License
68
69
 
69
- See {file:LICENSE.txt} for license information.
70
+ Copyright (c) 2010-2011 Hal Brodigan
70
71
 
72
+ See {file:LICENSE.txt} for license information.
data/Rakefile CHANGED
@@ -1,43 +1,36 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
- require './lib/open_namespace/version.rb'
4
3
 
5
4
  begin
6
- require 'jeweler'
7
- Jeweler::Tasks.new do |gem|
8
- gem.name = 'open_namespace'
9
- gem.version = OpenNamespace::VERSION
10
- gem.license = 'MIT'
11
- gem.summary = %Q{Allows namespaces to load constants on-demand}
12
- gem.description = %Q{OpenNamespace allows namespaces to require and find classes and modules from other RubyGems.}
13
- gem.email = 'postmodern.mod3@gmail.com'
14
- gem.homepage = 'http://github.com/postmodern/open-namespace'
15
- gem.authors = ['Postmodern']
16
- gem.add_development_dependency 'rspec', '>= 1.2.9'
17
- gem.add_development_dependency 'yard', '>= 0.5.3'
18
- gem.has_rdoc = 'yard'
19
- end
20
- Jeweler::GemcutterTasks.new
21
- rescue LoadError
22
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
23
- end
5
+ gem 'ore-tasks', '~> 0.4'
6
+ require 'ore/tasks'
24
7
 
25
- require 'spec/rake/spectask'
26
- Spec::Rake::SpecTask.new(:spec) do |spec|
27
- spec.libs += ['lib', 'spec']
28
- spec.spec_files = FileList['spec/**/*_spec.rb']
29
- spec.spec_opts = ['--options', '.specopts']
8
+ Ore::Tasks.new
9
+ rescue LoadError => e
10
+ STDERR.puts e.message
11
+ STDERR.puts "Run `gem install ore-tasks` to install 'ore/tasks'."
30
12
  end
31
13
 
32
- task :spec => :check_dependencies
14
+ begin
15
+ gem 'rspec', '~> 2.4'
16
+ require 'rspec/core/rake_task'
17
+
18
+ RSpec::Core::RakeTask.new
19
+ rescue LoadError => e
20
+ task :spec do
21
+ abort "Please run `gem install rspec` to install RSpec."
22
+ end
23
+ end
24
+ task :test => :spec
33
25
  task :default => :spec
34
26
 
35
27
  begin
28
+ gem 'yard', '~> 0.6.0'
36
29
  require 'yard'
37
30
 
38
- YARD::Rake::YardocTask.new
39
- rescue LoadError
31
+ YARD::Rake::YardocTask.new
32
+ rescue LoadError => e
40
33
  task :yard do
41
- abort "YARD is not available. In order to run yard, you must: gem install yard"
34
+ abort "Please run `gem install yard` to install YARD."
42
35
  end
43
36
  end
data/gemspec.yml ADDED
@@ -0,0 +1,16 @@
1
+ name: open_namespace
2
+ summary: Allows namespaces to load constants on-demand
3
+ description:
4
+ OpenNamespace allows namespaces to require and find classes and modules
5
+ from other RubyGems.
6
+
7
+ license: MIT
8
+ authors: Postmodern
9
+ email: postmodern.mod3@gmail.com
10
+ homepage: http://github.com/postmodern/open_namespace
11
+ has_yard: true
12
+
13
+ development_dependencies:
14
+ ore-tasks: ~> 0.4
15
+ rspec: ~> 2.4
16
+ yard: ~> 0.6.0
@@ -70,7 +70,7 @@ module OpenNamespace
70
70
 
71
71
  begin
72
72
  require path
73
- rescue Gem::LoadError
73
+ rescue Gem::LoadError => e
74
74
  raise(e)
75
75
  rescue ::LoadError
76
76
  return nil
@@ -1,4 +1,4 @@
1
1
  module OpenNamespace
2
2
  # open_namespace version
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
@@ -1,88 +1,15 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{open_namespace}
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 = ["Postmodern"]
12
- s.date = %q{2010-04-28}
13
- s.description = %q{OpenNamespace allows namespaces to require and find classes and modules from other RubyGems.}
14
- s.email = %q{postmodern.mod3@gmail.com}
15
- s.extra_rdoc_files = [
16
- "ChangeLog.md",
17
- "LICENSE.txt",
18
- "README.md"
19
- ]
20
- s.files = [
21
- ".gitignore",
22
- ".specopts",
23
- ".yardopts",
24
- "ChangeLog.md",
25
- "LICENSE.txt",
26
- "README.md",
27
- "Rakefile",
28
- "lib/open_namespace.rb",
29
- "lib/open_namespace/class_methods.rb",
30
- "lib/open_namespace/open_namespace.rb",
31
- "lib/open_namespace/version.rb",
32
- "open_namespace.gemspec",
33
- "spec/classes/custom/bad_constant.rb",
34
- "spec/classes/custom/constant_one.rb",
35
- "spec/classes/custom/constant_two.rb",
36
- "spec/classes/custom/odd_constant.rb",
37
- "spec/classes/custom/sub/constant_four.rb",
38
- "spec/classes/custom_namespace.rb",
39
- "spec/classes/simple_namespace.rb",
40
- "spec/classes/simple_namespace/bad_constant.rb",
41
- "spec/classes/simple_namespace/constant_one.rb",
42
- "spec/classes/simple_namespace/constant_two.rb",
43
- "spec/classes/simple_namespace/odd_constant.rb",
44
- "spec/classes/simple_namespace/sub/constant_four.rb",
45
- "spec/open_namespace_spec.rb",
46
- "spec/spec_helper.rb"
47
- ]
48
- s.has_rdoc = %q{yard}
49
- s.homepage = %q{http://github.com/postmodern/open-namespace}
50
- s.licenses = ["MIT"]
51
- s.rdoc_options = ["--charset=UTF-8"]
52
- s.require_paths = ["lib"]
53
- s.rubygems_version = %q{1.3.6}
54
- s.summary = %q{Allows namespaces to load constants on-demand}
55
- s.test_files = [
56
- "spec/spec_helper.rb",
57
- "spec/open_namespace_spec.rb",
58
- "spec/classes/custom_namespace.rb",
59
- "spec/classes/custom/constant_two.rb",
60
- "spec/classes/custom/constant_one.rb",
61
- "spec/classes/custom/bad_constant.rb",
62
- "spec/classes/custom/sub/constant_four.rb",
63
- "spec/classes/custom/odd_constant.rb",
64
- "spec/classes/simple_namespace.rb",
65
- "spec/classes/simple_namespace/constant_two.rb",
66
- "spec/classes/simple_namespace/constant_one.rb",
67
- "spec/classes/simple_namespace/bad_constant.rb",
68
- "spec/classes/simple_namespace/sub/constant_four.rb",
69
- "spec/classes/simple_namespace/odd_constant.rb"
70
- ]
71
-
72
- if s.respond_to? :specification_version then
73
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
74
- s.specification_version = 3
75
-
76
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
77
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
78
- s.add_development_dependency(%q<yard>, [">= 0.5.3"])
79
- else
80
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
81
- s.add_dependency(%q<yard>, [">= 0.5.3"])
82
- end
83
- else
84
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
85
- s.add_dependency(%q<yard>, [">= 0.5.3"])
3
+ begin
4
+ Ore::Specification.new do |gemspec|
5
+ # custom logic here
6
+ end
7
+ rescue NameError
8
+ begin
9
+ require 'ore/specification'
10
+ retry
11
+ rescue LoadError
12
+ STDERR.puts "The 'open_namespace.gemspec' file requires Ore."
13
+ STDERR.puts "Run `gem install ore-core` to install Ore."
86
14
  end
87
15
  end
88
-
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,5 @@
1
- require 'rubygems'
2
- gem 'rspec', '>=1.2.9'
3
- require 'spec'
1
+ gem 'rspec', '~> 2.4'
2
+ require 'rspec'
4
3
 
5
4
  require 'open_namespace/version'
6
5
 
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_namespace
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 0
9
- version: 0.3.0
4
+ prerelease:
5
+ version: 0.3.1
10
6
  platform: ruby
11
7
  authors:
12
8
  - Postmodern
@@ -14,55 +10,60 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-04-28 00:00:00 -07:00
13
+ date: 2011-03-08 00:00:00 -08:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
21
- name: rspec
17
+ name: ore-tasks
22
18
  prerelease: false
23
19
  requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
24
21
  requirements:
25
- - - ">="
22
+ - - ~>
26
23
  - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 2
30
- - 9
31
- version: 1.2.9
24
+ version: "0.4"
32
25
  type: :development
33
26
  version_requirements: *id001
34
27
  - !ruby/object:Gem::Dependency
35
- name: yard
28
+ name: rspec
36
29
  prerelease: false
37
30
  requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
38
32
  requirements:
39
- - - ">="
33
+ - - ~>
40
34
  - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 5
44
- - 3
45
- version: 0.5.3
35
+ version: "2.4"
46
36
  type: :development
47
37
  version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: yard
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 0.6.0
47
+ type: :development
48
+ version_requirements: *id003
48
49
  description: OpenNamespace allows namespaces to require and find classes and modules from other RubyGems.
49
- email: postmodern.mod3@gmail.com
50
+ email:
51
+ - postmodern.mod3@gmail.com
50
52
  executables: []
51
53
 
52
54
  extensions: []
53
55
 
54
56
  extra_rdoc_files:
55
- - ChangeLog.md
56
- - LICENSE.txt
57
57
  - README.md
58
58
  files:
59
- - .gitignore
60
- - .specopts
59
+ - .gemtest
60
+ - .rspec
61
61
  - .yardopts
62
62
  - ChangeLog.md
63
63
  - LICENSE.txt
64
64
  - README.md
65
65
  - Rakefile
66
+ - gemspec.yml
66
67
  - lib/open_namespace.rb
67
68
  - lib/open_namespace/class_methods.rb
68
69
  - lib/open_namespace/open_namespace.rb
@@ -83,47 +84,32 @@ files:
83
84
  - spec/open_namespace_spec.rb
84
85
  - spec/spec_helper.rb
85
86
  has_rdoc: yard
86
- homepage: http://github.com/postmodern/open-namespace
87
+ homepage: http://github.com/postmodern/open_namespace
87
88
  licenses:
88
89
  - MIT
89
90
  post_install_message:
90
- rdoc_options:
91
- - --charset=UTF-8
91
+ rdoc_options: []
92
+
92
93
  require_paths:
93
94
  - lib
94
95
  required_ruby_version: !ruby/object:Gem::Requirement
96
+ none: false
95
97
  requirements:
96
98
  - - ">="
97
99
  - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
100
  version: "0"
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
+ none: false
102
103
  requirements:
103
104
  - - ">="
104
105
  - !ruby/object:Gem::Version
105
- segments:
106
- - 0
107
106
  version: "0"
108
107
  requirements: []
109
108
 
110
- rubyforge_project:
111
- rubygems_version: 1.3.6
109
+ rubyforge_project: open_namespace
110
+ rubygems_version: 1.6.1
112
111
  signing_key:
113
112
  specification_version: 3
114
113
  summary: Allows namespaces to load constants on-demand
115
114
  test_files:
116
- - spec/spec_helper.rb
117
115
  - spec/open_namespace_spec.rb
118
- - spec/classes/custom_namespace.rb
119
- - spec/classes/custom/constant_two.rb
120
- - spec/classes/custom/constant_one.rb
121
- - spec/classes/custom/bad_constant.rb
122
- - spec/classes/custom/sub/constant_four.rb
123
- - spec/classes/custom/odd_constant.rb
124
- - spec/classes/simple_namespace.rb
125
- - spec/classes/simple_namespace/constant_two.rb
126
- - spec/classes/simple_namespace/constant_one.rb
127
- - spec/classes/simple_namespace/bad_constant.rb
128
- - spec/classes/simple_namespace/sub/constant_four.rb
129
- - spec/classes/simple_namespace/odd_constant.rb
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- pkg
2
- doc
3
- tmp
4
- .DS_Store
5
- .yardoc
6
- *.swp
7
- *~
data/.specopts DELETED
@@ -1 +0,0 @@
1
- --colour --format specdoc