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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0526ebcd306c8d9d4efa13960e50277b9527de4
4
- data.tar.gz: 858e59754f27e0ab9f5615f66d51fb3904d45dd6
3
+ metadata.gz: 5f5de72b9d2a853b7f31ee18a5ee052857ed74e2
4
+ data.tar.gz: 803d1cbaf7e3c3c4f36ca43de70b3b9ac13a92ed
5
5
  SHA512:
6
- metadata.gz: 8a2a49d00490d9efe542aa030b24b9e41ea29fdd1f4fa70245791252e8b3a8e5ae934d2e3db68741faec99e70937a140020c6b2f8d36956b6e1273faff8a52dc
7
- data.tar.gz: 05380ed37140840d2a918ba0d410b091025264a1f7ec9566a3955efc03439aa1263ea204c9f63652cc2db95101d90e09ba225caecdfa7783c32f73a93bcd23d9
6
+ metadata.gz: 7fb74e014a474f86336294d849ff9da718b3eeb6a75a1e872bd90899b49b476613eec0ff985ecfd60185a326b52e3b6d4507f99c8c2d99f1cdd919c99959c6e3
7
+ data.tar.gz: dc95bcf12cee82d6870ceb2fb8cf181c83f79c1a66b3536eab4efee1e6d263facf3f01115de3191247e56a708176f4f36432724ee1e5491ed20a6ec8ffb23c23
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
@@ -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
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
@@ -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).
@@ -0,0 +1,11 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+
4
+ require "rake/testtask"
5
+ Rake::TestTask.new do |t|
6
+ t.libs << "test"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ t.verbose = true
9
+ end
10
+
11
+ task :default => :test
@@ -1,3 +1,3 @@
1
1
  module Metaclass
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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.3
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-19 00:00:00.000000000 Z
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: https://github.com/floehopper/metaclass
31
+ homepage: http://github.com/floehopper/metaclass
26
32
  licenses:
27
33
  - MIT
28
34
  metadata: {}