suning_pay 0.2.0 → 0.2.1

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: c4f0ef70b4403ee3143a282ed7507436d63cc6e5
4
- data.tar.gz: f327488b36070d3d8e942bc48bfa13e098731d79
3
+ metadata.gz: b9d1a6c90981782ee6c6adc7906034e8122b6b6b
4
+ data.tar.gz: 8476d5d15e5125108508fe410b0494329be9180f
5
5
  SHA512:
6
- metadata.gz: 10142f955d7a6638cb4688c65768a8f04ab9c4db6868607cc15c570ceb5206df3845cf2b2fc092dabe19666294caece4c1ef2866ac447ed85450b41ce2161112
7
- data.tar.gz: 80183277c1e0c4172d84cf7c800e09e92823042d77fabe7a8decc63c5ef3a8adf909c1ddb36f0803279a908affb9e73dc7135674962a022a4cbf96b6fe805948
6
+ metadata.gz: 8bbeb6a4c4b972aafd2361b2b81fe3b7a9fea3f0e8b8d720aa6db7c3c2450b0abb1cda6131414b41f91f9dc98919cf3342c8001df81d69c172a1c1ccd4d4c7c6
7
+ data.tar.gz: 03ed75d1a9a1bfec9b48fe626b3d3ea86c29b19405e33dc0c3363584d75d8f21704e4531f5906a8ae31433ce186fe3f50cccf05683387dd64ff55dee8abd0e25
data/.idea/suning_pay.iml CHANGED
@@ -22,6 +22,26 @@
22
22
  <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
23
23
  <method />
24
24
  </configuration>
25
+ <configuration default="false" name="IRB console: suning_pay" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
26
+ <module name="suning_pay" />
27
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
28
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
29
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
30
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
31
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
32
+ <envs />
33
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
34
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
35
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
36
+ <COVERAGE_PATTERN ENABLED="true">
37
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
38
+ </COVERAGE_PATTERN>
39
+ </EXTENSION>
40
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$APPLICATION_HOME_DIR$/rb/testing/runner/irb.rb" />
41
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
42
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
43
+ <method />
44
+ </configuration>
25
45
  </local>
26
46
  </component>
27
47
  <component name="NewModuleRootManager">
data/.idea/workspace.xml CHANGED
@@ -2,8 +2,12 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="c8cf8def-5556-418a-b301-7917294a6f44" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/suning_pay.iml" afterPath="$PROJECT_DIR$/.idea/suning_pay.iml" />
5
6
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/suning_pay.gemspec" afterPath="$PROJECT_DIR$/suning_pay.gemspec" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Rakefile" afterPath="$PROJECT_DIR$/Rakefile" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/suning_pay/ent_service.rb" afterPath="$PROJECT_DIR$/lib/suning_pay/ent_service.rb" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/suning_pay/version.rb" afterPath="$PROJECT_DIR$/lib/suning_pay/version.rb" />
10
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/test/suning_pay_test.rb" afterPath="$PROJECT_DIR$/test/suning_pay_test.rb" />
7
11
  </list>
8
12
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
13
  <option name="TRACKING_ENABLED" value="true" />
@@ -13,106 +17,107 @@
13
17
  <option name="LAST_RESOLUTION" value="IGNORE" />
14
18
  </component>
15
19
  <component name="CoverageDataManager">
20
+ <SUITE FILE_PATH="coverage/suning_pay@IRB_console__suning_pay.coverage" NAME="IRB console: suning_pay Coverage Results" MODIFIED="1502171347472" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="suning_pay" />
16
21
  <SUITE FILE_PATH="coverage/suning_pay@suning_pay.coverage" NAME="suning_pay Coverage Results" MODIFIED="1501653183953" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="suning_pay" />
17
22
  </component>
18
23
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
19
24
  <component name="FileEditorManager">
20
25
  <leaf>
