imperituroard 0.1.5 → 0.1.7

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
  SHA1:
3
- metadata.gz: 831a8fd5ab1b2c8bcb769edbc2bd4227705b128c
4
- data.tar.gz: eaf83891e7582318b5bc94a21d8e1fc29acc1f67
3
+ metadata.gz: ea2e261cb7b266d484bee777701f4ba81f6e89f2
4
+ data.tar.gz: 878e56910db4b711f8fc924e152d18dbc43bfc02
5
5
  SHA512:
6
- metadata.gz: 42e52f29dde286224d639a23e041769e18e6f85f3700fb763a60017bbceac7d1edbd9be1c398e52e615929b18cd3636b604f20ddeb8c52fb11f4e77a1b198486
7
- data.tar.gz: ffb869ce59e28b2b16ed2460f8fc3aa448dd5ad54f863d720eb70c2278da6b041af78304fe25c70289c4460579ae572306b86b53fb8e6e03e6d3f7b914dcc2f8
6
+ metadata.gz: a5fc1bd349752041cccf2f85531acb66871452692c4f1889db34d11d8b23168653e56fa0de80eb23cdfba9d87010931e28bea8ae8927fe51835f6e9a64f17168
7
+ data.tar.gz: 7f2aa2e84ae69c5ed224350dda3a1523d7fa88fc2099184d67ad20a17b1db8a8b2f2e9e6bc22e394d5f764e0a6a6bf624c82f542d197137742f9003dbdce4197
data/.DS_Store ADDED
Binary file
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build imperituroard-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install imperituroard-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install imperituroard-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push imperituroard-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,21 @@
1
+ <component name="ProjectRunConfigurationManager">
2
+ <configuration default="false" name="test_helper" 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$/test" />
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$/test/test_helper.rb" />
18
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
19
+ <method />
20
+ </configuration>
21
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
data/.idea/workspace.xml CHANGED
@@ -56,7 +56,7 @@
56
56
  </component>
57
57
  <component name="ChangesViewManager" flattened_view="false" />
58
58
  <component name="CoverageDataManager">
59
- <SUITE FILE_PATH="coverage/imperituroard@phpipamcps.coverage" NAME="phpipamcps Coverage Results" MODIFIED="1583959797878" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib/imperituroard" MODULE_NAME="imperituroard" />
59
+ <SUITE FILE_PATH="coverage/imperituroard@phpipamcps.coverage" NAME="phpipamcps Coverage Results" MODIFIED="1583992784576" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib/imperituroard" MODULE_NAME="imperituroard" />
60
60
  <SUITE FILE_PATH="coverage/imperituroard@imperituroard__1_.coverage" NAME="imperituroard (1) Coverage Results" MODIFIED="1583954856183" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="imperituroard" />
61
61
  <SUITE FILE_PATH="coverage/imperituroard@phpipamdb.coverage" NAME="phpipamdb Coverage Results" MODIFIED="1583953969990" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib/imperituroard" MODULE_NAME="imperituroard" />
62
62
  <SUITE FILE_PATH="coverage/imperituroard@imperituroard.coverage" NAME="imperituroard Coverage Results" MODIFIED="1583952809632" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="imperituroard" />
@@ -65,11 +65,31 @@
65
65
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
66
66
  <component name="FileEditorManager">
67
67
  <leaf>
68
- <file leaf-file-name="imperituroard.rb" pinned="false" current-in-tab="true">
68
+ <file leaf-file-name="freewifi.gemspec" pinned="false" current-in-tab="false">
69
+ <entry file="file://$PROJECT_DIR$/../../freewifi/freewifi.gemspec">
70
+ <provider selected="true" editor-type-id="text-editor">
71
+ <state relative-caret-position="180">
72
+ <caret line="12" column="27" lean-forward="false" selection-start-line="12" selection-start-column="27" selection-end-line="12" selection-end-column="48" />
73
+ <folding />
74
+ </state>
75
+ </provider>
76
+ </entry>
77
+ </file>
78
+ <file leaf-file-name="imperituroard.rb" pinned="false" current-in-tab="false">
69
79
  <entry file="file://$PROJECT_DIR$/lib/imperituroard.rb">
