pokotarou 1.1.7 → 1.1.8
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/pokotarou.rb +11 -3
- data/lib/pokotarou/version.rb +1 -1
- 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: 166487c039cbcf7a6de3ccf579ca5a543c3fa28c154e94710df616e2db6a8fd7
|
|
4
|
+
data.tar.gz: 356cdfc5ea3b7e6bcf1d202b55f243056692c5cb597955ead60f7ee060b8e003
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3624da9475a99fbdbb1a0bcbbe3bc037f4e5ef1c65f847999f1f1b6644da1634be87e0801d79f4da4a0cadc5e4a31d229ea192ac6299ebbd40a203cd9282a5e5
|
|
7
|
+
data.tar.gz: 1abcc3e584a777db0a277a9a5802f680bf967f302452a096d734ac505c352fd7ef388d1b327093c21aade51f0c8c2398f2273a91a294ef545094089de9479048
|
data/lib/pokotarou.rb
CHANGED
|
@@ -9,7 +9,7 @@ module Pokotarou
|
|
|
9
9
|
|
|
10
10
|
class << self
|
|
11
11
|
def execute input
|
|
12
|
-
|
|
12
|
+
init_proc()
|
|
13
13
|
|
|
14
14
|
# if input is filepath, generate config_data
|
|
15
15
|
return_val =
|
|
@@ -25,7 +25,7 @@ module Pokotarou
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def pipeline_execute input_arr
|
|
28
|
-
|
|
28
|
+
init_proc()
|
|
29
29
|
|
|
30
30
|
return_vals = []
|
|
31
31
|
input_arr.each do |e|
|
|
@@ -53,7 +53,8 @@ module Pokotarou
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
def import filepath
|
|
56
|
-
|
|
56
|
+
init_proc()
|
|
57
|
+
|
|
57
58
|
AdditionalMethods.import(filepath)
|
|
58
59
|
end
|
|
59
60
|
|
|
@@ -69,10 +70,14 @@ module Pokotarou
|
|
|
69
70
|
end
|
|
70
71
|
|
|
71
72
|
def gen_handler filepath
|
|
73
|
+
init_proc()
|
|
74
|
+
|
|
72
75
|
PokotarouHandler.new(gen_config(filepath))
|
|
73
76
|
end
|
|
74
77
|
|
|
75
78
|
def gen_handler_with_cache filepath
|
|
79
|
+
init_proc()
|
|
80
|
+
|
|
76
81
|
@handler_cache ||= {}
|
|
77
82
|
@handler_cache[filepath] ||= PokotarouHandler.new(gen_config(filepath))
|
|
78
83
|
|
|
@@ -80,6 +85,9 @@ module Pokotarou
|
|
|
80
85
|
end
|
|
81
86
|
|
|
82
87
|
private
|
|
88
|
+
def init_proc
|
|
89
|
+
AdditionalMethods.init()
|
|
90
|
+
end
|
|
83
91
|
|
|
84
92
|
def gen_config filepath
|
|
85
93
|
contents = load_file(filepath)
|
data/lib/pokotarou/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pokotarou
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kashiwara
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|