ducksboard 0.1.1 → 0.1.2

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.1'
3
+ s.version = '0.1.2'
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"]
@@ -10,17 +10,22 @@ module Ducksboard
10
10
  :deleted => "https://app.ducksboard.com/static/img/timeline/deleted.png"
11
11
  }
12
12
 
13
+ def initialize(*args)
14
+ super
15
+ @data[:value] ||={}
16
+ end
17
+
13
18
  def title; @data[:title] end
14
19
  def image; @data[:image] end
15
20
  def content; @data[:image] end
16
21
  def link; @data[:image] end
17
22
 
18
23
  def title=(text)
19
- @data[:title] = text
24
+ @data[:value][:title] = text
20
25
  end
21
26
 
22
27
  def image=(url)
23
- @data[:image] = if url =~ /^http/
28
+ @data[:value][:image] = if url =~ /^http/
24
29
  url
25
30
  else
26
31
  ICONS[url.to_sym]
@@ -28,11 +33,11 @@ module Ducksboard
28
33
  end
29
34
 
30
35
  def content=(text)
31
- @data[:content] = text
36
+ @data[:value][:content] = text
32
37
  end
33
38
 
34
39
  def link=(url)
35
- @data[:link] = url
40
+ @data[:value][:link] = url
36
41
  end
37
42
  end
38
43
  end
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.1
4
+ version: 0.1.2
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: &70237769369660 !ruby/object:Gem::Requirement
16
+ requirement: &70307484495700 !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: *70237769369660
27
+ version_requirements: *70307484495700
28
28
  description: Ruby API wrapper for ducksboard realtime dashboard using HTTParty
29
29
  email: jhsu.x1@gmail.com
30
30
  executables: []