epay-client 0.1.0

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: 5ebe7ab9d16f046d7df43ebc7bfc172255604f0c
4
+ data.tar.gz: c371790b4cafa464835922b31ccb1e8d4bcd153d
5
+ SHA512:
6
+ metadata.gz: b1b8ab3719c319e36e20d8477c2a3797194a4e1781204026b4aee5579c58a6024ae86056f4fc07463d441fb5aa0e67138f9d4bdecf6696e18ecbb526350fd10b
7
+ data.tar.gz: 60b42ab75eec6b123ea2d4cc032c75d5361d7afd9787b374d36dc94fab5e92d04fcc97582f02225a3c11fbcc7796fb3165063c6e8de421ca95ae962b1b585694
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
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 epay-client-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 epay-client-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install epay-client-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 epay-client-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><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,3 @@
1
+ <component name="ProjectDictionaryState">
2
+ <dictionary name="nishidaryu" />
3
+ </component>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="jdk" jdkName="rbenv: 2.3.1" jdkType="RUBY_SDK" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ <orderEntry type="library" scope="PROVIDED" name="addressable (v2.3.8, rbenv: 2.3.1) [gem]" level="application" />
8
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.0.pre.3, rbenv: 2.3.1) [gem]" level="application" />
9
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, rbenv: 2.3.1) [gem]" level="application" />
10
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.6, rbenv: 2.3.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v1.25.1, rbenv: 2.3.1) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, rbenv: 2.3.1) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v1.6.9, rbenv: 2.3.1) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.7.0, rbenv: 2.3.1) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.7.1, rbenv: 2.3.1) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.7.0, rbenv: 2.3.1) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.7.0, rbenv: 2.3.1) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.7.1, rbenv: 2.3.1) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="unirest (v1.1.2, rbenv: 2.3.1) [gem]" level="application" />
20
+ </component>
21
+ </module>
@@ -0,0 +1,5 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ </profile>
5
+ </component>
data/.idea/misc.xml ADDED
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectInspectionProfilesVisibleTreeState">
4
+ <entry key="Project Default">
5
+ <profile-state>
6
+ <expanded-state>
7
+ <State>
8
+ <id />
9
+ </State>
10
+ <State>
11
+ <id>Control flow issuesJavaScript</id>
12
+ </State>
13
+ <State>
14
+ <id>General</id>
15
+ </State>
16
+ <State>
17
+ <id>JavaScript</id>
18
+ </State>
19
+ </expanded-state>
20
+ <selected-state>
21
+ <State>
22
+ <id>ProblematicWhitespace</id>
23
+ </State>
24
+ </selected-state>
25
+ </profile-state>
26
+ </entry>
27
+ </component>
28
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.2.2" project-jdk-type="RUBY_SDK" />
29
+ </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/epay-client.iml" filepath="$PROJECT_DIR$/.idea/epay-client.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
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,442 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="e154f3d6-0fd5-455e-953e-ac72677c323f" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/epay/client.rb" afterPath="$PROJECT_DIR$/lib/epay/client.rb" />
6
+ </list>
7
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
+ <option name="TRACKING_ENABLED" value="true" />
9
+ <option name="SHOW_DIALOG" value="false" />
10
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
+ <option name="LAST_RESOLUTION" value="IGNORE" />
13
+ </component>
14
+ <component name="CreatePatchCommitExecutor">
15
+ <option name="PATCH_PATH" value="" />
16
+ </component>
17
+ <component name="FileEditorManager">
18
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
19
+ <file leaf-file-name="client.rb" pinned="false" current-in-tab="true">
20
+ <entry file="file://$PROJECT_DIR$/lib/epay/client.rb">
21
+ <provider selected="true" editor-type-id="text-editor">
22
+ <state relative-caret-position="15">
23
+ <caret line="1" column="25" lean-forward="false" selection-start-line="1" selection-start-column="25" selection-end-line="1" selection-end-column="25" />
24
+ <folding />
25
+ </state>
26
+ </provider>
27
+ </entry>
28
+ </file>
29
+ <file leaf-file-name="core.rb" pinned="false" current-in-tab="false">
30
+ <entry file="file://$PROJECT_DIR$/lib/epay/client/core.rb">
31
+ <provider selected="true" editor-type-id="text-editor">
32
+ <state relative-caret-position="270">
33
+ <caret line="18" column="0" lean-forward="false" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
34
+ <folding />
35
+ </state>
36
+ </provider>
37
+ </entry>
38
+ </file>
39
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
40
+ <entry file="file://$PROJECT_DIR$/Gemfile">
41
+ <provider selected="true" editor-type-id="text-editor">
42
+ <state relative-caret-position="60">
43
+ <caret line="4" column="56" lean-forward="false" selection-start-line="4" selection-start-column="56" selection-end-line="4" selection-end-column="56" />
44
+ <folding />
45
+ </state>
46
+ </provider>
47
+ </entry>
48
+ </file>
49
+ <file leaf-file-name="epay-client.gemspec" pinned="false" current-in-tab="false">
50
+ <entry file="file://$PROJECT_DIR$/epay-client.gemspec">
51
+ <provider selected="true" editor-type-id="text-editor">
52
+ <state relative-caret-position="315">
53
+ <caret line="21" column="19" lean-forward="true" selection-start-line="21" selection-start-column="19" selection-end-line="21" selection-end-column="19" />
54
+ <folding />
55
+ </state>
56
+ </provider>
57
+ </entry>
58
+ </file>
59
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
60
+ <entry file="file://$PROJECT_DIR$/lib/epay/client/version.rb">
61
+ <provider selected="true" editor-type-id="text-editor">
62
+ <state relative-caret-position="15">
63
+ <caret line="1" column="15" lean-forward="false" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="15" />
64
+ <folding />
65
+ </state>
66
+ </provider>
67
+ </entry>
68
+ </file>
69
+ </leaf>
70
+ </component>
71
+ <component name="FileTemplateManagerImpl">
72
+ <option name="RECENT_TEMPLATES">
73
+ <list>
74
+ <option value="Ruby Class Template" />
75
+ </list>
76
+ </option>
77
+ </component>
78
+ <component name="Git.Settings">
79
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
80
+ </component>
81
+ <component name="IdeDocumentHistory">
82
+ <option name="CHANGED_PATHS">
83
+ <list>
84
+ <option value="$PROJECT_DIR$/lib/epay/client/core.rb" />
85
+ <option value="$PROJECT_DIR$/epay-client.gemspec" />
86
+ <option value="$PROJECT_DIR$/lib/epay/client.rb" />
87
+ </list>
88
+ </option>
89
+ </component>
90
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
91
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
92
+ <component name="JsGulpfileManager">
93
+ <detection-done>true</detection-done>
94
+ <sorting>DEFINITION_ORDER</sorting>
95
+ </component>
96
+ <component name="ProjectFrameBounds">
97
+ <option name="width" value="1280" />
98
+ <option name="height" value="800" />
99
+ </component>
100
+ <component name="ProjectView">
101
+ <navigator currentView="ProjectPane" proportions="" version="1">
102
+ <flattenPackages />
103
+ <showMembers />
104
+ <showModules />
105
+ <showLibraryContents />
106
+ <hideEmptyPackages />
107
+ <abbreviatePackageNames />
108
+ <autoscrollToSource />
109
+ <autoscrollFromSource />
110
+ <sortByType />
111
+ <manualOrder />
112
+ <foldersAlwaysOnTop value="true" />
113
+ </navigator>
114
+ <panes>
115
+ <pane id="Scratches" />
116
+ <pane id="ProjectPane">
117
+ <subPane>
118
+ <PATH>
119
+ <PATH_ELEMENT>
120
+ <option name="myItemId" value="epay-client" />
121
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
122
+ </PATH_ELEMENT>
123
+ <PATH_ELEMENT>
124
+ <option name="myItemId" value="epay-client" />
125
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
126
+ </PATH_ELEMENT>
127
+ </PATH>
128
+ <PATH>
129
+ <PATH_ELEMENT>
130
+ <option name="myItemId" value="epay-client" />
131
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
132
+ </PATH_ELEMENT>
133
+ <PATH_ELEMENT>
134
+ <option name="myItemId" value="epay-client" />
135
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
136
+ </PATH_ELEMENT>
137
+ <PATH_ELEMENT>
138
+ <option name="myItemId" value="lib" />
139
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
140
+ </PATH_ELEMENT>
141
+ <PATH_ELEMENT>
142
+ <option name="myItemId" value="epay" />
143
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
144
+ </PATH_ELEMENT>
145
+ </PATH>
146
+ <PATH>
147
+ <PATH_ELEMENT>
148
+ <option name="myItemId" value="epay-client" />
149
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
150
+ </PATH_ELEMENT>
151
+ <PATH_ELEMENT>
152
+ <option name="myItemId" value="epay-client" />
153
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
154
+ </PATH_ELEMENT>
155
+ <PATH_ELEMENT>
156
+ <option name="myItemId" value="lib" />
157
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
158
+ </PATH_ELEMENT>
159
+ <PATH_ELEMENT>
160
+ <option name="myItemId" value="epay" />
161
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
162
+ </PATH_ELEMENT>
163
+ <PATH_ELEMENT>
164
+ <option name="myItemId" value="client" />
165
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
166
+ </PATH_ELEMENT>
167
+ </PATH>
168
+ </subPane>
169
+ </pane>
170
+ <pane id="Scope" />
171
+ </panes>
172
+ </component>
173
+ <component name="PropertiesComponent">
174
+ <property name="settings.editor.selected.configurable" value="Errors" />
175
+ <property name="WebServerToolWindowFactoryState" value="false" />
176
+ <property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
177
+ <property name="js.eslint.eslintPackage" value="" />
178
+ <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
179
+ <property name="FullScreen" value="true" />
180
+ </component>
181
+ <component name="RunManager">
182
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
183
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
184
+ <module name="" />
185
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
186
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
187
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
188
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
189
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
190
+ <envs />
191
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
192
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
193
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
194
+ <COVERAGE_PATTERN ENABLED="true">
195
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
196
+ </COVERAGE_PATTERN>
197
+ </EXTENSION>
198
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
199
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
200
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
201
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
202
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
203
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
204
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
205
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
206
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
207
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
208
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
209
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
210
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
211
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
212
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
213
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
214
+ <method />
215
+ </configuration>
216
+ <configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
217
+ <config-file value="" />
218
+ <node-interpreter value="project" />
219
+ <envs />
220
+ <method />
221
+ </configuration>
222
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
223
+ <method />
224
+ </configuration>
225
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
226
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
227
+ <module name="" />
228
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
229
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
230
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
231
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
232
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
233
+ <envs />
234
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
235
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
236
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
237
+ <COVERAGE_PATTERN ENABLED="true">
238
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
239
+ </COVERAGE_PATTERN>
240
+ </EXTENSION>
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="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
257
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
258
+ <module name="" />
259
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
260
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
261
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
262
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
263
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
264
+ <envs />
265
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
266
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
267
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
268
+ <COVERAGE_PATTERN ENABLED="true">
269
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
270
+ </COVERAGE_PATTERN>
271
+ </EXTENSION>
272
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
273
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
274
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
275
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
276
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
277
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
278
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
279
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
280
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
281
+ <method />
282
+ </configuration>
283
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
284
+ <node-interpreter>project</node-interpreter>
285
+ <node-options />
286
+ <gulpfile />
287
+ <tasks />
288
+ <arguments />
289
+ <envs />
290
+ <method />
291
+ </configuration>
292
+ <configuration default="true" type="js.build_tools.npm" factoryName="npm">
293
+ <command value="run" />
294
+ <scripts />
295
+ <node-interpreter value="project" />
296
+ <envs />
297
+ <method />
298
+ </configuration>
299
+ </component>
300
+ <component name="ShelveChangesManager" show_recycled="false">
301
+ <option name="remove_strategy" value="false" />
302
+ </component>
303
+ <component name="TaskManager">
304
+ <task active="true" id="Default" summary="Default task">
305
+ <changelist id="e154f3d6-0fd5-455e-953e-ac72677c323f" name="Default" comment="" />
306
+ <created>1527258223748</created>
307
+ <option name="number" value="Default" />
308
+ <option name="presentableId" value="Default" />
309
+ <updated>1527258223748</updated>
310
+ <workItem from="1527258225539" duration="861000" />
311
+ <workItem from="1527259215254" duration="1327000" />
312
+ <workItem from="1527339193547" duration="726000" />
313
+ </task>
314
+ <servers />
315
+ </component>
316
+ <component name="TimeTrackingManager">
317
+ <option name="totallyTimeSpent" value="2914000" />
318
+ </component>
319
+ <component name="ToolWindowManager">
320
+ <frame x="0" y="0" width="1280" height="800" extended-state="0" />
321
+ <editor active="true" />
322
+ <layout>
323
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
324
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
325
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
326
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
327
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
328
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
329
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
330
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
331
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
332
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
333
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
334
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
335
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.29625" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
336
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
337
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
338
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
339
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
340
+ </layout>
341
+ </component>
342
+ <component name="TypeScriptGeneratedFilesManager">
343
+ <option name="processedProjectFiles" value="true" />
344
+ </component>
345
+ <component name="VcsContentAnnotationSettings">
346
+ <option name="myLimit" value="2678400000" />
347
+ </component>
348
+ <component name="XDebuggerManager">
349
+ <breakpoint-manager />
350
+ <watches-manager />
351
+ </component>
352
+ <component name="editorHistoryManager">
353
+ <entry file="file://$PROJECT_DIR$/lib/epay/client.rb">
354
+ <provider selected="true" editor-type-id="text-editor">
355
+ <state relative-caret-position="60">
356
+ <caret line="4" column="0" lean-forward="false" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
357
+ <folding />
358
+ </state>
359
+ </provider>
360
+ </entry>
361
+ <entry file="file://$PROJECT_DIR$/lib/epay/client/core.rb">
362
+ <provider selected="true" editor-type-id="text-editor">
363
+ <state relative-caret-position="0">
364
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
365
+ <folding />
366
+ </state>
367
+ </provider>
368
+ </entry>
369
+ <entry file="file://$PROJECT_DIR$/lib/epay/client/version.rb">
370
+ <provider selected="true" editor-type-id="text-editor">
371
+ <state relative-caret-position="15">
372
+ <caret line="1" column="15" lean-forward="true" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="15" />
373
+ <folding />
374
+ </state>
375
+ </provider>
376
+ </entry>
377
+ <entry file="file://$PROJECT_DIR$/lib/epay/client.rb">
378
+ <provider selected="true" editor-type-id="text-editor">
379
+ <state relative-caret-position="60">
380
+ <caret line="4" column="0" lean-forward="false" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
381
+ <folding />
382
+ </state>
383
+ </provider>
384
+ </entry>
385
+ <entry file="file://$PROJECT_DIR$/lib/epay/client/core.rb">
386
+ <provider selected="true" editor-type-id="text-editor">
387
+ <state relative-caret-position="0">
388
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
389
+ <folding />
390
+ </state>
391
+ </provider>
392
+ </entry>
393
+ <entry file="file://$PROJECT_DIR$/lib/epay/client/version.rb">
394
+ <provider selected="true" editor-type-id="text-editor">
395
+ <state relative-caret-position="15">
396
+ <caret line="1" column="15" lean-forward="true" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="15" />
397
+ <folding />
398
+ </state>
399
+ </provider>
400
+ </entry>
401
+ <entry file="file://$PROJECT_DIR$/Gemfile">
402
+ <provider selected="true" editor-type-id="text-editor">
403
+ <state relative-caret-position="60">
404
+ <caret line="4" column="56" lean-forward="false" selection-start-line="4" selection-start-column="56" selection-end-line="4" selection-end-column="56" />
405
+ <folding />
406
+ </state>
407
+ </provider>
408
+ </entry>
409
+ <entry file="file://$PROJECT_DIR$/epay-client.gemspec">
410
+ <provider selected="true" editor-type-id="text-editor">
411
+ <state relative-caret-position="315">
412
+ <caret line="21" column="19" lean-forward="true" selection-start-line="21" selection-start-column="19" selection-end-line="21" selection-end-column="19" />
413
+ <folding />
414
+ </state>
415
+ </provider>
416
+ </entry>
417
+ <entry file="file://$PROJECT_DIR$/lib/epay/client/core.rb">
418
+ <provider selected="true" editor-type-id="text-editor">
419
+ <state relative-caret-position="270">
420
+ <caret line="18" column="0" lean-forward="false" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
421
+ <folding />
422
+ </state>
423
+ </provider>
424
+ </entry>
425
+ <entry file="file://$PROJECT_DIR$/lib/epay/client/version.rb">
426
+ <provider selected="true" editor-type-id="text-editor">
427
+ <state relative-caret-position="15">
428
+ <caret line="1" column="15" lean-forward="false" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="15" />
429
+ <folding />
430
+ </state>
431
+ </provider>
432
+ </entry>
433
+ <entry file="file://$PROJECT_DIR$/lib/epay/client.rb">
434
+ <provider selected="true" editor-type-id="text-editor">
435
+ <state relative-caret-position="15">
436
+ <caret line="1" column="25" lean-forward="false" selection-start-line="1" selection-start-column="25" selection-end-line="1" selection-end-column="25" />
437
+ <folding />
438
+ </state>
439
+ </provider>
440
+ </entry>
441
+ </component>
442
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.16.0.pre.3
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at nishidaryu416@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in epay-client.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ epay-client (0.1.0)
5
+ unirest
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.3.8)
11
+ diff-lcs (1.3)
12
+ json (1.8.6)
13
+ mime-types (1.25.1)
14
+ rake (10.4.2)
15
+ rest-client (1.6.9)
16
+ mime-types (~> 1.16)
17
+ rspec (3.7.0)
18
+ rspec-core (~> 3.7.0)
19
+ rspec-expectations (~> 3.7.0)
20
+ rspec-mocks (~> 3.7.0)
21
+ rspec-core (3.7.1)
22
+ rspec-support (~> 3.7.0)
23
+ rspec-expectations (3.7.0)
24
+ diff-lcs (>= 1.2.0, < 2.0)
25
+ rspec-support (~> 3.7.0)
26
+ rspec-mocks (3.7.0)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.7.0)
29
+ rspec-support (3.7.1)
30
+ unirest (1.1.2)
31
+ addressable (~> 2.3.5)
32
+ json (~> 1.8.1)
33
+ rest-client (~> 1.6.7)
34
+
35
+ PLATFORMS
36
+ ruby
37
+
38
+ DEPENDENCIES
39
+ bundler (~> 1.16.a)
40
+ epay-client!
41
+ rake (~> 10.0)
42
+ rspec (~> 3.0)
43
+
44
+ BUNDLED WITH
45
+ 1.16.0.pre.3
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 NishidaRyu416
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,43 @@
1
+ # Epay::Client
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/epay/client`. 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 'epay-client'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install epay-client
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/epay-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Epay::Client project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/epay-client/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "epay/client"
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(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,29 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "epay/client/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "epay-client"
8
+ spec.version = Epay::Client::VERSION
9
+ spec.authors = ["NishidaRyu416"]
10
+ spec.email = ["nishidaryu416@gmail.com"]
11
+
12
+ spec.summary = "Ruby client of epay.com's api"
13
+ spec.description = "epay.com is a payment service and it provides APIs, and this gem will help you use their APIs easily"
14
+ spec.homepage = "https://www.ryunishida.online/"
15
+ spec.license = "MIT"
16
+
17
+ spec.add_dependency "unirest"
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
+ f.match(%r{^(test|spec|features)/})
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.16.a"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rspec", "~> 3.0"
29
+ end
@@ -0,0 +1,7 @@
1
+ require "epay/client/version"
2
+ require "epay/client/core"
3
+ module Epay
4
+ module Client
5
+
6
+ end
7
+ end
@@ -0,0 +1,18 @@
1
+ require 'digest/md5'
2
+ require 'unirest'
3
+ require 'json'
4
+
5
+ def get_transactions(v2_hash,account)
6
+ uri="https://api.epay.com/paymentApi/getTransactionRecords?PAYER_ACCOUNT=#{account}&V2_HASH=#{v2_hash}"
7
+ request(uri)
8
+ end
9
+
10
+ def request(uri)
11
+ response = Unirest.get "#{uri}",
12
+ headers:{ "Accept" => "application/json" } ,parameters: nil
13
+ response
14
+ end
15
+ def calc_v2_hash(account,key)
16
+ @v2_hash=Digest::MD5.hexdigest("#{account}:#{key}")
17
+ end
18
+
@@ -0,0 +1,5 @@
1
+ module Epay
2
+ module Client
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,124 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: epay-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - NishidaRyu416
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-05-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: unirest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.16.a
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.16.a
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ description: epay.com is a payment service and it provides APIs, and this gem will
70
+ help you use their APIs easily
71
+ email:
72
+ - nishidaryu416@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".idea/.rakeTasks"
79
+ - ".idea/dictionaries/nishidaryu.xml"
80
+ - ".idea/epay-client.iml"
81
+ - ".idea/inspectionProfiles/Project_Default.xml"
82
+ - ".idea/misc.xml"
83
+ - ".idea/modules.xml"
84
+ - ".idea/vcs.xml"
85
+ - ".idea/workspace.xml"
86
+ - ".rspec"
87
+ - ".travis.yml"
88
+ - CODE_OF_CONDUCT.md
89
+ - Gemfile
90
+ - Gemfile.lock
91
+ - LICENSE.txt
92
+ - README.md
93
+ - Rakefile
94
+ - bin/console
95
+ - bin/setup
96
+ - epay-client.gemspec
97
+ - lib/epay/client.rb
98
+ - lib/epay/client/core.rb
99
+ - lib/epay/client/version.rb
100
+ homepage: https://www.ryunishida.online/
101
+ licenses:
102
+ - MIT
103
+ metadata: {}
104
+ post_install_message:
105
+ rdoc_options: []
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirements: []
119
+ rubyforge_project:
120
+ rubygems_version: 2.5.1
121
+ signing_key:
122
+ specification_version: 4
123
+ summary: Ruby client of epay.com's api
124
+ test_files: []