70
80
  <provider selected="true" editor-type-id="text-editor">
71
- <state relative-caret-position="284">
72
- <caret line="58" column="0" lean-forward="true" selection-start-line="58" selection-start-column="0" selection-end-line="58" selection-end-column="0" />
81
+ <state relative-caret-position="607">
82
+ <caret line="54" column="11" lean-forward="true" selection-start-line="54" selection-start-column="11" selection-end-line="54" selection-end-column="11" />
83
+ <folding />
84
+ </state>
85
+ </provider>
86
+ </entry>
87
+ </file>
88
+ <file leaf-file-name="phpipamdb.rb" pinned="false" current-in-tab="false">
89
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb">
90
+ <provider selected="true" editor-type-id="text-editor">
91
+ <state relative-caret-position="314">
92
+ <caret line="23" column="17" lean-forward="false" selection-start-line="23" selection-start-column="17" selection-end-line="23" selection-end-column="17" />
73
93
  <folding />
74
94
  </state>
75
95
  </provider>
@@ -78,8 +98,8 @@
78
98
  <file leaf-file-name="phpipamcps.rb" pinned="false" current-in-tab="false">
79
99
  <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamcps.rb">
80
100
  <provider selected="true" editor-type-id="text-editor">
81
- <state relative-caret-position="284">
82
- <caret line="142" column="0" lean-forward="true" selection-start-line="142" selection-start-column="0" selection-end-line="142" selection-end-column="0" />
101
+ <state relative-caret-position="-91">
102
+ <caret line="124" column="6" lean-forward="false" selection-start-line="124" selection-start-column="6" selection-end-line="124" selection-end-column="6" />
83
103
  <folding />
84
104
  </state>
85
105
  </provider>
@@ -118,19 +138,22 @@
118
138
  <file leaf-file-name="imperituroard.gemspec" pinned="false" current-in-tab="false">
119
139
  <entry file="file://$PROJECT_DIR$/imperituroard.gemspec">
120
140
  <provider selected="true" editor-type-id="text-editor">
121
- <state relative-caret-position="239">
122
- <caret line="35" column="39" lean-forward="false" selection-start-line="35" selection-start-column="39" selection-end-line="35" selection-end-column="39" />
141
+ <state relative-caret-position="105">
142
+ <caret line="7" column="0" lean-forward="true" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
123
143
  <folding />
124
144
  </state>
125
145
  </provider>
126
146
  </entry>
127
147
  </file>
128
- <file leaf-file-name="console" pinned="false" current-in-tab="false">
129
- <entry file="file://$PROJECT_DIR$/bin/console">
130
- <provider selected="true" editor-type-id="text-editor">
131
- <state relative-caret-position="0">
132
- <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
133
- <folding />
148
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
149
+ <entry file="file://$PROJECT_DIR$/README.md">
150
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
151
+ <state split_layout="SPLIT">
152
+ <first_editor relative-caret-position="0">
153
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
154
+ <folding />
155
+ </first_editor>
156
+ <second_editor />
134
157
  </state>
135
158
  </provider>
136
159
  </entry>
@@ -139,7 +162,7 @@
139
162
  <entry file="file://$PROJECT_DIR$/lib/imperituroard/version.rb">
140
163
  <provider selected="true" editor-type-id="text-editor">
141
164
  <state relative-caret-position="45">
142
- <caret line="3" column="0" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
165
+ <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
143
166
  <folding />
144
167
  </state>
145
168
  </provider>
@@ -148,19 +171,21 @@
148
171
  </leaf>
149
172
  </component>
150
173
  <component name="Git.Settings">
174
+ <option name="ROOT_SYNC" value="SYNC" />
151
175
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
152
176
  </component>
