imperituroard 0.1.4 → 0.1.5

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: 94048778cba874aa02842eae0b6959edb2a716fd
4
- data.tar.gz: abfb9fd7f7d6befef48f7ea6cbd7771fecf7e1e1
3
+ metadata.gz: 831a8fd5ab1b2c8bcb769edbc2bd4227705b128c
4
+ data.tar.gz: eaf83891e7582318b5bc94a21d8e1fc29acc1f67
5
5
  SHA512:
6
- metadata.gz: 4d85141c0b4efa74eae1141ee9268095d71f3d587f4763fd625f1fee8c51de631c6d0296875969caa800637589e5df6ea622507a01a3def6d0bb03f66504cac7
7
- data.tar.gz: fec4686a83cc7e8729631213d0c73e73335c6922843d05f2bb6d3def23248bb227a8ca02018f69777366fe8d0c7c784cb045a4d2ccfae27131ccb7527a85daa0
6
+ metadata.gz: 42e52f29dde286224d639a23e041769e18e6f85f3700fb763a60017bbceac7d1edbd9be1c398e52e615929b18cd3636b604f20ddeb8c52fb11f4e77a1b198486
7
+ data.tar.gz: ffb869ce59e28b2b16ed2460f8fc3aa448dd5ad54f863d720eb70c2278da6b041af78304fe25c70289c4460579ae572306b86b53fb8e6e03e6d3f7b914dcc2f8
@@ -87,6 +87,25 @@
87
87
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
88
88
  <method />
89
89
  </configuration>
90
+ <configuration default="false" name="phpipamcps" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
91
+ <module name="imperituroard" />
92
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
93
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/imperituroard" />
94
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
95
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
96
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
97
+ <envs />
98
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
99
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
100
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
101
+ <COVERAGE_PATTERN ENABLED="true">
102
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
103
+ </COVERAGE_PATTERN>
104
+ </EXTENSION>
105
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/imperituroard/phpipamcps.rb" />
106
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
107
+ <method />
108
+ </configuration>
90
109
  </component>
91
110
  <component name="NewModuleRootManager">
92
111
  <content url="file://$MODULE_DIR$" />
@@ -95,5 +114,6 @@
95
114
  <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.1, RVM: ruby-2.4.1 [imperituroard]) [gem]" level="application" />
96
115
  <orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.1, RVM: ruby-2.4.1 [imperituroard]) [gem]" level="application" />
97
116
  <orderEntry type="library" scope="PROVIDED" name="rake (v12.0.0, RVM: ruby-2.4.1 [imperituroard]) [gem]" level="application" />
117
+ <orderEntry type="library" scope="PROVIDED" name="savon (v2.12.0, RVM: ruby-2.4.1 [imperituroard]) [gem]" level="application" />
98
118
  </component>
99
119
  </module>
data/.idea/workspace.xml CHANGED
@@ -41,6 +41,7 @@
41
41
  <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
42
42
  <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/imperituroard.gemspec" />
43
43
  <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/imperituroard.rb" />
44
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/imperituroard/phpipamcps.rb" />
44
45
  <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb" />
45
46
  <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/imperituroard/version.rb" />
46
47
  <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/imperituroard_test.rb" />
@@ -55,7 +56,8 @@
55
56
  </component>
56
57
  <component name="ChangesViewManager" flattened_view="false" />
57
58
  <component name="CoverageDataManager">
58
- <SUITE FILE_PATH="coverage/imperituroard@imperituroard__1_.coverage" NAME="imperituroard (1) Coverage Results" MODIFIED="1583954516275" 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" />
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" />
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" />
59
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" />
60
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" />
61
63
  <SUITE FILE_PATH="coverage/imperituroard@Run_test__imperituroard_test___imperituroard.coverage" NAME="Run test 'imperituroard_test': imperituroard Coverage Results" MODIFIED="1583954557430" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="imperituroard" />
@@ -63,31 +65,21 @@
63
65
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
64
66
  <component name="FileEditorManager">
65
67
  <leaf>
