rdomino 0.0.2

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,43 @@
1
+ require File.dirname(__FILE__)+'/../helper'
2
+ module Rdomino
3
+ describe View do
4
+
5
+ before(:all) do
6
+ @d = Session.get('test')
7
+ @db = @d[:testdb].load_fixtures
8
+ end
9
+
10
+ it 'get' do
11
+ v = @db["Categorized"]
12
+ v.should be_a(View)
13
+ dc = v.get_all_documents_by_key("Person")
14
+ dc.count.should == 2
15
+ end
16
+
17
+ it 'works' do
18
+ a = @db['People'].to_array
19
+ a.length.should == 2
20
+ a.flatten.join(",").should == "Tobias,30.0,Frank,43.0"
21
+ end
22
+
23
+ it 'view' do
24
+ @d[:testdb,:categorized].categories.flatten.should == ['Group','Person']
25
+ @d[:testdb,:people].map{|doc| doc.columnValues }.should == [["Tobias", 30.0],["Frank", 43.0]]
26
+ @d[:testdb,'People'].map{|doc| doc.g :name }.should == ['Tobias','Frank']
27
+ @d[:testdb,:categorized].get_all_documents_by_key("Person").map{|doc| doc.g :name }.sort.
28
+ should == ['Frank','Tobias']
29
+ end
30
+
31
+ it 'finds documents' do
32
+ v = @db['People']
33
+ puts @db.server_path
34
+ d = v['Tobias']
35
+ d.should be_a(Document)
36
+ d.empty?.should be_false
37
+ v['Frankk'].should be_nil
38
+ end
39
+
40
+
41
+ end
42
+
43
+ end
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rdomino
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
10
+ platform: ruby
11
+ authors:
12
+ - Frank Behrens
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-04-15 00:00:00 +02:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: highline
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 0
30
+ - 5
31
+ version: 1.0.5
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: activesupport
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 2
43
+ - 3
44
+ - 5
45
+ version: 2.3.5
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: rspec
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ type: :development
59
+ version_requirements: *id003
60
+ description: rubifies the domino object model
61
+ email:
62
+ - fbehrens@gmail.com
63
+ executables: []
64
+
65
+ extensions: []
66
+
67
+ extra_rdoc_files: []
68
+
69
+ files:
70
+ - spec/helper.rb
71
+ - spec/rdomino/database_directory_spec.rb
72
+ - spec/rdomino/database_helper_spec.rb
73
+ - spec/rdomino/database_spec.rb
74
+ - spec/rdomino/datetime_spec.rb
75
+ - spec/rdomino/document_collection_spec.rb
76
+ - spec/rdomino/document_spec.rb
77
+ - spec/rdomino/dxl_spec.rb
78
+ - spec/rdomino/item_spec.rb
79
+ - spec/rdomino/name_spec.rb
80
+ - spec/rdomino/session_spec.rb
81
+ - spec/rdomino/view_spec.rb
82
+ - lib/rdomino/1modules.rb
83
+ - lib/rdomino/database.rb
84
+ - lib/rdomino/databases/testdb.rb
85
+ - lib/rdomino/database_collection.rb
86
+ - lib/rdomino/database_directory.rb
87
+ - lib/rdomino/database_library.rb
88
+ - lib/rdomino/document.rb
89
+ - lib/rdomino/document_collection.rb
90
+ - lib/rdomino/item.rb
91
+ - lib/rdomino/name.rb
92
+ - lib/rdomino/richtext_item.rb
93
+ - lib/rdomino/server.rb
94
+ - lib/rdomino/session.rb
95
+ - lib/rdomino/version.rb
96
+ - lib/rdomino/view.rb
97
+ - lib/rdomino.rb
98
+ - readme.rdoc
99
+ has_rdoc: true
100
+ homepage: http://github.com/fbehrens/rdomino
101
+ licenses: []
102
+
103
+ post_install_message:
104
+ rdoc_options: []
105
+
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ segments:
113
+ - 0
114
+ version: "0"
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ segments:
120
+ - 1
121
+ - 3
122
+ - 6
123
+ version: 1.3.6
124
+ requirements: []
125
+
126
+ rubyforge_project: rdomino
127
+ rubygems_version: 1.3.6
128
+ signing_key:
129
+ specification_version: 3
130
+ summary: Lotus Script Domino Classes decorated in Ruby
131
+ test_files: []
132
+