pokotarou 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ba6e2645cf94bcf9be0f58eed852f3a72aaa781a0c7cd3464bae15198d06995
4
- data.tar.gz: 7e0a7526bf12d795d141a5ab1c5adf798011c397a1c6a5897e7562da5d96385a
3
+ metadata.gz: 166487c039cbcf7a6de3ccf579ca5a543c3fa28c154e94710df616e2db6a8fd7
4
+ data.tar.gz: 356cdfc5ea3b7e6bcf1d202b55f243056692c5cb597955ead60f7ee060b8e003
5
5
  SHA512:
6
- metadata.gz: 5d60e710e9da88f544e396ee0bf8bd2fdbfd9f71691eb326c6f38caccef07d07c7424b5804936432947ad7d5c4b2d787e8ce98f3d1e4fada1f161ce465be46ef
7
- data.tar.gz: 127ec4685eedae5f3dfa6f0b19d82c3d64aa8ef2fe16f8c14450e434d891796ffc9059d42c30bb5f5550dbd5994951d5bb4a18e1f9f2db440c05280eb95cea80
6
+ metadata.gz: 3624da9475a99fbdbb1a0bcbbe3bc037f4e5ef1c65f847999f1f1b6644da1634be87e0801d79f4da4a0cadc5e4a31d229ea192ac6299ebbd40a203cd9282a5e5
7
+ data.tar.gz: 1abcc3e584a777db0a277a9a5802f680bf967f302452a096d734ac505c352fd7ef388d1b327093c21aade51f0c8c2398f2273a91a294ef545094089de9479048
@@ -9,7 +9,7 @@ module Pokotarou
9
9
 
10
10
  class << self
11
11
  def execute input
12
- AdditionalMethods.init()
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
- AdditionalMethods.init()
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
- AdditionalMethods.init()
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)
@@ -1,3 +1,3 @@
1
1
  module Pokotarou
2
- VERSION = '1.1.7'
2
+ VERSION = '1.1.8'
3
3
  end
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.7
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-20 00:00:00.000000000 Z
11
+ date: 2020-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails