krb 0.0.1 → 0.0.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: 25a6ec833934dec74c3ce8f6c21458c6c204e735139f14d1d9f490ca52952fbf
4
- data.tar.gz: 5dc74267db83b9dacad7af9f7a22f5916cc0a125f9e08a347fd9b9d0d2b9ad0a
3
+ metadata.gz: 48e7ff5740c7d0fc100376a8a37e048ea22a01d4fbfbbb18714373500f280675
4
+ data.tar.gz: 0b517654b81e69688a7ddc9420c388564aaaf001c3008c241d520b8910125190
5
5
  SHA512:
6
- metadata.gz: 5a2d35f93930056e8fc87405eb861d8d2e381a3786bf15f0434b503269763a53223b4c854e7de6fe956e077cec10f43764496419a1cea523bb5f91bd1da3c952
7
- data.tar.gz: 28355fa27a560255e3747c39679ac623d10ca09158ef024a54dd6b24d1d4fabe46ebf6bd94a18f9a9c76620f3508e1bc9e40fe70e5bba15ccde690358f175b67
6
+ metadata.gz: b9c73662fa2abb10c1926cfa2025fc41cd3e4814bd44c2980a07aac128bb5a262b065751352279d0f21bcb8716e740cd935c64c4d458103db106da02c49cbe0c
7
+ data.tar.gz: 20a0de6dbd255545379f8f5a65de2a5b281e03a6a04c3b5b69c34bad5f45a3683d77724ba68907ae52fde74766694c031e12b2fe9070680206262e7df5ac565f
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in krb.gemspec
6
6
  gemspec
7
+ gem 'tty'
@@ -1,13 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- krb (0.0.1)
4
+ krb (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.3)
10
+ equatable (0.5.0)
11
+ hitimes (1.3.0)
12
+ kramdown (1.16.2)
13
+ necromancer (0.4.0)
14
+ pastel (0.7.2)
15
+ equatable (~> 0.5.0)
16
+ tty-color (~> 0.4.0)
10
17
  rake (10.5.0)
18
+ rouge (3.1.1)
11
19
  rspec (3.8.0)
12
20
  rspec-core (~> 3.8.0)
13
21
  rspec-expectations (~> 3.8.0)
@@ -21,6 +29,87 @@ GEM
21
29
  diff-lcs (>= 1.2.0, < 2.0)
22
30
  rspec-support (~> 3.8.0)
23
31
  rspec-support (3.8.0)
32
+ strings (0.1.2)
33
+ unicode-display_width (~> 1.4.0)
34
+ unicode_utils (~> 1.4.0)
35
+ thor (0.20.0)
36
+ timers (4.1.2)
37
+ hitimes
38
+ tty (0.8.1)
39
+ bundler (~> 1.16, < 2.0)
40
+ equatable (~> 0.5.0)
41
+ pastel (~> 0.7.2)
42
+ thor (~> 0.20.0)
43
+ tty-color (~> 0.4.2)
44
+ tty-command (~> 0.8.0)
45
+ tty-config (~> 0.2.0)
46
+ tty-cursor (~> 0.5.0)
47
+ tty-editor (~> 0.4.0)
48
+ tty-file (~> 0.6.0)
49
+ tty-font (~> 0.2.0)
50
+ tty-markdown (~> 0.4.0)
51
+ tty-pager (~> 0.11.0)
52
+ tty-platform (~> 0.1.0)
53
+ tty-progressbar (~> 0.15.0)
54
+ tty-prompt (~> 0.16.1)
55
+ tty-screen (~> 0.6.4)
56
+ tty-spinner (~> 0.8.0)
57
+ tty-table (~> 0.10.0)
58
+ tty-tree (~> 0.1.0)
59
+ tty-which (~> 0.3.0)
60
+ tty-color (0.4.3)
61
+ tty-command (0.8.2)
62
+ pastel (~> 0.7.0)
63
+ tty-config (0.2.0)
64
+ tty-cursor (0.5.0)
65
+ tty-editor (0.4.0)
66
+ tty-prompt (~> 0.16.0)
67
+ tty-which (~> 0.3.0)
68
+ tty-file (0.6.0)
69
+ diff-lcs (~> 1.3.0)
70
+ pastel (~> 0.7.2)
71
+ tty-prompt (~> 0.16.1)
72
+ tty-font (0.2.0)
73
+ tty-markdown (0.4.0)
74
+ kramdown (~> 1.16.2)
75
+ pastel (~> 0.7.2)
76
+ rouge (~> 3.1.0)
77
+ strings (~> 0.1.0)
78
+ tty-color (~> 0.4.2)
79
+ tty-screen (~> 0.6.4)
80
+ tty-pager (0.11.0)
81
+ strings (~> 0.1.0)
82
+ tty-screen (~> 0.6.4)
83
+ tty-which (~> 0.3.0)
84
+ tty-platform (0.1.0)
85
+ tty-progressbar (0.15.1)
86
+ tty-cursor (~> 0.5.0)
87
+ tty-screen (~> 0.6.4)
88
+ unicode-display_width (~> 1.3)
89
+ tty-prompt (0.16.1)
90
+ necromancer (~> 0.4.0)
91
+ pastel (~> 0.7.0)
92
+ timers (~> 4.0)
93
+ tty-cursor (~> 0.5.0)
94
+ tty-reader (~> 0.3.0)
95
+ tty-reader (0.3.0)
96
+ tty-cursor (~> 0.5.0)
97
+ tty-screen (~> 0.6.4)
98
+ wisper (~> 2.0.0)
99
+ tty-screen (0.6.5)
100
+ tty-spinner (0.8.0)
101
+ tty-cursor (>= 0.5.0)
102
+ tty-table (0.10.0)
103
+ equatable (~> 0.5.0)
104
+ necromancer (~> 0.4.0)
105
+ pastel (~> 0.7.2)
106
+ strings (~> 0.1.0)
107
+ tty-screen (~> 0.6.4)
108
+ tty-tree (0.1.0)
109
+ tty-which (0.3.0)
110
+ unicode-display_width (1.4.0)
111
+ unicode_utils (1.4.0)
112
+ wisper (2.0.0)
24
113
 
