joinme-api 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- joinme-api (0.0.1)
4
+ joinme-api (0.0.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
2
2
  s.name = 'joinme-api'
3
3
  s.author = 'Paul Hepworth'
4
4
  s.email = 'paul<dot>hepworth<at>peppyheppy<dot>com'
5
- s.version = '0.0.2'
5
+ s.version = '0.0.3'
6
6
  s.homepage = 'https://github.com/peppyheppy/joinme-api'
7
7
  s.date = '2012-10-29'
8
8
  s.summary = "A gem that provides a basic wrapper for the join.me API"
@@ -55,7 +55,7 @@ class JoinmeApi
55
55
  end
56
56
 
57
57
  def api_call(call, params)
58
- uri = URI("https://secure.join.me/API/#{call}.aspx")
58
+ uri = URI("https://secure.join.me/API/#{call}")
59
59
  req = Net::HTTP::Post.new(uri.path)
60
60
  req.set_form_data(params)
61
61
  res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
@@ -15,7 +15,7 @@ describe JoinmeApi do
15
15
 
16
16
  describe "#login" do
17
17
  it "should hit the login api" do
18
- stub_request(:post, "https://secure.join.me/API/login.aspx")
18
+ stub_request(:post, "https://secure.join.me/API/login")
19
19
  .with(:body => {"email"=>"p@z.com", "password"=>"qawsed"})
20
20
  .to_return(:status => 200, :body => "OK")
21
21
 
@@ -23,7 +23,7 @@ describe JoinmeApi do
23
23
  end
24
24
 
25
25
  it "should handle errors" do
26
- stub_request(:post, "https://secure.join.me/API/login.aspx")
26
+ stub_request(:post, "https://secure.join.me/API/login")
27
27
  .with(:body => {"email"=>"p@z.com", "password"=>"qawsed"})
28
28
  .to_return(:status => 200, :body => "ERROR: 4; Invalid email or password")
29
29
 
@@ -33,7 +33,7 @@ describe JoinmeApi do
33
33
 
34
34
  describe "#request_auth_code" do
35
35
  it "should return an auth code" do
36
- stub_request(:post, "https://secure.join.me/API/requestAuthCode.aspx")
36
+ stub_request(:post, "https://secure.join.me/API/requestAuthCode")
37
37
  .with(:body => {"email"=>"p@z.com", "password"=>"qawsed"})
38
38
  .to_return(:status => 200, :body => "OK\nAUTHCODE: usbzlurwujpw2xbfy1xc2cjiuovaankw")
39
39
 
@@ -41,7 +41,7 @@ describe JoinmeApi do
41
41
  end
42
42
 
43
43
  it "should handle errors" do
44
- stub_request(:post, "https://secure.join.me/API/requestAuthCode.aspx")
44
+ stub_request(:post, "https://secure.join.me/API/requestAuthCode")
45
45
  .with(:body => {"email"=>"p@z.com", "password"=>"qawsed"})
46
46
  .to_return(:status => 200, :body => "ERROR: 4; Invalid email or password")
47
47
 
@@ -52,12 +52,12 @@ describe JoinmeApi do
52
52
  describe "#request_code" do
53
53
  it "should return an meeting and ticket codes" do
54
54
  # stub the request auth code call
55
- stub_request(:post, "https://secure.join.me/API/requestAuthCode.aspx")
55
+ stub_request(:post, "https://secure.join.me/API/requestAuthCode")
56
56
  .with(:body => {"email"=>"p@z.com", "password"=>"qawsed"})
57
57
  .to_return(:status => 200, :body => "OK\nAUTHCODE: usbzlurwujpw2xbfy1xc2cjiuovaankw")
58
58
 
59
59
  # stub the request meeting code
60
- stub_request(:post, "https://secure.join.me/API/requestCode.aspx")
60
+ stub_request(:post, "https://secure.join.me/API/requestCode")
61
61
  .with(:body => {"authcode"=>"usbzlurwujpw2xbfy1xc2cjiuovaankw"})
62
62
  .to_return(:status => 200, :body => "OK\nCODE: 101494581\nTICKET: 432412671")
63
63
 
@@ -66,11 +66,11 @@ describe JoinmeApi do
66
66
 
67
67
  it "should handle errors" do
68
68
  # stub the request auth code call
69
- stub_request(:post, "https://secure.join.me/API/requestAuthCode.aspx")
69
+ stub_request(:post, "https://secure.join.me/API/requestAuthCode")
70
70
  .with(:body => {"email"=>"p@z.com", "password"=>"qawsed"})
71
71
  .to_return(:status => 200, :body => "OK\nAUTHCODE: usbzlurwujpw2xbfy1xc2cjiuovaankw")
72
72
 
73
- stub_request(:post, "https://secure.join.me/API/requestCode.aspx")
73
+ stub_request(:post, "https://secure.join.me/API/requestCode")
74
74
  .with(:body => {"authcode"=>"usbzlurwujpw2xbfy1xc2cjiuovaankw"})
75
75
  .to_return(:status => 200, :body => "ERROR: 4; Invalid email or password")
76
76
 
@@ -78,7 +78,7 @@ describe JoinmeApi do
78
78
  end
79
79
 
80
80
  it "should accept the request code as a parameter" do
81
- stub_request(:post, "https://secure.join.me/API/requestCode.aspx")
81
+ stub_request(:post, "https://secure.join.me/API/requestCode")
82
82
  .with(:body => {"authcode"=>"usbzlurwujpw2xbfy1xc2cjiuovaankw"})
83
83
  .to_return(:status => 200, :body => "ERROR: 4; Invalid email or password")
84
84
 
@@ -89,7 +89,7 @@ describe JoinmeApi do
89
89
  describe "#download and #download_url" do
90
90
  it "should return the download url" do
91
91
  # stub the request meeting code
92
- stub_request(:post, "https://secure.join.me/API/requestCode.aspx")
92
+ stub_request(:post, "https://secure.join.me/API/requestCode")
93
93
  .with(:body => {"authcode"=>"usbzlurwujpw2xbfy1xc2cjiuovaankw"})
94
94
  .to_return(:status => 200, :body => "OK\nCODE: 101494581\nTICKET: 432412671")
95
95
 
@@ -100,7 +100,7 @@ describe JoinmeApi do
100
100
 
101
101
  it "should return the download url" do
102
102
  # stub the request meeting code
103
- stub_request(:post, "https://secure.join.me/API/requestCode.aspx")
103
+ stub_request(:post, "https://secure.join.me/API/requestCode")
104
104
  .with(:body => {"authcode"=>"usbzlurwujpw2xbfy1xc2cjiuovaankw"})
105
105
  .to_return(:status => 200, :body => "OK\nCODE: 101494581\nTICKET: 432412671")
106
106
 
@@ -110,12 +110,12 @@ describe JoinmeApi do
110
110
 
111
111
  it "should return the download url" do
112
112
  # stub the request auth code call
113
- stub_request(:post, "https://secure.join.me/API/requestAuthCode.aspx")
113
+ stub_request(:post, "https://secure.join.me/API/requestAuthCode")
114
114
  .with(:body => {"email"=>"p@z.com", "password"=>"qawsed"})
115
115
  .to_return(:status => 200, :body => "OK\nAUTHCODE: usbzlurwujpw2xbfy1xc2cjiuovaankw")
116
116
 
117
117
  # stub the request meeting code
118
- stub_request(:post, "https://secure.join.me/API/requestCode.aspx")
118
+ stub_request(:post, "https://secure.join.me/API/requestCode")
119
119
  .with(:body => {"authcode"=>"usbzlurwujpw2xbfy1xc2cjiuovaankw"})
120
120
  .to_return(:status => 200, :body => "OK\nCODE: 101494588\nTICKET: 432412675")
121
121
 
@@ -125,12 +125,12 @@ describe JoinmeApi do
125
125
 
126
126
  it "should handle errors" do
127
127
  # stub the request auth code call
128
- stub_request(:post, "https://secure.join.me/API/requestAuthCode.aspx")
128
+ stub_request(:post, "https://secure.join.me/API/requestAuthCode")
129
129
  .with(:body => {"email"=>"p@z.com", "password"=>"qawsed"})
130
130
  .to_return(:status => 200, :body => "OK\nAUTHCODE: usbzlurwujpw2xbfy1xc2cjiuovaankw")
131
131
 
132
132
  # stub the request meeting code
133
- stub_request(:post, "https://secure.join.me/API/requestCode.aspx")
133
+ stub_request(:post, "https://secure.join.me/API/requestCode")
134
134
  .with(:body => {"authcode"=>"usbzlurwujpw2xbfy1xc2cjiuovaankw"})
135
135
  .to_return(:status => 200, :body => "ERROR: 4; Invalid email or password")
136
136
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joinme-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70252478498700 !ruby/object:Gem::Requirement
16
+ requirement: &70191120025800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.11.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70252478498700
24
+ version_requirements: *70191120025800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: debugger
27
- requirement: &70252478498140 !ruby/object:Gem::Requirement
27
+ requirement: &70191120025220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70252478498140
35
+ version_requirements: *70191120025220
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rb-fsevent
38
- requirement: &70252478497180 !ruby/object:Gem::Requirement
38
+ requirement: &70191120024300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.9.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70252478497180
46
+ version_requirements: *70191120024300
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard
49
- requirement: &70252478496400 !ruby/object:Gem::Requirement
49
+ requirement: &70191120023480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.5.2
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70252478496400
57
+ version_requirements: *70191120023480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: guard-bundler
60
- requirement: &70252478495760 !ruby/object:Gem::Requirement
60
+ requirement: &70191120022880 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.0.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70252478495760
68
+ version_requirements: *70191120022880
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rspec
71
- requirement: &70252478495120 !ruby/object:Gem::Requirement
71
+ requirement: &70191120022180 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 2.1.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70252478495120
79
+ version_requirements: *70191120022180
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: growl
82
- requirement: &70252478494520 !ruby/object:Gem::Requirement
82
+ requirement: &70191120021620 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.0.3
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70252478494520
90
+ version_requirements: *70191120021620
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: webmock
93
- requirement: &70252478493880 !ruby/object:Gem::Requirement
93
+ requirement: &70191120020960 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 1.8.11
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70252478493880
101
+ version_requirements: *70191120020960
102
102
  description: A gem that provides a basic wrapper for the join.me API (https://secure.join.me/welcome/webhelp/joinme/join.me/c_joinme_API.html)
103
103
  email: paul<dot>hepworth<at>peppyheppy<dot>com
104
104
  executables: []