method-not-implemented 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.ruby-version +1 -0
- data/.travis.yml +17 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +5 -4
- data/README.md +3 -4
- data/Rakefile +2 -4
- data/lib/method-not-implemented.rb +2 -2
- data/method-not-implemented.gemspec +14 -11
- data/test/test_method_not_implemented.rb +1 -2
- metadata +22 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ad97604912fbdee6cab147e72febc657db299a1
|
4
|
+
data.tar.gz: ea49f22e43cbdc0b2f3c9054ea21773ce69e62c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbc9967b13194925c62e934006891df8607e4dcebaea9ae1ef4f9256b0e11759eb4ec8aeef2e94d7d7243860283da33f0408d519cd29a83e7b2e2d6af612c480
|
7
|
+
data.tar.gz: 976c64dbcdf2f46d7410bbfd6aec78071125bd6c80830da6d754d0598c50218074dab367dfdbfa37996a2f1c78418880f8c475092ef4a438bc271df813bf5c38
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.4.1
|
data/.travis.yml
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
3
|
rvm:
|
4
|
-
- 2.
|
4
|
+
- 2.0
|
5
|
+
- 2.1
|
6
|
+
- 2.2
|
7
|
+
- 2.3
|
8
|
+
- 2.4
|
5
9
|
|
6
10
|
cache: bundler
|
11
|
+
|
12
|
+
env:
|
13
|
+
- RAKE_ENV=test BUNDLE_PATH=vendor/bundle
|
14
|
+
|
15
|
+
before_install:
|
16
|
+
- gem install bundler
|
17
|
+
|
18
|
+
install:
|
19
|
+
- bundle install
|
20
|
+
|
21
|
+
script:
|
22
|
+
- bundle exec rake test
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
method-not-implemented (1.0.
|
4
|
+
method-not-implemented (1.0.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
power_assert (1.0.
|
9
|
+
power_assert (1.0.2)
|
10
10
|
rake (12.0.0)
|
11
|
-
test-unit (3.2.
|
11
|
+
test-unit (3.2.5)
|
12
12
|
power_assert
|
13
13
|
|
14
14
|
PLATFORMS
|
15
15
|
ruby
|
16
16
|
|
17
17
|
DEPENDENCIES
|
18
|
+
bundler (~> 1.7)
|
18
19
|
method-not-implemented!
|
19
20
|
rake (~> 12.0)
|
20
21
|
test-unit (~> 3.2)
|
21
22
|
|
22
23
|
BUNDLED WITH
|
23
|
-
1.
|
24
|
+
1.15.3
|
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
##
|
1
|
+
## Tweaks every Ruby object with `method_not_implemented`.
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/method-not-implemented.svg)](https://badge.fury.io/rb/method-not-implemented)
|
4
4
|
[![Build Status](https://travis-ci.org/yivo/method-not-implemented.svg?branch=master)](https://travis-ci.org/yivo/method-not-implemented)
|
5
5
|
|
6
6
|
## About
|
7
|
-
This gem adds `method_not_implemented` to every class and module in Ruby.
|
8
7
|
```ruby
|
9
8
|
class SomeBaseClass
|
10
9
|
def some_method
|
@@ -22,10 +21,10 @@ If `some_method` will be invoked on instance of `SomeDerivedClass` `MethodNotImp
|
|
22
21
|
## Installing gem
|
23
22
|
Add to your Gemfile:
|
24
23
|
```ruby
|
25
|
-
gem
|
24
|
+
gem "method-not-implemented", "~> 1.0"
|
26
25
|
```
|
27
26
|
|
28
|
-
## Running
|
27
|
+
## Running tests
|
29
28
|
Install bundler:
|
30
29
|
```bash
|
31
30
|
gem install bundler
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
class MethodNotImplemented < StandardError
|
5
|
-
VERSION =
|
5
|
+
VERSION = "1.0.1"
|
6
6
|
|
7
7
|
module Extension
|
8
8
|
def method_not_implemented
|
@@ -19,4 +19,4 @@ class MethodNotImplemented < StandardError
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
Object.include MethodNotImplemented::Extension
|
22
|
+
Object.send :include, MethodNotImplemented::Extension
|
@@ -1,22 +1,25 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
require File.expand_path(
|
4
|
+
require File.expand_path("../lib/method-not-implemented", __FILE__)
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
7
|
+
s.name = "method-not-implemented"
|
8
8
|
s.version = MethodNotImplemented::VERSION
|
9
|
-
s.author =
|
10
|
-
s.email =
|
11
|
-
s.summary =
|
12
|
-
s.description =
|
13
|
-
|
14
|
-
|
9
|
+
s.author = "Yaroslav Konoplov"
|
10
|
+
s.email = "eahome00@gmail.com"
|
11
|
+
s.summary = "Tweaks every Ruby object with `method_not_implemented`."
|
12
|
+
s.description = "This gem adds method `method_not_implemented` to every Ruby object. " \
|
13
|
+
"Invoking `method_not_implemented` in abstract method " \
|
14
|
+
"raises an exception if it hasn't been implemented."
|
15
|
+
s.homepage = "https://github.com/yivo/method-not-implemented"
|
16
|
+
s.license = "MIT"
|
15
17
|
|
16
18
|
s.files = `git ls-files -z`.split("\x0")
|
17
19
|
s.test_files = `git ls-files -z -- {test,spec,features}/*`.split("\x0")
|
18
|
-
s.require_paths = [
|
20
|
+
s.require_paths = ["lib"]
|
19
21
|
|
20
|
-
s.add_development_dependency
|
21
|
-
s.add_development_dependency
|
22
|
+
s.add_development_dependency "bundler", "~> 1.7"
|
23
|
+
s.add_development_dependency "rake", "~> 12.0"
|
24
|
+
s.add_development_dependency "test-unit", "~> 3.2"
|
22
25
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: method-not-implemented
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Konoplov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rake
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,13 +52,16 @@ dependencies:
|
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '3.2'
|
41
|
-
description:
|
55
|
+
description: This gem adds method `method_not_implemented` to every Ruby object. Invoking
|
56
|
+
`method_not_implemented` in abstract method raises an exception if it hasn't been
|
57
|
+
implemented.
|
42
58
|
email: eahome00@gmail.com
|
43
59
|
executables: []
|
44
60
|
extensions: []
|
45
61
|
extra_rdoc_files: []
|
46
62
|
files:
|
47
63
|
- ".gitignore"
|
64
|
+
- ".ruby-version"
|
48
65
|
- ".travis.yml"
|
49
66
|
- Gemfile
|
50
67
|
- Gemfile.lock
|
@@ -73,9 +90,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
90
|
version: '0'
|
74
91
|
requirements: []
|
75
92
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.6.
|
93
|
+
rubygems_version: 2.6.12
|
77
94
|
signing_key:
|
78
95
|
specification_version: 4
|
79
|
-
summary:
|
96
|
+
summary: Tweaks every Ruby object with `method_not_implemented`.
|
80
97
|
test_files:
|
81
98
|
- test/test_method_not_implemented.rb
|