21
- <file leaf-file-name="suning_pay.rb" pinned="false" current-in-tab="false">
22
- <entry file="file://$PROJECT_DIR$/lib/suning_pay.rb">
26
+ <file leaf-file-name="rsa.rb" pinned="false" current-in-tab="false">
27
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay/rsa.rb">
23
28
  <provider selected="true" editor-type-id="text-editor">
24
- <state relative-caret-position="-20">
25
- <caret line="28" column="91" lean-forward="false" selection-start-line="28" selection-start-column="71" selection-end-line="28" selection-end-column="91" />
29
+ <state relative-caret-position="225">
30
+ <caret line="15" column="62" lean-forward="false" selection-start-line="15" selection-start-column="62" selection-end-line="15" selection-end-column="62" />
26
31
  <folding />
27
32
  </state>
28
33
  </provider>
29
34
  </entry>
30
35
  </file>
31
- <file leaf-file-name="suning_pay.rb" pinned="false" current-in-tab="false">
32
- <entry file="file://$PROJECT_DIR$/suning_pay.rb">
36
+ <file leaf-file-name="service.rb" pinned="false" current-in-tab="false">
37
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay/service.rb">
33
38
  <provider selected="true" editor-type-id="text-editor">
34
- <state relative-caret-position="120">
35
- <caret line="8" column="33" lean-forward="false" selection-start-line="8" selection-start-column="25" selection-end-line="8" selection-end-column="33" />
39
+ <state relative-caret-position="870">
40
+ <caret line="58" column="9" lean-forward="false" selection-start-line="58" selection-start-column="9" selection-end-line="58" selection-end-column="9" />
36
41
  <folding />
37
42
  </state>
38
43
  </provider>
39
44
  </entry>
40
45
  </file>
41
- <file leaf-file-name="rsa.rb" pinned="false" current-in-tab="false">
42
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/rsa.rb">
46
+ <file leaf-file-name="ent_service.rb" pinned="false" current-in-tab="false">
47
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay/ent_service.rb">
43
48
  <provider selected="true" editor-type-id="text-editor">
44
- <state relative-caret-position="3">
45
- <caret line="15" column="62" lean-forward="false" selection-start-line="15" selection-start-column="62" selection-end-line="15" selection-end-column="62" />
49
+ <state relative-caret-position="465">
50
+ <caret line="31" column="49" lean-forward="false" selection-start-line="31" selection-start-column="49" selection-end-line="31" selection-end-column="49" />
46
51
  <folding />
47
52
  </state>
48
53
  </provider>
49
54
  </entry>
50
55
  </file>
51
- <file leaf-file-name="suning_pay.gemspec" pinned="false" current-in-tab="true">
52
- <entry file="file://$PROJECT_DIR$/suning_pay.gemspec">
56
+ <file leaf-file-name="suning_pay_test.rb" pinned="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/test/suning_pay_test.rb">
53
58
  <provider selected="true" editor-type-id="text-editor">
54
- <state relative-caret-position="345">
55
- <caret line="23" column="7" lean-forward="false" selection-start-line="18" selection-start-column="4" selection-end-line="23" selection-end-column="7" />
59
+ <state relative-caret-position="60">
60
+ <caret line="4" column="17" lean-forward="false" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="17" />
56
61
  <folding />
57
62
  </state>
58
63
  </provider>
59
64
  </entry>
60
65
  </file>
61
- <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
62
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/version.rb">
66
+ <file leaf-file-name="suning_pay.rb" pinned="false" current-in-tab="false">
67
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay.rb">
63
68
  <provider selected="true" editor-type-id="text-editor">
64
- <state relative-caret-position="15">
65
- <caret line="1" column="16" lean-forward="false" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
69
+ <state relative-caret-position="281">
70
+ <caret line="28" column="91" lean-forward="false" selection-start-line="28" selection-start-column="71" selection-end-line="28" selection-end-column="91" />
66
71
  <folding />
67
72
  </state>
68
73
  </provider>
69
74
  </entry>
70
75
  </file>
