metaclass 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/COPYING.txt +21 -0
- data/Gemfile +3 -0
- data/README.md +10 -0
- data/Rakefile +11 -0
- data/lib/metaclass/version.rb +1 -1
- data/metaclass.gemspec +20 -0
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f5de72b9d2a853b7f31ee18a5ee052857ed74e2
|
4
|
+
data.tar.gz: 803d1cbaf7e3c3c4f36ca43de70b3b9ac13a92ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fb74e014a474f86336294d849ff9da718b3eeb6a75a1e872bd90899b49b476613eec0ff985ecfd60185a326b52e3b6d4507f99c8c2d99f1cdd919c99959c6e3
|
7
|
+
data.tar.gz: dc95bcf12cee82d6870ceb2fb8cf181c83f79c1a66b3536eab4efee1e6d263facf3f01115de3191247e56a708176f4f36432724ee1e5491ed20a6ec8ffb23c23
|
data/.gitignore
ADDED
data/COPYING.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
== Licence (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2011 James Mead
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Adds a `__metaclass__` method to all Ruby objects.
|
2
|
+
|
3
|
+
## Motivations
|
4
|
+
|
5
|
+
* Even though WhyTheLuckyStiff's [metaid gem](https://rubygems.org/gems/metaid) does something similar, apparently the metaclass method without underscores [doesn't play well with Rails v2.3](https://github.com/floehopper/mocha/commit/f0749d6d291164cc9280aa8ba16f33d652d45fe1#commitcomment-475799).
|
6
|
+
* I'm trying to extract code out of the [mocha gem](https://github.com/floehopper/mocha) and this is an obvious candidate.
|
7
|
+
|
8
|
+
## License
|
9
|
+
|
10
|
+
This library is released under the [MIT License](http://www.opensource.org/licenses/MIT). See [COPYING.txt](https://github.com/floehopper/metaclass/blob/master/COPYING.txt).
|
data/Rakefile
ADDED
data/lib/metaclass/version.rb
CHANGED
data/metaclass.gemspec
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "metaclass/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "metaclass"
|
7
|
+
s.version = Metaclass::VERSION
|
8
|
+
s.authors = ["James Mead"]
|
9
|
+
s.email = ["james@floehopper.org"]
|
10
|
+
s.homepage = "http://github.com/floehopper/metaclass"
|
11
|
+
s.summary = %q{Adds a metaclass method to all Ruby objects}
|
12
|
+
s.license = "MIT"
|
13
|
+
|
14
|
+
s.rubyforge_project = "metaclass"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metaclass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Mead
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -17,12 +17,18 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- .gitignore
|
21
|
+
- COPYING.txt
|
22
|
+
- Gemfile
|
23
|
+
- README.md
|
24
|
+
- Rakefile
|
20
25
|
- lib/metaclass.rb
|
21
26
|
- lib/metaclass/object_methods.rb
|
22
27
|
- lib/metaclass/version.rb
|
28
|
+
- metaclass.gemspec
|
23
29
|
- test/object_methods_test.rb
|
24
30
|
- test/test_helper.rb
|
25
|
-
homepage:
|
31
|
+
homepage: http://github.com/floehopper/metaclass
|
26
32
|
licenses:
|
27
33
|
- MIT
|
28
34
|
metadata: {}
|