hipchat-api 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGLOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
- # hipchat-api 1.0.0
1
+ # hipchat-api 1.0.1 (2011-05-09)
2
+
3
+ * Set the default HIPCHAT_API_URL to use https
4
+
5
+ # hipchat-api 1.0.0 (2011-05-07)
2
6
 
3
7
  * Initial release
data/README.rdoc CHANGED
@@ -1,6 +1,27 @@
1
1
  = hipchat-api
2
2
 
3
- Ruby API for interacting with HipChat API, https://www.hipchat.com/docs/api
3
+ Ruby API for interacting with HipChat API
4
+
5
+ * https://www.hipchat.com/docs/api
6
+
7
+ == Compatibility
8
+
9
+ hipchat-API has been tested under Ruby 1.8.7 and Ruby 1.9.2
10
+
11
+ == Requirements
12
+
13
+ * HTTParty
14
+
15
+ == Install
16
+
17
+ * gem install hipchat-api
18
+
19
+ == Example
20
+
21
+ ruby-1.9.2-p180 :001 > require 'hipchat-api'
22
+ => true
23
+ ruby-1.9.2-p180 :002 > hipchat_api = HipChat::API.new('api_token')
24
+ => #<HipChat::API:0x000001013d7280 @token="api_token", @hipchat_api_url="http://api.hipchat.com/v1">
4
25
 
5
26
  == Contributing to hipchat-api
6
27
 
data/Rakefile CHANGED
@@ -47,3 +47,10 @@ Rake::RDocTask.new do |rdoc|
47
47
  rdoc.rdoc_files.include('README*')
48
48
  rdoc.rdoc_files.include('lib/**/*.rb')
49
49
  end
50
+
51
+ namespace :spec do
52
+ desc "Runs specs on Ruby 1.8.7 and 1.9.2"
53
+ task :rubies do
54
+ system "rvm 1.8.7,1.9.2 rake"
55
+ end
56
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
data/hipchat-api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hipchat-api}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Czarnecki"]
12
- s.date = %q{2011-05-07}
12
+ s.date = %q{2011-05-09}
13
13
  s.description = %q{Ruby API for interacting with HipChat}
14
14
  s.email = %q{czarneckid@acm.org}
15
15
  s.extra_rdoc_files = [
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
44
44
  s.homepage = %q{http://github.com/czarneckid/hipchat-api}
45
45
  s.licenses = ["MIT"]
46
46
  s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.6.2}
47
+ s.rubygems_version = %q{1.7.2}
48
48
  s.summary = %q{Ruby API for interacting with HipChat}
49
49
 
50
50
  if s.respond_to? :specification_version then
data/lib/hipchat-api.rb CHANGED
@@ -4,7 +4,7 @@ module HipChat
4
4
  class API
5
5
  include HTTParty
6
6
 
7
- VERSION = '1.0.0'.freeze
7
+ VERSION = '1.0.1'.freeze
8
8
  DEFAULT_TIMEOUT = 3
9
9
 
10
10
  DEFAULT_HEADERS = {
@@ -15,7 +15,7 @@ module HipChat
15
15
  default_timeout(DEFAULT_TIMEOUT)
16
16
  format(:json)
17
17
 
18
- HIPCHAT_API_URL = 'http://api.hipchat.com/v1'
18
+ HIPCHAT_API_URL = 'https://api.hipchat.com/v1'
19
19
 
20
20
  attr_accessor :hipchat_api_url
21
21
  attr_accessor :token
@@ -9,7 +9,7 @@ describe "HipChat::API" do
9
9
  end
10
10
 
11
11
  it "should be the correct version" do
12
- HipChat::API::VERSION.should == '1.0.0'
12
+ HipChat::API::VERSION.should == '1.0.1'
13
13
  end
14
14
 
15
15
  it "should create a new instance with the correct parameters" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hipchat-api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Czarnecki
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-07 00:00:00 -04:00
14
- default_executable:
13
+ date: 2011-05-09 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: httparty
@@ -101,7 +100,6 @@ files:
101
100
  - spec/fakeweb/users_update_response.json
102
101
  - spec/hipchat-api_spec.rb
103
102
  - spec/spec_helper.rb
104
- has_rdoc: true
105
103
  homepage: http://github.com/czarneckid/hipchat-api
106
104
  licenses:
107
105
  - MIT
@@ -115,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
113
  requirements:
116
114
  - - ">="
117
115
  - !ruby/object:Gem::Version
118
- hash: -3182576357010915780
116
+ hash: -2641781490993724861
119
117
  segments:
120
118
  - 0
121
119
  version: "0"
@@ -128,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
126
  requirements: []
129
127
 
130
128
  rubyforge_project:
131
- rubygems_version: 1.6.2
129
+ rubygems_version: 1.7.2
132
130
  signing_key:
133
131
  specification_version: 3
134
132
  summary: Ruby API for interacting with HipChat