jyte 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/test/jyte_test.rb ADDED
@@ -0,0 +1,25 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class JyteTest < Test::Unit::TestCase
4
+
5
+ def setup
6
+ @me = Jyte::Contact.new("claimid.com/judofyr")
7
+ @linux = Jyte::Group.new("Linux")
8
+ @error = Jyte::Contact.new("fake.url.com")
9
+ end
10
+
11
+ def test_roster
12
+ assert_instance_of(Array, @me.roster)
13
+ assert_instance_of(Array, @linux.roster)
14
+ end
15
+
16
+ def test_fake
17
+ assert_raise(Jyte::JyteError) do
18
+ @error.roster
19
+ end
20
+ end
21
+
22
+ def test_is_member
23
+ assert_equal(true, @linux.is_member(@me))
24
+ end
25
+ end
@@ -0,0 +1,2 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../lib/jyte'
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.2
3
+ specification_version: 1
4
+ name: jyte
5
+ version: !ruby/object:Gem::Version
6
+ version: 1.0.0
7
+ date: 2007-02-10 00:00:00 +00:00
8
+ summary: Simple libary for the Jyte API
9
+ require_paths:
10
+ - lib
11
+ email: judofyr@gmail.com
12
+ homepage: http://jyte.rubyforge.org
13
+ rubyforge_project: jyte
14
+ description: Simple libary for the Jyte API
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Magnus Holm
31
+ files:
32
+ - Rakefile
33
+ - README.txt
34
+ - CHANGELOG.txt
35
+ - Manifest.txt
36
+ - setup.rb
37
+ - lib/jyte/base.rb
38
+ - lib/jyte/contact.rb
39
+ - lib/jyte/group.rb
40
+ - lib/jyte/version.rb
41
+ - lib/jyte.rb
42
+ - test/test_helper.rb
43
+ - test/jyte_test.rb
44
+ test_files:
45
+ - test/jyte_test.rb
46
+ rdoc_options: []
47
+
48
+ extra_rdoc_files: []
49
+
50
+ executables: []
51
+
52
+ extensions: []
53
+
54
+ requirements: []
55
+
56
+ dependencies: []
57
+