71
- <file leaf-file-name="service.rb" pinned="false" current-in-tab="false">
72
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/service.rb">
76
+ <file leaf-file-name="suning_pay.rb" pinned="false" current-in-tab="false">
77
+ <entry file="file://$PROJECT_DIR$/suning_pay.rb">
73
78
  <provider selected="true" editor-type-id="text-editor">
74
- <state relative-caret-position="870">
75
- <caret line="58" column="9" lean-forward="false" selection-start-line="58" selection-start-column="9" selection-end-line="58" selection-end-column="9" />
79
+ <state relative-caret-position="120">
80
+ <caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="34" />
76
81
  <folding />
77
82
  </state>
78
83
  </provider>
79
84
  </entry>
80
85
  </file>
81
- <file leaf-file-name="ent_service.rb" pinned="false" current-in-tab="false">
82
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/ent_service.rb">
86
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
87
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay/version.rb">
83
88
  <provider selected="true" editor-type-id="text-editor">
84
- <state relative-caret-position="588">
85
- <caret line="145" column="13" lean-forward="true" selection-start-line="145" selection-start-column="13" selection-end-line="145" selection-end-column="13" />
89
+ <state relative-caret-position="15">
90
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
86
91
  <folding />
87
92
  </state>
88
93
  </provider>
89
94
  </entry>
90
95
  </file>
91
- <file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
92
- <entry file="file://$PROJECT_DIR$/Rakefile">
96
+ <file leaf-file-name="test_helper.rb" pinned="false" current-in-tab="false">
97
+ <entry file="file://$PROJECT_DIR$/test/test_helper.rb">
93
98
  <provider selected="true" editor-type-id="text-editor">
94
99
  <state relative-caret-position="45">
95
- <caret line="3" column="4" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="6" />
100
+ <caret line="3" column="17" lean-forward="false" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="17" />
96
101
  <folding />
97
102
  </state>
98
103
  </provider>
99
104
  </entry>
100
105
  </file>
101
- <file leaf-file-name="railtie.rb" pinned="false" current-in-tab="false">
102
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/railtie.rb">
106
+ <file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
107
+ <entry file="file://$PROJECT_DIR$/Rakefile">
103
108
  <provider selected="true" editor-type-id="text-editor">
104
- <state relative-caret-position="0">
105
- <caret line="0" column="16" lean-forward="false" selection-start-line="0" selection-start-column="16" selection-end-line="0" selection-end-column="16" />
109
+ <state relative-caret-position="45">
110
+ <caret line="3" column="18" lean-forward="false" selection-start-line="3" selection-start-column="18" selection-end-line="3" selection-end-column="18" />
106
111
  <folding />
107
112
  </state>
108
113
  </provider>
109
114
  </entry>
110
115
  </file>
111
- <file leaf-file-name="util.rb" pinned="false" current-in-tab="false">
112
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/util.rb">
116
+ <file leaf-file-name="railtie.rb" pinned="false" current-in-tab="false">
117
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay/railtie.rb">
113
118
  <provider selected="true" editor-type-id="text-editor">
114
- <state relative-caret-position="574">
115
- <caret line="48" column="13" lean-forward="false" selection-start-line="48" selection-start-column="13" selection-end-line="48" selection-end-column="46" />
119
+ <state relative-caret-position="0">
120
+ <caret line="0" column="16" lean-forward="false" selection-start-line="0" selection-start-column="16" selection-end-line="0" selection-end-column="16" />
116
121
  <folding />
117
122
  </state>
118
123
  </provider>
@@ -141,17 +146,18 @@
141
146
  <option value="$PROJECT_DIR$/lib/suning_pay/utils.rb" />
142
147
  <option value="$PROJECT_DIR$/bin/suning_pay" />
143
148
  <option value="$PROJECT_DIR$/lib/rake/suning_pay.rake" />
144
- <option value="$PROJECT_DIR$/Rakefile" />
145
149
  <option value="$PROJECT_DIR$/lib/suning_pay/railtie.rb" />
146
150
  <option value="$PROJECT_DIR$/lib/suning_pay/rsa.rb" />
147
- <option value="$PROJECT_DIR$/lib/suning_pay/version.rb" />
148
151
  <option value="$PROJECT_DIR$/lib/suning_pay/service.rb" />
149
152
  <option value="$PROJECT_DIR$/README.md" />
150
153
  <option value="$PROJECT_DIR$/lib/suning_pay.rb" />
151
154
  <option value="$PROJECT_DIR$/lib/suning_pay/util.rb" />
152
- <option value="$PROJECT_DIR$/lib/suning_pay/ent_service.rb" />
153
155
  <option value="$PROJECT_DIR$/suning_pay.rb" />
154
156
  <option value="$PROJECT_DIR$/suning_pay.gemspec" />
157
+ <option value="$PROJECT_DIR$/Rakefile" />
158
+ <option value="$PROJECT_DIR$/test/suning_pay_test.rb" />
159
+ <option value="$PROJECT_DIR$/lib/suning_pay/ent_service.rb" />
160
+ <option value="$PROJECT_DIR$/lib/suning_pay/version.rb" />
155
161
  </list>
156
162
  </option>
157
163
  </component>
@@ -206,6 +212,20 @@
206
212
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
207
213
  </PATH_ELEMENT>
208
214
  </PATH>
215
+ <PATH>
216
+ <PATH_ELEMENT>
217
+ <option name="myItemId" value="suning_pay" />
218
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
219
+ </PATH_ELEMENT>
220
+ <PATH_ELEMENT>
221
+ <option name="myItemId" value="suning_pay" />
222
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
223
+ </PATH_ELEMENT>
224
+ <PATH_ELEMENT>
225
+ <option name="myItemId" value="test" />
226
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
227
+ </PATH_ELEMENT>
228
+ </PATH>
209
229
  <PATH>
210
230
  <PATH_ELEMENT>
211
231
  <option name="myItemId" value="suning_pay" />
@@ -238,6 +258,24 @@
238
258
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
239
259
  </PATH_ELEMENT>
240
260
  </PATH>
261
+ <PATH>
262
+ <PATH_ELEMENT>
263
+ <option name="myItemId" value="suning_pay" />
264
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
265
+ </PATH_ELEMENT>
266
+ <PATH_ELEMENT>
267
+ <option name="myItemId" value="suning_pay" />
268
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
269
+ </PATH_ELEMENT>
270
+ <PATH_ELEMENT>
271
+ <option name="myItemId" value="lib" />
272
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
273
+ </PATH_ELEMENT>
274
+ <PATH_ELEMENT>
275
+ <option name="myItemId" value="rake" />
276
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
277
+ </PATH_ELEMENT>
278
+ </PATH>
241
279
  </subPane>
242
280
  </pane>
243
281
  </panes>
@@ -263,7 +301,7 @@
263
301
  </list>
264
302
  </option>
265
303
  </component>
266
- <component name="RunManager" selected="Ruby.suning_pay">
304
+ <component name="RunManager" selected="IRB console.IRB console: suning_pay">
267
305
  <configuration default="false" name="suning_pay" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
268
306
  <module name="suning_pay" />
269
307
  <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -283,6 +321,26 @@
283
321
  <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
284
322
  <method />
285
323
  </configuration>
324
+ <configuration default="false" name="IRB console: suning_pay" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
325
+ <module name="suning_pay" />
326
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
327
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
328
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
329
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
330
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
331
+ <envs />
332
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
333
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
334
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
335
+ <COVERAGE_PATTERN ENABLED="true">
336
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
337
+ </COVERAGE_PATTERN>
338
+ </EXTENSION>
339
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$APPLICATION_HOME_DIR$/rb/testing/runner/irb.rb" />
340
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
341
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
342
+ <method />
343
+ </configuration>
286
344
  <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
287
345
  <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
288
346
  <module name="" />
@@ -317,6 +375,26 @@
317
375
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
318
376
  <method />
