webmock_method 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/.idea/emacs.xml +6 -0
- data/.idea/webmock_method.iml +56 -56
- data/.ruby-version +1 -1
- data/CHANGES +4 -0
- data/lib/webmock_method/version.rb +1 -1
- data/lib/webmock_method/webmock_method.rb +4 -6
- data/spec/payment_gateway_spec.rb +6 -16
- metadata +27 -28
- data/spec/spec_helper.rb +0 -5
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
NWY2NTM4ZGQyMDViY2IyNDNjZGU2NWQyZmNjYjIwY2M5YTE0YmZkNQ==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 36d0e2c3d9299945d4064ac1742263fadc5e43b7
|
|
4
|
+
data.tar.gz: b78156be61ea12249cfeb0ef9bc66d0be7181c3a
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
ZDU0MzE2ZmFlYWVmZmE2OWVhNTc4M2QzMjBmOTNhOWZkNzIzYWRjNjE2YzBj
|
|
11
|
-
ZmZiZTg5YzhhZmQ1NWM5YTcwY2QzNjM5ODVkZTg0MzM0YWZjNzY=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
ZDQzZjhiOWJmOWUzOTQ3ZTAwNDk5N2U0N2Q4YzYwZjA0NmJlMWNmZjBlMWE4
|
|
14
|
-
ZTY3NTJkOWNhZGEyMmVhYmE5ODE0NWJhZmVlMzEyMDQ4ZmRmYTRlODExZjcw
|
|
15
|
-
ZDA5YzAwNzJjMWUzMmFiMmFjZDU2OWRjOWEyMTA5ZjUzZGQ5NzY=
|
|
6
|
+
metadata.gz: 618c0424756a719d526fc1c945f784bc56f980823925eeab8f91f63bd92e4232ee7e586cbdd922669b66da51971ecf51e8590fd37006f4ba87d6b3d1b01f1b41
|
|
7
|
+
data.tar.gz: f1b254dfcd4051486d8a2d1be48639c3b85277da0dafa4e8c2003ff0534d9266512f7f33d8df37b12961d365c8ca16e672dc306b5bd73f87bde176cfd2425b2c
|
data/.idea/emacs.xml
ADDED
data/.idea/webmock_method.iml
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</facet>
|
|
11
11
|
</component>
|
|
12
12
|
<component name="ModuleRunConfigurationManager">
|
|
13
|
-
<configuration default="false" name="
|
|
13
|
+
<configuration default="false" name="OpenWeatherMapService#quote gets the quote: webmock_method" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
14
14
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
15
15
|
<module name="webmock_method" />
|
|
16
16
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
</EXTENSION>
|
|
31
31
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
32
32
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
33
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
|
33
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/open_weather_map_service_spec.rb" />
|
|
34
34
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
35
35
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
36
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
|
36
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="OpenWeatherMapService#quote gets the quote" />
|
|
37
37
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
38
38
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
39
39
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
47
47
|
<method />
|
|
48
48
|
</configuration>
|
|
49
|
-
<configuration default="false" name="
|
|
49
|
+
<configuration default="false" name="Run spec 'open_weather_map_service_spec': webmock_method" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
50
50
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
51
51
|
<module name="webmock_method" />
|
|
52
52
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/open_weather_map_service_spec.rb" />
|
|
70
70
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
71
71
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
72
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
|
72
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
73
73
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
74
74
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
75
75
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
83
83
|
<method />
|
|
84
84
|
</configuration>
|
|
85
|
-
<configuration default="false" name="Run spec '
|
|
85
|
+
<configuration default="false" name="Run spec 'payment_gateway_spec': webmock_method" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
86
86
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
87
87
|
<module name="webmock_method" />
|
|
88
88
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</EXTENSION>
|
|
103
103
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
104
104
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
105
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
|
105
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/payment_gateway_spec.rb" />
|
|
106
106
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
107
107
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
108
108
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
@@ -118,7 +118,31 @@
|
|
|
118
118
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
119
119
|
<method />
|
|
120
120
|
</configuration>
|
|
121
|
-
<configuration default="false" name="
|
|
121
|
+
<configuration default="false" name="payment_gateway" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
|
122
|
+
<module name="webmock_method" />
|
|
123
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
124
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/spec/stubs" />
|
|
125
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
126
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
127
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
128
|
+
<envs />
|
|
129
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
130
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
131
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
132
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
133
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
134
|
+
</COVERAGE_PATTERN>
|
|
135
|
+
</EXTENSION>
|
|
136
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
137
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/stubs/payment_gateway.rb" />
|
|
138
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
139
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
140
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
141
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
142
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
143
|
+
<method />
|
|
144
|
+
</configuration>
|
|
145
|
+
<configuration default="false" name="PaymentGateway#purchase: webmock_method" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
122
146
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
123
147
|
<module name="webmock_method" />
|
|
124
148
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -141,7 +165,7 @@
|
|
|
141
165
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/payment_gateway_spec.rb" />
|
|
142
166
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
143
167
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
144
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
168
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="PaymentGateway#purchase" />
|
|
145
169
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
146
170
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
147
171
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -154,57 +178,33 @@
|
|
|
154
178
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
155
179
|
<method />
|
|
156
180
|
</configuration>
|
|
157
|
-
<configuration default="false" name="payment_gateway" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
|
158
|
-
<module name="webmock_method" />
|
|
159
|
-
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
160
|
-
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/spec/stubs" />
|
|
161
|
-
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
162
|
-
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
163
|
-
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
164
|
-
<envs />
|
|
165
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
166
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
167
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
168
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
169
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
170
|
-
</COVERAGE_PATTERN>
|
|
171
|
-
</EXTENSION>
|
|
172
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
173
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/stubs/payment_gateway.rb" />
|
|
174
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
175
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
176
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
177
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
178
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
179
|
-
<method />
|
|
180
|
-
</configuration>
|
|
181
181
|
</component>
|
|
182
182
|
<component name="NewModuleRootManager">
|
|
183
183
|
<content url="file://$MODULE_DIR$/../docs" />
|
|
184
184
|
<content url="file://$MODULE_DIR$" />
|
|
185
|
-
<orderEntry type="jdk" jdkName="RVM: ruby-1.
|
|
185
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.1.4 [webmock_method]" jdkType="RUBY_SDK" />
|
|
186
186
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
187
|
-
<orderEntry type="library" scope="PROVIDED" name="addressable (v2.3.6, RVM: ruby-1.
|
|
188
|
-
<orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.2.0, RVM: ruby-1.
|
|
189
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-1.
|
|
190
|
-
<orderEntry type="library" scope="PROVIDED" name="crack (v0.4.2, RVM: ruby-1.
|
|
191
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-1.
|
|
192
|
-
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.
|
|
193
|
-
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.
|
|
194
|
-
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.
|
|
195
|
-
<orderEntry type="library" scope="PROVIDED" name="haml (v4.0.5, RVM: ruby-1.
|
|
196
|
-
<orderEntry type="library" scope="PROVIDED" name="json_pure (v1.8.1, RVM: ruby-1.
|
|
197
|
-
<orderEntry type="library" scope="PROVIDED" name="meta_methods (v1.3.0, RVM: ruby-1.
|
|
198
|
-
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-1.
|
|
199
|
-
<orderEntry type="library" scope="PROVIDED" name="mocha (v1.1.0, RVM: ruby-1.
|
|
200
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-1.
|
|
201
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.7, RVM: ruby-1.
|
|
202
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-1.
|
|
203
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-1.
|
|
204
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-1.
|
|
205
|
-
<orderEntry type="library" scope="PROVIDED" name="safe_yaml (v1.0.4, RVM: ruby-1.
|
|
206
|
-
<orderEntry type="library" scope="PROVIDED" name="tilt (v2.0.1, RVM: ruby-1.
|
|
207
|
-
<orderEntry type="library" scope="PROVIDED" name="webmock (v1.20.4, RVM: ruby-1.
|
|
208
|
-
<orderEntry type="library" scope="PROVIDED" name="xml-simple (v1.1.4, RVM: ruby-1.
|
|
187
|
+
<orderEntry type="library" scope="PROVIDED" name="addressable (v2.3.6, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
188
|
+
<orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.2.0, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
189
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
190
|
+
<orderEntry type="library" scope="PROVIDED" name="crack (v0.4.2, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
191
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
192
|
+
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
193
|
+
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
194
|
+
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
195
|
+
<orderEntry type="library" scope="PROVIDED" name="haml (v4.0.5, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
196
|
+
<orderEntry type="library" scope="PROVIDED" name="json_pure (v1.8.1, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
197
|
+
<orderEntry type="library" scope="PROVIDED" name="meta_methods (v1.3.0, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
198
|
+
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
199
|
+
<orderEntry type="library" scope="PROVIDED" name="mocha (v1.1.0, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
200
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
201
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.7, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
202
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
203
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
204
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
205
|
+
<orderEntry type="library" scope="PROVIDED" name="safe_yaml (v1.0.4, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
206
|
+
<orderEntry type="library" scope="PROVIDED" name="tilt (v2.0.1, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
207
|
+
<orderEntry type="library" scope="PROVIDED" name="webmock (v1.20.4, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
208
|
+
<orderEntry type="library" scope="PROVIDED" name="xml-simple (v1.1.4, RVM: ruby-2.1.4 [webmock_method]) [gem]" level="application" />
|
|
209
209
|
</component>
|
|
210
210
|
</module>
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
2.1.4
|
data/CHANGES
CHANGED
|
@@ -2,17 +2,16 @@ require 'webmock'
|
|
|
2
2
|
require 'meta_methods/core'
|
|
3
3
|
|
|
4
4
|
module WebmockMethod
|
|
5
|
-
# include MetaMethods::Core
|
|
6
|
-
|
|
7
|
-
extend self
|
|
8
5
|
|
|
9
6
|
class << self
|
|
10
7
|
attr_accessor :url
|
|
11
8
|
end
|
|
12
9
|
|
|
13
|
-
def
|
|
14
|
-
|
|
10
|
+
def define_attribute object, key, value
|
|
11
|
+
MetaMethods::Core.instance.define_attribute(object, key, value)
|
|
12
|
+
end
|
|
15
13
|
|
|
14
|
+
def webmock_method(method_name, param_names, response_proc, url=nil)
|
|
16
15
|
define_method("#{method_name}_with_webmock_method") do |*args|
|
|
17
16
|
param_names.each_with_index do |param_name, index|
|
|
18
17
|
MetaMethods::Core.instance.define_attribute(self, param_name, args[index])
|
|
@@ -56,7 +55,6 @@ module WebmockMethod
|
|
|
56
55
|
|
|
57
56
|
alias_method :"#{method_name}_without_webmock_method", method_name
|
|
58
57
|
alias_method method_name, :"#{method_name}_with_webmock_method"
|
|
59
|
-
|
|
60
58
|
end
|
|
61
59
|
|
|
62
60
|
end
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
1
|
require "stubs/payment_gateway"
|
|
4
2
|
|
|
5
3
|
describe PaymentGateway do
|
|
@@ -25,24 +23,16 @@ describe PaymentGateway do
|
|
|
25
23
|
|
|
26
24
|
private
|
|
27
25
|
|
|
26
|
+
def credit_card_class
|
|
27
|
+
Struct.new(:first_name, :last_name, :number, :card_type, :month, :year, :verification_value)
|
|
28
|
+
end
|
|
29
|
+
|
|
28
30
|
def valid_credit_card
|
|
29
|
-
|
|
30
|
-
:first_name => "John",
|
|
31
|
-
last_name: "Appleseed",
|
|
32
|
-
number: "4242424242424242",
|
|
33
|
-
card_type: "VISA",
|
|
34
|
-
month: 8,
|
|
35
|
-
year: Time.now.year+1,
|
|
36
|
-
verification_value: "000"
|
|
37
|
-
)
|
|
31
|
+
credit_card_class.new("John", "Appleseed", "4242424242424242", "VISA", 8, Time.now.year+1, "000")
|
|
38
32
|
end
|
|
39
33
|
|
|
40
34
|
def invalid_credit_card
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
invalid_credit_card.stubs(:card_type => "DISCOVER")
|
|
44
|
-
|
|
45
|
-
invalid_credit_card
|
|
35
|
+
credit_card_class.new
|
|
46
36
|
end
|
|
47
37
|
|
|
48
38
|
end
|
metadata
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webmock_method
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Shvets
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-11-
|
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: webmock
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: haml
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: meta_methods
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: gemspec_deps_gen
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: gemcutter
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
description: Extension for webmock to make stubbed methods.
|
|
@@ -86,18 +86,19 @@ executables: []
|
|
|
86
86
|
extensions: []
|
|
87
87
|
extra_rdoc_files: []
|
|
88
88
|
files:
|
|
89
|
-
- .gitignore
|
|
90
|
-
- .idea/.name
|
|
91
|
-
- .idea/.rakeTasks
|
|
92
|
-
- .idea/
|
|
93
|
-
- .idea/
|
|
94
|
-
- .idea/
|
|
95
|
-
- .idea/
|
|
96
|
-
- .idea/
|
|
97
|
-
- .idea/
|
|
98
|
-
- .idea/
|
|
99
|
-
- .
|
|
100
|
-
- .ruby-
|
|
89
|
+
- ".gitignore"
|
|
90
|
+
- ".idea/.name"
|
|
91
|
+
- ".idea/.rakeTasks"
|
|
92
|
+
- ".idea/emacs.xml"
|
|
93
|
+
- ".idea/encodings.xml"
|
|
94
|
+
- ".idea/jenkinsSettings.xml"
|
|
95
|
+
- ".idea/misc.xml"
|
|
96
|
+
- ".idea/modules.xml"
|
|
97
|
+
- ".idea/scopes/scope_settings.xml"
|
|
98
|
+
- ".idea/vcs.xml"
|
|
99
|
+
- ".idea/webmock_method.iml"
|
|
100
|
+
- ".ruby-gemset"
|
|
101
|
+
- ".ruby-version"
|
|
101
102
|
- CHANGES
|
|
102
103
|
- Gemfile
|
|
103
104
|
- LICENSE
|
|
@@ -112,7 +113,6 @@ files:
|
|
|
112
113
|
- spec/payment_gateway_spec.rb
|
|
113
114
|
- spec/services/payment_gateway.rb
|
|
114
115
|
- spec/services/templates/purchase_request.xml.erb
|
|
115
|
-
- spec/spec_helper.rb
|
|
116
116
|
- spec/stubs/payment_gateway.rb
|
|
117
117
|
- spec/stubs/templates/purchase_response.xml.erb
|
|
118
118
|
- spec/stubs/templates/quote_response.json.erb
|
|
@@ -128,12 +128,12 @@ require_paths:
|
|
|
128
128
|
- lib
|
|
129
129
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
130
|
requirements:
|
|
131
|
-
- -
|
|
131
|
+
- - ">="
|
|
132
132
|
- !ruby/object:Gem::Version
|
|
133
133
|
version: '0'
|
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
|
-
- -
|
|
136
|
+
- - ">="
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
139
|
requirements: []
|
|
@@ -147,7 +147,6 @@ test_files:
|
|
|
147
147
|
- spec/payment_gateway_spec.rb
|
|
148
148
|
- spec/services/payment_gateway.rb
|
|
149
149
|
- spec/services/templates/purchase_request.xml.erb
|
|
150
|
-
- spec/spec_helper.rb
|
|
151
150
|
- spec/stubs/payment_gateway.rb
|
|
152
151
|
- spec/stubs/templates/purchase_response.xml.erb
|
|
153
152
|
- spec/stubs/templates/quote_response.json.erb
|