PipedrivePUT 1.1.12 → 1.1.13

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
  SHA1:
3
- metadata.gz: c05f9009e2af21e0e8d6e11394fe8a90e90c7eba
4
- data.tar.gz: c0f8220c4c8a11bc637d5767e96b5e8064c8cb55
3
+ metadata.gz: 69b18c7e69308c3f4ef2cd6bd636ea337a954b82
4
+ data.tar.gz: f6301c45e759d5f7354313361b46aad3447ff3f9
5
5
  SHA512:
6
- metadata.gz: 3076f8307198bac16354ba4c1bba8fe2f4a86326ca75d25a115be3ff1a6c905fa02ff48932fd2ce71ceef245b8ffd1b7d984dfcbc7f3e173e2545fe6d67528cf
7
- data.tar.gz: 7beb16140803dfbb7211ef83c5ea0b04398a9bc35ac3548889053bc97cfd2f55ba1a9e4fcc70f7638e5e4762480ed10653f814f6f1b32ace6582b1ce76e1828f
6
+ metadata.gz: 04bc1e30fddb360678c16c795d4f82d22576500c7f223bcdaf2f843296eda82a3602fef0709dc6980089f4d16102575fedac13d5582b3bd0cd20ee2d14d891d7
7
+ data.tar.gz: 0e5252ba0f63d070c8e81338c472b85b24f345a7533495def34d3cf0be207b0eb7a1b82466e5d30d1518480fe1863e7a91d2abd3431982e693c242463a1cab1b
@@ -16,8 +16,9 @@ require 'rest-client'
16
16
  if time.nil?
17
17
  raise "No time entered. Correct format is YYYY-MM-DD HH:MM:SS"
18
18
  else
19
- @formattedTime = time.strftime("%F %T")
20
- puts @formattedTime
19
+ @time = time.utc
20
+ @formattedTime = @time.strftime("%F %T")
21
+ #puts @formattedTime
21
22
  @start = 0
22
23
 
23
24
  table = Array.new
@@ -26,9 +27,9 @@ require 'rest-client'
26
27
 
27
28
  while @more_items == true do
28
29
  count = 0
29
- puts @more_items
30
+ #puts @more_items
30
31
  @base = 'https://api.pipedrive.com/v1/recents?since_timestamp=' + @formattedTime.to_s + '&' + 'start=' + @start.to_s + '&limit=500&api_token=' + @@key.to_s
31
- puts @base
32
+ #puts @base
32
33
  @content = open(@base.to_s).read
33
34
  @parsed = JSON.parse(@content)
34
35
 
@@ -41,9 +42,9 @@ require 'rest-client'
41
42
 
42
43
  @pagination = @parsed['additional_data']['pagination']
43
44
  @more_items = @pagination['more_items_in_collection']
44
- puts @more_items
45
+ #puts @more_items
45
46
  @start = @pagination['next_start']
46
- puts @start
47
+ #puts @start
47
48
  end
48
49
 
49
50
  return table
@@ -1,3 +1,3 @@
1
1
  module PipedrivePUT
2
- VERSION = "1.1.12"
2
+ VERSION = "1.1.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: PipedrivePUT
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - JakePens71
@@ -110,7 +110,6 @@ files:
110
110
  - lib/PipedrivePUT/organization.rb
111
111
  - lib/PipedrivePUT/persons.rb
112
112
  - lib/PipedrivePUT/pipelines.rb
113
- - lib/PipedrivePUT/recent.rb
114
113
  - lib/PipedrivePUT/recents.rb
115
114
  - lib/PipedrivePUT/search.rb
116
115
  - lib/PipedrivePUT/users.rb
@@ -1,15 +0,0 @@
1
- module PipedrivePUT
2
- class Recents
3
-
4
- include PipedrivePUT
5
-
6
- require 'rest-client'
7
-
8
- def self.key
9
- puts @@key
10
- end
11
-
12
-
13
-
14
- end
15
- end