319
377
  </configuration>
378
+ <configuration default="true" type="IrbRunConfigurationType" factoryName="IRB console">
379
+ <module name="" />
380
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
381
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="" />
382
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
383
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
384
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
385
+ <envs />
386
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
387
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
388
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
389
+ <COVERAGE_PATTERN ENABLED="true">
390
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
391
+ </COVERAGE_PATTERN>
392
+ </EXTENSION>
393
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
394
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
395
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
396
+ <method />
397
+ </configuration>
320
398
  <configuration default="true" type="JavaScriptTestRunnerJest" factoryName="Jest">
321
399
  <node-interpreter value="project" />
322
400
  <working-dir value="" />
@@ -420,12 +498,14 @@
420
498
  <envs />
421
499
  <method />
422
500
  </configuration>
423
- <list size="1">
501
+ <list size="2">
424
502
  <item index="0" class="java.lang.String" itemvalue="Ruby.suning_pay" />
503
+ <item index="1" class="java.lang.String" itemvalue="IRB console.IRB console: suning_pay" />
425
504
  </list>
426
505
  <recent_temporary>
427
- <list size="1">
428
- <item index="0" class="java.lang.String" itemvalue="Ruby.suning_pay" />
506
+ <list size="2">
507
+ <item index="0" class="java.lang.String" itemvalue="IRB console.IRB console: suning_pay" />
508
+ <item index="1" class="java.lang.String" itemvalue="Ruby.suning_pay" />
429
509
  </list>
430
510
  </recent_temporary>
431
511
  </component>
@@ -443,7 +523,7 @@
443
523
  <option name="number" value="Default" />
444
524
  <option name="presentableId" value="Default" />
445
525
  <updated>1501651114580</updated>
446
- <workItem from="1501651115718" duration="50011000" />
526
+ <workItem from="1501651115718" duration="53549000" />
447
527
  </task>
448
528
  <task id="LOCAL-00001" summary="add params">
449
529
  <created>1501809137189</created>
@@ -529,27 +609,34 @@
529
609
  <option name="project" value="LOCAL" />
530
610
  <updated>1502166827564</updated>
531
611
  </task>
532
- <option name="localTasksCounter" value="13" />
612
+ <task id="LOCAL-00013" summary="homepage">
613
+ <created>1502168463409</created>
614
+ <option name="number" value="00013" />
615
+ <option name="presentableId" value="LOCAL-00013" />
616
+ <option name="project" value="LOCAL" />
617
+ <updated>1502168463409</updated>
618
+ </task>
619
+ <option name="localTasksCounter" value="14" />
533
620
  <servers />
534
621
  </component>
535
622
  <component name="TimeTrackingManager">
536
- <option name="totallyTimeSpent" value="50011000" />
623
+ <option name="totallyTimeSpent" value="53549000" />
537
624
  </component>
538
625
  <component name="ToolWindowManager">
539
626
  <frame x="1443" y="0" width="1117" height="1440" extended-state="0" />
540
- <editor active="true" />
541
627
  <layout>
542
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.17905103" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
543
628
  <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" />
544
- <window_info id="JSON Utils" 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="-1" side_tool="false" content_ui="tabs" />
545
629
  <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="-1" side_tool="true" content_ui="tabs" />
546
- <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="-1" side_tool="false" content_ui="tabs" />
630
+ <window_info id="REST Client" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32980973" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
547
631
  <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="-1" side_tool="false" content_ui="tabs" />
548
632
  <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.30162087" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
549
- <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" />
550
633
  <window_info id="Terminal" 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" />
551
- <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="-1" side_tool="true" content_ui="tabs" />
552
634
  <window_info id="JSON Viewer" 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="-1" side_tool="false" content_ui="tabs" />
635
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.17905103" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
636
+ <window_info id="JSON Utils" 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="-1" side_tool="false" content_ui="tabs" />
637
+ <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="-1" side_tool="false" content_ui="tabs" />
638
+ <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" />
639
+ <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="-1" side_tool="true" content_ui="tabs" />
553
640
  <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" />
