paperdrive 0.0.6 → 0.0.7
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/CHANGELOG.md +5 -1
- data/Gemfile.lock +2 -2
- data/README.md +2 -0
- data/lib/paperdrive/client/activities.rb +3 -1
- data/lib/paperdrive/client/activity_types.rb +3 -1
- data/lib/paperdrive/client/notes.rb +3 -1
- data/lib/paperdrive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ac7c5635790c62e4068bfac9e70b60026c3c79d5a24a8a94e667892b05ac801
|
4
|
+
data.tar.gz: 5725a55e64c2b36829c34d63d79c39c4d6749ded048ebf7b2dac2fa47e604b2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4074df016a49351b13193fe197a0123fa138024f88961f3acc9036695f9440d9df002e6161490c7eb8f1720004f5c38e07d9478694ef2d9abed7f30b6b3bd360
|
7
|
+
data.tar.gz: 7d6e572ffd6f0a3cb29f3751aa7247fcbbc752416d896976f2562a0e6082367a7f17f3b09dc106d3eab1b516bd48cb11638fa91094d9f00d693e9015bff9f76b
|
data/CHANGELOG.md
CHANGED
@@ -3,11 +3,15 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
The format is maybe based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
|
+
## [0.0.7] - 2019-02-14
|
7
|
+
### Added
|
8
|
+
- update_* methos as a alias of edit_* methos (edit_* methods will be deprecated.)
|
9
|
+
- add few specs
|
10
|
+
|
6
11
|
## [0.0.6] - 2019-01-26
|
7
12
|
### Fixed
|
8
13
|
- Minor bug
|
9
14
|
|
10
|
-
|
11
15
|
## [0.0.5] - 2019-01-26
|
12
16
|
### Changed
|
13
17
|
- changed the gem name from 'Paperdrive' to 'paperdrive'.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,8 @@ Paperdrive is the unofficial [Pipedrive](https://www.pipedrive.com/) API wrapper
|
|
4
4
|
[](https://travis-ci.org/rnitta/paperdrive)
|
5
5
|
[](https://rubygems.org/gems/paperdrive)
|
6
6
|
|
7
|
+
One day, when I was a kid, I was exploring an old disused outhouse. After a short time search, I found an old computer, which is coated with dust. As I was cleaning it with care, suddenly a ghost did appear from the computer. According to the ghost's statement, He was a programmer in his time, Heian period. And then he said, "You should develop a Pipedrive API wrapper library for Ruby." This is why I developed this.
|
8
|
+
|
7
9
|
## Installation
|
8
10
|
|
9
11
|
Add this line to your application's Gemfile (Recommended):
|
@@ -54,13 +54,15 @@ module Paperdrive
|
|
54
54
|
# @param [integer] id: ID of the actibity to update
|
55
55
|
# @see https://developers.pipedrive.com/docs/api/v1/#!/Activities/put_activities_id
|
56
56
|
# @return [Paperdrive::Response]
|
57
|
-
def
|
57
|
+
def update_activity(id:, **args)
|
58
58
|
params = parameters(args) do
|
59
59
|
optional_params :subject, :type, :done, :due_date, :due_time, :duration, :user_id, :deal_id, :person_id, :participants, :org_id, :note
|
60
60
|
end
|
61
61
|
request(:put, "activities/#{id}", params)
|
62
62
|
end
|
63
63
|
|
64
|
+
alias_method :update_activity, :update_activity
|
65
|
+
|
64
66
|
# [DELETE] delete multiple activities
|
65
67
|
#
|
66
68
|
# @example Delete activities whose IDs are 1,2,3,4,5,6,7,8,9,10
|
@@ -39,13 +39,15 @@ module Paperdrive
|
|
39
39
|
# @param [integer] id: ID of the activity type to update
|
40
40
|
# @see https://developers.pipedrive.com/docs/api/v1/#!/ActivityTypes/put_activityTypes_id
|
41
41
|
# @return [Paperdrive::Response]
|
42
|
-
def
|
42
|
+
def update_activity_type(id:, **args)
|
43
43
|
params = parameters(args) do
|
44
44
|
optional_params :name, :icon_key, :color, :order_nr
|
45
45
|
end
|
46
46
|
request(:put, "activityTypes/#{id}", params)
|
47
47
|
end
|
48
48
|
|
49
|
+
alias_method :edit_activity_type, :update_activity_type
|
50
|
+
|
49
51
|
# [DELETE] delete multiple activity types
|
50
52
|
#
|
51
53
|
# @example Delete activity types whose IDs are 1,2,3,4,5,6,7,8,9,10
|
@@ -51,7 +51,7 @@ module Paperdrive
|
|
51
51
|
# @param [integer] id: ID of the note to update
|
52
52
|
# @see https://developers.pipedrive.com/docs/api/v1/#!/Notes/put_notes_id
|
53
53
|
# @return [Paperdrive::Response]
|
54
|
-
def
|
54
|
+
def update_note(id:, **args)
|
55
55
|
params = parameters(args) do
|
56
56
|
required_params :content
|
57
57
|
optional_params :content, :deal_id, :person_id, :org_id, :add_time, :pinned_to_deal_flag, :pinned_to_organization_flag, :pinned_to_person_flag
|
@@ -59,6 +59,8 @@ module Paperdrive
|
|
59
59
|
request(:put, "notes/#{id}", params)
|
60
60
|
end
|
61
61
|
|
62
|
+
alias_method :edit_note, :update_note
|
63
|
+
|
62
64
|
# [DELETE] delete a single note
|
63
65
|
#
|
64
66
|
# @see https://developers.pipedrive.com/docs/api/v1/#!/Notes/delete_notes_id
|
data/lib/paperdrive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperdrive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rnitta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|