service_mock 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +5 -0
- data/lib/service_mock.rb +1 -0
- data/lib/service_mock/core_ext/string.rb +10 -0
- data/lib/service_mock/server.rb +1 -1
- data/lib/service_mock/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90733fe9c3ec0b40a2f3f9bd1d8789d0483c1351
|
4
|
+
data.tar.gz: 7531bbf3050b25383e3b4b589086573f8efd6f27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0a76416dfd0be652fe73606e7869a2d2787a442a623dd3c0f0d4b0f50127b0b59506da9c8342ece2a166425b68f735e55159806b23c3ee80eafa257ce60c516
|
7
|
+
data.tar.gz: 02634355c9f0cfce0dd2060eac90516ea7b12342f39c4a2b6adaea308099285e6babbef46f45c2f3dd02d245deca7ba6d1222c733ed12b455755276d2e5ff7cb
|
data/ChangeLog
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== Release 0.3.1 / 2016-06-27
|
2
|
+
* Added remove_newlines method to String as a helper for rendering subtemplates
|
3
|
+
* Added escape_double_quotes method to String as a helper for rendering subtemplates
|
4
|
+
* Added empty Hash as default parameter for stub_with_erb
|
5
|
+
|
1
6
|
=== Release 0.3 / 2016-06-27
|
2
7
|
* Removed the config directory from the gem thereby reducing the size
|
3
8
|
* Added documentation
|
data/lib/service_mock.rb
CHANGED
data/lib/service_mock/server.rb
CHANGED
@@ -121,7 +121,7 @@ module ServiceMock
|
|
121
121
|
# Create a stub using the erb template provided. The +Hash+ second
|
122
122
|
# parameter contains the values to be inserted into the +ERB+.
|
123
123
|
#
|
124
|
-
def stub_with_erb(filename, hsh)
|
124
|
+
def stub_with_erb(filename, hsh={})
|
125
125
|
yield self if block_given?
|
126
126
|
template = File.open(filename, 'rb') {|file| file.read}
|
127
127
|
erb_content = ERB.new(template).result(data_binding(hsh))
|
data/lib/service_mock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: service_mock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey S. Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: childprocess
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- bin/setup
|
88
88
|
- lib/service_mock.rb
|
89
89
|
- lib/service_mock/command_line_options.rb
|
90
|
+
- lib/service_mock/core_ext/string.rb
|
90
91
|
- lib/service_mock/rake/base_task.rb
|
91
92
|
- lib/service_mock/rake/rake_tasks.rb
|
92
93
|
- lib/service_mock/rake/start_server_task.rb
|