code_snippet_manager 0.1.2 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/code_snippet_manager/version.rb +1 -1
- data/lib/code_snippet_manager.rb +3 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 023daca63aef4037cf857c6bc5ab57eea7c3f9d60538c7b407c4a224136ae2ec
|
4
|
+
data.tar.gz: d3ef91aaa617ae2f897aebc14c71bec4c26af743363e567d233033ef97366618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cde56d07c8bfc1420a86c5ea7d793ca1bf00cb40dff2d6b84247282d4d0fdfe872985f541315b28132d8f42232ca044fc8ed6a8e24d3b445e08112e18ffb5e4b
|
7
|
+
data.tar.gz: 8dc13c835e88acb7437fb250a175e4adc0038023409cf055b4b8dfa70dde32d7234d60f2e18bffb7b8be2642db04f2b45ece6bb020243531ea1191bb2ca85812
|
data/lib/code_snippet_manager.rb
CHANGED
@@ -1,27 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "code_snippet_manager/version"
|
4
|
+
require_relative "code_snippet_manager/configuration"
|
4
5
|
|
5
|
-
# Main module for the lib
|
6
6
|
module CodeSnippetManager
|
7
|
-
def self.
|
8
|
-
|
9
|
-
|
10
|
-
case choice
|
11
|
-
when :add
|
12
|
-
puts "add"
|
13
|
-
when :list
|
14
|
-
puts "list"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
private
|
19
|
-
|
20
|
-
def generate_prompt_choice
|
21
|
-
prompt = TTY::Prompt.new
|
22
|
-
prompt.select("Choose your action:") do |menu|
|
23
|
-
menu.choice name: "Add a new snippet", value: :add
|
24
|
-
menu.choice name: "List all snippets", value: :list
|
25
|
-
end
|
7
|
+
def self.included(base)
|
8
|
+
base.include Configuration
|
26
9
|
end
|
27
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_snippet_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jovan-sremacki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-prompt
|