66
- <file leaf-file-name="imperituroard.rb" pinned="false" current-in-tab="false">
68
+ <file leaf-file-name="imperituroard.rb" pinned="false" current-in-tab="true">
67
69
  <entry file="file://$PROJECT_DIR$/lib/imperituroard.rb">
68
70
  <provider selected="true" editor-type-id="text-editor">
69
71
  <state relative-caret-position="284">
70
- <caret line="47" column="0" lean-forward="false" selection-start-line="47" selection-start-column="0" selection-end-line="47" selection-end-column="0" />
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" />
71
73
  <folding />
72
74
  </state>
73
75
  </provider>
74
76
  </entry>
75
77
  </file>
76
- <file leaf-file-name="imperituroard_test.rb" pinned="false" current-in-tab="false">
77
- <entry file="file://$PROJECT_DIR$/test/imperituroard_test.rb">
78
+ <file leaf-file-name="phpipamcps.rb" pinned="false" current-in-tab="false">
79
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamcps.rb">
78
80
  <provider selected="true" editor-type-id="text-editor">
79
- <state relative-caret-position="165">
80
- <caret line="11" column="0" lean-forward="true" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
81
- <folding />
82
- </state>
83
- </provider>
84
- </entry>
85
- </file>
86
- <file leaf-file-name="phpipamdb.rb" pinned="false" current-in-tab="false">
87
- <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb">
88
- <provider selected="true" editor-type-id="text-editor">
89
- <state relative-caret-position="-218">
90
- <caret line="6" column="76" lean-forward="true" selection-start-line="6" selection-start-column="2" selection-end-line="6" selection-end-column="76" />
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" />
91
83
  <folding />
92
84
  </state>
93
85
  </provider>
@@ -113,21 +105,11 @@
113
105
  </provider>
114
106
  </entry>
115
107
  </file>
116
- <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
117
- <entry file="file://$PROJECT_DIR$/../../freewifi/.gitignore">
118
- <provider selected="true" editor-type-id="text-editor">
119
- <state relative-caret-position="0">
120
- <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
121
- <folding />
122
- </state>
123
- </provider>
124
- </entry>
125
- </file>
126
108
  <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
127
109
  <entry file="file://$PROJECT_DIR$/Gemfile">
128
110
  <provider selected="true" editor-type-id="text-editor">
129
- <state relative-caret-position="105">
130
- <caret line="7" column="34" lean-forward="false" selection-start-line="7" selection-start-column="34" selection-end-line="7" selection-end-column="34" />
111
+ <state relative-caret-position="150">
112
+ <caret line="10" column="9" lean-forward="false" selection-start-line="10" selection-start-column="9" selection-end-line="10" selection-end-column="9" />
131
113
  <folding />
132
114
  </state>
133
115
  </provider>
@@ -136,8 +118,8 @@
136
118
  <file leaf-file-name="imperituroard.gemspec" pinned="false" current-in-tab="false">
137
119
  <entry file="file://$PROJECT_DIR$/imperituroard.gemspec">
138
120
  <provider selected="true" editor-type-id="text-editor">
139
- <state relative-caret-position="317">
140
- <caret line="32" column="42" lean-forward="false" selection-start-line="32" selection-start-column="42" selection-end-line="32" selection-end-column="42" />
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
123
  <folding />
142
124
  </state>
143
125
  </provider>
@@ -153,11 +135,11 @@
153
135
  </provider>
154
136
  </entry>
155
137
  </file>
156
- <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
138
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
157
139
  <entry file="file://$PROJECT_DIR$/lib/imperituroard/version.rb">
158
140
  <provider selected="true" editor-type-id="text-editor">
159
141
  <state relative-caret-position="45">
160
- <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
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" />
161
143
  <folding />
162
144
  </state>
163
145
  </provider>
@@ -172,12 +154,13 @@
172
154
  <option name="CHANGED_PATHS">
173
155
  <list>
174
156
  <option value="$PROJECT_DIR$/../../freewifi/lib/freewifi.rb" />
175
- <option value="$PROJECT_DIR$/imperituroard.gemspec" />
176
- <option value="$PROJECT_DIR$/Gemfile" />
177
157
  <option value="$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb" />
178
- <option value="$PROJECT_DIR$/lib/imperituroard.rb" />
179
158
  <option value="$PROJECT_DIR$/test/imperituroard_test.rb" />
