freewifi 0.2.2 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.idea/freewifi.iml +78 -2
- data/.idea/inspectionProfiles/Project_Default.xml +0 -0
- data/.idea/misc.xml +0 -0
- data/.idea/modules.xml +0 -0
- data/.idea/runConfigurations/get_iwag_data.xml +21 -0
- data/.idea/vcs.xml +0 -0
- data/.idea/workspace.xml +330 -199
- data/.travis.yml +0 -0
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +1 -1
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/freewifi.gemspec +23 -23
- data/lib/freewifi/additional/additional_functions.rb +2 -2
- data/lib/freewifi/cisco/any/cisco_schemes_conf_gen.rb +0 -0
- data/lib/freewifi/cisco/iwag/get_iwag_data.rb +4 -12
- data/lib/freewifi/cisco/iwag/iwag_database_worker.rb +4 -0
- data/lib/freewifi/cisco/iwag/iwag_telnet_connector.rb +3 -3
- data/lib/freewifi/config.rb +1 -1
- data/lib/freewifi/database/mongo/mongoconnector.rb +0 -0
- data/lib/freewifi/database/mysql/database_methods_wifi.rb +0 -0
- data/lib/freewifi/general/wifi_portal_procedures.rb +70 -51
- data/lib/freewifi/huawei/hua_controller_class.rb +0 -0
- data/lib/freewifi/mikrotik/automation/get_data_ssh_fun.rb +0 -0
- data/lib/freewifi/mikrotik/getsubscribermikrotik.rb +0 -0
- data/lib/freewifi/mikrotik/newhub_mtik_api.rb +171 -75
- data/lib/freewifi/mikrotik/newhub_mtik_ssh.rb +11 -11
- data/lib/freewifi/mikrotik/schemes_conf_gen.rb +2 -2
- data/lib/freewifi/params.rb +0 -0
- data/lib/freewifi/version.rb +1 -1
- data/lib/freewifi.rb +32 -25
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec36201b1162a48d8c12b57c6a5701ccfb6620f1
|
4
|
+
data.tar.gz: c59d47b6b66008f86e5ed0f5f6ae8465c60848d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be9c3f92497e0e07db39c896e7eab0b74b3caa523728b171a239429bb2f29d27b8d59b6330a6a14af118bb6ec51365eb8364fcb35207be189ea053518c9542cc
|
7
|
+
data.tar.gz: a0067fae2099a8741ee2e452fd27b4743035ef0c83b2fb4f41ef697e3ad2790007269eccddd19d4e0ac9284a36520da259683f0ce45d0b5bf596c9f779c99384
|
data/.gitignore
CHANGED
File without changes
|
data/.idea/freewifi.iml
CHANGED
@@ -96,7 +96,7 @@
|
|
96
96
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
97
97
|
<method />
|
98
98
|
</configuration>
|
99
|
-
<configuration default="false" name="get_iwag_data" type="RubyRunConfigurationType" factoryName="Ruby"
|
99
|
+
<configuration default="false" name="get_iwag_data" type="RubyRunConfigurationType" factoryName="Ruby">
|
100
100
|
<module name="freewifi" />
|
101
101
|
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
102
102
|
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/freewifi/cisco/iwag" />
|
@@ -115,6 +115,82 @@
|
|
115
115
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
116
116
|
<method />
|
117
117
|
</configuration>
|
118
|
+
<configuration default="false" name="sql_delete_not_necc" type="RubyRunConfigurationType" factoryName="Ruby">
|
119
|
+
<module name="freewifi" />
|
120
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
121
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
122
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
123
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
124
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
125
|
+
<envs />
|
126
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
127
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
128
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
129
|
+
<COVERAGE_PATTERN ENABLED="true">
|
130
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
131
|
+
</COVERAGE_PATTERN>
|
132
|
+
</EXTENSION>
|
133
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/sql_delete_not_necc.rb" />
|
134
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
135
|
+
<method />
|
136
|
+
</configuration>
|
137
|
+
<configuration default="false" name="test2" type="RubyRunConfigurationType" factoryName="Ruby">
|
138
|
+
<module name="freewifi" />
|
139
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
140
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
141
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
142
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
143
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
144
|
+
<envs />
|
145
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
146
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
147
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
148
|
+
<COVERAGE_PATTERN ENABLED="true">
|
149
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
150
|
+
</COVERAGE_PATTERN>
|
151
|
+
</EXTENSION>
|
152
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/test2.rb" />
|
153
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
154
|
+
<method />
|
155
|
+
</configuration>
|
156
|
+
<configuration default="false" name="ssh_mtik_1" type="RubyRunConfigurationType" factoryName="Ruby">
|
157
|
+
<module name="freewifi" />
|
158
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
159
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
160
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
161
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
162
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
163
|
+
<envs />
|
164
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
165
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
166
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
167
|
+
<COVERAGE_PATTERN ENABLED="true">
|
168
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
169
|
+
</COVERAGE_PATTERN>
|
170
|
+
</EXTENSION>
|
171
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/ssh_mtik_1.rb" />
|
172
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
173
|
+
<method />
|
174
|
+
</configuration>
|
175
|
+
<configuration default="false" name="ssh_mtik_2" type="RubyRunConfigurationType" factoryName="Ruby">
|
176
|
+
<module name="freewifi" />
|
177
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
178
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
179
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
180
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
181
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
182
|
+
<envs />
|
183
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
184
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
185
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
186
|
+
<COVERAGE_PATTERN ENABLED="true">
|
187
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
188
|
+
</COVERAGE_PATTERN>
|
189
|
+
</EXTENSION>
|
190
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/ssh_mtik_2.rb" />
|
191
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
192
|
+
<method />
|
193
|
+
</configuration>
|
118
194
|
</component>
|
119
195
|
<component name="NewModuleRootManager">
|
120
196
|
<content url="file://$MODULE_DIR$" />
|
@@ -130,7 +206,7 @@
|
|
130
206
|
<orderEntry type="library" scope="PROVIDED" name="ipaddr (v1.2.2, RVM: ruby-2.4.1) [gem]" level="application" />
|
131
207
|
<orderEntry type="library" scope="PROVIDED" name="json (v2.3.0, RVM: ruby-2.4.1) [gem]" level="application" />
|
132
208
|
<orderEntry type="library" scope="PROVIDED" name="mini_portile2 (v2.4.0, RVM: ruby-2.4.1) [gem]" level="application" />
|
133
|
-
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.14.
|
209
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.14.2, RVM: ruby-2.4.1) [gem]" level="application" />
|
134
210
|
<orderEntry type="library" scope="PROVIDED" name="mongo (v2.11.4, RVM: ruby-2.4.1) [gem]" level="application" />
|
135
211
|
<orderEntry type="library" scope="PROVIDED" name="mtik (v4.0.3, RVM: ruby-2.4.1) [gem]" level="application" />
|
136
212
|
<orderEntry type="library" scope="PROVIDED" name="mysql2 (v0.5.3, RVM: ruby-2.4.1) [gem]" level="application" />
|
File without changes
|
data/.idea/misc.xml
CHANGED
File without changes
|
data/.idea/modules.xml
CHANGED
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<component name="ProjectRunConfigurationManager">
|
2
|
+
<configuration default="false" name="get_iwag_data" type="RubyRunConfigurationType" factoryName="Ruby">
|
3
|
+
<module name="freewifi" />
|
4
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
5
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/freewifi/cisco/iwag" />
|
6
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
7
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
8
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
9
|
+
<envs />
|
10
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
11
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
12
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
13
|
+
<COVERAGE_PATTERN ENABLED="true">
|
14
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
15
|
+
</COVERAGE_PATTERN>
|
16
|
+
</EXTENSION>
|
17
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/freewifi/cisco/iwag/get_iwag_data.rb" />
|
18
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
19
|
+
<method />
|
20
|
+
</configuration>
|
21
|
+
</component>
|
data/.idea/vcs.xml
CHANGED
File without changes
|