kukushka 0.1.3 → 0.1.4

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: 19ee15ee498f6251378c39480c444922c0675d192582e17b9695949bd0b0f9ba
4
- data.tar.gz: a163b7deab7dce96ed2ae54214e64b80f66bca400c8c92dc04bc8f3d5258bf92
3
+ metadata.gz: 3888a46d589e195c57176e78f19727b7678022c470c739b724656e388efd70f3
4
+ data.tar.gz: eb66d404b392cfdf36bf15be889e0c7b188f78bd062350fe645a5b52878d73a5
5
5
  SHA512:
6
- metadata.gz: a56fac80db7137a85fceca5520a35242a36cbee6612893ce0f7066343432003aca1736df797aaa8bb7936122465b782b6520b13f639b8712322ea3fe87db079a
7
- data.tar.gz: 6c29a9ddf610115b4553678c7a5f8cf1806df55f82aa86ee4edbf3ed81c7864693b65194ccbb1dcb3d1f692a64afe2c826dec58a8cc4605ac97913a7471a3ab0
6
+ metadata.gz: ec36e38cf546aeece6ada74fa685c2ac68cd4b1d08565eee7daff4f55a4d5183348d40212b473c28b22da774c19698593bf4a24392dad62d706ff2b56d23d686
7
+ data.tar.gz: 796fcf9a585a6ad998b68ee01274db29f077f85784cc002fceed1d1e63a4d96960140cd54798b81365c4f015db4b0ac83068aa6f630eeb09e8c95c3fabc690fe
data/README.md CHANGED
@@ -36,3 +36,13 @@ function precmd() {
36
36
  }
37
37
  ```
38
38
 
39
+
40
+
41
+ ```
42
+ mkdir tmp/sk
43
+ cd tmp/sk
44
+ bundle init
45
+
46
+ gem 'pry'
47
+ gem 'kukushka', path: '/Users/Siarhei/laboratory/kukushka'
48
+ ```
data/exe/kuku CHANGED
@@ -5,7 +5,6 @@ require 'pry'
5
5
 
6
6
  if ARGV.join('') == 'on'
7
7
  Kukushka.on!
8
- exit
9
8
  end
10
9
 
11
10
  return unless Kukushka.on?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kukushka
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
data/lib/kukushka.rb CHANGED
@@ -20,12 +20,12 @@ module Kukushka
20
20
  Config.new.enable
21
21
  end
22
22
 
23
-
24
23
  class Config
25
24
  CONFIG_FILE = File.dirname(__FILE__) + '/../tmp/config/kuku.yaml'
26
25
  CONFIG_DIR = File.dirname(CONFIG_FILE)
27
26
 
28
27
  def on?
28
+ return true unless exists?
29
29
  exists? && config[:enabled]
30
30
  end
31
31
 
@@ -33,8 +33,8 @@ module Kukushka
33
33
  File.exists?(CONFIG_DIR)
34
34
  end
35
35
 
36
- def init
37
- source_file = param1
36
+ def init(source_file)
37
+ source_file ||= File.dirname(__FILE__) + '/../spec/fixtures/pl_001.txt'
38
38
  return INIT_CTA if source_file.nil?
39
39
  return PROVIDE_SOURCE_CTA unless File.exist?(source_file)
40
40
 
@@ -87,7 +87,7 @@ module Kukushka
87
87
  attr_reader :command, :param1, :config
88
88
 
89
89
  def kuku
90
- config.init if command == 'init'
90
+ config.init(param1) if command == 'init'
91
91
 
92
92
  return INIT_CTA unless config.exists?
93
93
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kukushka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serge Kislak