callable_class 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.codeclimate.yml +7 -0
- data/.rubocop.yml +1 -0
- data/.travis.yml +11 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +42 -4
- data/README.md +3 -0
- data/Rakefile +3 -3
- data/bin/console +3 -3
- data/callable_class.gemspec +19 -15
- data/lib/callable_class/version.rb +1 -1
- metadata +65 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b4f1fbda4b545f798b164456b9a4764f55f47422208cef7147ff42ef7fab1820
|
4
|
+
data.tar.gz: 59a064a435a3202dca7bee9d5968cdb68410531ad9cda0c4fc505bba3a7169c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd0bc3c98e9daf9d4c7ca70745002c400c6357a214db0533cbff6859f92f77dcd8296df43456f9686051a556d9d1085d9a83e055fb0a295c8d64b7937c984f59
|
7
|
+
data.tar.gz: 8c4e12c2c5f736e6e43bdbf68e7c56639fd8580ca4544644c118435e0b895d89d9fe808452dfcf753898893ecd89f341af043bf4f641e9e5cfc682dc788babe5
|
data/.codeclimate.yml
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: https://raw.githubusercontent.com/laurentzziu/utils/master/gems/.rubocop.yml
|
data/.travis.yml
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
sudo: false
|
2
|
+
env:
|
3
|
+
global:
|
4
|
+
- CC_TEST_REPORTER_ID=f8808abd21b3bb565a6262e42a88ddc82a55d2e0ec085f83f953cb4fd5abecc5
|
2
5
|
language: ruby
|
3
6
|
rvm:
|
4
7
|
- 2.4.3
|
5
8
|
before_install: gem install bundler -v 1.16.1
|
9
|
+
before_script:
|
10
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
11
|
+
- chmod +x ./cc-test-reporter
|
12
|
+
- ./cc-test-reporter before-build
|
13
|
+
script:
|
14
|
+
- bundle exec rspec
|
15
|
+
after_script:
|
16
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
3
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in callable_class.gemspec
|
6
6
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
callable_class (0.1.
|
4
|
+
callable_class (0.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
ansi (1.5.0)
|
10
|
+
ast (2.4.0)
|
9
11
|
diff-lcs (1.3)
|
12
|
+
docile (1.3.1)
|
13
|
+
hirb (0.7.3)
|
14
|
+
jaro_winkler (1.5.2)
|
15
|
+
json (2.2.0)
|
16
|
+
parallel (1.14.0)
|
17
|
+
parser (2.6.0.0)
|
18
|
+
ast (~> 2.4.0)
|
19
|
+
powerpack (0.1.2)
|
20
|
+
psych (3.1.0)
|
21
|
+
rainbow (3.0.0)
|
10
22
|
rake (10.5.0)
|
11
23
|
rspec (3.8.0)
|
12
24
|
rspec-core (~> 3.8.0)
|
@@ -14,22 +26,48 @@ GEM
|
|
14
26
|
rspec-mocks (~> 3.8.0)
|
15
27
|
rspec-core (3.8.0)
|
16
28
|
rspec-support (~> 3.8.0)
|
17
|
-
rspec-expectations (3.8.
|
29
|
+
rspec-expectations (3.8.2)
|
18
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
19
31
|
rspec-support (~> 3.8.0)
|
20
32
|
rspec-mocks (3.8.0)
|
21
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
34
|
rspec-support (~> 3.8.0)
|
23
35
|
rspec-support (3.8.0)
|
36
|
+
rubocop (0.65.0)
|
37
|
+
jaro_winkler (~> 1.5.1)
|
38
|
+
parallel (~> 1.10)
|
39
|
+
parser (>= 2.5, != 2.5.1.1)
|
40
|
+
powerpack (~> 0.1)
|
41
|
+
psych (>= 3.1.0)
|
42
|
+
rainbow (>= 2.2.2, < 4.0)
|
43
|
+
ruby-progressbar (~> 1.7)
|
44
|
+
unicode-display_width (~> 1.4.0)
|
45
|
+
rubocop-rspec (1.32.0)
|
46
|
+
rubocop (>= 0.60.0)
|
47
|
+
ruby-progressbar (1.10.0)
|
48
|
+
simplecov (0.16.1)
|
49
|
+
docile (~> 1.1)
|
50
|
+
json (>= 1.8, < 3)
|
51
|
+
simplecov-html (~> 0.10.0)
|
52
|
+
simplecov-console (0.4.2)
|
53
|
+
ansi
|
54
|
+
hirb
|
55
|
+
simplecov
|
56
|
+
simplecov-html (0.10.2)
|
57
|
+
unicode-display_width (1.4.1)
|
24
58
|
|
25
59
|
PLATFORMS
|
26
60
|
ruby
|
27
61
|
|
28
62
|
DEPENDENCIES
|
29
|
-
bundler
|
63
|
+
bundler
|
30
64
|
callable_class!
|
31
65
|
rake (~> 10.0)
|
32
66
|
rspec (~> 3.0)
|
67
|
+
rubocop
|
68
|
+
rubocop-rspec
|
69
|
+
simplecov
|
70
|
+
simplecov-console
|
33
71
|
|
34
72
|
BUNDLED WITH
|
35
|
-
|
73
|
+
2.0.1
|
data/README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/laurentzziu/callable_class.svg?branch=master)](https://travis-ci.org/laurentzziu/callable_class)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/callable_class.svg)](https://rubygems.org/gems/callable_class)
|
3
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/2b822e7586dae7602550/maintainability)](https://codeclimate.com/github/laurentzziu/callable_class/maintainability)
|
4
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/2b822e7586dae7602550/test_coverage)](https://codeclimate.com/github/laurentzziu/callable_class/test_coverage)
|
2
5
|
|
3
6
|
# CallableClass
|
4
7
|
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'callable_class'
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -10,5 +10,5 @@ require "callable_class"
|
|
10
10
|
# require "pry"
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'irb'
|
14
14
|
IRB.start(__FILE__)
|
data/callable_class.gemspec
CHANGED
@@ -1,28 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
|
-
lib = File.expand_path(
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
5
|
+
require 'callable_class/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
+
spec.name = 'callable_class'
|
8
9
|
spec.version = CallableClass::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
|
12
|
-
spec.summary = %q{Class method to instantiate and call a class.}
|
13
|
-
spec.description = %q{Class method to instantiate and call a class.}
|
14
|
-
spec.homepage = "https://github.com/laurentzziu/callable_class"
|
15
|
-
spec.license = "MIT"
|
10
|
+
spec.authors = ['Florinel Gorgan']
|
11
|
+
spec.email = ['florin@floringorgan.com']
|
16
12
|
|
13
|
+
spec.summary = 'Class method to instantiate and call a class.'
|
14
|
+
spec.description = 'Class method to instantiate and call a class.'
|
15
|
+
spec.homepage = 'https://github.com/laurentzziu/callable_class'
|
16
|
+
spec.license = 'MIT'
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
19
|
f.match(%r{^(test|spec|features)/})
|
20
20
|
end
|
21
|
-
spec.bindir =
|
21
|
+
spec.bindir = 'exe'
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
-
spec.require_paths = [
|
23
|
+
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_development_dependency
|
27
|
-
spec.add_development_dependency
|
25
|
+
spec.add_development_dependency 'bundler'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
+
spec.add_development_dependency 'rubocop'
|
29
|
+
spec.add_development_dependency 'rubocop-rspec'
|
30
|
+
spec.add_development_dependency 'simplecov'
|
31
|
+
spec.add_development_dependency 'simplecov-console'
|
28
32
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: callable_class
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florinel Gorgan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +52,62 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov-console
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
55
111
|
description: Class method to instantiate and call a class.
|
56
112
|
email:
|
57
113
|
- florin@floringorgan.com
|
@@ -59,8 +115,10 @@ executables: []
|
|
59
115
|
extensions: []
|
60
116
|
extra_rdoc_files: []
|
61
117
|
files:
|
118
|
+
- ".codeclimate.yml"
|
62
119
|
- ".gitignore"
|
63
120
|
- ".rspec"
|
121
|
+
- ".rubocop.yml"
|
64
122
|
- ".travis.yml"
|
65
123
|
- CODE_OF_CONDUCT.md
|
66
124
|
- Gemfile
|
@@ -93,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
151
|
version: '0'
|
94
152
|
requirements: []
|
95
153
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.7.7
|
97
155
|
signing_key:
|
98
156
|
specification_version: 4
|
99
157
|
summary: Class method to instantiate and call a class.
|