pipekit-webmock 0.4.4 → 0.4.5
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 +4 -4
- data/README.md +18 -1
- data/lib/pipekit/webmock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 774a2712aa021bd8f9ce4d49e1cb6c2a052a22d2
|
4
|
+
data.tar.gz: c3a9e1a8273b6208be24fe20f055cde9cb9c827a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9156d17cec92d605ce1dc23762af4736d887c59e465cb40aa432d203cc9b7c2f5b2f53332c34b440a129640c10f9d12ed21d8f5f0b280b6d4c04ad405eb9419
|
7
|
+
data.tar.gz: 53636862cedbc3abe5505f0ddf2702a92ccae5228e645c26f5bdb9b1ac6c111496a9a234d0a1ff29908d2c30537c43dedc2dd5e6267322d175e27a20feba02f6
|
data/README.md
CHANGED
@@ -41,6 +41,7 @@ To stub requests to Pipedrive use `stub_pipedrive_request` method where you woul
|
|
41
41
|
- `:person`
|
42
42
|
- `:deal`
|
43
43
|
- `:note`
|
44
|
+
- `:activity`
|
44
45
|
- `:personField`
|
45
46
|
- `action`:
|
46
47
|
- `:get` - Stubs a `GET` request to get resource by id or a query string.
|
@@ -103,6 +104,23 @@ stub_pipedrive_request(
|
|
103
104
|
},
|
104
105
|
response: [{id: 123}]
|
105
106
|
)
|
107
|
+
|
108
|
+
stub_pipedrive_request(
|
109
|
+
resource: :activity,
|
110
|
+
action: :create,
|
111
|
+
params: {
|
112
|
+
:deal_id=>123,
|
113
|
+
:person_id=>321,
|
114
|
+
:subject=>"Interview Completed",
|
115
|
+
:due_date=>"2017-11-14",
|
116
|
+
:due_time=>"14:30",
|
117
|
+
:duration=>"00:45",
|
118
|
+
:done=>1,
|
119
|
+
:type=>"pairing_session",
|
120
|
+
:note=>"Super cool cat!\n - Interviewed by: Octocat"
|
121
|
+
},
|
122
|
+
response: {id: 123
|
123
|
+
)
|
106
124
|
```
|
107
125
|
|
108
126
|
## Development
|
@@ -119,4 +137,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
|
|
119
137
|
## License
|
120
138
|
|
121
139
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
122
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pipekit-webmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jafrog
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-11-
|
12
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: webmock
|