153
177
  <component name="IdeDocumentHistory">
154
178
  <option name="CHANGED_PATHS">
155
179
  <list>
156
180
  <option value="$PROJECT_DIR$/../../freewifi/lib/freewifi.rb" />
157
- <option value="$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb" />
158
181
  <option value="$PROJECT_DIR$/test/imperituroard_test.rb" />
159
- <option value="$PROJECT_DIR$/lib/imperituroard/version.rb" />
160
- <option value="$PROJECT_DIR$/imperituroard.gemspec" />
161
182
  <option value="$PROJECT_DIR$/Gemfile" />
162
- <option value="$PROJECT_DIR$/lib/imperituroard/phpipamcps.rb" />
163
183
  <option value="$PROJECT_DIR$/lib/imperituroard.rb" />
184
+ <option value="$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb" />
185
+ <option value="$PROJECT_DIR$/lib/imperituroard/version.rb" />
186
+ <option value="$PROJECT_DIR$/lib/imperituroard/phpipamcps.rb" />
187
+ <option value="$PROJECT_DIR$/../../freewifi/freewifi.gemspec" />
188
+ <option value="$PROJECT_DIR$/imperituroard.gemspec" />
164
189
  </list>
165
190
  </option>
166
191
  </component>
@@ -171,8 +196,8 @@
171
196
  <sorting>DEFINITION_ORDER</sorting>
172
197
  </component>
173
198
  <component name="ProjectFrameBounds">
174
- <option name="x" value="-50" />
175
- <option name="y" value="189" />
199
+ <option name="x" value="24" />
200
+ <option name="y" value="101" />
176
201
  <option name="width" value="1313" />
177
202
  <option name="height" value="718" />
178
203
  </component>
@@ -194,58 +219,6 @@
194
219
  <panes>
195
220
  <pane id="ProjectPane">
196
221
  <subPane>
197
- <PATH>
198
- <PATH_ELEMENT>
199
- <option name="myItemId" value="imperituroard" />
200
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
201
- </PATH_ELEMENT>
202
- <PATH_ELEMENT>
203
- <option name="myItemId" value="freewifi" />
204
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
205
- </PATH_ELEMENT>
206
- </PATH>
207
- <PATH>
208
- <PATH_ELEMENT>
209
- <option name="myItemId" value="imperituroard" />
210
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
211
- </PATH_ELEMENT>
212
- <PATH_ELEMENT>
213
- <option name="myItemId" value="freewifi" />
214
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
215
- </PATH_ELEMENT>
216
- <PATH_ELEMENT>
217
- <option name="myItemId" value="test" />
218
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
219
- </PATH_ELEMENT>
220
- </PATH>
221
- <PATH>
222
- <PATH_ELEMENT>
223
- <option name="myItemId" value="imperituroard" />
224
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
225
- </PATH_ELEMENT>
226
- <PATH_ELEMENT>
227
- <option name="myItemId" value="freewifi" />
228
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
229
- </PATH_ELEMENT>
230
- <PATH_ELEMENT>
231
- <option name="myItemId" value="lib" />
232
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
233
- </PATH_ELEMENT>
234
- </PATH>
235
- <PATH>
236
- <PATH_ELEMENT>
237
- <option name="myItemId" value="imperituroard" />
238
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
239
- </PATH_ELEMENT>
240
- <PATH_ELEMENT>
241
- <option name="myItemId" value="freewifi" />
242
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
243
- </PATH_ELEMENT>
244
- <PATH_ELEMENT>
245
- <option name="myItemId" value="bin" />
246
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
247
- </PATH_ELEMENT>
248
- </PATH>
249
222
  <PATH>
250
223
  <PATH_ELEMENT>
251
224
  <option name="myItemId" value="imperituroard" />
@@ -612,7 +585,7 @@
612
585
  <option name="number" value="Default" />
613
586
  <option name="presentableId" value="Default" />
