object_shadow 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +3 -3
- data/Rakefile +2 -1
- data/lib/object_shadow/version.rb +1 -1
- data/object_shadow.gemspec +2 -2
- metadata +8 -6
- data/.travis.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b797b35dfd1f1b5d3018dfe1e8db3a762db692662269f2b2f760f9b154337d39
|
4
|
+
data.tar.gz: 93269d2fcd22a31f77fd8d3e608ef15efb99b946c03f63aa5ba669d5d78b5faf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8ebaf9cbd5e3b285f689a1e3357aaaf01866632d042187f758ff0c9553c8f20e693c2b30d3cce105eba867d7c84b39cc35b023eb81683bab5b87236badd2862
|
7
|
+
data.tar.gz: 16ec12a96de09a4fc23a48a6637c789cc5b1c0fc9f5a8e3c8bd4011fcf33672e544b840c892b315fa9e8a97a7cac672b103ab70d27186b12a09fcefc2f861c33
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Object#shadow [![[version]](https://badge.fury.io/rb/object_shadow.svg)](https://badge.fury.io/rb/object_shadow) [![[
|
1
|
+
# Object#shadow [![[version]](https://badge.fury.io/rb/object_shadow.svg)](https://badge.fury.io/rb/object_shadow) [![[ci]](https://github.com/janlelis/object_shadow/workflows/Test/badge.svg)](https://github.com/janlelis/object_shadow/actions?query=workflow%3ATest)
|
2
2
|
|
3
3
|
Have you ever been [confused by some of Ruby's meta-programming methods?](https://idiosyncratic-ruby.com/25-meta-methodology.html)
|
4
4
|
|
@@ -6,7 +6,7 @@ If your answer is *Yes*, you have come to the right place:
|
|
6
6
|
|
7
7
|

|
8
8
|
|
9
|
-
With **shadow**, every Ruby object has a shadow which
|
9
|
+
With **shadow**, every Ruby object has a shadow which provides a clean API to access the object's variables and methods.
|
10
10
|
|
11
11
|
Never again you will have to do the `x.methods - Object.methods` trick to get a meaningful method list.
|
12
12
|
|
@@ -204,6 +204,6 @@ Requires the following gems: **paint**, **wirb**, **io-console**
|
|
204
204
|
|
205
205
|
## J-_-L
|
206
206
|
|
207
|
-
Copyright (C) 2019 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
207
|
+
Copyright (C) 2019-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
208
208
|
|
209
209
|
PS: This gem would not exist if the [instance gem](https://rubyworks.github.io/instance/) did not come up with the idea.
|
data/Rakefile
CHANGED
@@ -32,7 +32,8 @@ end
|
|
32
32
|
|
33
33
|
desc "#{gemspec.name} | Spec"
|
34
34
|
task :spec do
|
35
|
-
|
35
|
+
ruby "spec/object_shadow_instance_variables_spec.rb"
|
36
|
+
ruby "spec/object_shadow_method_introspection_spec.rb"
|
36
37
|
end
|
37
38
|
task default: :spec
|
38
39
|
|
data/object_shadow.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.summary = "Metaprogramming Level 2"
|
9
9
|
gem.description = "provides a simple convenient API for accessing an object's state."
|
10
10
|
gem.authors = ["Jan Lelis"]
|
11
|
-
gem.email = ["
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://github.com/janlelis/object_shadow"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.required_ruby_version = "
|
20
|
+
gem.required_ruby_version = ">= 2.0", "< 4.0"
|
21
21
|
end
|
metadata
CHANGED
@@ -1,24 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: object_shadow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: provides a simple convenient API for accessing an object's state.
|
14
14
|
email:
|
15
|
-
-
|
15
|
+
- hi@ruby.consulting
|
16
16
|
executables: []
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- ".gitignore"
|
21
|
-
- ".travis.yml"
|
22
21
|
- CHANGELOG.md
|
23
22
|
- CODE_OF_CONDUCT.md
|
24
23
|
- Gemfile
|
@@ -48,16 +47,19 @@ require_paths:
|
|
48
47
|
- lib
|
49
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
50
49
|
requirements:
|
51
|
-
- - "
|
50
|
+
- - ">="
|
52
51
|
- !ruby/object:Gem::Version
|
53
52
|
version: '2.0'
|
53
|
+
- - "<"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '4.0'
|
54
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
57
|
requirements:
|
56
58
|
- - ">="
|
57
59
|
- !ruby/object:Gem::Version
|
58
60
|
version: '0'
|
59
61
|
requirements: []
|
60
|
-
rubygems_version: 3.
|
62
|
+
rubygems_version: 3.2.3
|
61
63
|
signing_key:
|
62
64
|
specification_version: 4
|
63
65
|
summary: Metaprogramming Level 2
|
data/.travis.yml
DELETED