jyte 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +3 -0
- data/Manifest.txt +12 -0
- data/README.txt +26 -0
- data/Rakefile +54 -0
- data/lib/jyte.rb +1 -0
- data/lib/jyte/base.rb +96 -0
- data/lib/jyte/contact.rb +30 -0
- data/lib/jyte/group.rb +24 -0
- data/lib/jyte/version.rb +9 -0
- data/setup.rb +1585 -0
- data/test/jyte_test.rb +25 -0
- data/test/test_helper.rb +2 -0
- metadata +57 -0
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
|
data/test/test_helper.rb
ADDED
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
|
+
|