614
587
  <updated>1583947339097</updated>
615
- <workItem from="1583947642761" duration="11279000" />
588
+ <workItem from="1583947642761" duration="13117000" />
616
589
  </task>
617
590
  <servers />
618
591
  </component>
@@ -622,10 +595,10 @@
622
595
  </history-entry>
623
596
  </component>
624
597
  <component name="TimeTrackingManager">
625
- <option name="totallyTimeSpent" value="11279000" />
598
+ <option name="totallyTimeSpent" value="13117000" />
626
599
  </component>
627
600
  <component name="ToolWindowManager">
628
- <frame x="-50" y="189" width="1313" height="718" extended-state="0" />
601
+ <frame x="24" y="101" width="1313" height="718" extended-state="0" />
629
602
  <editor active="true" />
630
603
  <layout>
631
604
  <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24940991" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
@@ -666,14 +639,6 @@
666
639
  </state>
667
640
  </provider>
668
641
  </entry>
669
- <entry file="file://$PROJECT_DIR$/../../freewifi/freewifi.gemspec">
670
- <provider selected="true" editor-type-id="text-editor">
671
- <state relative-caret-position="285">
672
- <caret line="19" column="63" lean-forward="false" selection-start-line="19" selection-start-column="42" selection-end-line="19" selection-end-column="63" />
673
- <folding />
674
- </state>
675
- </provider>
676
- </entry>
677
642
  <entry file="file://$PROJECT_DIR$/../../freewifi/Gemfile">
678
643
  <provider selected="true" editor-type-id="text-editor">
679
644
  <state relative-caret-position="0">
@@ -714,61 +679,80 @@
714
679
  </state>
715
680
  </provider>
716
681
  </entry>
717
- <entry file="file://$PROJECT_DIR$/lib/imperituroard/version.rb">
682
+ <entry file="file://$PROJECT_DIR$/Gemfile">
718
683
  <provider selected="true" editor-type-id="text-editor">
719
- <state relative-caret-position="45">
720
- <caret line="3" column="0" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
684
+ <state relative-caret-position="150">
685
+ <caret line="10" column="9" lean-forward="false" selection-start-line="10" selection-start-column="9" selection-end-line="10" selection-end-column="9" />
721
686
  <folding />
722
687
  </state>
723
688
  </provider>
724
689
  </entry>
725
- <entry file="file://$PROJECT_DIR$/imperituroard.gemspec">
690
+ <entry file="file://$PROJECT_DIR$/test/imperituroard_test.rb">
726
691
  <provider selected="true" editor-type-id="text-editor">
727
- <state relative-caret-position="239">
728
- <caret line="35" column="39" lean-forward="false" selection-start-line="35" selection-start-column="39" selection-end-line="35" selection-end-column="39" />
692
+ <state relative-caret-position="165">
693
+ <caret line="11" column="0" lean-forward="false" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
729
694
  <folding />
730
695
  </state>
731
696
  </provider>
732
697
  </entry>
733
- <entry file="file://$PROJECT_DIR$/Gemfile">
698
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb">
734
699
  <provider selected="true" editor-type-id="text-editor">
735
- <state relative-caret-position="150">
736
- <caret line="10" column="9" lean-forward="false" selection-start-line="10" selection-start-column="9" selection-end-line="10" selection-end-column="9" />
700
+ <state relative-caret-position="314">
701
+ <caret line="23" column="17" lean-forward="false" selection-start-line="23" selection-start-column="17" selection-end-line="23" selection-end-column="17" />
737
702
  <folding />
738
703
  </state>
739
704
  </provider>
740
705
  </entry>
741
- <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb">
706
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard.rb">
742
707
  <provider selected="true" editor-type-id="text-editor">
743
- <state relative-caret-position="20">
744
- <caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
708
+ <state relative-caret-position="607">
709
+ <caret line="54" column="11" lean-forward="true" selection-start-line="54" selection-start-column="11" selection-end-line="54" selection-end-column="11" />
745
710
  <folding />
