freewifi 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/freewifi.iml +69 -3
- data/.idea/workspace.xml +652 -34
- data/freewifi.gemspec +8 -2
- data/lib/freewifi/additional/additional_functions.rb +38 -0
- data/lib/freewifi/database/mongo/mongoconnector.rb +89 -0
- data/lib/freewifi/database/mysql/database_methods.rb +89 -0
- data/lib/freewifi/mikrotik/getsubscribermikrotik.rb +0 -0
- data/lib/freewifi/mikrotik/hewhub_mtik_ssh.rb +204 -0
- data/lib/freewifi/version.rb +1 -1
- data/lib/freewifi.rb +137 -6
- metadata +99 -11
- data/lib/freewifi/hewhub_mtik.rb +0 -85
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c54a90d059d00b5db738b84aa5a2caa533699b19
|
4
|
+
data.tar.gz: 3fadd571c3e5f9bb3a856aa88af7b8a7f80ef223
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 914c4f949ff352b3e08ca1a79d5500e253f2bc5d03263736b1b94d920a518132de3f0a12898a086e8b9c946cffa9049bdb321032d876310ed5a54791a10f8760
|
7
|
+
data.tar.gz: e2c4dbe414c54c6c252e3e8df144f6a3ce2ba2d20d7cec652915989551cde497fb29f7fdfb736898db6a1b15c8a59892428c205f4deab3dee6d029d3301da12d
|
data/.idea/freewifi.iml
CHANGED
@@ -1,11 +1,77 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="ModuleRunConfigurationManager">
|
4
|
+
<configuration default="false" name="test_helper" type="RubyRunConfigurationType" factoryName="Ruby">
|
5
|
+
<module name="freewifi" />
|
6
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
7
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
8
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
9
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
10
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
11
|
+
<envs />
|
12
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
13
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
14
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
15
|
+
<COVERAGE_PATTERN ENABLED="true">
|
16
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
17
|
+
</COVERAGE_PATTERN>
|
18
|
+
</EXTENSION>
|
19
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/test_helper.rb" />
|
20
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
21
|
+
<method />
|
22
|
+
</configuration>
|
23
|
+
<configuration default="false" name="hewhub_mtik_ssh" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
24
|
+
<module name="freewifi" />
|
25
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
26
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/freewifi/mikrotik" />
|
27
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
28
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
29
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
30
|
+
<envs />
|
31
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
32
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
33
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
34
|
+
<COVERAGE_PATTERN ENABLED="true">
|
35
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
36
|
+
</COVERAGE_PATTERN>
|
37
|
+
</EXTENSION>
|
38
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/freewifi/mikrotik/hewhub_mtik_ssh.rb" />
|
39
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
40
|
+
<method />
|
41
|
+
</configuration>
|
42
|
+
<configuration default="false" name="test" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
43
|
+
<module name="freewifi" />
|
44
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
45
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
46
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
47
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
48
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
49
|
+
<envs />
|
50
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
51
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
52
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
53
|
+
<COVERAGE_PATTERN ENABLED="true">
|
54
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
55
|
+
</COVERAGE_PATTERN>
|
56
|
+
</EXTENSION>
|
57
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/test.rb" />
|
58
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
59
|
+
<method />
|
60
|
+
</configuration>
|
61
|
+
</component>
|
3
62
|
<component name="NewModuleRootManager">
|
4
63
|
<content url="file://$MODULE_DIR$" />
|
5
64
|
<orderEntry type="inheritedJdk" />
|
6
65
|
<orderEntry type="sourceFolder" forTests="false" />
|
7
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
8
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
9
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
66
|
+
<orderEntry type="library" scope="PROVIDED" name="bson (v4.8.2, RVM: ruby-2.4.1) [gem]" level="application" />
|
67
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.4.1) [gem]" level="application" />
|
68
|
+
<orderEntry type="library" scope="PROVIDED" name="date (v3.0.0, RVM: ruby-2.4.1) [gem]" level="application" />
|
69
|
+
<orderEntry type="library" scope="PROVIDED" name="ipaddr (v1.2.2, RVM: ruby-2.4.1) [gem]" level="application" />
|
70
|
+
<orderEntry type="library" scope="PROVIDED" name="json (v2.3.0, RVM: ruby-2.4.1) [gem]" level="application" />
|
71
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.13.0, RVM: ruby-2.4.1) [gem]" level="application" />
|
72
|
+
<orderEntry type="library" scope="PROVIDED" name="mongo (v2.11.4, RVM: ruby-2.4.1) [gem]" level="application" />
|
73
|
+
<orderEntry type="library" scope="PROVIDED" name="mysql2 (v0.5.3, RVM: ruby-2.4.1) [gem]" level="application" />
|
74
|
+
<orderEntry type="library" scope="PROVIDED" name="net-ssh (v4.0.1, RVM: ruby-2.4.1) [gem]" level="application" />
|
75
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.1, RVM: ruby-2.4.1) [gem]" level="application" />
|
10
76
|
</component>
|
11
77
|
</module>
|