25
114
  PLATFORMS
26
115
  ruby
@@ -30,6 +119,7 @@ DEPENDENCIES
30
119
  krb!
31
120
  rake (~> 10.0)
32
121
  rspec (~> 3.0)
122
+ tty
33
123
 
34
124
  BUNDLED WITH
35
125
  1.16.1
data/bin/krb ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'krb'
4
+ Krb::Installer::Base.process
@@ -1,4 +1,7 @@
1
- $:.push File.expand_path("../lib", __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
2
5
  require 'krb'
3
6
 
4
7
  Gem::Specification.new do |spec|
@@ -12,13 +15,6 @@ Gem::Specification.new do |spec|
12
15
  spec.homepage = 'https://ngx.host'
13
16
  spec.license = 'MIT'
14
17
 
15
- # if spec.respond_to?(:metadata)
16
- # spec.metadata['allowed_push_host'] = 'http://mygemserver.com'
17
- # else
18
- # raise 'RubyGems 2.0 or newer is required to protect against ' \
19
- # 'public gem pushes.'
20
- # end
21
-
22
18
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
23
19
  f.match(%r{^(test|spec|features)/})
24
20
  end
data/lib/krb.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'krb/application_service'
4
+ require 'krb/version'
4
5
 
5
6
  # Krb gem entrypoint
6
7
  module Krb
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- Dir[File.dirname(__FILE__) + '/**/*.rb'].each do |file|
4
- require file
5
- end
6
-
7
3
  # Services entrypoint
8
4
  module Krb
9
5
  # syntactic sugar
@@ -13,3 +9,7 @@ module Krb
13
9
  end
14
10
  end
15
11
  end
12
+
13
+ Dir[File.dirname(__FILE__) + '/**/*.rb'].each do |file|
14
+ require file
15
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tty/prompt'
4
+
5
+ module Krb
6
+ module Installer
7
+ # syntactic sugar
8
+ class Base < ::Krb::ApplicationService
9
+ def process
10
+ verify_key
11
+ end
12
+
13
+ private
14
+
15
+ def verify_key
16
+ return if File.exist?('~/.storefront')
17
+ prompt = ::TTY::Prompt.new
18
+
19
+ x = prompt.ask('What is your name?') do |q|
20
+ q.required true
21
+ end
22
+
23
+ pp x
24
+ end
25
+ end
26
+ end
27
+ end
@@ -3,7 +3,7 @@
3
3
  module Krb
4
4
  module Php
5
5
  # entrypoiny for php tools
6
- class Base
6
+ class Base < ::Krb::ApplicationService
7
7
  def self.import
8
8
  'Import php'
9
9
  end
@@ -3,7 +3,7 @@
3
3
  module Krb
4
4
  module Ruby
5
5
  # entrypoiny for php tools
6
- class Base
6
+ class Base < ::Krb::ApplicationService
7
7
  def self.import
8
8
  'Import ruby'
9
9
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Krb
2
- VERSION = "0.0.1".freeze
3
- end
4
+ VERSION = '0.0.2'.freeze
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbnnt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-25 00:00:00.000000000 Z
11
+ date: 2018-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,10 +69,12 @@ files:
69
69
  - README.md
70
70
  - Rakefile
71
71
  - bin/console
72
+ - bin/krb
72
73
  - bin/setup
73
74
  - krb.gemspec
74
75
  - lib/krb.rb
75
76
  - lib/krb/application_service.rb
77
+ - lib/krb/installer/base.rb
76
78
  - lib/krb/php/base.rb
77
79
  - lib/krb/ruby/base.rb
78
80
  - lib/krb/version.rb