object_shadow 1.1.0 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 503cc7d716417cc40c00e2b193b89ffb8f3946f140d3c04699b6ca36ed31c6d1
4
- data.tar.gz: 3fc4e0ed0b2f42afd5d0ec4f670ba361214fe992bc6a78d7fbe47f04318361be
3
+ metadata.gz: c700b799dad0cc8e2b25b420e9b57c5c439f2a2dbc36d2478102f94bc89e10c4
4
+ data.tar.gz: 3a4116c876a07bec970006bc7ebe00fca6792c5d44bf6c46ef4401ee455c66fd
5
5
  SHA512:
6
- metadata.gz: f27bf9d3d9df00608b20b6c4500720c2db309f89e01df17a85ea0297b63a3ced0715c3d8608975e430db58015c8a850cdfdac1b63344bd914e0e6587eb12d835
7
- data.tar.gz: cdb3f92aeaf8b2a3718ee211037b87037ded6f020359af6d3418437b88648f5f61d579742f241d4a66c837dc1926cd155b8888b91c84fa7865364ffe7e67782a
6
+ metadata.gz: 58018fbf8708219a9df96e0d113a5565973977f5b5e8c6836d728cabbf1ec6087b6ac768671bf3769c807aa0f503487c2fe619a02cce385372a54fba2c03d040
7
+ data.tar.gz: 32ae9c6d4112147e6676f79913f569269d1bb069ae1a8fcddd65ba51b24f896589239969fbe23e08f63156a7d3a73273c383db4e03829aad39925d7182210104
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.1.2
4
+
5
+ * Relax Ruby requirement to allow Ruby 4.0
6
+
7
+ ### 1.1.1
8
+
9
+ * Relax Ruby requirement to allow Ruby 3.0
10
+
3
11
  ### 1.1.0
4
12
 
5
13
  * Add DeepInspect mode
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem "minitest"
5
+ gem "minitest", "~> 5.27.0"
6
6
  gem "rake"
7
7
  gem "irb"
8
8
  gem "wirb"
data/Gemfile.lock CHANGED
@@ -1,20 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- object_shadow (1.1.0)
4
+ object_shadow (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- irb (1.0.0)
10
- minitest (5.11.3)
11
- paint (2.1.0)
12
- rake (12.3.2)
13
- wirb (2.1.2)
14
- paint (>= 0.9, < 3.0)
9
+ date (3.5.1)
10
+ erb (6.0.1)
11
+ io-console (0.8.2)
12
+ irb (1.16.0)
13
+ pp (>= 0.6.0)
14
+ rdoc (>= 4.0.0)
15
+ reline (>= 0.4.2)
16
+ minitest (6.0.0)
17
+ prism (~> 1.5)
18
+ paint (2.3.0)
19
+ pp (0.6.3)
20
+ prettyprint
21
+ prettyprint (0.2.0)
22
+ prism (1.7.0)
23
+ psych (5.3.1)
24
+ date
25
+ stringio
26
+ rake (13.3.1)
27
+ rdoc (7.0.3)
28
+ erb
29
+ psych (>= 4.0.0)
30
+ tsort
31
+ reline (0.6.3)
32
+ io-console (~> 0.5)
33
+ stringio (3.2.0)
34
+ tsort (0.2.0)
35
+ wirb (1.0.2)
36
+ paint
15
37
 
16
38
  PLATFORMS
17
39
  ruby
40
+ x86_64-linux
18
41
 
19
42
  DEPENDENCIES
20
43
  irb
@@ -25,4 +48,4 @@ DEPENDENCIES
25
48
  wirb
26
49
 
27
50
  BUNDLED WITH
28
- 1.17.3
51
+ 2.4.19
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2019 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2019-2022 Jan Lelis, https://janlelis.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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) [![[travis]](https://travis-ci.org/janlelis/object_shadow.svg)](https://travis-ci.org/janlelis/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
  ![Object and Shadow](/object_shadow.png)
8
8
 
9
- With **shadow**, every Ruby object has a shadow which encapsulates a clean API to access the object's variables and methods.
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-2022 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
- sh "for file in spec/*_spec.rb; do ruby $file; done"
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
 
@@ -3,5 +3,5 @@
3
3
  require_relative "basic_object"
4
4
 
5
5
  class ObjectShadow
6
- VERSION = "1.1.0"
6
+ VERSION = "1.1.2"
7
7
  end
@@ -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 = ["mail@janlelis.de"]
11
+ gem.email = ["hi@ruby.consulting"]
12
12
  gem.homepage = "https://github.com/janlelis/object_shadow"
13
13
  gem.license = "MIT"
14
14
 
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
+ gem.metadata = { "rubygems_mfa_required" => "true" }
19
20
 
20
- gem.required_ruby_version = "~> 2.0"
21
+ gem.required_ruby_version = ">= 2.0"
21
22
  end
metadata CHANGED
@@ -1,24 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: object_shadow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2019-04-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: provides a simple convenient API for accessing an object's state.
14
13
  email:
15
- - mail@janlelis.de
14
+ - hi@ruby.consulting
16
15
  executables: []
17
16
  extensions: []
18
17
  extra_rdoc_files: []
19
18
  files:
20
19
  - ".gitignore"
21
- - ".travis.yml"
22
20
  - CHANGELOG.md
23
21
  - CODE_OF_CONDUCT.md
24
22
  - Gemfile
@@ -41,14 +39,14 @@ files:
41
39
  homepage: https://github.com/janlelis/object_shadow
42
40
  licenses:
43
41
  - MIT
44
- metadata: {}
45
- post_install_message:
42
+ metadata:
43
+ rubygems_mfa_required: 'true'
46
44
  rdoc_options: []
47
45
  require_paths:
48
46
  - lib
49
47
  required_ruby_version: !ruby/object:Gem::Requirement
50
48
  requirements:
51
- - - "~>"
49
+ - - ">="
52
50
  - !ruby/object:Gem::Version
53
51
  version: '2.0'
54
52
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -57,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
55
  - !ruby/object:Gem::Version
58
56
  version: '0'
59
57
  requirements: []
60
- rubygems_version: 3.0.3
61
- signing_key:
58
+ rubygems_version: 4.0.3
62
59
  specification_version: 4
63
60
  summary: Metaprogramming Level 2
64
61
  test_files:
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- rvm:
5
- - 2.6
6
- - 2.5
7
- - 2.4
8
- - 2.3
9
- - ruby-head
10
- - jruby-9.2.6.0
11
- - truffleruby
12
-
13
- matrix:
14
- allow_failures:
15
- - rvm: ruby-head
16
- - rvm: truffleruby
17
- - rvm: 2.3
18
- # fast_finish: true