554
641
  <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" />
555
642
  <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" />
@@ -574,29 +661,14 @@
574
661
  <MESSAGE value="add query service" />
575
662
  <MESSAGE value="doc" />
576
663
  <MESSAGE value="fix json bug" />
577
- <option name="LAST_COMMIT_MESSAGE" value="fix json bug" />
664
+ <MESSAGE value="homepage" />
665
+ <option name="LAST_COMMIT_MESSAGE" value="homepage" />
578
666
  </component>
579
667
  <component name="XDebuggerManager">
580
668
  <breakpoint-manager />
581
669
  <watches-manager />
582
670
  </component>
583
671
  <component name="editorHistoryManager">
584
- <entry file="file://$PROJECT_DIR$/test/suning_pay_test.rb">
585
- <provider selected="true" editor-type-id="text-editor">
586
- <state relative-caret-position="0">
587
- <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
588
- <folding />
589
- </state>
590
- </provider>
591
- </entry>
592
- <entry file="file://$PROJECT_DIR$/test/test_helper.rb">
593
- <provider selected="true" editor-type-id="text-editor">
594
- <state relative-caret-position="0">
595
- <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
596
- <folding />
597
- </state>
598
- </provider>
599
- </entry>
600
672
  <entry file="file://$PROJECT_DIR$/.travis.yml">
601
673
  <provider selected="true" editor-type-id="text-editor">
602
674
  <state relative-caret-position="0">
@@ -680,18 +752,33 @@
680
752
  </state>
681
753
  </provider>
682
754
  </entry>
683
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/railtie.rb">
755
+ <entry file="file://$PROJECT_DIR$/README.md">
756
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
757
+ <state split_layout="SPLIT">
758
+ <first_editor relative-caret-position="855">
759
+ <caret line="57" column="41" lean-forward="false" selection-start-line="57" selection-start-column="41" selection-end-line="57" selection-end-column="41" />
760
+ <folding>
761
+ <marker date="1502099481000" expanded="true" signature="1418:2479" ph="for ... end" />
762
+ <marker date="1502099481000" expanded="true" signature="1695:2479" ph="for ... end" />
763
+ <marker date="1502099481000" expanded="true" signature="1975:2479" ph="for ... end" />
764
+ </folding>
765
+ </first_editor>
766
+ <second_editor />
767
+ </state>
768
+ </provider>
769
+ </entry>
770
+ <entry file="file://$PROJECT_DIR$/suning_pay.gemspec">
684
771
  <provider selected="true" editor-type-id="text-editor">
685
- <state relative-caret-position="0">
686
- <caret line="0" column="16" lean-forward="false" selection-start-line="0" selection-start-column="16" selection-end-line="0" selection-end-column="16" />
772
+ <state relative-caret-position="525">
773
+ <caret line="35" column="14" lean-forward="false" selection-start-line="35" selection-start-column="14" selection-end-line="35" selection-end-column="14" />
687
774
  <folding />
688
775
  </state>
689
776
  </provider>
690
777
  </entry>
691
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/version.rb">
778
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay/util.rb">
692
779
  <provider selected="true" editor-type-id="text-editor">
693
- <state relative-caret-position="15">
694
- <caret line="1" column="16" lean-forward="false" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
780
+ <state relative-caret-position="574">
781
+ <caret line="48" column="13" lean-forward="false" selection-start-line="48" selection-start-column="13" selection-end-line="48" selection-end-column="46" />
695
782
  <folding />
696
783
  </state>
697
784
  </provider>
@@ -704,32 +791,33 @@
704
791
  </state>
705
792
  </provider>
706
793
  </entry>
707
- <entry file="file://$PROJECT_DIR$/lib/suning_pay/util.rb">
794
+ <entry file="file://$PROJECT_DIR$/test/test_helper.rb">
708
795
  <provider selected="true" editor-type-id="text-editor">