180
159
  <option value="$PROJECT_DIR$/lib/imperituroard/version.rb" />
160
+ <option value="$PROJECT_DIR$/imperituroard.gemspec" />
161
+ <option value="$PROJECT_DIR$/Gemfile" />
162
+ <option value="$PROJECT_DIR$/lib/imperituroard/phpipamcps.rb" />
163
+ <option value="$PROJECT_DIR$/lib/imperituroard.rb" />
181
164
  </list>
182
165
  </option>
183
166
  </component>
@@ -188,8 +171,8 @@
188
171
  <sorting>DEFINITION_ORDER</sorting>
189
172
  </component>
190
173
  <component name="ProjectFrameBounds">
191
- <option name="x" value="73" />
192
- <option name="y" value="92" />
174
+ <option name="x" value="-50" />
175
+ <option name="y" value="189" />
193
176
  <option name="width" value="1313" />
194
177
  <option name="height" value="718" />
195
178
  </component>
@@ -357,7 +340,7 @@
357
340
  </list>
358
341
  </option>
359
342
  </component>
360
- <component name="RunManager" selected="Test::Unit/Shoulda/Minitest.Run test 'imperituroard_test': imperituroard">
343
+ <component name="RunManager" selected="Ruby.phpipamcps">
361
344
  <configuration default="false" name="imperituroard" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
362
345
  <module name="imperituroard" />
363
346
  <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -444,6 +427,25 @@
444
427
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
445
428
  <method />
446
429
  </configuration>
430
+ <configuration default="false" name="phpipamcps" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
431
+ <module name="imperituroard" />
432
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
433
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/imperituroard" />
434
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
435
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
436
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
437
+ <envs />
438
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
439
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
440
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
441
+ <COVERAGE_PATTERN ENABLED="true">
442
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
443
+ </COVERAGE_PATTERN>
444
+ </EXTENSION>
445
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/imperituroard/phpipamcps.rb" />
446
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
447
+ <method />
448
+ </configuration>
447
449
  <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
448
450
  <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
449
451
  <module name="" />
@@ -581,19 +583,21 @@
581
583
  <envs />
582
584
  <method />
583
585
  </configuration>
584
- <list size="5">
586
+ <list size="6">
585
587
  <item index="0" class="java.lang.String" itemvalue="Ruby.test_helper" />
586
588
  <item index="1" class="java.lang.String" itemvalue="Ruby.imperituroard" />
587
589
  <item index="2" class="java.lang.String" itemvalue="Ruby.phpipamdb" />
588
590
  <item index="3" class="java.lang.String" itemvalue="Ruby.imperituroard (1)" />
589
591
  <item index="4" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.Run test 'imperituroard_test': imperituroard" />
592
+ <item index="5" class="java.lang.String" itemvalue="Ruby.phpipamcps" />
590
593
  </list>
591
594
  <recent_temporary>
592
- <list size="4">
593
- <item index="0" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.Run test 'imperituroard_test': imperituroard" />
595
+ <list size="5">
596
+ <item index="0" class="java.lang.String" itemvalue="Ruby.phpipamcps" />
594
597
  <item index="1" class="java.lang.String" itemvalue="Ruby.imperituroard (1)" />
595
- <item index="2" class="java.lang.String" itemvalue="Ruby.phpipamdb" />
596
- <item index="3" class="java.lang.String" itemvalue="Ruby.imperituroard" />
598
+ <item index="2" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.Run test 'imperituroard_test': imperituroard" />
599
+ <item index="3" class="java.lang.String" itemvalue="Ruby.phpipamdb" />
600
+ <item index="4" class="java.lang.String" itemvalue="Ruby.imperituroard" />
597
601
  </list>
598
602
  </recent_temporary>
599
603
  </component>
@@ -608,7 +612,7 @@
608
612
  <option name="number" value="Default" />
609
613
  <option name="presentableId" value="Default" />
610
614
  <updated>1583947339097</updated>
611
- <workItem from="1583947642761" duration="6154000" />
615
+ <workItem from="1583947642761" duration="11279000" />
612
616
  </task>
