ducksboard 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ducksboard'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.summary = "API wrapper for ducksboard.com dashboard"
5
5
  s.description = "Ruby API wrapper for ducksboard realtime dashboard using HTTParty"
6
6
  s.authors = ["Joseph Hsu"]
@@ -3,7 +3,6 @@ module Ducksboard
3
3
  class Widget
4
4
  include ::HTTParty
5
5
  base_uri "https://push.ducksboard.com/values"
6
- basic_auth Ducksboard.api_key, 'ducksboard-gem'
7
6
 
8
7
  attr_accessor :id, :data, :type
9
8
 
@@ -30,7 +29,10 @@ module Ducksboard
30
29
 
31
30
  def update(data=nil)
32
31
  @data = data if data
33
- self.class.post('/' + id.to_s, :body => @data.to_json)
32
+ auth = {:username => ::Ducksboard.api_key, :password => "ducksboard-gem"}
33
+ self.class.post('/' + id.to_s,
34
+ :basic_auth => auth,
35
+ :body => @data.to_json)
34
36
  end
35
37
 
36
38
  def save
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ducksboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70319378162520 !ruby/object:Gem::Requirement
16
+ requirement: &70237769369660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: 0.8.1
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70319378162520
27
+ version_requirements: *70237769369660
28
28
  description: Ruby API wrapper for ducksboard realtime dashboard using HTTParty
29
29
  email: jhsu.x1@gmail.com
30
30
  executables: []
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 1.8.10
69
+ rubygems_version: 1.8.11
70
70
  signing_key:
71
71
  specification_version: 3
72
72
  summary: API wrapper for ducksboard.com dashboard