pipe_drive_ruby_wrapper 0.1.6 → 0.1.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: 29e4e4cec3334f54ea714b67fd93544999d7f34df879045f8c5b334ed3c01e5e
4
- data.tar.gz: 5ff11681e7d526fab3cf43a61d9c40eec25f58c66c50fb68d424e1abf7c86d30
3
+ metadata.gz: c6194381c3e69bfd85c4f56cfe46b0a7e3dd72d807e37321c15388a6da7ba1c8
4
+ data.tar.gz: 60e5915a47680e389b31f335f925ae1d484203e58d01d952db9f84fe7d6d0781
5
5
  SHA512:
6
- metadata.gz: ea7e3fa4d93bd8d84775c79ea127a54709e589fa0bbd197f1dd71a00fb6ad2f695fd8c8678e96c8d0cde1e3b0e6b57bf71625f2284fdcc281d430b42d8428346
7
- data.tar.gz: 8fedaf080537ebff2b9a5b7d547e3ed14f5aaa012ccdb975b67839acca30f02670a611b06ae9b285623cc1597560be102c35d62d54f2eda8c251e90524f31863
6
+ metadata.gz: eeb9780ef3994337e20dbdf0167f2445958f1baac8755531987715d1949190ebfb9c1020fade871838d6e132b2f99bc0e8b391170cc0f0b8074d092eed2f8292
7
+ data.tar.gz: 9ab90f34a831443b5d857105b677885ab9640d7be3ee2517f02fa549df02d2e3314c12e73a76c9ee1de103cab16e406195cc5c2668d00adbe181a4e820a11869
@@ -0,0 +1,10 @@
1
+ module PipeDrive
2
+ class Activity < ResourceBase
3
+ ALLOW_FOR_SEARCH_TERMS = %i[]
4
+ ALLOW_FOR_ADDITION_SEARCH_OPTS = %i[user_id type start limit start_date end_date]
5
+
6
+ def resource_name
7
+ 'activitie'
8
+ end
9
+ end
10
+ end
@@ -77,7 +77,7 @@ module PipeDrive
77
77
  end
78
78
 
79
79
  def parameterize(target_string, separator)
80
- target_string.gsub!(/[\-_\ ]+/, separator)
80
+ target_string.gsub!(/[\-_\ \/]+/, separator)
81
81
  target_string.downcase
82
82
  end
83
83
 
@@ -7,14 +7,14 @@ module PipeDrive
7
7
  path = "/persons/#{id}/activities"
8
8
  params = {start: start_from, limit: per_page}
9
9
  params.merge!(options)
10
- pagination(path, params, &block)
10
+ Activity.send(:pagination, path, params, &block)
11
11
  end
12
12
 
13
13
  def deals(start_from=0, per_page=DEFAULT_PER_PAGE, options={}, &block)
14
14
  path = "/persons/#{id}/deals"
15
15
  params = {start: start_from, limit: per_page}
16
16
  params.merge!(options)
17
- pagination(path, params, &block)
17
+ Deal.send(:pagination, path, params, &block)
18
18
  end
19
19
  end
20
20
  end
@@ -70,6 +70,7 @@ require 'pipe_drive/resource_base'
70
70
  require 'pipe_drive/organization'
71
71
  require 'pipe_drive/person'
72
72
  require 'pipe_drive/deal'
73
+ require 'pipe_drive/activity'
73
74
 
74
75
  require 'pipe_drive/overall_source_base'
75
76
  require 'pipe_drive/pipeline'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipe_drive_ruby_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2018-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -32,6 +32,7 @@ extra_rdoc_files:
32
32
  - README.md
33
33
  files:
34
34
  - README.md
35
+ - lib/pipe_drive/activity.rb
35
36
  - lib/pipe_drive/base.rb
36
37
  - lib/pipe_drive/deal.rb
37
38
  - lib/pipe_drive/deal_field.rb