613
617
  <servers />
614
618
  </component>
@@ -618,10 +622,10 @@
618
622
  </history-entry>
619
623
  </component>
620
624
  <component name="TimeTrackingManager">
621
- <option name="totallyTimeSpent" value="6154000" />
625
+ <option name="totallyTimeSpent" value="11279000" />
622
626
  </component>
623
627
  <component name="ToolWindowManager">
624
- <frame x="73" y="92" width="1313" height="718" extended-state="0" />
628
+ <frame x="-50" y="189" width="1313" height="718" extended-state="0" />
625
629
  <editor active="true" />
626
630
  <layout>
627
631
  <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" />
@@ -710,50 +714,58 @@
710
714
  </state>
711
715
  </provider>
712
716
  </entry>
717
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard/version.rb">
718
+ <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" />
721
+ <folding />
722
+ </state>
723
+ </provider>
724
+ </entry>
713
725
  <entry file="file://$PROJECT_DIR$/imperituroard.gemspec">
714
726
  <provider selected="true" editor-type-id="text-editor">
715
- <state relative-caret-position="317">
716
- <caret line="32" column="42" lean-forward="false" selection-start-line="32" selection-start-column="42" selection-end-line="32" selection-end-column="42" />
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" />
717
729
  <folding />
718
730
  </state>
719
731
  </provider>
720
732
  </entry>
721
733
  <entry file="file://$PROJECT_DIR$/Gemfile">
722
734
  <provider selected="true" editor-type-id="text-editor">
723
- <state relative-caret-position="105">
724
- <caret line="7" column="34" lean-forward="false" selection-start-line="7" selection-start-column="34" selection-end-line="7" selection-end-column="34" />
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" />
725
737
  <folding />
726
738
  </state>
727
739
  </provider>
728
740
  </entry>
729
- <entry file="file://$PROJECT_DIR$/test/imperituroard_test.rb">
741
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb">
730
742
  <provider selected="true" editor-type-id="text-editor">
731
- <state relative-caret-position="165">
732
- <caret line="11" column="0" lean-forward="true" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
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" />
733
745
  <folding />
734
746
  </state>
735
747
  </provider>
736
748
  </entry>
737
- <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamdb.rb">
749
+ <entry file="file://$PROJECT_DIR$/test/imperituroard_test.rb">
738
750
  <provider selected="true" editor-type-id="text-editor">
739
- <state relative-caret-position="-218">
740
- <caret line="6" column="76" lean-forward="true" selection-start-line="6" selection-start-column="2" selection-end-line="6" selection-end-column="76" />
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" />
741
753
  <folding />
742
754
  </state>
743
755
  </provider>
744
756
  </entry>
745
- <entry file="file://$PROJECT_DIR$/lib/imperituroard.rb">
757
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard/phpipamcps.rb">
746
758
  <provider selected="true" editor-type-id="text-editor">
747
759
  <state relative-caret-position="284">
748
- <caret line="47" column="0" lean-forward="false" selection-start-line="47" selection-start-column="0" selection-end-line="47" selection-end-column="0" />
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" />
749
761
  <folding />
750
762
  </state>
751
763
  </provider>
752
764
  </entry>
753
- <entry file="file://$PROJECT_DIR$/lib/imperituroard/version.rb">
765
+ <entry file="file://$PROJECT_DIR$/lib/imperituroard.rb">
754
766
  <provider selected="true" editor-type-id="text-editor">
755
- <state relative-caret-position="45">
756
- <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
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" />
757
769
  <folding />
758
770
  </state>
759
771
  </provider>
data/Gemfile CHANGED
@@ -5,4 +5,7 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "minitest", "~> 5.0"
8
- gem 'mysql2', '>= 0.3.13', '< 0.5'
8
+ gem 'mysql2', '>= 0.3.13', '< 0.5'
9
+ gem 'savon'
10
+ gem 'json'
11
+ gem 'uri'
@@ -31,4 +31,8 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "rake", "~> 10.0"
32
32
  spec.add_development_dependency "net-ssh", '~> 4.0.0'
33
33
  spec.add_development_dependency "mysql2"
34
+ spec.add_development_dependency "savon"
35
+ spec.add_development_dependency "json"
36
+ spec.add_development_dependency "uri"
37
+
34
38
  end
@@ -0,0 +1,142 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+ require 'json'
4
+ require 'savon'
5
+
6
+
7
+ class Pcps
8
+ attr_accessor :wsdl, :endpoint, :namespace, :clientcps
9
+ def initialize(wsdl, endpoint, namespace)
10
+ @wsdl = wsdl
11
+ @endpoint = endpoint
12
+ @namespace = namespace
13
+ @clientcps = Savon.client do
14
+ ssl_verify_mode :none
15
+ #wsdl "https://172.24.242.4:8443/ua/wsdl/UnifiedApi.wsdl"
16
+ #endpoint "http://172.24.242.4:8080/ua/soap"
17
+ wsdl wsdl
18
+ endpoint endpoint
19
+ namespace namespace
20
+ end
21
+ end
22
+
23
+ def avp_attr_list(username)
24
+
25
+ message2 = { :networkId => username }
26
+ response = clientcps.call(:get_subscriber) do
27
+ message(message2)
28
+ end
29
+ aaa = response.to_hash[:get_subscriber_response][:subscriber][:avp]
30
+ #li = {"FRAMED-IP-ADDRESS":0,"FRAMED-NETMASK":0,"Default-Gateway":0,"VRF-ID":0,"DHCP-CLASS":0,"IPV4-UNNUMB":0,"PREFIX":0}
31
+ li = {"FRAMED-IP-ADDRESS" => 0,
32
+ "FRAMED-NETMASK" => 0,
33
+ "Default-Gateway" => 0,
34
+ "VRF-ID" => 0,
35
+ "DHCP-CLASS" => 0,
36
+ "IPV4-UNNUMB" => 0,
37
+ "FRAMED-ROUTE-1" => 0}
38
+ if !aaa.is_a?(Hash)
39
+ for i in aaa
40
+ if i[:code]=="FRAMED-IP-ADDRESS"
41
+ li["FRAMED-IP-ADDRESS"]=1
42
+ elsif i[:code]=="FRAMED-NETMASK"
43
+ li["FRAMED-NETMASK"]=1
44
+ elsif i[:code]=="Default-Gateway"
45
+ li["Default-Gateway"]=1
46
+ elsif i[:code]=="VRF-ID"
47
+ li["VRF-ID"]=1
48
+ elsif i[:code]=="DHCP-CLASS"
49
+ li["DHCP-CLASS"]=1
50
+ elsif i[:code]=="IPV4-UNNUMB"
51
+ li["IPV4-UNNUMB"]=1
52
+ elsif i[:code]=="FRAMED-ROUTE-1"
53
+ li["FRAMED-ROUTE-1"]=1
54
+ end
55
+ end
56
+ end
57
+ li
58
+ end
59
+
60
+
61
+ #delete avp attributes from CPS
62
+ def del_attribute(username)
63
+ begin
64
+ list = avp_attr_list(username)
65
+
66
+ answer = ""
67
+
68
+ for iti in list
69
+ if iti[1]==1
70
+ message2 = {
71
+ :audit => {:id => "SOAPGW", :comment => "some procedure"},
72
+ :networkId => username,
73
+ :deletedAvp => [
74
+ {:code => iti[0]}
75
+ # {:code => "FRAMED-NETMASK"},
76
+ # {:code => "Default-Gateway"},
77
+ # {:code => "VRF-ID"},
78
+ # {:code => "DHCP-CLASS"},
79
+ # {:code => "IPV4-UNNUMB"},
80
+ # {:code => "PREFIX"}
81
+ ]
82
+ }
83
+ response = clientcps.call(:change_subscriber_avps) do
84
+ message(message2)
85
+ end
86
+ response
87
+ answer = response.to_hash[:change_subscriber_avps_response][:error_code]
88
+ end
89
+ end
90
+
91
+ rescue
92
+ answer = "error"
93
+ end
94
+ answer
95
+ end
96
+
97
+
98
+ def get_current_attributes(msisdn)
99
+ message2 = { :networkId => msisdn }
100
+ response = clientcps.call(:get_subscriber) do
101
+ message(message2)
102
+ end
103
+ aaa = response.to_hash[:get_subscriber_response][:subscriber][:avp]
104
+ p aaa
105
+ end
106
+
107
+ def add_attribute(attlist, username)
108
+ message1 = {
109
+ :audit => {:id => "SOAPGW", :comment => "some procedure"},
110
+ :networkId => username,
111
+ :newAvp => attlist
112
+ }
113
+ response = clientcps.call(:change_subscriber_avps) do
114
+ message(message1)
115
+ end
116
+ response.to_hash
117
+ answer = response.to_hash[:change_subscriber_avps_response][:error_code]
118
+ end
119
+
120
+ def change_attr_cps(old_msisdn, new_msisdn)
121
+
122
+ current = get_current_attributes(old_msisdn)
123
+ attr_act = ["FRAMED-IP-ADDRESS", "FRAMED-NETMASK", "Default-Gateway", "VRF-ID", "DHCP-CLASS", "IPV4-UNNUMB", "FRAMED-ROUTE-1"]
124
+
125
+ res_list= []
126
+ for j in current
127
+ if attr_act.include?(j[:code])
128
+ res_list << j
129
+ end
130
+ end
131
+
132
+ added_res = add_attribute(res_list, new_msisdn)
133
+
134
+ if added_res == "0"
135
+ del_attribute(old_msisdn)
136
+ end
137
+
138
+ end
139
+
140
+
141
+ end
142
+
@@ -1,3 +1,3 @@
1
1
  module Imperituroard
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/imperituroard.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "imperituroard/version"
2
- require 'imperituroard/phpipamdb'
2
+ require "imperituroard/phpipamdb"
3
+ require "imperituroard/phpipamcps"
3
4
 
