avangate 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 60ac83b277d5d01cac034d7a8da3175c65cfc51e
4
+ data.tar.gz: 6402764f459042ace700025a8b54a1e31bcc2d9f
5
+ SHA512:
6
+ metadata.gz: f4ca8f89584fc988fa7d9ba954994f187487c54eba3e94caee95d91f6da45ce57a4b86d4e7011d4c1d1c8ab4282e00095cc5d82ce2c5040e1812dc6b12d49c75
7
+ data.tar.gz: 73ca65a0aa65566d80ad45fc805224634460a80e113ac56e0e0c3a30dfa16ecd9b20debe0e0f0b8ebe2a89d33897580e2453a4fd88f2ca006996240714d7012f
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ avangate
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 avangate-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install avangate-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.1.0 and build and push avangate-0.1.0.gem to Rubygems" 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,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Ruby Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$" />
14
+ <orderEntry type="inheritedJdk" />
15
+ <orderEntry type="sourceFolder" forTests="false" />
16
+ <orderEntry type="library" scope="PROVIDED" name="akami (v1.3.1, RVM: ruby-1.9.3-p327) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-1.9.3-p327) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.8.2, RVM: ruby-1.9.3-p327) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="gyoku (v1.3.1, RVM: ruby-1.9.3-p327) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="httpi (v2.4.1, RVM: ruby-1.9.3-p327) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.6.2, RVM: ruby-1.9.3-p327) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.6.2, RVM: ruby-1.9.3-p327) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="nori (v2.6.0, RVM: ruby-1.9.3-p327) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rack (v1.6.4, RVM: ruby-1.9.3-p327) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-1.9.3-p327) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="savon (v2.11.1, RVM: ruby-1.9.3-p327) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="wasabi (v3.5.0, RVM: ruby-1.9.3-p327) [gem]" level="application" />
28
+ </component>
29
+ </module>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
data/.idea/misc.xml ADDED
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="DaemonCodeAnalyzer">
4
+ <disable_hints />
5
+ </component>
6
+ <component name="DependencyValidationManager">
7
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
8
+ </component>
9
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
10
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
11
+ <OptionsSetting value="true" id="Add" />
12
+ <OptionsSetting value="true" id="Remove" />
13
+ <OptionsSetting value="true" id="Checkout" />
14
+ <OptionsSetting value="true" id="Update" />
15
+ <OptionsSetting value="true" id="Status" />
16
+ <OptionsSetting value="true" id="Edit" />
17
+ <ConfirmationsSetting value="0" id="Add" />
18
+ <ConfirmationsSetting value="0" id="Remove" />
19
+ </component>
20
+ <component name="ProjectModuleManager">
21
+ <modules />
22
+ </component>
23
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p327" project-jdk-type="RUBY_SDK" />
24
+ <component name="RunManager">
25
+ <list size="0" />
26
+ </component>
27
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/avangate.iml" filepath="$PROJECT_DIR$/.idea/avangate.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </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="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,405 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="00029667-28be-4e63-ba00-02419eb3d3e0" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/avangate.iml" afterPath="$PROJECT_DIR$/.idea/avangate.iml" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/avangate/version.rb" afterPath="$PROJECT_DIR$/lib/avangate/version.rb" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
8
+ </list>
9
+ <ignored path="avangate.iws" />
10
+ <ignored path=".idea/workspace.xml" />
11
+ <ignored path=".idea/dataSources.local.xml" />
12
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
13
+ <option name="TRACKING_ENABLED" value="true" />
14
+ <option name="SHOW_DIALOG" value="false" />
15
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
16
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
17
+ <option name="LAST_RESOLUTION" value="IGNORE" />
18
+ </component>
19
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
20
+ <component name="CreatePatchCommitExecutor">
21
+ <option name="PATCH_PATH" value="" />
22
+ </component>
23
+ <component name="DaemonCodeAnalyzer">
24
+ <disable_hints />
25
+ </component>
26
+ <component name="FavoritesManager">
27
+ <favorites_list name="avangate" />
28
+ </component>
29
+ <component name="FileEditorManager">
30
+ <leaf>
31
+ <file leaf-file-name="avangate.rb" pinned="false" current-in-tab="false">
32
+ <entry file="file://$PROJECT_DIR$/lib/avangate.rb">
33
+ <provider selected="true" editor-type-id="text-editor">
34
+ <state vertical-scroll-proportion="0.0" vertical-offset="121" max-vertical-offset="900">
35
+ <caret line="52" column="5" selection-start-line="52" selection-start-column="5" selection-end-line="52" selection-end-column="5" />
36
+ <folding />
37
+ </state>
38
+ </provider>
39
+ </entry>
40
+ </file>
41
+ <file leaf-file-name="avangate.gemspec" pinned="false" current-in-tab="false">
42
+ <entry file="file://$PROJECT_DIR$/avangate.gemspec">
43
+ <provider selected="true" editor-type-id="text-editor">
44
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="450">
45
+ <caret line="14" column="2" selection-start-line="14" selection-start-column="2" selection-end-line="14" selection-end-column="2" />
46
+ <folding />
47
+ </state>
48
+ </provider>
49
+ </entry>
50
+ </file>
51
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
52
+ <entry file="file://$PROJECT_DIR$/Gemfile">
53
+ <provider selected="true" editor-type-id="text-editor">
54
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="165">
55
+ <caret line="5" column="8" selection-start-line="5" selection-start-column="8" selection-end-line="5" selection-end-column="8" />
56
+ <folding />
57
+ </state>
58
+ </provider>
59
+ </entry>
60
+ </file>
61
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
62
+ <entry file="file://$PROJECT_DIR$/README.md">
63
+ <provider selected="true" editor-type-id="text-editor">
64
+ <state vertical-scroll-proportion="-15.6" vertical-offset="0" max-vertical-offset="750">
65
+ <caret line="26" column="0" selection-start-line="26" selection-start-column="0" selection-end-line="26" selection-end-column="0" />
66
+ <folding />
67
+ </state>
68
+ </provider>
69
+ </entry>
70
+ </file>
71
+ <file leaf-file-name="base.rb" pinned="false" current-in-tab="false">
72
+ <entry file="file://$PROJECT_DIR$/lib/avangate/base.rb">
73
+ <provider selected="true" editor-type-id="text-editor">
74
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="540">
75
+ <caret line="16" column="46" selection-start-line="16" selection-start-column="46" selection-end-line="16" selection-end-column="46" />
76
+ <folding />
77
+ </state>
78
+ </provider>
79
+ </entry>
80
+ </file>
81
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
82
+ <entry file="file://$PROJECT_DIR$/lib/avangate/version.rb">
83
+ <provider selected="true" editor-type-id="text-editor">
84
+ <state vertical-scroll-proportion="0.019255456" vertical-offset="0" max-vertical-offset="779">
85
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
86
+ <folding />
87
+ </state>
88
+ </provider>
89
+ </entry>
90
+ </file>
91
+ </leaf>
92
+ </component>
93
+ <component name="Git.Settings">
94
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
95
+ </component>
96
+ <component name="IdeDocumentHistory">
97
+ <option name="CHANGED_PATHS">
98
+ <list>
99
+ <option value="$PROJECT_DIR$/lib/avangate/base.rb" />
100
+ <option value="$PROJECT_DIR$/README.md" />
101
+ <option value="$PROJECT_DIR$/Gemfile" />
102
+ <option value="$PROJECT_DIR$/avangate.gemspec" />
103
+ <option value="$PROJECT_DIR$/lib/avangate.rb" />
104
+ <option value="$PROJECT_DIR$/lib/avangate/version.rb" />
105
+ </list>
106
+ </option>
107
+ </component>
108
+ <component name="JsGulpfileManager">
109
+ <detection-done>true</detection-done>
110
+ </component>
111
+ <component name="ProjectFrameBounds">
112
+ <option name="y" value="23" />
113
+ <option name="width" value="1440" />
114
+ <option name="height" value="873" />
115
+ </component>
116
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
117
+ <OptionsSetting value="true" id="Add" />
118
+ <OptionsSetting value="true" id="Remove" />
119
+ <OptionsSetting value="true" id="Checkout" />
120
+ <OptionsSetting value="true" id="Update" />
121
+ <OptionsSetting value="true" id="Status" />
122
+ <OptionsSetting value="true" id="Edit" />
123
+ <ConfirmationsSetting value="0" id="Add" />
124
+ <ConfirmationsSetting value="0" id="Remove" />
125
+ </component>
126
+ <component name="ProjectView">
127
+ <navigator currentView="ProjectPane" proportions="" version="1">
128
+ <flattenPackages />
129
+ <showMembers />
130
+ <showModules />
131
+ <showLibraryContents />
132
+ <hideEmptyPackages />
133
+ <abbreviatePackageNames />
134
+ <autoscrollToSource />
135
+ <autoscrollFromSource />
136
+ <sortByType />
137
+ </navigator>
138
+ <panes>
139
+ <pane id="ProjectPane">
140
+ <subPane>
141
+ <PATH>
142
+ <PATH_ELEMENT>
143
+ <option name="myItemId" value="avangate" />
144
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
145
+ </PATH_ELEMENT>
146
+ </PATH>
147
+ <PATH>
148
+ <PATH_ELEMENT>
149
+ <option name="myItemId" value="avangate" />
150
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
151
+ </PATH_ELEMENT>
152
+ <PATH_ELEMENT>
153
+ <option name="myItemId" value="avangate" />
154
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
155
+ </PATH_ELEMENT>
156
+ </PATH>
157
+ <PATH>
158
+ <PATH_ELEMENT>
159
+ <option name="myItemId" value="avangate" />
160
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
161
+ </PATH_ELEMENT>
162
+ <PATH_ELEMENT>
163
+ <option name="myItemId" value="avangate" />
164
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
165
+ </PATH_ELEMENT>
166
+ <PATH_ELEMENT>
167
+ <option name="myItemId" value="lib" />
168
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
169
+ </PATH_ELEMENT>
170
+ </PATH>
171
+ <PATH>
172
+ <PATH_ELEMENT>
173
+ <option name="myItemId" value="avangate" />
174
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
175
+ </PATH_ELEMENT>
176
+ <PATH_ELEMENT>
177
+ <option name="myItemId" value="avangate" />
178
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
179
+ </PATH_ELEMENT>
180
+ <PATH_ELEMENT>
181
+ <option name="myItemId" value="lib" />
182
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
183
+ </PATH_ELEMENT>
184
+ <PATH_ELEMENT>
185
+ <option name="myItemId" value="avangate" />
186
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
187
+ </PATH_ELEMENT>
188
+ </PATH>
189
+ <PATH>
190
+ <PATH_ELEMENT>
191
+ <option name="myItemId" value="avangate" />
192
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
193
+ </PATH_ELEMENT>
194
+ <PATH_ELEMENT>
195
+ <option name="myItemId" value="avangate" />
196
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
197
+ </PATH_ELEMENT>
198
+ <PATH_ELEMENT>
199
+ <option name="myItemId" value="bin" />
200
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
201
+ </PATH_ELEMENT>
202
+ </PATH>
203
+ </subPane>
204
+ </pane>
205
+ <pane id="Scope" />
206
+ </panes>
207
+ </component>
208
+ <component name="PropertiesComponent">
209
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
210
+ <property name="WebServerToolWindowFactoryState" value="false" />
211
+ </component>
212
+ <component name="RunManager">
213
+ <configuration default="true" type="BashConfigurationType" factoryName="Bash">
214
+ <option name="INTERPRETER_OPTIONS" value="" />
215
+ <option name="INTERPRETER_PATH" value="/bin/bash" />
216
+ <option name="WORKING_DIRECTORY" value="" />
217
+ <option name="PARENT_ENVS" value="true" />
218
+ <option name="SCRIPT_NAME" value="" />
219
+ <option name="PARAMETERS" value="" />
220
+ <module name="" />
221
+ <envs />
222
+ <method />
223
+ </configuration>
224
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
225
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
226
+ <module name="" />
227
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
228
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
229
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
230
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
231
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
232
+ <envs />
233
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
234
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
235
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
236
+ <COVERAGE_PATTERN ENABLED="true">
237
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
238
+ </COVERAGE_PATTERN>
239
+ </EXTENSION>
240
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
241
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
242
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
243
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
244
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
245
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
246
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
247
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
248
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
249
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
250
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
251
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
252
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
253
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
254
+ <method />
255
+ </configuration>
256
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
257
+ <method />
258
+ </configuration>
259
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
260
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
261
+ <module name="" />
262
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
263
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
264
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
265
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
266
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
267
+ <envs />
268
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
269
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
270
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
271
+ <COVERAGE_PATTERN ENABLED="true">
272
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
273
+ </COVERAGE_PATTERN>
274
+ </EXTENSION>
275
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
276
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
277
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
278
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
279
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
280
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
281
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
282
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
283
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
284
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
285
+ <method />
286
+ </configuration>
287
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
288
+ <method />
289
+ </configuration>
290
+ <list size="0" />
291
+ </component>
292
+ <component name="ShelveChangesManager" show_recycled="false" />
293
+ <component name="TaskManager">
294
+ <task active="true" id="Default" summary="Default task">
295
+ <changelist id="00029667-28be-4e63-ba00-02419eb3d3e0" name="Default" comment="" />
296
+ <created>1444725365482</created>
297
+ <option name="number" value="Default" />
298
+ <updated>1444725365482</updated>
299
+ </task>
300
+ <servers />
301
+ </component>
302
+ <component name="ToolWindowManager">
303
+ <frame x="0" y="23" width="1440" height="873" extended-state="6" />
304
+ <editor active="true" />
305
+ <layout>
306
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
307
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
308
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
309
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
310
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
311
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
312
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.18097281" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
313
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
314
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
315
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
316
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
317
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
318
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
319
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
320
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
321
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
322
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
323
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
324
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
325
+ </layout>
326
+ </component>
327
+ <component name="Vcs.Log.UiProperties">
328
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
329
+ <collection />
330
+ </option>
331
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
332
+ <collection />
333
+ </option>
334
+ </component>
335
+ <component name="VcsContentAnnotationSettings">
336
+ <option name="myLimit" value="2678400000" />
337
+ </component>
338
+ <component name="VcsManagerConfiguration">
339
+ <option name="myTodoPanelSettings">
340
+ <TodoPanelSettings />
341
+ </option>
342
+ </component>
343
+ <component name="XDebuggerManager">
344
+ <breakpoint-manager />
345
+ <watches-manager />
346
+ </component>
347
+ <component name="editorHistoryManager">
348
+ <entry file="file://$PROJECT_DIR$/bin/setup">
349
+ <provider selected="true" editor-type-id="text-editor">
350
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="781">
351
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
352
+ <folding />
353
+ </state>
354
+ </provider>
355
+ </entry>
356
+ <entry file="file://$PROJECT_DIR$/README.md">
357
+ <provider selected="true" editor-type-id="text-editor">
358
+ <state vertical-scroll-proportion="-15.6" vertical-offset="0" max-vertical-offset="750">
359
+ <caret line="26" column="0" selection-start-line="26" selection-start-column="0" selection-end-line="26" selection-end-column="0" />
360
+ <folding />
361
+ </state>
362
+ </provider>
363
+ </entry>
364
+ <entry file="file://$PROJECT_DIR$/Gemfile">
365
+ <provider selected="true" editor-type-id="text-editor">
366
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="165">
367
+ <caret line="5" column="8" selection-start-line="5" selection-start-column="8" selection-end-line="5" selection-end-column="8" />
368
+ <folding />
369
+ </state>
370
+ </provider>
371
+ </entry>
372
+ <entry file="file://$PROJECT_DIR$/avangate.gemspec">
373
+ <provider selected="true" editor-type-id="text-editor">
374
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="450">
375
+ <caret line="14" column="2" selection-start-line="14" selection-start-column="2" selection-end-line="14" selection-end-column="2" />
376
+ <folding />
377
+ </state>
378
+ </provider>
379
+ </entry>
380
+ <entry file="file://$PROJECT_DIR$/lib/avangate/base.rb">
381
+ <provider selected="true" editor-type-id="text-editor">
382
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="540">
383
+ <caret line="16" column="46" selection-start-line="16" selection-start-column="46" selection-end-line="16" selection-end-column="46" />
384
+ <folding />
385
+ </state>
386
+ </provider>
387
+ </entry>
388
+ <entry file="file://$PROJECT_DIR$/lib/avangate.rb">
389
+ <provider selected="true" editor-type-id="text-editor">
390
+ <state vertical-scroll-proportion="0.0" vertical-offset="121" max-vertical-offset="900">
391
+ <caret line="52" column="5" selection-start-line="52" selection-start-column="5" selection-end-line="52" selection-end-column="5" />
392
+ <folding />
393
+ </state>
394
+ </provider>
395
+ </entry>
396
+ <entry file="file://$PROJECT_DIR$/lib/avangate/version.rb">
397
+ <provider selected="true" editor-type-id="text-editor">
398
+ <state vertical-scroll-proportion="0.019255456" vertical-offset="0" max-vertical-offset="779">
399
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
400
+ <folding />
401
+ </state>
402
+ </provider>
403
+ </entry>
404
+ </component>
405
+ </project>
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in avangate.gemspec
4
+ gemspec
5
+
6
+ gem 'savon'
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Leo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # Avangate
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/avangate`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'avangate'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install avangate
22
+
23
+ You need to provide your secret key and your merchant code, both you can get when you sign in to avangate website, then you need to create an initializer (avangate.rb) an set up:
24
+
25
+ pre. Avangate::Base.secret_key = "SECRET_KEY"
26
+ pre. Avangate::Base.merchant_code = "MERCHANT_CODE"
27
+
28
+ ## Usage
29
+
30
+ TODO: Write usage instructions here
31
+
32
+ ## Development
33
+
34
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
35
+
36
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+
38
+ ## Contributing
39
+
40
+ 1. Fork it ( https://github.com/[my-github-username]/avangate/fork )
41
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
42
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
43
+ 4. Push to the branch (`git push origin my-new-feature`)
44
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
Binary file
data/avangate.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'avangate/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "avangate"
8
+ spec.version = Avangate::VERSION
9
+ spec.authors = ["Leo"]
10
+ spec.email = ["leo.majowka@gmail.com"]
11
+
12
+ spec.summary = "Avangate integration for Ruby on Rails using their SOAP API with Savon"
13
+ spec.description = "Avangate integration for Ruby on Rails using their SOAP API with Savon"
14
+ spec.homepage = "https://github.com/lmajowka/avangate"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.8"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "avangate"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/lib/avangate.rb ADDED
@@ -0,0 +1,54 @@
1
+ require "avangate/version"
2
+ require "avangate/base"
3
+
4
+ module Avangate
5
+
6
+ END_POINT = 'https://api.avangate.com/order/2.3/soap/?wsdl'
7
+
8
+ class SOAP
9
+ def self.login
10
+ begin
11
+ response = client.call :login, message: login_params
12
+ return response.body.first[1].first[1]
13
+ rescue Savon::SOAPFault => e
14
+ AppLogger.logger.info("Avangate Authentication ERROR: #{e.message}")
15
+ return false
16
+ end
17
+ end
18
+
19
+ private
20
+
21
+ def self.client
22
+ @client ||= Savon.client(wsdl: END_POINT)
23
+ end
24
+
25
+ def self.login_params
26
+ {
27
+ MerchantCode: merchant_code,
28
+ Date: now,
29
+ hash: hash
30
+ }
31
+ end
32
+
33
+ def self.merchant_code
34
+ Avangate::Base.merchant_code
35
+ end
36
+
37
+ def self.now
38
+ Time.now.utc.strftime "%Y-%m-%d %H:%M:%S"
39
+ end
40
+
41
+ def self.secret_key
42
+ Avangate::Base.secret_key
43
+ end
44
+
45
+ def self.data_for_hash
46
+ merchant_code.size.to_s + merchant_code + now.size.to_s + now.to_s
47
+ end
48
+
49
+ def self.hash
50
+ OpenSSL::HMAC.hexdigest OpenSSL::Digest::Digest.new('md5'), secret_key, data_for_hash
51
+ end
52
+
53
+ end
54
+ end
@@ -0,0 +1,31 @@
1
+ module Avangate
2
+ class Base
3
+ class << self
4
+
5
+ def merchant_code(code)
6
+ @@merchant_code = code
7
+ end
8
+
9
+ def secret_key(key)
10
+ @@secret_key = key
11
+ end
12
+
13
+ def merchant_code
14
+ begin
15
+ @@merchant_code
16
+ rescue NameError
17
+ raise MissingMerchantCode, "No merchant_code has been set!"
18
+ end
19
+ end
20
+
21
+ def secret_key
22
+ begin
23
+ @@secret_key
24
+ rescue NameError
25
+ raise MissingSecretKey, "No secret_key has been set!"
26
+ end
27
+ end
28
+
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,3 @@
1
+ module Avangate
2
+ VERSION = "0.1.1"
3
+ end
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: avangate
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Leo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-10-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Avangate integration for Ruby on Rails using their SOAP API with Savon
42
+ email:
43
+ - leo.majowka@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".idea/.name"
50
+ - ".idea/.rakeTasks"
51
+ - ".idea/avangate.iml"
52
+ - ".idea/encodings.xml"
53
+ - ".idea/misc.xml"
54
+ - ".idea/modules.xml"
55
+ - ".idea/scopes/scope_settings.xml"
56
+ - ".idea/vcs.xml"
57
+ - ".idea/workspace.xml"
58
+ - ".travis.yml"
59
+ - CODE_OF_CONDUCT.md
60
+ - Gemfile
61
+ - LICENSE.txt
62
+ - README.md
63
+ - Rakefile
64
+ - avangate-0.1.0.gem
65
+ - avangate.gemspec
66
+ - bin/console
67
+ - bin/setup
68
+ - lib/avangate.rb
69
+ - lib/avangate/base.rb
70
+ - lib/avangate/version.rb
71
+ homepage: https://github.com/lmajowka/avangate
72
+ licenses:
73
+ - MIT
74
+ metadata: {}
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubyforge_project:
91
+ rubygems_version: 2.4.6
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: Avangate integration for Ruby on Rails using their SOAP API with Savon
95
+ test_files: []