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 +4 -4
- data/README.md +10 -0
- data/exe/kuku +0 -1
- data/lib/kukushka/version.rb +1 -1
- data/lib/kukushka.rb +4 -4
- 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: 3888a46d589e195c57176e78f19727b7678022c470c739b724656e388efd70f3
|
4
|
+
data.tar.gz: eb66d404b392cfdf36bf15be889e0c7b188f78bd062350fe645a5b52878d73a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec36e38cf546aeece6ada74fa685c2ac68cd4b1d08565eee7daff4f55a4d5183348d40212b473c28b22da774c19698593bf4a24392dad62d706ff2b56d23d686
|
7
|
+
data.tar.gz: 796fcf9a585a6ad998b68ee01274db29f077f85784cc002fceed1d1e63a4d96960140cd54798b81365c4f015db4b0ac83068aa6f630eeb09e8c95c3fabc690fe
|
data/README.md
CHANGED
data/exe/kuku
CHANGED
data/lib/kukushka/version.rb
CHANGED
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
|
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
|
|