paperdrive 0.0.6 → 0.0.7

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
  SHA256:
3
- metadata.gz: cfca955b61dc709e6d3530dacf994f86da18fd8cbe698c98e962813867061d9f
4
- data.tar.gz: 9b4329badabb570d57f3e7759615f0c05f98e44b97c00f6010a4e3d55897e40d
3
+ metadata.gz: 6ac7c5635790c62e4068bfac9e70b60026c3c79d5a24a8a94e667892b05ac801
4
+ data.tar.gz: 5725a55e64c2b36829c34d63d79c39c4d6749ded048ebf7b2dac2fa47e604b2c
5
5
  SHA512:
6
- metadata.gz: 4feebcf777877ec757cef99e9f51c8e2cc88889a22c649e66ff327d8d5fbe172d44a0f9cd17f7a8553bc9946f411521fabfd8644c57bd9d65c128a841568239c
7
- data.tar.gz: '09be424169a7f2fb44010ed1d2db6c3457973b6606a5890e476e04fe3e5d325c13401fcc28289f48dfac8263faa0863ae238f50c66b49ad5d8c18fca1412b89d'
6
+ metadata.gz: 4074df016a49351b13193fe197a0123fa138024f88961f3acc9036695f9440d9df002e6161490c7eb8f1720004f5c38e07d9478694ef2d9abed7f30b6b3bd360
7
+ data.tar.gz: 7d6e572ffd6f0a3cb29f3751aa7247fcbbc752416d896976f2562a0e6082367a7f17f3b09dc106d3eab1b516bd48cb11638fa91094d9f00d693e9015bff9f76b
@@ -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'.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paperdrive (0.0.6)
4
+ paperdrive (0.0.7)
5
5
  activesupport
6
6
  faraday (~> 0.15.4)
7
7
  faraday_middleware (~> 0.12.2)
@@ -72,4 +72,4 @@ DEPENDENCIES
72
72
  yard
73
73
 
74
74
  BUNDLED WITH
75
- 1.16.1
75
+ 1.16.4
data/README.md CHANGED
@@ -4,6 +4,8 @@ Paperdrive is the unofficial [Pipedrive](https://www.pipedrive.com/) API wrapper
4
4
  [![](https://img.shields.io/travis/rnitta/Paperdrive/master.svg?style=popout-square)](https://travis-ci.org/rnitta/paperdrive)
5
5
  [![](https://img.shields.io/gem/v/paperdrive.svg?style=popout-square)](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 edit_activity(id:, **args)
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 edit_activity_type(id:, **args)
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 edit_note(id:, **args)
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version Module
4
4
  module Paperdrive
5
- VERSION = '0.0.6'
5
+ VERSION = '0.0.7'
6
6
  end
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.6
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-01-26 00:00:00.000000000 Z
11
+ date: 2019-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport