open_namespace 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gemtest +0 -0
- data/.rspec +1 -0
- data/ChangeLog.md +4 -0
- data/LICENSE.txt +1 -3
- data/README.md +6 -4
- data/Rakefile +21 -28
- data/gemspec.yml +16 -0
- data/lib/open_namespace/class_methods.rb +1 -1
- data/lib/open_namespace/version.rb +1 -1
- data/open_namespace.gemspec +11 -84
- data/spec/spec_helper.rb +2 -3
- metadata +34 -48
- data/.gitignore +0 -7
- data/.specopts +0 -1
data/.gemtest
ADDED
File without changes
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--colour --format documentation
|
data/ChangeLog.md
CHANGED
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
|
-
* [
|
4
|
-
* [
|
5
|
-
*
|
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
|
-
|
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
|
-
|
7
|
-
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
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 "
|
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
|
data/open_namespace.gemspec
CHANGED
@@ -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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
"
|
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
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:
|
5
|
-
|
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:
|
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:
|
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
|
-
|
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:
|
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
|
-
|
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:
|
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
|
-
- .
|
60
|
-
- .
|
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/
|
87
|
+
homepage: http://github.com/postmodern/open_namespace
|
87
88
|
licenses:
|
88
89
|
- MIT
|
89
90
|
post_install_message:
|
90
|
-
rdoc_options:
|
91
|
-
|
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.
|
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
data/.specopts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour --format specdoc
|