746
711
  </state>
747
712
  </provider>
748
713
  </entry>
749
- <entry file="file://$PROJECT_DIR$/test/imperituroard_test.rb">
714
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard/version.rb">
750
715
  <provider selected="true" editor-type-id="text-editor">
751
- <state relative-caret-position="165">
752
- <caret line="11" column="0" lean-forward="false" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
716
+ <state relative-caret-position="45">
717
+ <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
753
718
  <folding />
754
719
  </state>
755
720
  </provider>
756
721
  </entry>
757
722
  <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamcps.rb">
758
723
  <provider selected="true" editor-type-id="text-editor">
759
- <state relative-caret-position="284">
760
- <caret line="142" column="0" lean-forward="true" selection-start-line="142" selection-start-column="0" selection-end-line="142" selection-end-column="0" />
724
+ <state relative-caret-position="-91">
725
+ <caret line="124" column="6" lean-forward="false" selection-start-line="124" selection-start-column="6" selection-end-line="124" selection-end-column="6" />
761
726
  <folding />
762
727
  </state>
763
728
  </provider>
764
729
  </entry>
765
- <entry file="file://$PROJECT_DIR$/lib/imperituroard.rb">
730
+ <entry file="file://$PROJECT_DIR$/../../freewifi/freewifi.gemspec">
766
731
  <provider selected="true" editor-type-id="text-editor">
767
- <state relative-caret-position="284">
768
- <caret line="58" column="0" lean-forward="true" selection-start-line="58" selection-start-column="0" selection-end-line="58" selection-end-column="0" />
732
+ <state relative-caret-position="180">
733
+ <caret line="12" column="27" lean-forward="false" selection-start-line="12" selection-start-column="27" selection-end-line="12" selection-end-column="48" />
769
734
  <folding />
770
735
  </state>
771
736
  </provider>
772
737
  </entry>
738
+ <entry file="file://$PROJECT_DIR$/imperituroard.gemspec">
739
+ <provider selected="true" editor-type-id="text-editor">
740
+ <state relative-caret-position="105">
741
+ <caret line="7" column="0" lean-forward="true" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
742
+ <folding />
743
+ </state>
744
+ </provider>
745
+ </entry>
746
+ <entry file="file://$PROJECT_DIR$/README.md">
747
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
748
+ <state split_layout="SPLIT">
749
+ <first_editor relative-caret-position="0">
750
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
751
+ <folding />
752
+ </first_editor>
753
+ <second_editor />
754
+ </state>
755
+ </provider>
756
+ </entry>
773
757
  </component>
774
758
  </project>
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["Dzmitry Buynovskiy"]
7
7
  spec.email = ["imperituro.ard@gmail.com"]
8
8
 
