kindling 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/kindling.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kindling}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wal McConnell"]
@@ -2,12 +2,13 @@ module Kindling
2
2
 
3
3
  class Campfire
4
4
 
5
- attr_accessor :api_token, :subdomain, :room_id
5
+ attr_accessor :api_token, :subdomain, :room_id, :ssl
6
6
 
7
- def initialize(api_token, subdomain, room_id)
7
+ def initialize(api_token, subdomain, room_id, ssl=false)
8
8
  @api_token = api_token
9
9
  @subdomain = subdomain
10
10
  @room_id = room_id
11
+ @ssl = ssl
11
12
  rooms
12
13
  end
13
14
 
@@ -47,6 +47,6 @@ class Kindling::Request
47
47
  end
48
48
 
49
49
  def self.subdomain(campfire)
50
- "http://#{campfire.subdomain}.#{CAMPFIRE_HOST}"
50
+ "#{campfire.ssl ? 'https' : 'http' }://#{campfire.subdomain}.#{CAMPFIRE_HOST}"
51
51
  end
52
52
  end
@@ -31,7 +31,6 @@ class RequestTest < Test::Unit::TestCase
31
31
  end
32
32
  end
33
33
 
34
-
35
34
  context "send message" do
36
35
  should "send message successfully if 200" do
37
36
  stub_send_message_request('test message', {:code => 200})
@@ -56,7 +55,6 @@ class RequestTest < Test::Unit::TestCase
56
55
  Kindling::Request.speak("test message", @campfire)
57
56
  end
58
57
  end
59
-
60
58
  end
61
59
  end
62
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wal McConnell