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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7647ef1084811d03b48d16e1f1a558239f49386
4
- data.tar.gz: ecea00e134a10c15fbef56c0b7a75f43f29107ce
3
+ metadata.gz: 0ad97604912fbdee6cab147e72febc657db299a1
4
+ data.tar.gz: ea49f22e43cbdc0b2f3c9054ea21773ce69e62c6
5
5
  SHA512:
6
- metadata.gz: f23d384116186fd58b801b203014764cf7259809311fc0fb23143180da94d7e2212cc105b49434cb0adc60e75870fecee418657a45d640548f324c526fb04ff3
7
- data.tar.gz: 862f0bef5684f98f17aabd266c19ae742f4bbc62e483621a46fb6b984a8192b2cd610f26aceb95dbf5854468ce4b6aaf24e8968537ee54c8e9610b335d8cc769
6
+ metadata.gz: cbc9967b13194925c62e934006891df8607e4dcebaea9ae1ef4f9256b0e11759eb4ec8aeef2e94d7d7243860283da33f0408d519cd29a83e7b2e2d6af612c480
7
+ data.tar.gz: 976c64dbcdf2f46d7410bbfd6aec78071125bd6c80830da6d754d0598c50218074dab367dfdbfa37996a2f1c78418880f8c475092ef4a438bc271df813bf5c38
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  *.gem
2
2
  .bundle
3
- .ruby-version
4
3
  pkg/
5
4
  tmp/
6
5
  /.idea/
@@ -0,0 +1 @@
1
+ 2.4.1
@@ -1,6 +1,22 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 2.4.0
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
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
  # frozen_string_literal: true
3
3
 
4
- source 'https://rubygems.org'
4
+ source "https://rubygems.org"
5
5
  gemspec
@@ -1,23 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- method-not-implemented (1.0.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.1)
9
+ power_assert (1.0.2)
10
10
  rake (12.0.0)
11
- test-unit (3.2.3)
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.14.3
24
+ 1.15.3
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
- ## Adds `method_not_implemented` to every class and module in Ruby.
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 'method-not-implemented', '~> 1.0'
24
+ gem "method-not-implemented", "~> 1.0"
26
25
  ```
27
26
 
28
- ## Running Tests
27
+ ## Running tests
29
28
  Install bundler:
30
29
  ```bash
31
30
  gem install bundler
data/Rakefile CHANGED
@@ -1,8 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'rake/testtask'
4
+ require "rake/testtask"
5
5
 
6
- Rake::TestTask.new { |t| t.libs << 'test' }
7
-
8
- task default: :test
6
+ Rake::TestTask.new { |t| t.libs << "test" }
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  class MethodNotImplemented < StandardError
5
- VERSION = '1.0.0'
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('../lib/method-not-implemented', __FILE__)
4
+ require File.expand_path("../lib/method-not-implemented", __FILE__)
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = 'method-not-implemented'
7
+ s.name = "method-not-implemented"
8
8
  s.version = MethodNotImplemented::VERSION
9
- s.author = 'Yaroslav Konoplov'
10
- s.email = 'eahome00@gmail.com'
11
- s.summary = 'Adds method_not_implemented to every class and module in Ruby.'
12
- s.description = 'Adds method_not_implemented to every class and module in Ruby.'
13
- s.homepage = 'https://github.com/yivo/method-not-implemented'
14
- s.license = 'MIT'
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 = ['lib']
20
+ s.require_paths = ["lib"]
19
21
 
20
- s.add_development_dependency 'rake', '~> 12.0'
21
- s.add_development_dependency 'test-unit', '~> 3.2'
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
@@ -1,8 +1,7 @@
1
1
  # encoding: UTF-8
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'test-unit'
5
- require 'method-not-implemented'
4
+ Bundler.require :default, :development
6
5
 
7
6
  class MethodNotImplementedTest < Test::Unit::TestCase
8
7
  class Foo
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.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-03-25 00:00:00.000000000 Z
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: Adds method_not_implemented to every class and module in Ruby.
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.8
93
+ rubygems_version: 2.6.12
77
94
  signing_key:
78
95
  specification_version: 4
79
- summary: Adds method_not_implemented to every class and module in Ruby.
96
+ summary: Tweaks every Ruby object with `method_not_implemented`.
80
97
  test_files:
81
98
  - test/test_method_not_implemented.rb