xstreamly 0.6.11 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/xstreamly.rb +4 -3
  2. metadata +6 -6
data/lib/xstreamly.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'json' #gem install json
2
3
  require 'base64'
3
4
  require 'cgi'
@@ -11,12 +12,12 @@ module XStreamly
11
12
  @appKey = appKey
12
13
  @email = email
13
14
  @password = password
14
- @http = Net::HTTP.new('secure.x-stream.ly', 443)
15
+ @http = Net::HTTP.new('api.x-stream.ly', 443)
15
16
  @http.use_ssl = true
16
17
  end
17
18
 
18
19
  def send(channel, eventName, data,persisted = false)
19
- req = Net::HTTP::Post.new(URI.encode('/api/v1.0/'+@appKey+'/channels/'+channel+'/events/'+eventName+'?persisted='+persisted.to_s), initheader = {'Content-Type' =>'application/json'})
20
+ req = Net::HTTP::Post.new(URI.encode('/api/v1.1/'+@appKey+'/channels/'+channel+'/events/'+eventName+'?persisted='+persisted.to_s), initheader = {'Content-Type' =>'application/json'})
20
21
  req.basic_auth @email, @password
21
22
 
22
23
  req.body = data
@@ -30,7 +31,7 @@ module XStreamly
30
31
  end
31
32
  end
32
33
 
33
- def setCallback(channel,endPoint,secret,eventName)
34
+ def setCallback(channel,endPoint,secret,eventName)
34
35
  req = Net::HTTP::Post.new(URI.encode('/api/v1.1/'+@appKey+'/feeds/out/custom'), initheader = {'Content-Type' =>'application/json'})
35
36
  req.basic_auth @email, @password
36
37
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xstreamly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 6
9
- - 11
10
- version: 0.6.11
8
+ - 7
9
+ - 1
10
+ version: 0.7.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Willard
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-01 00:00:00 Z
18
+ date: 2012-02-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements: []
72
72
 
73
73
  rubyforge_project:
74
- rubygems_version: 1.7.2
74
+ rubygems_version: 1.8.16
75
75
  signing_key:
76
76
  specification_version: 3
77
77
  summary: X-Stream.ly Client