cafeznik 0.5.6 → 0.5.61
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/lib/cafeznik/content.rb +2 -2
- data/lib/cafeznik/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3819fe5b2f55ad94ab0d199ba936b872b5ac0da19b300543b1ddc5bfc2763b02
|
4
|
+
data.tar.gz: 1ea542956197037f368c1c9c2a3d0d867a96f37f6b3af88a4596e0e977e6a9c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a39fbc59dc0d234b471eb74ff2bb5d9a2947c54b4af1b5710b3a8784f49841f90522601437a948d5f0527e952b51d80376adcd200557e080760177c8d842888
|
7
|
+
data.tar.gz: e4e01916cded3f43808d81c2421adcd3cde13b807a7b4b9316d4780637f613b2bde48989a16c23056af173eb1e28a3d9a13047204671b9cd6f6f7de34afb06bb
|
data/lib/cafeznik/content.rb
CHANGED
@@ -4,7 +4,7 @@ require "memery"
|
|
4
4
|
module Cafeznik
|
5
5
|
class Content
|
6
6
|
include Memery
|
7
|
-
MAX_LINES =
|
7
|
+
MAX_LINES = 10_000
|
8
8
|
|
9
9
|
def initialize(source:, file_paths:, include_headers:, include_tree:)
|
10
10
|
Log.debug "Initializing Content" do
|
@@ -58,7 +58,7 @@ module Cafeznik
|
|
58
58
|
return true if line_count <= MAX_LINES
|
59
59
|
|
60
60
|
if @include_tree && suggest_tree_removal?
|
61
|
-
Log.warn "Content exceeds #{MAX_LINES} lines (#{line_count}). Try cutting out the tree
|
61
|
+
Log.warn "Content exceeds #{MAX_LINES} lines (#{line_count}). Try cutting out the tree? (y/N)"
|
62
62
|
@include_tree = false
|
63
63
|
@content = build_content
|
64
64
|
return confirm_size! if CLI.user_agrees?
|
data/lib/cafeznik/version.rb
CHANGED