namespace_helper 1.0.0 → 1.0.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/.gitignore +2 -0
- data/.travis.yml +3 -0
- data/HISTORY.md +9 -0
- data/README.md +48 -19
- data/Rakefile +3 -2
- data/lib/aef/namespace_helper/version.rb +30 -0
- data/lib/aef/namespace_helper.rb +2 -3
- data/namespace_helper.gemspec +7 -8
- data.tar.gz.sig +0 -0
- metadata +19 -30
- metadata.gz.sig +0 -0
- data/Gemfile.lock +0 -54
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -4,11 +4,11 @@ NamespaceHelper
|
|
4
4
|
[](
|
5
5
|
https://secure.travis-ci.org/aef/namespace_helper)
|
6
6
|
|
7
|
-
* [Documentation][
|
8
|
-
* [Project][
|
7
|
+
* [Documentation][docs]
|
8
|
+
* [Project][project]
|
9
9
|
|
10
|
-
[
|
11
|
-
[
|
10
|
+
[docs]: http://rdoc.info/projects/aef/namespace_helper/
|
11
|
+
[project]: https://github.com/aef/namespace_helper/
|
12
12
|
|
13
13
|
Description
|
14
14
|
-----------
|
@@ -22,26 +22,28 @@ Features / Problems
|
|
22
22
|
|
23
23
|
This project tries to conform to:
|
24
24
|
|
25
|
-
* [Semantic Versioning (2.0.0-rc.1)][
|
26
|
-
* [Ruby Packaging Standard (0.5-draft)][
|
27
|
-
* [Ruby Style Guide][
|
28
|
-
* [Gem Packaging: Best Practices][
|
25
|
+
* [Semantic Versioning (2.0.0-rc.1)][semver]
|
26
|
+
* [Ruby Packaging Standard (0.5-draft)][rps]
|
27
|
+
* [Ruby Style Guide][style]
|
28
|
+
* [Gem Packaging: Best Practices][gem]
|
29
29
|
|
30
|
-
[
|
31
|
-
[
|
32
|
-
[
|
33
|
-
[
|
30
|
+
[semver]: http://semver.org/
|
31
|
+
[rps]: http://chneukirchen.github.com/rps/
|
32
|
+
[style]: https://github.com/bbatsov/ruby-style-guide
|
33
|
+
[gem]: http://weblog.rubyonrails.org/2009/9/1/gem-packaging-best-practices
|
34
34
|
|
35
35
|
Additional facts:
|
36
36
|
|
37
37
|
* Written purely in Ruby.
|
38
|
-
*
|
38
|
+
* Documented with YARD.
|
39
|
+
* Intended to be used with Ruby 1.8.7 or higher.
|
39
40
|
* Extends core classes. This can be disabled through bare mode.
|
41
|
+
* Cryptographically signed gem and git tags.
|
40
42
|
|
41
43
|
Synopsis
|
42
44
|
--------
|
43
45
|
|
44
|
-
This documentation defines the public interface of the
|
46
|
+
This documentation defines the public interface of the software. Don't rely
|
45
47
|
on elements marked as private. Those should be hidden in the documentation
|
46
48
|
by default.
|
47
49
|
|
@@ -109,7 +111,7 @@ File::Constants.namespace_parent_name
|
|
109
111
|
Requirements
|
110
112
|
------------
|
111
113
|
|
112
|
-
|
114
|
+
* Ruby 1.8.7 or higher
|
113
115
|
|
114
116
|
Installation
|
115
117
|
------------
|
@@ -121,9 +123,8 @@ privileges.
|
|
121
123
|
|
122
124
|
There is a high security installation option available through rubygems. It is
|
123
125
|
highly recommended over the normal installation, although it may be a bit less
|
124
|
-
comfortable. To use the installation method, you will need my
|
125
|
-
I use for cryptographic signatures on all my gems.
|
126
|
-
here: http://aef.name/crypto/aef-gem.pem
|
126
|
+
comfortable. To use the installation method, you will need my [gem signing
|
127
|
+
public key][gemkey], which I use for cryptographic signatures on all my gems.
|
127
128
|
|
128
129
|
Add the key to your rubygems' trusted certificates by the following command:
|
129
130
|
|
@@ -137,6 +138,8 @@ following command:
|
|
137
138
|
Please notice that you may need other keys for dependent libraries, so you may
|
138
139
|
have to install dependencies manually.
|
139
140
|
|
141
|
+
[gemkey]: http://aef.name/crypto/aef-gem.pem
|
142
|
+
|
140
143
|
### Normal
|
141
144
|
|
142
145
|
gem install namespace_helper
|
@@ -157,15 +160,41 @@ If something goes wrong you should be noticed through failing examples.
|
|
157
160
|
Development
|
158
161
|
-----------
|
159
162
|
|
163
|
+
### Bugs Reports and Feature Requests
|
164
|
+
|
165
|
+
Please use the [issue tracker][issues] on github.com to let me know about errors
|
166
|
+
or ideas for improvement of this software.
|
167
|
+
|
168
|
+
[issues]: https://github.com/aef/namespace_helper/issues/
|
169
|
+
|
170
|
+
### Source code
|
171
|
+
|
160
172
|
This software is developed in the source code management system git hosted
|
161
173
|
at github.com. You can download the most recent sourcecode through the
|
162
174
|
following command:
|
163
175
|
|
164
176
|
git clone https://github.com/aef/namespace_helper.git
|
165
177
|
|
178
|
+
The final commit before each released gem version will be marked by a tag
|
179
|
+
named like the version with a prefixed lower-case "v", as required by Semantic
|
180
|
+
Versioning. Every tag will be signed by my [OpenPGP public key][openpgp] which
|
181
|
+
enables you to verify your copy of the code cryptographically.
|
182
|
+
|
183
|
+
[openpgp]: http://aef.name/crypto/aef-openpgp.asc
|
184
|
+
|
185
|
+
Add the key to your GnuPG keyring by the following command:
|
186
|
+
|
187
|
+
gpg --import aef-openpgp.asc
|
188
|
+
|
189
|
+
This command will tell you if your code is of integrity and authentic:
|
190
|
+
|
191
|
+
git tag -v [TAG NAME]
|
192
|
+
|
193
|
+
### Contribution
|
194
|
+
|
166
195
|
Help on making this software better is always very appreciated. If you want
|
167
196
|
your changes to be included in the official release, please clone my project
|
168
|
-
on github.com, create a named branch to commit and push your changes
|
197
|
+
on github.com, create a named branch to commit and push your changes into and
|
169
198
|
send me a pull request afterwards.
|
170
199
|
|
171
200
|
Please make sure to write tests for your changes so that I won't break them
|
data/Rakefile
CHANGED
@@ -17,9 +17,9 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
17
|
PERFORMANCE OF THIS SOFTWARE.
|
18
18
|
=end
|
19
19
|
|
20
|
+
require 'bundler/gem_tasks'
|
20
21
|
require 'rake'
|
21
22
|
require 'pathname'
|
22
|
-
require 'bundler/gem_tasks'
|
23
23
|
require 'yard'
|
24
24
|
require 'rspec/core/rake_task'
|
25
25
|
|
@@ -29,7 +29,7 @@ YARD::Rake::YardocTask.new('doc')
|
|
29
29
|
|
30
30
|
desc "Removes temporary project files"
|
31
31
|
task :clean do
|
32
|
-
%w{doc coverage pkg .yardoc .rbx}.map{|name| Pathname.new(name) }.each do |path|
|
32
|
+
%w{doc coverage pkg .yardoc .rbx Gemfile.lock}.map{|name| Pathname.new(name) }.each do |path|
|
33
33
|
path.rmtree if path.exist?
|
34
34
|
end
|
35
35
|
|
@@ -39,6 +39,7 @@ end
|
|
39
39
|
|
40
40
|
desc "Opens an interactive console with the library loaded"
|
41
41
|
task :console do
|
42
|
+
Bundler.setup
|
42
43
|
require 'pry'
|
43
44
|
require 'namespace_helper'
|
44
45
|
Pry.start
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
=begin
|
3
|
+
Copyright Alexander E. Fischer <aef@raxys.net>, 2012
|
4
|
+
|
5
|
+
This file is part of NamespaceHelper.
|
6
|
+
|
7
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
8
|
+
purpose with or without fee is hereby granted, provided that the above
|
9
|
+
copyright notice and this permission notice appear in all copies.
|
10
|
+
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
12
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
13
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
14
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
15
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
16
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
17
|
+
PERFORMANCE OF THIS SOFTWARE.
|
18
|
+
=end
|
19
|
+
|
20
|
+
module Aef
|
21
|
+
module NamespaceHelper
|
22
|
+
|
23
|
+
# The currently loaded library version
|
24
|
+
#
|
25
|
+
# Using Semantic Versioning (2.0.0-rc.1) rules
|
26
|
+
# @see http://semver.org/
|
27
|
+
VERSION = '1.0.1'.freeze
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
data/lib/aef/namespace_helper.rb
CHANGED
@@ -17,6 +17,8 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
17
|
PERFORMANCE OF THIS SOFTWARE.
|
18
18
|
=end
|
19
19
|
|
20
|
+
require 'aef/namespace_helper/version'
|
21
|
+
|
20
22
|
# Namespace for projects of Alexander E. Fischer <aef@raxys.net>.
|
21
23
|
#
|
22
24
|
# If you want to be able to simply type Example instead of Aef::Example to
|
@@ -34,9 +36,6 @@ module Aef
|
|
34
36
|
# @see Aef::NamespaceHelper::ClassMethods
|
35
37
|
module NamespaceHelper
|
36
38
|
|
37
|
-
# The current library version
|
38
|
-
VERSION = '1.0.0'.freeze
|
39
|
-
|
40
39
|
protected
|
41
40
|
|
42
41
|
# This magic method is automatically called when NamespaceHelper is
|
data/namespace_helper.gemspec
CHANGED
@@ -17,9 +17,7 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
17
|
PERFORMANCE OF THIS SOFTWARE.
|
18
18
|
=end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
require 'namespace_helper/bare'
|
20
|
+
require File.expand_path('../lib/aef/namespace_helper/version', __FILE__)
|
23
21
|
|
24
22
|
Gem::Specification.new do |s|
|
25
23
|
s.name = 'namespace_helper'
|
@@ -37,20 +35,21 @@ namespace components of a class or module.
|
|
37
35
|
|
38
36
|
s.rubyforge_project = nil
|
39
37
|
s.has_rdoc = 'yard'
|
40
|
-
s.extra_rdoc_files = ['HISTORY.md', 'LICENSE.md']
|
38
|
+
s.extra_rdoc_files = ['HISTORY.md', 'LICENSE.md']
|
41
39
|
|
42
40
|
s.files = `git ls-files`.lines.map(&:chomp)
|
43
41
|
s.test_files = `git ls-files -- {test,spec,features}/*`.lines.map(&:chomp)
|
44
42
|
s.executables = `git ls-files -- bin/*`.lines.map{|f| File.basename(f.chomp) }
|
45
43
|
s.require_paths = ["lib"]
|
46
44
|
|
47
|
-
s.
|
45
|
+
s.required_ruby_version = '>= 1.8.7'
|
46
|
+
|
47
|
+
s.add_development_dependency('bundler', '~> 1.1.3')
|
48
48
|
s.add_development_dependency('rake', '~> 0.9.2')
|
49
|
-
s.add_development_dependency('rspec', '~> 2.
|
50
|
-
s.add_development_dependency('simplecov', '~> 0.
|
49
|
+
s.add_development_dependency('rspec', '~> 2.8.0')
|
50
|
+
s.add_development_dependency('simplecov', '~> 0.6.1')
|
51
51
|
s.add_development_dependency('pry', '~> 0.9.8')
|
52
52
|
s.add_development_dependency('yard', '~> 0.7.5')
|
53
|
-
s.add_development_dependency('maruku', '~> 0.6.0')
|
54
53
|
|
55
54
|
s.cert_chain = "#{ENV['GEM_CERT_CHAIN']}".split(':')
|
56
55
|
s.signing_key = ENV['GEM_SIGNING_KEY']
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: namespace_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -48,22 +48,22 @@ cert_chain:
|
|
48
48
|
-----END CERTIFICATE-----
|
49
49
|
|
50
50
|
'
|
51
|
-
date: 2012-
|
51
|
+
date: 2012-04-04 00:00:00.000000000 Z
|
52
52
|
dependencies:
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: bundler
|
55
|
-
requirement: &
|
55
|
+
requirement: &17859860 !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
57
57
|
requirements:
|
58
58
|
- - ~>
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.1.3
|
61
61
|
type: :development
|
62
62
|
prerelease: false
|
63
|
-
version_requirements: *
|
63
|
+
version_requirements: *17859860
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: rake
|
66
|
-
requirement: &
|
66
|
+
requirement: &17859340 !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
69
69
|
- - ~>
|
@@ -71,32 +71,32 @@ dependencies:
|
|
71
71
|
version: 0.9.2
|
72
72
|
type: :development
|
73
73
|
prerelease: false
|
74
|
-
version_requirements: *
|
74
|
+
version_requirements: *17859340
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rspec
|
77
|
-
requirement: &
|
77
|
+
requirement: &17858860 !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
82
|
+
version: 2.8.0
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
|
-
version_requirements: *
|
85
|
+
version_requirements: *17858860
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: simplecov
|
88
|
-
requirement: &
|
88
|
+
requirement: &17858380 !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 0.
|
93
|
+
version: 0.6.1
|
94
94
|
type: :development
|
95
95
|
prerelease: false
|
96
|
-
version_requirements: *
|
96
|
+
version_requirements: *17858380
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pry
|
99
|
-
requirement: &
|
99
|
+
requirement: &17857920 !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|
102
102
|
- - ~>
|
@@ -104,10 +104,10 @@ dependencies:
|
|
104
104
|
version: 0.9.8
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
|
-
version_requirements: *
|
107
|
+
version_requirements: *17857920
|
108
108
|
- !ruby/object:Gem::Dependency
|
109
109
|
name: yard
|
110
|
-
requirement: &
|
110
|
+
requirement: &17857460 !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
112
112
|
requirements:
|
113
113
|
- - ~>
|
@@ -115,18 +115,7 @@ dependencies:
|
|
115
115
|
version: 0.7.5
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
|
-
version_requirements: *
|
119
|
-
- !ruby/object:Gem::Dependency
|
120
|
-
name: maruku
|
121
|
-
requirement: &10370880 !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
|
-
requirements:
|
124
|
-
- - ~>
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: 0.6.0
|
127
|
-
type: :development
|
128
|
-
prerelease: false
|
129
|
-
version_requirements: *10370880
|
118
|
+
version_requirements: *17857460
|
130
119
|
description: ! 'NamespaceHelper provides a module with methods to ease namespace handling.
|
131
120
|
|
132
121
|
For example getting the unprefixed name, the namespace parent or a list of
|
@@ -147,12 +136,12 @@ files:
|
|
147
136
|
- .travis.yml
|
148
137
|
- .yardopts
|
149
138
|
- Gemfile
|
150
|
-
- Gemfile.lock
|
151
139
|
- HISTORY.md
|
152
140
|
- LICENSE.md
|
153
141
|
- README.md
|
154
142
|
- Rakefile
|
155
143
|
- lib/aef/namespace_helper.rb
|
144
|
+
- lib/aef/namespace_helper/version.rb
|
156
145
|
- lib/namespace_helper.rb
|
157
146
|
- lib/namespace_helper/bare.rb
|
158
147
|
- namespace_helper.gemspec
|
@@ -170,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
170
159
|
requirements:
|
171
160
|
- - ! '>='
|
172
161
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
162
|
+
version: 1.8.7
|
174
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
164
|
none: false
|
176
165
|
requirements:
|
metadata.gz.sig
CHANGED
Binary file
|
data/Gemfile.lock
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
namespace_helper (1.0.0rc1)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: http://rubygems.org/
|
8
|
-
specs:
|
9
|
-
coderay (1.0.5)
|
10
|
-
diff-lcs (1.1.3)
|
11
|
-
maruku (0.6.0)
|
12
|
-
syntax (>= 1.0.0)
|
13
|
-
method_source (0.7.0)
|
14
|
-
multi_json (1.0.4)
|
15
|
-
pry (0.9.8.2)
|
16
|
-
coderay (~> 1.0.5)
|
17
|
-
method_source (~> 0.7)
|
18
|
-
slop (>= 2.4.4, < 3)
|
19
|
-
pry (0.9.8.2-java)
|
20
|
-
coderay (~> 1.0.5)
|
21
|
-
method_source (~> 0.7)
|
22
|
-
slop (>= 2.4.4, < 3)
|
23
|
-
spoon (~> 0.0)
|
24
|
-
rake (0.9.2.2)
|
25
|
-
rspec (2.6.0)
|
26
|
-
rspec-core (~> 2.6.0)
|
27
|
-
rspec-expectations (~> 2.6.0)
|
28
|
-
rspec-mocks (~> 2.6.0)
|
29
|
-
rspec-core (2.6.4)
|
30
|
-
rspec-expectations (2.6.0)
|
31
|
-
diff-lcs (~> 1.1.2)
|
32
|
-
rspec-mocks (2.6.0)
|
33
|
-
simplecov (0.5.4)
|
34
|
-
multi_json (~> 1.0.3)
|
35
|
-
simplecov-html (~> 0.5.3)
|
36
|
-
simplecov-html (0.5.3)
|
37
|
-
slop (2.4.4)
|
38
|
-
spoon (0.0.1)
|
39
|
-
syntax (1.0.0)
|
40
|
-
yard (0.7.5)
|
41
|
-
|
42
|
-
PLATFORMS
|
43
|
-
java
|
44
|
-
ruby
|
45
|
-
|
46
|
-
DEPENDENCIES
|
47
|
-
bundler (~> 1.0.21)
|
48
|
-
maruku (~> 0.6.0)
|
49
|
-
namespace_helper!
|
50
|
-
pry (~> 0.9.8)
|
51
|
-
rake (~> 0.9.2)
|
52
|
-
rspec (~> 2.6.0)
|
53
|
-
simplecov (~> 0.5.4)
|
54
|
-
yard (~> 0.7.5)
|