9
- spec.summary = %q{https://rubygems.org/.}
10
- spec.description = %q{https://rubygems.org/ ertr.}
9
+ spec.summary = %q{imperituroard gem}
10
+ spec.description = %q{Gem from imperituroard for different actions}
11
11
  spec.homepage = "https://rubygems.org/"
12
12
  spec.license = "MIT"
13
13
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
data/lib/.DS_Store ADDED
Binary file
data/lib/imperituroard.rb CHANGED
@@ -45,9 +45,17 @@ class Pipam
45
45
  def final_change_msisdn(old_msisdn, new_msisdn)
46
46
  dst_num_exists = database_class.check_if_msisdn_exists(new_msisdn, "ipaddresses")
47
47
  if dst_num_exists == 0
48
- database_class.update_database_rewrite_msisdn(old_msisdn, new_msisdn)
49
- cps_class.change_attr_cps(old_msisdn, new_msisdn)
50
- "updated"
48
+ response_from_db = database_class.update_database_rewrite_msisdn(old_msisdn, new_msisdn)
49
+ if response_from_db=="success"
50
+ response_from_cps = cps_class.change_attr_cps(old_msisdn, new_msisdn)
51
+ if response_from_cps == "ok"
52
+ "updated"
53
+ else
54
+ "cps failed"
55
+ end
56
+ else
57
+ "db failed"
58
+ end
51
59
  else
52
60
  "failed"
53
61
  end
@@ -119,6 +119,8 @@ class Pcps
119
119
 
120
120
  def change_attr_cps(old_msisdn, new_msisdn)
121
121
 
122
+ ans = ""
123
+
122
124
  current = get_current_attributes(old_msisdn)
123
125
  attr_act = ["FRAMED-IP-ADDRESS", "FRAMED-NETMASK", "Default-Gateway", "VRF-ID", "DHCP-CLASS", "IPV4-UNNUMB", "FRAMED-ROUTE-1"]
124
126
 
@@ -132,11 +134,16 @@ class Pcps
132
134
  added_res = add_attribute(res_list, new_msisdn)
133
135
 
134
136
  if added_res == "0"
135
- del_attribute(old_msisdn)
137
+ ans = del_attribute(old_msisdn)
138
+ p ans
136
139
  end
137
140
 
138
- end
141
+ if ans == "0"
142
+ "ok"
143
+ else
144
+ "error"
145
+ end
139
146
 
147
+ end
140
148
 
141
149
  end
142
-
@@ -22,13 +22,13 @@ class Pdb
22
22
  client.query(req2, :as => :array).each do |row|
23
23
  #client.close
24
24
  res = row [0]
25
- p res
26
25
  return res
27
26
  #return number of existed ip addresses in database
28
27
  end
29
28
  end
30
29
 
31
30
  def update_database_rewrite_msisdn(msisdn_old, msisdn_new)
31
+ begin
32
32
  req1 = "use " + database
33
33
  req2 = "UPDATE ipaddresses set hostname='#{msisdn_new}', dns_name='#{msisdn_new}' where hostname='#{msisdn_old}' or dns_name='#{msisdn_old}'"
34
34
  req3 = "UPDATE subnets set hostname='#{msisdn_new}' where hostname='#{msisdn_old}'"
@@ -36,6 +36,10 @@ class Pdb
36
36
  client.query(req2, :cast => false)
37
37
  client.query(req3, :cast => false)
38
38
  "success"
39
+ rescue
40
+ "dbfailed"
41
+ end
42
+
39
43
  end
40
44
 
41
45
  end
@@ -1,3 +1,3 @@
1
1
  module Imperituroard
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imperituroard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Buynovskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2020-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,17 +108,21 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: https://rubygems.org/ ertr.
111
+ description: Gem from imperituroard for different actions
112
112
  email:
113
113
  - imperituro.ard@gmail.com
114
114
  executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ".gitignore"
118
+ - ".DS_Store"
119
+ - ".idea/.rakeTasks"
119
120
  - ".idea/imperituroard.iml"
121
+ - ".idea/inspectionProfiles/Project_Default.xml"
120
122
  - ".idea/misc.xml"
121
123
  - ".idea/modules.xml"
124
+ - ".idea/runConfigurations/test_helper.xml"
125
+ - ".idea/vcs.xml"
122
126
  - ".idea/workspace.xml"
123
127
  - ".ruby-gemset"
124
128
  - ".ruby-version"
@@ -131,6 +135,7 @@ files:
131
135
  - bin/console
132
136
  - bin/setup
133
137
  - imperituroard.gemspec
138
+ - lib/.DS_Store
134
139
  - lib/imperituroard.rb
135
140
  - lib/imperituroard/phpipamcps.rb
136
141
  - lib/imperituroard/phpipamdb.rb
@@ -162,5 +167,5 @@ rubyforge_project:
162
167
  rubygems_version: 2.6.14
163
168
  signing_key:
164
169
  specification_version: 4
165
- summary: https://rubygems.org/.
170
+ summary: imperituroard gem
166
171
  test_files: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/