freewifi 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +266 -21
- data/lib/freewifi.rb +16 -2
- data/lib/freewifi/hewhub_mtik.rb +85 -0
- data/lib/freewifi/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 692dc8478f8c99e17494b18aa0eafd73d014070a
|
4
|
+
data.tar.gz: d3792c862bda489016de83844bbcef019c4d9a85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4d49a0bebe1947d7d05a3d0be7bca5844a4b370ab0859c3536225799c76cdf5316c3f63108df7abfe58397a1885c9059df15b49333dfd43ed3241b5f95910eb
|
7
|
+
data.tar.gz: 80d806e0c0c2a672eee6e80120ecf4f62a96a89e43bd27b9a7f140cdfd55b1c93acc1724b2e2ec610c602ca02acd2ece4924e144e062f9384584124354458466
|
data/.idea/workspace.xml
CHANGED
@@ -4,8 +4,10 @@
|
|
4
4
|
<list default="true" id="02df4d6c-c448-427d-afde-92139fadec23" name="Default" comment="">
|
5
5
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
|
6
6
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/freewifi.iml" />
|
7
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" />
|
7
8
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
|
8
9
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
|
10
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
|
9
11
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
10
12
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
|
11
13
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
|
@@ -17,6 +19,7 @@
|
|
17
19
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
|
18
20
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/freewifi.gemspec" />
|
19
21
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/freewifi.rb" />
|
22
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/freewifi/hewhub_mtik.rb" />
|
20
23
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/freewifi/version.rb" />
|
21
24
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/freewifi_test.rb" />
|
22
25
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/test_helper.rb" />
|
@@ -28,14 +31,45 @@
|
|
28
31
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
29
32
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
30
33
|
</component>
|
34
|
+
<component name="ChangesViewManager" flattened_view="false" />
|
31
35
|
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
32
36
|
<component name="FileEditorManager">
|
33
|
-
<leaf>
|
34
|
-
<file leaf-file-name="freewifi.gemspec" pinned="false" current-in-tab="
|
37
|
+
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
38
|
+
<file leaf-file-name="freewifi.gemspec" pinned="false" current-in-tab="false">
|
35
39
|
<entry file="file://$PROJECT_DIR$/freewifi.gemspec">
|
36
40
|
<provider selected="true" editor-type-id="text-editor">
|
37
|
-
<state relative-caret-position="
|
38
|
-
<caret line="
|
41
|
+
<state relative-caret-position="525">
|
42
|
+
<caret line="35" column="3" lean-forward="true" selection-start-line="35" selection-start-column="3" selection-end-line="35" selection-end-column="3" />
|
43
|
+
<folding />
|
44
|
+
</state>
|
45
|
+
</provider>
|
46
|
+
</entry>
|
47
|
+
</file>
|
48
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
49
|
+
<entry file="file://$PROJECT_DIR$/lib/freewifi/version.rb">
|
50
|
+
<provider selected="true" editor-type-id="text-editor">
|
51
|
+
<state relative-caret-position="45">
|
52
|
+
<caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
53
|
+
<folding />
|
54
|
+
</state>
|
55
|
+
</provider>
|
56
|
+
</entry>
|
57
|
+
</file>
|
58
|
+
<file leaf-file-name="freewifi.rb" pinned="false" current-in-tab="true">
|
59
|
+
<entry file="file://$PROJECT_DIR$/lib/freewifi.rb">
|
60
|
+
<provider selected="true" editor-type-id="text-editor">
|
61
|
+
<state relative-caret-position="330">
|
62
|
+
<caret line="22" column="0" lean-forward="true" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
|
63
|
+
<folding />
|
64
|
+
</state>
|
65
|
+
</provider>
|
66
|
+
</entry>
|
67
|
+
</file>
|
68
|
+
<file leaf-file-name="hewhub_mtik.rb" pinned="false" current-in-tab="false">
|
69
|
+
<entry file="file://$PROJECT_DIR$/lib/freewifi/hewhub_mtik.rb">
|
70
|
+
<provider selected="true" editor-type-id="text-editor">
|
71
|
+
<state relative-caret-position="855">
|
72
|
+
<caret line="57" column="0" lean-forward="true" selection-start-line="57" selection-start-column="0" selection-end-line="57" selection-end-column="0" />
|
39
73
|
<folding />
|
40
74
|
</state>
|
41
75
|
</provider>
|
@@ -50,6 +84,9 @@
|
|
50
84
|
<option name="CHANGED_PATHS">
|
51
85
|
<list>
|
52
86
|
<option value="$PROJECT_DIR$/freewifi.gemspec" />
|
87
|
+
<option value="$PROJECT_DIR$/lib/freewifi/version.rb" />
|
88
|
+
<option value="$PROJECT_DIR$/lib/freewifi/hewhub_mtik.rb" />
|
89
|
+
<option value="$PROJECT_DIR$/lib/freewifi.rb" />
|
53
90
|
</list>
|
54
91
|
</option>
|
55
92
|
</component>
|
@@ -60,7 +97,7 @@
|
|
60
97
|
<sorting>DEFINITION_ORDER</sorting>
|
61
98
|
</component>
|
62
99
|
<component name="ProjectFrameBounds">
|
63
|
-
<option name="y" value="
|
100
|
+
<option name="y" value="44" />
|
64
101
|
<option name="width" value="1440" />
|
65
102
|
<option name="height" value="827" />
|
66
103
|
</component>
|
@@ -79,7 +116,6 @@
|
|
79
116
|
<foldersAlwaysOnTop value="true" />
|
80
117
|
</navigator>
|
81
118
|
<panes>
|
82
|
-
<pane id="Scratches" />
|
83
119
|
<pane id="Scope" />
|
84
120
|
<pane id="ProjectPane">
|
85
121
|
<subPane>
|
@@ -93,13 +129,48 @@
|
|
93
129
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
94
130
|
</PATH_ELEMENT>
|
95
131
|
</PATH>
|
132
|
+
<PATH>
|
133
|
+
<PATH_ELEMENT>
|
134
|
+
<option name="myItemId" value="freewifi" />
|
135
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
136
|
+
</PATH_ELEMENT>
|
137
|
+
<PATH_ELEMENT>
|
138
|
+
<option name="myItemId" value="freewifi" />
|
139
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
140
|
+
</PATH_ELEMENT>
|
141
|
+
<PATH_ELEMENT>
|
142
|
+
<option name="myItemId" value="lib" />
|
143
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
144
|
+
</PATH_ELEMENT>
|
145
|
+
</PATH>
|
146
|
+
<PATH>
|
147
|
+
<PATH_ELEMENT>
|
148
|
+
<option name="myItemId" value="freewifi" />
|
149
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
150
|
+
</PATH_ELEMENT>
|
151
|
+
<PATH_ELEMENT>
|
152
|
+
<option name="myItemId" value="freewifi" />
|
153
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
154
|
+
</PATH_ELEMENT>
|
155
|
+
<PATH_ELEMENT>
|
156
|
+
<option name="myItemId" value="lib" />
|
157
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
158
|
+
</PATH_ELEMENT>
|
159
|
+
<PATH_ELEMENT>
|
160
|
+
<option name="myItemId" value="freewifi" />
|
161
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
162
|
+
</PATH_ELEMENT>
|
163
|
+
</PATH>
|
96
164
|
</subPane>
|
97
165
|
</pane>
|
166
|
+
<pane id="Scratches" />
|
98
167
|
</panes>
|
99
168
|
</component>
|
100
169
|
<component name="PropertiesComponent">
|
101
170
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
102
171
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
172
|
+
<property name="settings.editor.selected.configurable" value="vcs.Subversion" />
|
173
|
+
<property name="project.settings.patched" value="true" />
|
103
174
|
</component>
|
104
175
|
<component name="RunDashboard">
|
105
176
|
<option name="ruleStates">
|
@@ -113,10 +184,133 @@
|
|
113
184
|
</list>
|
114
185
|
</option>
|
115
186
|
</component>
|
187
|
+
<component name="RunManager">
|
188
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
189
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
190
|
+
<module name="" />
|
191
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
192
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
193
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
194
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
195
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
196
|
+
<envs />
|
197
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
198
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
199
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
200
|
+
<COVERAGE_PATTERN ENABLED="true">
|
201
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
202
|
+
</COVERAGE_PATTERN>
|
203
|
+
</EXTENSION>
|
204
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
205
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
206
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
207
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
208
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
209
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
210
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
211
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
212
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
213
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
214
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
215
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
216
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
217
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
218
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
219
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
220
|
+
<method />
|
221
|
+
</configuration>
|
222
|
+
<configuration default="true" type="JavaScriptTestRunnerJest" factoryName="Jest">
|
223
|
+
<node-interpreter value="project" />
|
224
|
+
<working-dir value="" />
|
225
|
+
<envs />
|
226
|
+
<scope-kind value="ALL" />
|
227
|
+
<method />
|
228
|
+
</configuration>
|
229
|
+
<configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
|
230
|
+
<config-file value="" />
|
231
|
+
<node-interpreter value="project" />
|
232
|
+
<envs />
|
233
|
+
<method />
|
234
|
+
</configuration>
|
235
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
236
|
+
<method />
|
237
|
+
</configuration>
|
238
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
239
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
240
|
+
<module name="" />
|
241
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
242
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
243
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
244
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
245
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
246
|
+
<envs />
|
247
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
248
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
249
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
250
|
+
<COVERAGE_PATTERN ENABLED="true">
|
251
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
252
|
+
</COVERAGE_PATTERN>
|
253
|
+
</EXTENSION>
|
254
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
255
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
256
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
257
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
258
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
259
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
260
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
261
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
262
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
263
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
264
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
265
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
266
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
267
|
+
<method />
|
268
|
+
</configuration>
|
269
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
270
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
271
|
+
<module name="" />
|
272
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
273
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
274
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
275
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
276
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
277
|
+
<envs />
|
278
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
279
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
280
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
281
|
+
<COVERAGE_PATTERN ENABLED="true">
|
282
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
283
|
+
</COVERAGE_PATTERN>
|
284
|
+
</EXTENSION>
|
285
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
286
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
287
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
288
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
289
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
290
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
291
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
292
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
293
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
294
|
+
<method />
|
295
|
+
</configuration>
|
296
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
297
|
+
<method />
|
298
|
+
</configuration>
|
299
|
+
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
300
|
+
<command value="run" />
|
301
|
+
<scripts />
|
302
|
+
<node-interpreter value="project" />
|
303
|
+
<envs />
|
304
|
+
<method />
|
305
|
+
</configuration>
|
306
|
+
</component>
|
116
307
|
<component name="ShelveChangesManager" show_recycled="false">
|
117
308
|
<option name="remove_strategy" value="false" />
|
118
309
|
</component>
|
119
310
|
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
|
311
|
+
<component name="SvnConfiguration">
|
312
|
+
<configuration>$USER_HOME$/.subversion</configuration>
|
313
|
+
</component>
|
120
314
|
<component name="TaskManager">
|
121
315
|
<task active="true" id="Default" summary="Default task">
|
122
316
|
<changelist id="02df4d6c-c448-427d-afde-92139fadec23" name="Default" comment="" />
|
@@ -124,33 +318,36 @@
|
|
124
318
|
<option name="number" value="Default" />
|
125
319
|
<option name="presentableId" value="Default" />
|
126
320
|
<updated>1572677476725</updated>
|
127
|
-
<workItem from="1572677586997" duration="
|
321
|
+
<workItem from="1572677586997" duration="645000" />
|
322
|
+
<workItem from="1572678248146" duration="4000" />
|
323
|
+
<workItem from="1572678265848" duration="39000" />
|
324
|
+
<workItem from="1572679426127" duration="3566000" />
|
128
325
|
</task>
|
129
326
|
<servers />
|
130
327
|
</component>
|
131
328
|
<component name="TimeTrackingManager">
|
132
|
-
<option name="totallyTimeSpent" value="
|
329
|
+
<option name="totallyTimeSpent" value="4254000" />
|
133
330
|
</component>
|
134
331
|
<component name="ToolWindowManager">
|
135
|
-
<frame x="0" y="
|
332
|
+
<frame x="0" y="44" width="1440" height="827" extended-state="0" />
|
136
333
|
<editor active="true" />
|
137
334
|
<layout>
|
138
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.
|
335
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.26037195" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
139
336
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
140
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="
|
141
|
-
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="
|
142
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
143
|
-
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="
|
144
|
-
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.
|
145
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="
|
337
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
338
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
339
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32863188" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
340
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
341
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24964234" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
342
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
146
343
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
147
|
-
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="
|
344
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
148
345
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
149
|
-
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
150
346
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
151
347
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
152
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
153
348
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
349
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
350
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
154
351
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
155
352
|
</layout>
|
156
353
|
</component>
|
@@ -167,8 +364,56 @@
|
|
167
364
|
<component name="editorHistoryManager">
|
168
365
|
<entry file="file://$PROJECT_DIR$/freewifi.gemspec">
|
169
366
|
<provider selected="true" editor-type-id="text-editor">
|
170
|
-
<state relative-caret-position="
|
171
|
-
<caret line="
|
367
|
+
<state relative-caret-position="0">
|
368
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
369
|
+
<folding />
|
370
|
+
</state>
|
371
|
+
</provider>
|
372
|
+
</entry>
|
373
|
+
<entry file="file://$PROJECT_DIR$/freewifi.gemspec">
|
374
|
+
<provider selected="true" editor-type-id="text-editor">
|
375
|
+
<state relative-caret-position="0">
|
376
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
377
|
+
<folding />
|
378
|
+
</state>
|
379
|
+
</provider>
|
380
|
+
</entry>
|
381
|
+
<entry file="file://$PROJECT_DIR$/freewifi.gemspec">
|
382
|
+
<provider selected="true" editor-type-id="text-editor">
|
383
|
+
<state relative-caret-position="0">
|
384
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
385
|
+
<folding />
|
386
|
+
</state>
|
387
|
+
</provider>
|
388
|
+
</entry>
|
389
|
+
<entry file="file://$PROJECT_DIR$/freewifi.gemspec">
|
390
|
+
<provider selected="true" editor-type-id="text-editor">
|
391
|
+
<state relative-caret-position="525">
|
392
|
+
<caret line="35" column="3" lean-forward="true" selection-start-line="35" selection-start-column="3" selection-end-line="35" selection-end-column="3" />
|
393
|
+
<folding />
|
394
|
+
</state>
|
395
|
+
</provider>
|
396
|
+
</entry>
|
397
|
+
<entry file="file://$PROJECT_DIR$/lib/freewifi/version.rb">
|
398
|
+
<provider selected="true" editor-type-id="text-editor">
|
399
|
+
<state relative-caret-position="45">
|
400
|
+
<caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
401
|
+
<folding />
|
402
|
+
</state>
|
403
|
+
</provider>
|
404
|
+
</entry>
|
405
|
+
<entry file="file://$PROJECT_DIR$/lib/freewifi/hewhub_mtik.rb">
|
406
|
+
<provider selected="true" editor-type-id="text-editor">
|
407
|
+
<state relative-caret-position="855">
|
408
|
+
<caret line="57" column="0" lean-forward="true" selection-start-line="57" selection-start-column="0" selection-end-line="57" selection-end-column="0" />
|
409
|
+
<folding />
|
410
|
+
</state>
|
411
|
+
</provider>
|
412
|
+
</entry>
|
413
|
+
<entry file="file://$PROJECT_DIR$/lib/freewifi.rb">
|
414
|
+
<provider selected="true" editor-type-id="text-editor">
|
415
|
+
<state relative-caret-position="330">
|
416
|
+
<caret line="22" column="0" lean-forward="true" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
|
172
417
|
<folding />
|
173
418
|
</state>
|
174
419
|
</provider>
|
data/lib/freewifi.rb
CHANGED
@@ -2,7 +2,21 @@ require "freewifi/version"
|
|
2
2
|
|
3
3
|
module Freewifi
|
4
4
|
# Your code goes here...
|
5
|
-
def
|
6
|
-
|
5
|
+
def initialize(hub1ip, hub2ip, username_hub, password_hub)
|
6
|
+
@mtik_hub1_ip = hub1ip
|
7
|
+
@mtik_hub2_ip = hub2ip
|
8
|
+
@user_hub = username_hub
|
9
|
+
@password_hub = password_hub
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.init(hub1ip, hub2ip, username, password)
|
13
|
+
#@@mtik_hub1_ip = hub1ip
|
14
|
+
end
|
15
|
+
|
16
|
+
def add_eoip_for_mikr_hub(bridge_name, ap_ip_address, tunnel_id, tunnel_name)
|
17
|
+
newhub = NEWhub.new
|
18
|
+
newhub.add_eoip_for_mikr(bridge_name, ap_ip_address, tunnel_id, tunnel_name, @mtik_hub1_ip, @mtik_hub2_ip, @user_hub, @password_hub)
|
7
19
|
end
|
8
20
|
end
|
21
|
+
|
22
|
+
|
@@ -0,0 +1,85 @@
|
|
1
|
+
require 'net/ssh'
|
2
|
+
require 'ipaddr'
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
class NEWhub
|
7
|
+
|
8
|
+
|
9
|
+
def add_eoip_for_mikr(bridge_name, ap_ip_address, tunnel_id, tunnel_name, hub1, hub2, user_hub, password_hub)
|
10
|
+
|
11
|
+
Net::SSH.start(hub1, user_hub, :password => password_hub) do |ssh|
|
12
|
+
result = ssh.exec!("/interface eoip add remote-address=#{ap_ip_address} tunnel-id=#{tunnel_id} name=#{tunnel_name}")
|
13
|
+
result2 = ssh.exec!("/interface bridge port add bridge=#{bridge_name} interface=#{tunnel_name} unknown-multicast-flood=no unknown-unicast-flood=no")
|
14
|
+
end
|
15
|
+
#Net::SSH.stop
|
16
|
+
|
17
|
+
Net::SSH.start(hub2, user_hub, :password => password_hub) do |ssh|
|
18
|
+
result = ssh.exec!("/interface eoip add remote-address=#{ap_ip_address} tunnel-id=#{tunnel_id} name=#{tunnel_name}")
|
19
|
+
result2 = ssh.exec!("/interface bridge port add bridge=#{bridge_name} interface=#{tunnel_name} unknown-multicast-flood=no unknown-unicast-flood=no")
|
20
|
+
end
|
21
|
+
#Net::SSH.stop
|
22
|
+
end
|
23
|
+
|
24
|
+
def del_eoip_for_mikr(bridge_name, ap_ip_address, tunnel_id, tunnel_name, hub1, hub2, user_hub, password_hub)
|
25
|
+
|
26
|
+
Net::SSH.start(hub1, user_hub, :password => password_hub) do |ssh|
|
27
|
+
#result = ssh.exec!("/interface eoip print where tunnel-id=#{tunnel_id}")
|
28
|
+
#p result
|
29
|
+
result = ssh.exec!("/interface eoip print where tunnel-id=#{tunnel_id}")
|
30
|
+
regimsi = /\s+name=\"(.+)\"\s+/
|
31
|
+
m1 = regimsi.match(result)[1]
|
32
|
+
sleep 0.2
|
33
|
+
result2 = ssh.exec!("/interface bridge port remove [/interface bridge port find interface=#{m1}]")
|
34
|
+
sleep 0.2
|
35
|
+
result3 = ssh.exec!("/interface eoip remove [/interface eoip find where tunnel-id=#{tunnel_id}]")
|
36
|
+
|
37
|
+
#result2 = ssh.exec!("interface bridge port add bridge=#{bridge_name} interface=#{tunnel_name}")
|
38
|
+
end
|
39
|
+
#Net::SSH.stop
|
40
|
+
|
41
|
+
Net::SSH.start(hub2, user_hub, :password => password_hub) do |ssh|
|
42
|
+
result = ssh.exec!("/interface eoip print where tunnel-id=#{tunnel_id}")
|
43
|
+
regimsi = /\s+name=\"(.+)\"\s+/
|
44
|
+
m1 = regimsi.match(result)[1]
|
45
|
+
sleep 0.2
|
46
|
+
result2 = ssh.exec!("/interface bridge port remove [/interface bridge port find interface=#{m1}]")
|
47
|
+
sleep 0.2
|
48
|
+
result3 = ssh.exec!("/interface eoip remove [/interface eoip find where tunnel-id=#{tunnel_id}]")
|
49
|
+
|
50
|
+
#result = ssh.exec!("interface eoip add remote-address=#{ap_ip_address} tunnel-id=#{tunnel_id} name=#{tunnel_name}")
|
51
|
+
#result2 = ssh.exec!("interface bridge port add bridge=#{bridge_name} interface=#{tunnel_name}")
|
52
|
+
end
|
53
|
+
#Net::SSH.stop
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
def ap_get_info(ap_ip_address, ap_login, ap_password)
|
61
|
+
res = ""
|
62
|
+
Net::SSH.start(ap_ip_address, ap_login, :password => ap_password) do |ssh|
|
63
|
+
result = ssh.exec!("system identity print")
|
64
|
+
dff = result.to_s
|
65
|
+
res = dff.gsub!("name: ","").gsub!("\r\n\r\n","").gsub!(" ","")
|
66
|
+
end
|
67
|
+
res
|
68
|
+
end
|
69
|
+
|
70
|
+
def ap_tun_rewrite(ap_ip_address,tun_id, ap_login, ap_password)
|
71
|
+
res = ""
|
72
|
+
Net::SSH.start(ap_ip_address, ap_login, :password => ap_password) do |ssh|
|
73
|
+
result = ssh.exec!("/interface eoip set tunnel_to_hab1 tunnel-id=#{tun_id} remote-address=172.24.202.145")
|
74
|
+
end
|
75
|
+
res
|
76
|
+
end
|
77
|
+
|
78
|
+
|
79
|
+
def mikr_tunnelid_gen()
|
80
|
+
t_id_min = 10001
|
81
|
+
t_id_max = 65535
|
82
|
+
end
|
83
|
+
|
84
|
+
|
85
|
+
end
|
data/lib/freewifi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freewifi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dzmitry Buynovskiy
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- bin/setup
|
77
77
|
- freewifi.gemspec
|
78
78
|
- lib/freewifi.rb
|
79
|
+
- lib/freewifi/hewhub_mtik.rb
|
79
80
|
- lib/freewifi/version.rb
|
80
81
|
homepage: https://rubygems.org/gems/freewifi
|
81
82
|
licenses:
|