4
5
  module Imperituroard
5
6
  class Error < StandardError; end
@@ -21,18 +22,18 @@ end
21
22
 
22
23
  class Pipam
23
24
 
24
- attr_accessor :username, :password, :ip, :database_class
25
- def initialize(username, password, ip)
26
- @username = username
27
- @password = password
28
- @ip = ip
29
- @database_class = Pdb.new("phpipam", username, password, ip, "3306")
25
+ attr_accessor :username, :password, :ip, :database_class, :cps_class
26
+ def initialize(db_username, db_password, db_ip, cps_wsdl, cps_endpoint, cps_namespace)
27
+ @username = db_username
28
+ @password = db_password
29
+ @ip = db_ip
30
+ @database_class = Pdb.new("phpipam", db_username, db_password, db_ip, "3306")
31
+ @cps_class = Pcps.new(cps_wsdl, cps_endpoint, cps_namespace)
30
32
  end
31
33
 
32
34
  def update_phpipam_rewr_msisdn(old_msisdn, new_msisdn)
33
35
 
34
36
  dst_num_exists = database_class.check_if_msisdn_exists(new_msisdn, "ipaddresses")
35
-
36
37
  if dst_num_exists == 0
37
38
  database_class.update_database_rewrite_msisdn(old_msisdn, new_msisdn)
38
39
  "updated"
@@ -41,6 +42,16 @@ class Pipam
41
42
  end
42
43
  end
43
44
 
45
+ def final_change_msisdn(old_msisdn, new_msisdn)
46
+ dst_num_exists = database_class.check_if_msisdn_exists(new_msisdn, "ipaddresses")
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"
51
+ else
52
+ "failed"
53
+ end
54
+ end
44
55
  include Phpipam
45
56
  end
46
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imperituroard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Buynovskiy
@@ -66,6 +66,48 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: savon
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: json
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: uri
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
69
111
  description: https://rubygems.org/ ertr.
70
112
  email:
71
113
  - imperituro.ard@gmail.com
@@ -90,6 +132,7 @@ files:
90
132
  - bin/setup
91
133
  - imperituroard.gemspec
92
134
  - lib/imperituroard.rb
135
+ - lib/imperituroard/phpipamcps.rb
93
136
  - lib/imperituroard/phpipamdb.rb
94
137
  - lib/imperituroard/version.rb
95
138
  homepage: https://rubygems.org/