709
- <state relative-caret-position="574">
710
- <caret line="48" column="13" lean-forward="false" selection-start-line="48" selection-start-column="13" selection-end-line="48" selection-end-column="46" />
796
+ <state relative-caret-position="45">
797
+ <caret line="3" column="17" lean-forward="false" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="17" />
711
798
  <folding />
712
799
  </state>
713
800
  </provider>
714
801
  </entry>
715
- <entry file="file://$PROJECT_DIR$/README.md">
716
- <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
717
- <state split_layout="SPLIT">
718
- <first_editor relative-caret-position="855">
719
- <caret line="57" column="41" lean-forward="false" selection-start-line="57" selection-start-column="41" selection-end-line="57" selection-end-column="41" />
720
- <folding>
721
- <marker date="1502099481000" expanded="true" signature="1418:2479" ph="for ... end" />
722
- <marker date="1502099481000" expanded="true" signature="1695:2479" ph="for ... end" />
723
- <marker date="1502099481000" expanded="true" signature="1975:2479" ph="for ... end" />
724
- </folding>
725
- </first_editor>
726
- <second_editor />
802
+ <entry file="file://$PROJECT_DIR$/Rakefile">
803
+ <provider selected="true" editor-type-id="text-editor">
804
+ <state relative-caret-position="45">
805
+ <caret line="3" column="18" lean-forward="false" selection-start-line="3" selection-start-column="18" selection-end-line="3" selection-end-column="18" />
806
+ <folding />
807
+ </state>
808
+ </provider>
809
+ </entry>
810
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay/railtie.rb">
811
+ <provider selected="true" editor-type-id="text-editor">
812
+ <state relative-caret-position="0">
813
+ <caret line="0" column="16" lean-forward="false" selection-start-line="0" selection-start-column="16" selection-end-line="0" selection-end-column="16" />
814
+ <folding />
727
815
  </state>
728
816
  </provider>
729
817
  </entry>
730
818
  <entry file="file://$PROJECT_DIR$/lib/suning_pay/rsa.rb">
731
819
  <provider selected="true" editor-type-id="text-editor">
732
- <state relative-caret-position="3">
820
+ <state relative-caret-position="225">
733
821
  <caret line="15" column="62" lean-forward="false" selection-start-line="15" selection-start-column="62" selection-end-line="15" selection-end-column="62" />
734
822
  <folding />
735
823
  </state>
@@ -737,40 +825,40 @@
737
825
  </entry>
738
826
  <entry file="file://$PROJECT_DIR$/lib/suning_pay.rb">
739
827
  <provider selected="true" editor-type-id="text-editor">
740
- <state relative-caret-position="-20">
828
+ <state relative-caret-position="281">
741
829
  <caret line="28" column="91" lean-forward="false" selection-start-line="28" selection-start-column="71" selection-end-line="28" selection-end-column="91" />
742
830
  <folding />
743
831
  </state>
744
832
  </provider>
745
833
  </entry>
746
- <entry file="file://$PROJECT_DIR$/suning_pay.rb">
834
+ <entry file="file://$PROJECT_DIR$/test/suning_pay_test.rb">
747
835
  <provider selected="true" editor-type-id="text-editor">
748
- <state relative-caret-position="120">
749
- <caret line="8" column="33" lean-forward="false" selection-start-line="8" selection-start-column="25" selection-end-line="8" selection-end-column="33" />
836
+ <state relative-caret-position="60">
837
+ <caret line="4" column="17" lean-forward="false" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="17" />
750
838
  <folding />
751
839
  </state>
752
840
  </provider>
753
841
  </entry>
754
842
  <entry file="file://$PROJECT_DIR$/lib/suning_pay/ent_service.rb">
755
843
  <provider selected="true" editor-type-id="text-editor">
