peeky 0.0.25 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/Gemfile +5 -5
- data/lib/peeky/class_info.rb +15 -15
- data/lib/peeky/predicates/attr_reader_predicate.rb +1 -1
- data/lib/peeky/version.rb +1 -1
- data/peeky.gemspec +5 -0
- metadata +5 -4
- data/lib/peeky/tools/generate_yard_documentation.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42b1773eb29b5172982f98baca0d0059100f24d0146aef2f8feb17ca4556ee33
|
4
|
+
data.tar.gz: 7bf9f02bb68f67a8f8d7542c72b92d3f2bdb9a6e8fbeee556beae19abcbf00d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0f7836ebe0e633ad940dbe78adf0f79916a6d055294462d6ec3ecc11c8ffa8add7fed7b0a192a21dace5564b2d5bb63a35f836d0a5fe9241da9ea0fae63dcec
|
7
|
+
data.tar.gz: 6e50ba733f1cbcd1ad9e247d91623acdd67762952a6b366b41a8f9c4be80027e0ea2cc9dab0b2d3bd1cf79c999e918851d9e6d5f40334ca9a88642183fb7e1d2
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -5,11 +5,11 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in poc_github_ap.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
group :development do
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
8
|
+
# group :development do
|
9
|
+
# # pry on steroids
|
10
|
+
# gem 'pry-coolline', github: 'owst/pry-coolline', branch: 'support_new_pry_config_api'
|
11
|
+
# gem 'jazz_fingers'
|
12
|
+
# end
|
13
13
|
|
14
14
|
group :development, :test do
|
15
15
|
gem 'guard-bundler'
|
data/lib/peeky/class_info.rb
CHANGED
@@ -149,7 +149,7 @@ module Peeky
|
|
149
149
|
# this is slower when you are not accessing things, but
|
150
150
|
# it is easier to debug, so think about what I really want
|
151
151
|
# here
|
152
|
-
def build
|
152
|
+
def build
|
153
153
|
ruby_instance_methods
|
154
154
|
ruby_instance_method_names
|
155
155
|
signatures
|
@@ -159,17 +159,10 @@ module Peeky
|
|
159
159
|
#
|
160
160
|
# Refact: PATTERN: Come up it an debug inclusion system so that
|
161
161
|
# so that debug helpers can be included for development and excluded
|
162
|
-
# for production
|
162
|
+
# for production
|
163
163
|
# @param format [String] format: <value for format> (optional)
|
164
164
|
def debug(format: [:signatures])
|
165
|
-
if format.include?(:method_names)
|
166
|
-
puts '-' * 70
|
167
|
-
puts 'Method Names'
|
168
|
-
puts '-' * 70
|
169
|
-
ruby_instance_method_names.each do |method_name|
|
170
|
-
puts method_name
|
171
|
-
end
|
172
|
-
end
|
165
|
+
debug_method_names if format.include?(:method_names)
|
173
166
|
|
174
167
|
return unless format.include?(:signatures)
|
175
168
|
|
@@ -179,6 +172,15 @@ module Peeky
|
|
179
172
|
signatures.each(&:debug)
|
180
173
|
end
|
181
174
|
|
175
|
+
def debug_method_names
|
176
|
+
puts '-' * 70
|
177
|
+
puts 'Method Names'
|
178
|
+
puts '-' * 70
|
179
|
+
ruby_instance_method_names.each do |method_name|
|
180
|
+
puts method_name
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
182
184
|
private
|
183
185
|
|
184
186
|
def ruby_instance_method_names
|
@@ -186,11 +188,9 @@ module Peeky
|
|
186
188
|
end
|
187
189
|
|
188
190
|
def ruby_instance_methods
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
puts exception
|
193
|
-
end
|
191
|
+
@_ruby_instance_methods ||= ruby_instance_method_names.map { |method_name| instance.method(method_name) }
|
192
|
+
rescue StandardError => e
|
193
|
+
puts e
|
194
194
|
end
|
195
195
|
end
|
196
196
|
end
|
@@ -20,7 +20,7 @@ module Peeky
|
|
20
20
|
# Really need to handle exceptions and types better
|
21
21
|
# old_value = instance.send(method_name)
|
22
22
|
|
23
|
-
# This code works by
|
23
|
+
# This code works by
|
24
24
|
# 1. Set @name_of_method variable to random value
|
25
25
|
# 2. Call method name and see if it returns that value
|
26
26
|
# 3. Return match<true> if the values are equal
|
data/lib/peeky/version.rb
CHANGED
data/peeky.gemspec
CHANGED
@@ -28,6 +28,11 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.metadata['homepage_uri'] = spec.homepage
|
29
29
|
spec.metadata['source_code_uri'] = 'https://github.com/klueless-io/peeky'
|
30
30
|
spec.metadata['changelog_uri'] = 'https://github.com/klueless-io/peeky/commits/master'
|
31
|
+
# Go to: https://rubydoc.info/
|
32
|
+
# Click Add Project:
|
33
|
+
# git@github.com:klueless-io/peeky
|
34
|
+
spec.metadata['documentation_uri'] = 'https://rubydoc.info/github/klueless-io/peeky/master'
|
35
|
+
spec.extra_rdoc_files = ['README-stories.md', 'README-stories.md']
|
31
36
|
|
32
37
|
# Specify which files should be added to the gem when it is released.
|
33
38
|
# The `git ls-files -z` loads the RubyGem files that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peeky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -32,7 +32,8 @@ email:
|
|
32
32
|
- david@ideasmen.com.au
|
33
33
|
executables: []
|
34
34
|
extensions: []
|
35
|
-
extra_rdoc_files:
|
35
|
+
extra_rdoc_files:
|
36
|
+
- README-stories.md
|
36
37
|
files:
|
37
38
|
- ".github/workflows/ruby.yml"
|
38
39
|
- ".gitignore"
|
@@ -67,7 +68,6 @@ files:
|
|
67
68
|
- lib/peeky/renderer/method_call_minimum_params_render.rb
|
68
69
|
- lib/peeky/renderer/method_signature_render.rb
|
69
70
|
- lib/peeky/renderer/method_signature_with_debug_render.rb
|
70
|
-
- lib/peeky/tools/generate_yard_documentation.rb
|
71
71
|
- lib/peeky/version.rb
|
72
72
|
- peeky.gemspec
|
73
73
|
homepage: http://appydave.com/gems/peeky
|
@@ -77,6 +77,7 @@ metadata:
|
|
77
77
|
homepage_uri: http://appydave.com/gems/peeky
|
78
78
|
source_code_uri: https://github.com/klueless-io/peeky
|
79
79
|
changelog_uri: https://github.com/klueless-io/peeky/commits/master
|
80
|
+
documentation_uri: https://rubydoc.info/github/klueless-io/peeky/master
|
80
81
|
post_install_message:
|
81
82
|
rdoc_options: []
|
82
83
|
require_paths:
|