easy_class_to_instance_method 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,8 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "activesupport", ">= 3.0.0"
|
22
|
-
|
23
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
22
|
spec.add_development_dependency "rake"
|
25
23
|
spec.add_development_dependency "rspec", '~> 2.13.0'
|
@@ -1,9 +1,13 @@
|
|
1
|
-
require 'active_support/concern'
|
2
1
|
require 'easy_class_to_instance_method/version'
|
3
2
|
require 'easy_class_to_instance_method/core_ext/extends_class'
|
4
3
|
|
5
4
|
module EasyClassToInstanceMethod
|
6
|
-
|
5
|
+
|
6
|
+
def self.included(base)
|
7
|
+
base.class_eval do
|
8
|
+
extend ClassMethods
|
9
|
+
end
|
10
|
+
end
|
7
11
|
|
8
12
|
module ClassMethods
|
9
13
|
def method_missing(method_name, *args, &block)
|
@@ -2,11 +2,11 @@ module EasyClassToInstanceMethod
|
|
2
2
|
module CoreExt
|
3
3
|
module ExtendsClass
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
def self.included(base)
|
6
|
+
base.class_eval do
|
7
|
+
def easy_class_to_instance
|
8
|
+
include EasyClassToInstanceMethod
|
9
|
+
end
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
metadata
CHANGED
@@ -1,78 +1,77 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_class_to_instance_method
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Ramon Tayag
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
17
|
+
|
18
|
+
date: 2013-07-11 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
28
21
|
name: bundler
|
29
|
-
|
30
|
-
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
31
25
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 9
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 3
|
31
|
+
version: "1.3"
|
35
32
|
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.3'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '>='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
33
|
type: :development
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rake
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
49
46
|
prerelease: false
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
type: :development
|
48
|
+
requirement: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
56
50
|
name: rspec
|
57
|
-
|
58
|
-
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
59
54
|
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 59
|
57
|
+
segments:
|
58
|
+
- 2
|
59
|
+
- 13
|
60
|
+
- 0
|
61
61
|
version: 2.13.0
|
62
|
-
type: :development
|
63
62
|
prerelease: false
|
64
|
-
|
65
|
-
|
66
|
-
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 2.13.0
|
63
|
+
type: :development
|
64
|
+
requirement: *id003
|
69
65
|
description: Adds convenience method to class to insantiate itself and execute a method.
|
70
|
-
email:
|
66
|
+
email:
|
71
67
|
- ramon.tayag@gmail.com
|
72
68
|
executables: []
|
69
|
+
|
73
70
|
extensions: []
|
71
|
+
|
74
72
|
extra_rdoc_files: []
|
75
|
-
|
73
|
+
|
74
|
+
files:
|
76
75
|
- .gitignore
|
77
76
|
- Gemfile
|
78
77
|
- LICENSE.txt
|
@@ -84,31 +83,39 @@ files:
|
|
84
83
|
- lib/easy_class_to_instance_method/version.rb
|
85
84
|
- spec/easy_class_to_instance_method_spec.rb
|
86
85
|
- spec/spec_helper.rb
|
87
|
-
homepage:
|
88
|
-
licenses:
|
86
|
+
homepage: ""
|
87
|
+
licenses:
|
89
88
|
- MIT
|
90
|
-
metadata: {}
|
91
89
|
post_install_message:
|
92
90
|
rdoc_options: []
|
93
|
-
|
91
|
+
|
92
|
+
require_paths:
|
94
93
|
- lib
|
95
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
hash: 3
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
version: "0"
|
105
112
|
requirements: []
|
113
|
+
|
106
114
|
rubyforge_project:
|
107
|
-
rubygems_version:
|
115
|
+
rubygems_version: 1.8.25
|
108
116
|
signing_key:
|
109
|
-
specification_version:
|
110
|
-
summary: Adds convenience method to class to insantiate itself and execute a method.
|
111
|
-
|
112
|
-
test_files:
|
117
|
+
specification_version: 3
|
118
|
+
summary: Adds convenience method to class to insantiate itself and execute a method. Makes it easier to work with non-singletons.
|
119
|
+
test_files:
|
113
120
|
- spec/easy_class_to_instance_method_spec.rb
|
114
121
|
- spec/spec_helper.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: c7de64c206ccb1d6c9276258a5667dcba96622cf
|
4
|
-
data.tar.gz: 85becbc39808633622879133f27f2b2127450424
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: cf39d0a9786ab515167bba4ba1750d27e3e9dff37fb4582b4f712a601a293e6e176a6e38708bca061f2d184ed59fe3ce9bf90aa437ddf73bffc1125ed04734a8
|
7
|
-
data.tar.gz: ef69972ffd4abd8b4b23205e8a81596ffd0049d6c10c1fe03b206cc823fc2bd253b6925f4602728b81bd7e20c09257ef34c6e16861ee12fccdfcf91d44a45379
|