istox 0.1.151 → 0.1.152.debug.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/istox-gem.iml +1748 -2
- data/.idea/workspace.xml +16 -183
- data/Gemfile.lock +5 -5
- data/lib/istox/helpers/publisher.rb +4 -2
- data/lib/istox/version.rb +1 -1
- metadata +5 -5
data/.idea/workspace.xml
CHANGED
@@ -2,144 +2,33 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="f70e0449-76c0-44d8-bcb9-7991f2a7e0f8" name="Default Changelist" comment="">
|
5
|
+
<change beforePath="$PROJECT_DIR$/.idea/istox-gem.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/istox-gem.iml" afterDir="false" />
|
6
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
7
|
+
<change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
|
5
8
|
<change beforePath="$PROJECT_DIR$/lib/istox/helpers/publisher.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/istox/helpers/publisher.rb" afterDir="false" />
|
6
|
-
<change beforePath="$PROJECT_DIR$/lib/istox/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/istox/version.rb" afterDir="false" />
|
7
9
|
</list>
|
8
|
-
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
9
10
|
<option name="SHOW_DIALOG" value="false" />
|
10
11
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
11
12
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
12
13
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
13
14
|
</component>
|
14
|
-
<component name="FileEditorManager">
|
15
|
-
<leaf>
|
16
|
-
<file pinned="false" current-in-tab="false">
|
17
|
-
<entry file="file://$PROJECT_DIR$/lib/istox/helpers/bunny_boot.rb">
|
18
|
-
<provider selected="true" editor-type-id="text-editor">
|
19
|
-
<state relative-caret-position="165">
|
20
|
-
<caret line="13" column="24" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" />
|
21
|
-
</state>
|
22
|
-
</provider>
|
23
|
-
</entry>
|
24
|
-
</file>
|
25
|
-
<file pinned="false" current-in-tab="false">
|
26
|
-
<entry file="file://$PROJECT_DIR$/lib/istox/helpers/publisher.rb">
|
27
|
-
<provider selected="true" editor-type-id="text-editor">
|
28
|
-
<state relative-caret-position="310">
|
29
|
-
<caret line="25" column="16" lean-forward="true" selection-start-line="25" selection-start-column="16" selection-end-line="25" selection-end-column="16" />
|
30
|
-
</state>
|
31
|
-
</provider>
|
32
|
-
</entry>
|
33
|
-
</file>
|
34
|
-
<file pinned="false" current-in-tab="false">
|
35
|
-
<entry file="file://$PROJECT_DIR$/README.md">
|
36
|
-
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
37
|
-
<state split_layout="SPLIT">
|
38
|
-
<first_editor relative-caret-position="120">
|
39
|
-
<caret line="8" column="51" selection-start-line="8" selection-start-column="19" selection-end-line="8" selection-end-column="51" />
|
40
|
-
</first_editor>
|
41
|
-
<second_editor />
|
42
|
-
</state>
|
43
|
-
</provider>
|
44
|
-
</entry>
|
45
|
-
</file>
|
46
|
-
<file pinned="false" current-in-tab="true">
|
47
|
-
<entry file="file://$PROJECT_DIR$/lib/istox/version.rb">
|
48
|
-
<provider selected="true" editor-type-id="text-editor">
|
49
|
-
<state relative-caret-position="15">
|
50
|
-
<caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
|
51
|
-
</state>
|
52
|
-
</provider>
|
53
|
-
</entry>
|
54
|
-
</file>
|
55
|
-
</leaf>
|
56
|
-
</component>
|
57
15
|
<component name="Git.Settings">
|
58
16
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
59
17
|
</component>
|
60
|
-
<component name="
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
</list>
|
66
|
-
</option>
|
67
|
-
</component>
|
68
|
-
<component name="ProjectFrameBounds" extendedState="6">
|
69
|
-
<option name="y" value="23" />
|
70
|
-
<option name="width" value="1440" />
|
71
|
-
<option name="height" value="852" />
|
72
|
-
</component>
|
73
|
-
<component name="ProjectView">
|
74
|
-
<navigator proportions="" version="1">
|
75
|
-
<foldersAlwaysOnTop value="true" />
|
76
|
-
</navigator>
|
77
|
-
<panes>
|
78
|
-
<pane id="ProjectPane">
|
79
|
-
<subPane>
|
80
|
-
<expand>
|
81
|
-
<path>
|
82
|
-
<item name="istox-gem" type="b2602c69:ProjectViewProjectNode" />
|
83
|
-
<item name="istox-gem" type="462c0819:PsiDirectoryNode" />
|
84
|
-
</path>
|
85
|
-
<path>
|
86
|
-
<item name="istox-gem" type="b2602c69:ProjectViewProjectNode" />
|
87
|
-
<item name="istox-gem" type="462c0819:PsiDirectoryNode" />
|
88
|
-
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
89
|
-
</path>
|
90
|
-
<path>
|
91
|
-
<item name="istox-gem" type="b2602c69:ProjectViewProjectNode" />
|
92
|
-
<item name="istox-gem" type="462c0819:PsiDirectoryNode" />
|
93
|
-
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
94
|
-
<item name="istox" type="462c0819:PsiDirectoryNode" />
|
95
|
-
</path>
|
96
|
-
<path>
|
97
|
-
<item name="istox-gem" type="b2602c69:ProjectViewProjectNode" />
|
98
|
-
<item name="istox-gem" type="462c0819:PsiDirectoryNode" />
|
99
|
-
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
100
|
-
<item name="istox" type="462c0819:PsiDirectoryNode" />
|
101
|
-
<item name="helpers" type="462c0819:PsiDirectoryNode" />
|
102
|
-
</path>
|
103
|
-
<path>
|
104
|
-
<item name="istox-gem" type="b2602c69:ProjectViewProjectNode" />
|
105
|
-
<item name="istox-gem" type="462c0819:PsiDirectoryNode" />
|
106
|
-
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
107
|
-
<item name="istox" type="462c0819:PsiDirectoryNode" />
|
108
|
-
<item name="interfaces" type="462c0819:PsiDirectoryNode" />
|
109
|
-
</path>
|
110
|
-
<path>
|
111
|
-
<item name="istox-gem" type="b2602c69:ProjectViewProjectNode" />
|
112
|
-
<item name="istox-gem" type="462c0819:PsiDirectoryNode" />
|
113
|
-
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
114
|
-
<item name="istox" type="462c0819:PsiDirectoryNode" />
|
115
|
-
<item name="models" type="462c0819:PsiDirectoryNode" />
|
116
|
-
</path>
|
117
|
-
</expand>
|
118
|
-
<select />
|
119
|
-
</subPane>
|
120
|
-
</pane>
|
121
|
-
<pane id="Scope" />
|
122
|
-
</panes>
|
18
|
+
<component name="ProjectId" id="1b9QRGrquB0Gw9KVQIPyC3lcEWZ" />
|
19
|
+
<component name="ProjectViewState">
|
20
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
21
|
+
<option name="showExcludedFiles" value="true" />
|
22
|
+
<option name="showLibraryContents" value="true" />
|
123
23
|
</component>
|
124
24
|
<component name="PropertiesComponent">
|
25
|
+
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
125
26
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
126
27
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
127
28
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
128
29
|
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
129
30
|
</component>
|
130
|
-
<component name="
|
131
|
-
<option name="ruleStates">
|
132
|
-
<list>
|
133
|
-
<RuleState>
|
134
|
-
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
135
|
-
</RuleState>
|
136
|
-
<RuleState>
|
137
|
-
<option name="name" value="StatusDashboardGroupingRule" />
|
138
|
-
</RuleState>
|
139
|
-
</list>
|
140
|
-
</option>
|
141
|
-
</component>
|
142
|
-
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
|
31
|
+
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" RAKE_SPRING_PRE_LOADER_OPTION="false" RAILS_SPRING_PRE_LOADER_OPTION="false" />
|
143
32
|
<component name="SvnConfiguration">
|
144
33
|
<configuration />
|
145
34
|
</component>
|
@@ -151,72 +40,16 @@
|
|
151
40
|
<option name="presentableId" value="Default" />
|
152
41
|
<updated>1566200631090</updated>
|
153
42
|
<workItem from="1566200632743" duration="997000" />
|
43
|
+
<workItem from="1588041821198" duration="7000" />
|
44
|
+
<workItem from="1588041848702" duration="4629000" />
|
45
|
+
<workItem from="1588230991821" duration="301000" />
|
46
|
+
<workItem from="1588595833261" duration="1768000" />
|
47
|
+
<workItem from="1589424486664" duration="887000" />
|
48
|
+
<workItem from="1589685965376" duration="4302000" />
|
154
49
|
</task>
|
155
50
|
<servers />
|
156
51
|
</component>
|
157
|
-
<component name="TimeTrackingManager">
|
158
|
-
<option name="totallyTimeSpent" value="1001000" />
|
159
|
-
</component>
|
160
|
-
<component name="ToolWindowManager">
|
161
|
-
<frame x="0" y="23" width="1440" height="852" extended-state="6" />
|
162
|
-
<editor active="true" />
|
163
|
-
<layout>
|
164
|
-
<window_info id="Favorites" side_tool="true" />
|
165
|
-
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.33547926" />
|
166
|
-
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
167
|
-
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
|
168
|
-
<window_info anchor="bottom" id="Database Changes" />
|
169
|
-
<window_info anchor="bottom" id="Version Control" />
|
170
|
-
<window_info anchor="bottom" id="Messages" visible="true" weight="0.42062417" />
|
171
|
-
<window_info anchor="bottom" id="Terminal" />
|
172
|
-
<window_info anchor="bottom" id="Event Log" side_tool="true" />
|
173
|
-
<window_info anchor="bottom" id="Message" order="0" />
|
174
|
-
<window_info anchor="bottom" id="Find" order="1" />
|
175
|
-
<window_info anchor="bottom" id="Run" order="2" />
|
176
|
-
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
177
|
-
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
178
|
-
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
179
|
-
<window_info anchor="bottom" id="TODO" order="6" />
|
180
|
-
<window_info anchor="right" id="Database" />
|
181
|
-
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
182
|
-
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
183
|
-
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
184
|
-
</layout>
|
185
|
-
</component>
|
186
52
|
<component name="TypeScriptGeneratedFilesManager">
|
187
53
|
<option name="version" value="1" />
|
188
54
|
</component>
|
189
|
-
<component name="editorHistoryManager">
|
190
|
-
<entry file="file://$PROJECT_DIR$/lib/istox/helpers/bunny_boot.rb">
|
191
|
-
<provider selected="true" editor-type-id="text-editor">
|
192
|
-
<state relative-caret-position="165">
|
193
|
-
<caret line="13" column="24" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" />
|
194
|
-
</state>
|
195
|
-
</provider>
|
196
|
-
</entry>
|
197
|
-
<entry file="file://$PROJECT_DIR$/README.md">
|
198
|
-
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
199
|
-
<state split_layout="SPLIT">
|
200
|
-
<first_editor relative-caret-position="120">
|
201
|
-
<caret line="8" column="51" selection-start-line="8" selection-start-column="19" selection-end-line="8" selection-end-column="51" />
|
202
|
-
</first_editor>
|
203
|
-
<second_editor />
|
204
|
-
</state>
|
205
|
-
</provider>
|
206
|
-
</entry>
|
207
|
-
<entry file="file://$PROJECT_DIR$/lib/istox/helpers/publisher.rb">
|
208
|
-
<provider selected="true" editor-type-id="text-editor">
|
209
|
-
<state relative-caret-position="310">
|
210
|
-
<caret line="25" column="16" lean-forward="true" selection-start-line="25" selection-start-column="16" selection-end-line="25" selection-end-column="16" />
|
211
|
-
</state>
|
212
|
-
</provider>
|
213
|
-
</entry>
|
214
|
-
<entry file="file://$PROJECT_DIR$/lib/istox/version.rb">
|
215
|
-
<provider selected="true" editor-type-id="text-editor">
|
216
|
-
<state relative-caret-position="15">
|
217
|
-
<caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
|
218
|
-
</state>
|
219
|
-
</provider>
|
220
|
-
</entry>
|
221
|
-
</component>
|
222
55
|
</project>
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
istox (0.1.
|
4
|
+
istox (0.1.151)
|
5
5
|
awesome_print
|
6
6
|
binding_of_caller
|
7
7
|
bunny (>= 2.12.0)
|
8
8
|
graphlient
|
9
9
|
gruf
|
10
10
|
hashie (~> 3.5.7)
|
11
|
-
istox_gruf
|
11
|
+
istox_gruf
|
12
12
|
listen (~> 3.0.5)
|
13
13
|
ougai
|
14
14
|
paranoia (~> 2.2)
|
@@ -65,7 +65,7 @@ GEM
|
|
65
65
|
arel (9.0.0)
|
66
66
|
awesome_print (1.8.0)
|
67
67
|
aws-eventstream (1.1.0)
|
68
|
-
aws-sigv4 (1.1.
|
68
|
+
aws-sigv4 (1.1.3)
|
69
69
|
aws-eventstream (~> 1.0, >= 1.0.2)
|
70
70
|
binding_of_caller (0.8.0)
|
71
71
|
debug_inspector (>= 0.0.1)
|
@@ -105,7 +105,7 @@ GEM
|
|
105
105
|
faraday
|
106
106
|
faraday_middleware
|
107
107
|
graphql-client
|
108
|
-
graphql (1.10.
|
108
|
+
graphql (1.10.8)
|
109
109
|
graphql-client (0.16.0)
|
110
110
|
activesupport (>= 3.0)
|
111
111
|
graphql (~> 1.8)
|
@@ -148,7 +148,7 @@ GEM
|
|
148
148
|
nokogiri (1.10.9)
|
149
149
|
mini_portile2 (~> 2.4.0)
|
150
150
|
oj (3.10.6)
|
151
|
-
ougai (1.8.
|
151
|
+
ougai (1.8.4)
|
152
152
|
oj (~> 3.10)
|
153
153
|
paranoia (2.4.2)
|
154
154
|
activerecord (>= 4.0, < 6.1)
|
@@ -70,6 +70,7 @@ module Istox
|
|
70
70
|
def channel
|
71
71
|
return @channel[Thread.current.object_id] if @channel.present? && @channel[Thread.current.object_id].present?
|
72
72
|
|
73
|
+
log.info "Current @channel object is: #{@channel}"
|
73
74
|
log.info "#{Thread.current.object_id} No channel yet, create 2 channels confirm-mode and non-confirm-mode ... ..."
|
74
75
|
@channel = Hash.new if @channel.nil?
|
75
76
|
@channel[Thread.current.object_id] = Hash.new
|
@@ -82,14 +83,14 @@ module Istox
|
|
82
83
|
Thread.new do
|
83
84
|
loop do
|
84
85
|
sleep 5
|
85
|
-
|
86
|
+
log.info("Create thread #{Thread.current.object_id} for monitoring confirm-1")
|
86
87
|
begin
|
87
88
|
success = @channel[threadId]['confirm-1'].wait_for_confirms
|
88
89
|
if success
|
89
90
|
::Istox::BunnyBoot.del_tracker_on_channel @channel[threadId]['confirm-1'].id
|
90
91
|
else
|
91
92
|
@channel[threadId]['confirm-1'].nacked_set.each do |n|
|
92
|
-
log.
|
93
|
+
log.info("Publish Error[Async #{threadId}]: UNACK delivery tag is #{n}, republish message")
|
93
94
|
eid = ::Istox::BunnyBoot.find_tracker_on_channel @channel[threadId]['confirm-1'].id, n, 'eid'
|
94
95
|
payload = ::Istox::BunnyBoot.find_tracker_on_channel @channel[threadId]['confirm-1'].id, n, 'payload'
|
95
96
|
payload = JSON.parse(payload, :symbolize_names => true) unless payload.nil?
|
@@ -101,6 +102,7 @@ module Istox
|
|
101
102
|
routing_key = options.delete :routing_key
|
102
103
|
options[:delivery_tag] = n
|
103
104
|
end
|
105
|
+
|
104
106
|
publish(exchange: eid, routing_key: routing_key, message: payload, options: options)
|
105
107
|
end
|
106
108
|
end
|
data/lib/istox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: istox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.152.debug.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siong Leng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -471,11 +471,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
471
471
|
version: '0'
|
472
472
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
473
473
|
requirements:
|
474
|
-
- - "
|
474
|
+
- - ">"
|
475
475
|
- !ruby/object:Gem::Version
|
476
|
-
version:
|
476
|
+
version: 1.3.1
|
477
477
|
requirements: []
|
478
|
-
rubygems_version: 3.0.
|
478
|
+
rubygems_version: 3.0.8
|
479
479
|
signing_key:
|
480
480
|
specification_version: 4
|
481
481
|
summary: istox backend shared gem
|