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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75fed761de619d444f8e84f4e08df5df41e9f12b89e95051b60dd0f60bafa57e
4
- data.tar.gz: 05e1ba1ec76ffe0689f536e8e2c78c86fd16570051212ca9031ef3cf5f302e9b
3
+ metadata.gz: 42b1773eb29b5172982f98baca0d0059100f24d0146aef2f8feb17ca4556ee33
4
+ data.tar.gz: 7bf9f02bb68f67a8f8d7542c72b92d3f2bdb9a6e8fbeee556beae19abcbf00d2
5
5
  SHA512:
6
- metadata.gz: 19bb5a15dc9c0db1a5346632f448da2ff7396f247c474a89b1dee7c2097e1fdf824bce8227a35762bc85db49d4301463f613f78999a20f1656edb870e4eabb51
7
- data.tar.gz: 89ae53bd7a7a840a92214337bc7a08c5e813eab892a94391cb69b2e27a0ad87546c7489f03c710f20328b770abafd3ccf45c92a5bdaf22ed0d5ffb2b93fcd2cf
6
+ metadata.gz: a0f7836ebe0e633ad940dbe78adf0f79916a6d055294462d6ec3ecc11c8ffa8add7fed7b0a192a21dace5564b2d5bb63a35f836d0a5fe9241da9ea0fae63dcec
7
+ data.tar.gz: 6e50ba733f1cbcd1ad9e247d91623acdd67762952a6b366b41a8f9c4be80027e0ea2cc9dab0b2d3bd1cf79c999e918851d9e6d5f40334ca9a88642183fb7e1d2
@@ -7,6 +7,9 @@ AllCops:
7
7
  - "lib/peeky/example/yard_sample.rb"
8
8
 
9
9
  # My Preferences - Start
10
+ Naming/MemoizedInstanceVariableName:
11
+ Enabled: false
12
+
10
13
  Style/EmptyMethod:
11
14
  Exclude:
12
15
  - "**/spec/**/*"
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
- # pry on steroids
10
- gem 'pry-coolline', github: 'owst/pry-coolline', branch: 'support_new_pry_config_api'
11
- gem 'jazz_fingers'
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'
@@ -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
- begin
190
- @_ruby_instance_methods ||= ruby_instance_method_names.map { |method_name| instance.method(method_name) }
191
- rescue => exception
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peeky
4
- VERSION = '0.0.25'
4
+ VERSION = '0.0.27'
5
5
  end
@@ -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.25
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-06 00:00:00.000000000 Z
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:
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- #
4
-
5
- module Peeky
6
- module Tools
7
- # Generate Yard Documentation
8
- class GenerateYardDocumentation
9
-
10
-
11
- def initialize
12
- end
13
-
14
- def debug
15
- end
16
-
17
- end
18
- end
19
- end