756
- <state relative-caret-position="588">
757
- <caret line="145" column="13" lean-forward="true" selection-start-line="145" selection-start-column="13" selection-end-line="145" selection-end-column="13" />
844
+ <state relative-caret-position="465">
845
+ <caret line="31" column="49" lean-forward="false" selection-start-line="31" selection-start-column="49" selection-end-line="31" selection-end-column="49" />
758
846
  <folding />
759
847
  </state>
760
848
  </provider>
761
849
  </entry>
762
- <entry file="file://$PROJECT_DIR$/Rakefile">
850
+ <entry file="file://$PROJECT_DIR$/suning_pay.rb">
763
851
  <provider selected="true" editor-type-id="text-editor">
764
- <state relative-caret-position="45">
765
- <caret line="3" column="4" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="6" />
852
+ <state relative-caret-position="120">
853
+ <caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="34" />
766
854
  <folding />
767
855
  </state>
768
856
  </provider>
769
857
  </entry>
770
- <entry file="file://$PROJECT_DIR$/suning_pay.gemspec">
858
+ <entry file="file://$PROJECT_DIR$/lib/suning_pay/version.rb">
771
859
  <provider selected="true" editor-type-id="text-editor">
772
- <state relative-caret-position="345">
773
- <caret line="23" column="7" lean-forward="false" selection-start-line="18" selection-start-column="4" selection-end-line="23" selection-end-column="7" />
860
+ <state relative-caret-position="15">
861
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
774
862
  <folding />
775
863
  </state>
776
864
  </provider>
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
 
4
- import "./lib/tasks/suning_pay.rake"
4
+ import "./lib/rake/suning_pay.rake"
5
5
 
6
6
  Rake::TestTask.new(:test) do |t|
7
7
  t.libs << "test"
@@ -111,21 +111,21 @@ module SuningPay
111
111
  detail_data << detail_line
112
112
  end
113
113
  #body参数
114
- body = {
115
- :batchNo => batch_no,
116
- :merchantNo => SuningPay.merchant_no,
117
- :productCode => product_code,
118
- :totalNum => total_num,
119
- :totalAmount => total_amount,
120
- :currency => SuningPay::EntService::CURRENCY_CNY,
121
- :chargeMode => charge_mode,
122
- :payDate => Time.now.strftime("%Y%m%d"),
123
- :tunnelData => tunnel_data,
124
- :detailData => detail_data,
125
- :goodsType => goods_type,
126
- :batchOrderName => batch_order_name,
127
- :notifyUrl => notify_url
128
- }
114
+ body =[{
115
+ :batchNo => batch_no,
116
+ :merchantNo => SuningPay.merchant_no,
117
+ :productCode => product_code,
118
+ :totalNum => total_num,
119
+ :totalAmount => total_amount,
120
+ :currency => SuningPay::EntService::CURRENCY_CNY,
121
+ :chargeMode => charge_mode,
122
+ :payDate => Time.now.strftime("%Y%m%d"),
123
+ :tunnelData => tunnel_data,
124
+ :detailData => detail_data,
125
+ :goodsType => goods_type,
126
+ :batchOrderName => batch_order_name,
127
+ :notifyUrl => notify_url
128
+ }]
129
129
 
130
130
  input_hash = {:merchantNo => SuningPay.merchant_no,
131
131
  :body => body.to_json.to_s.gsub("\\", '')}
@@ -1,3 +1,3 @@
1
1
  module SuningPay
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/suning_pay.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Suning Pay 1.1.2 doc.}
13
13
  spec.description = %q{Suning Pay 1.1.2 doc.}
14
- spec.homepage = "https://gitee.com/tarzansos"
14
+ spec.homepage = "https://gitee.com/tarzansos/suning_pay"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suning_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry.Tu
@@ -99,7 +99,7 @@ files:
99
99
  - lib/suning_pay/version.rb
100
100
  - suning_pay.gemspec
101
101
  - suning_pay.rb
102
- homepage: https://gitee.com/tarzansos
102
+ homepage: https://gitee.com/tarzansos/suning_pay
103
103
  licenses:
104
104
  - MIT
105
105
  metadata: {}