ruby_desk 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -39,7 +39,7 @@ module RubyDesk
39
39
  end
40
40
 
41
41
  # concatenate secret with names, values
42
- concatenated = @api_secret + sorted_params.to_s
42
+ concatenated = @api_secret + sorted_params.join
43
43
 
44
44
  RubyDesk.logger.debug {"concatenated: #{concatenated}"}
45
45
 
@@ -80,6 +80,7 @@ module RubyDesk
80
80
  url = URI.parse(api_call[:url])
81
81
  http = Net::HTTP.new(url.host, url.port)
82
82
  http.use_ssl = true
83
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
83
84
 
84
85
  # Concatenate parameters to form data
85
86
  data = api_call[:params].to_a.map{|pair| pair.map{|x| URI.escape(x.to_s)}.join '='}.join('&')
@@ -213,4 +214,3 @@ module RubyDesk
213
214
 
214
215
  end
215
216
  end
216
-
@@ -5,7 +5,7 @@ class RubyDesk::TeamRoom
5
5
  class << self
6
6
  # Retrieves all team rooms for the currently logged in user
7
7
  def get_teamrooms(connector)
8
- json = connector.prepare_and_invoke_api_call 'team/v1/teamrooms',
8
+ json = connector.prepare_and_invoke_api_call 'team/v2/teamrooms',
9
9
  :method=>:get
10
10
 
11
11
  team_rooms = []
@@ -29,7 +29,7 @@ class RubyDesk::TeamRoom
29
29
 
30
30
  # Retrieves all snaphots for users currently connected to this team room
31
31
  def snapshot(connector, online='now')
32
- json = connector.prepare_and_invoke_api_call "team/v1/teamrooms/#{self.id}",
32
+ json = connector.prepare_and_invoke_api_call "team/v2/teamrooms/#{self.id}",
33
33
  :params=>{:online=>online}, :method=>:get
34
34
 
35
35
  RubyDesk::Snapshot.new(json['teamroom']['snapshot'])
@@ -37,7 +37,6 @@ class RubyDesk::TeamRoom
37
37
 
38
38
  # Retrieves work diary for this team room
39
39
  def work_diary(connector, user_id, date = nil, timezone = "mine")
40
- RubyDesk::Snapshot.workdiary(connector, self.id, user_id, date, timezone)
40
+ RubyDesk::Snapshot.work_diary(connector, self.id, user_id, date, timezone)
41
41
  end
42
42
  end
43
-
@@ -1,4 +1,4 @@
1
- require 'helper'
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '/helper'))
2
2
  require 'date'
3
3
 
4
4
  class TestRubyDesk < Test::Unit::TestCase
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_desk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 9
9
- - 0
10
- version: 0.9.0
8
+ - 1
9
+ version: 0.9.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Ahmed ElDawy
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-07-22 00:00:00 +03:00
17
+ date: 2010-11-14 00:00:00 -06:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
@@ -72,8 +70,8 @@ homepage: http://github.com/aseldawy/ruby_desk
72
70
  licenses: []
73
71
 
74
72
  post_install_message:
75
- rdoc_options:
76
- - --charset=UTF-8
73
+ rdoc_options: []
74
+
77
75
  require_paths:
78
76
  - lib
79
77
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -81,7 +79,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
79
  requirements:
82
80
  - - ">="
83
81
  - !ruby/object:Gem::Version
84
- hash: 3
85
82
  segments:
86
83
  - 0
87
84
  version: "0"
@@ -90,7 +87,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
87
  requirements:
91
88
  - - ">="
92
89
  - !ruby/object:Gem::Version
93
- hash: 3
94
90
  segments:
95
91
  - 0
96
92
  version: "0"