rayeux 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,55 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rayeux}
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Pete Schwamb"]
12
+ s.date = %q{2009-12-11}
13
+ s.description = %q{Provides client side functionality to talk to a Bayeux server such as the cometd server in Jetty.}
14
+ s.email = %q{pete@schwamb.net}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.markdown"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.markdown",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "chat_example.rb",
27
+ "lib/rayeux.rb",
28
+ "rayeux.gemspec",
29
+ "test/helper.rb",
30
+ "test/test_rayeux.rb"
31
+ ]
32
+ s.homepage = %q{http://github.com/ps2/rayeux}
33
+ s.rdoc_options = ["--charset=UTF-8"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.3.5}
36
+ s.summary = %q{Ruby based Bayeux (comet) client implementation.}
37
+ s.test_files = [
38
+ "test/helper.rb",
39
+ "test/test_rayeux.rb"
40
+ ]
41
+
42
+ if s.respond_to? :specification_version then
43
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
+ s.add_development_dependency(%q<httpclient>, [">= 0"])
48
+ else
49
+ s.add_dependency(%q<httpclient>, [">= 0"])
50
+ end
51
+ else
52
+ s.add_dependency(%q<httpclient>, [">= 0"])
53
+ end
54
+ end
55
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'mocha'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'rayeux'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,25 @@
1
+ require 'helper'
2
+
3
+ class TestRayeux < Test::Unit::TestCase
4
+ TEST_URL = 'http://localhost:8081/'
5
+
6
+ def test_initializer_accepts_simple_url
7
+ client = Rayeux::Client.new(TEST_URL)
8
+ assert_equal(TEST_URL, client.instance_variable_get('@url'))
9
+ end
10
+
11
+ def test_initializer_accepts_url_via_options
12
+ client = Rayeux::Client.new({:url => TEST_URL})
13
+ assert_equal(TEST_URL, client.instance_variable_get('@url'))
14
+ end
15
+
16
+ def test_log_level_defaults_to_info
17
+ client = Rayeux::Client.new({:url => TEST_URL})
18
+ assert_equal('info', client.instance_variable_get('@log_level'))
19
+ end
20
+
21
+ def test_initializer_should_start_handshaking
22
+ client = Rayeux::Client.new(TEST_URL)
23
+ assert_equal('handshaking', client.instance_variable_get('@status'))
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rayeux
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Pete Schwamb
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-11 00:00:00 -06:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: httpclient
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description: Provides client side functionality to talk to a Bayeux server such as the cometd server in Jetty.
26
+ email: pete@schwamb.net
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.markdown
34
+ files:
35
+ - .document
36
+ - .gitignore
37
+ - LICENSE
38
+ - README.markdown
39
+ - Rakefile
40
+ - VERSION
41
+ - chat_example.rb
42
+ - lib/rayeux.rb
43
+ - rayeux.gemspec
44
+ - test/helper.rb
45
+ - test/test_rayeux.rb
46
+ has_rdoc: true
47
+ homepage: http://github.com/ps2/rayeux
48
+ licenses: []
49
+
50
+ post_install_message:
51
+ rdoc_options:
52
+ - --charset=UTF-8
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ version:
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
67
+ requirements: []
68
+
69
+ rubyforge_project:
70
+ rubygems_version: 1.3.5
71
+ signing_key:
72
+ specification_version: 3
73
+ summary: Ruby based Bayeux (comet) client implementation.
74
+ test_files:
75
+ - test/helper.rb
76
+ - test/test_rayeux.rb