iegrip 0.1.5 → 0.1.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb4eb46a0774e719a6a2b3e0588cc92c1039ca43
4
- data.tar.gz: 13a01ce09f4cc574732c4b2c857dbf1ee3f3f432
3
+ metadata.gz: bad1519ed0c9644a166661626f2d418ece5578ff
4
+ data.tar.gz: 4aa306785e14ae58fc458bac757e0b5badb865de
5
5
  SHA512:
6
- metadata.gz: e293f99a1b2a773cb24a5ebf47d8fe7f11e224d4101ccc18b12bae282e0fe659ea811f92d72bf0b31c26f1630e3e3fc3b1650c855189f1d36772c6be9289fbb3
7
- data.tar.gz: 9202f17bb72b3d69607928d55b4b0c1f8c414a8e54883cba8332ec9ff7d6573374f72250cc14a97067f40f1140c81574e0ecdc3c5e34c49544022a411dad1cff
6
+ metadata.gz: 2b4922586a8b386a573521ffaeb374b7dd87ddc07308071e30ed4ea1d4f4b6dd66ca3abf560acc2f7a7fe7a7611d6af91addad8a060bd19b96017113a1c1e418
7
+ data.tar.gz: 57c9bacf0af9175952fd4d11de9c92d1962897426795ffd84c32647433f5dbb5a561ae5100ba76d48440cf22d6c5fc471f99768ff6281e12f867c403cd5b767c
data/README.rdoc ADDED
@@ -0,0 +1,199 @@
1
+ = NotesGrip
2
+ Notesgrip is Ruby library to handle all Notes classes.
3
+ * Windows Only
4
+ * Necessary Notes Clinet(all version OK. R4.6-R9)
5
+
6
+ = Installation
7
+ # gem install notesgrip
8
+
9
+ = Usage
10
+ require 'notesgrip'
11
+ ns = Notesgrip::NotesSession.new
12
+ db = ns.database("myserver", "mydb.nsf")
13
+ db.each_document {|doc|
14
+ p doc
15
+ }
16
+
17
+ = Documentation
18
+ In RubyDoc.Info, all Notesgrip classes are Listed.
19
+ http://rubydoc.info/gems/notesgrip/
20
+
21
+ == Notesgrip::Notes_Wrapper
22
+ Base class of all Notesgrip classes.
23
+ This class wraps a various Notes objects.
24
+ === Methods
25
+ [raw]
26
+ Return raw Notes object which is wrapped by Notesgrip object.
27
+
28
+ == Notesgrip::NotesSession class
29
+ Wrap NotesSession object to use all properties and methods of NotesSession class.
30
+ ns = NotesGrip::NotesSession.new
31
+ p ns.NotesVersion # -> "Release 9.0|March 08, 2013 "
32
+ db = ns.getDatabase("servername", "dbname.nsf")
33
+
34
+ === Additional Methods
35
+ [database(server, dbfilename, createonfail=false)]
36
+ Alias of GetDatabse().
37
+ [each_database(server) {|database| block}]
38
+ Calls the given block for each database on server.
39
+ ns = NotesGrip::NotesSession.new
40
+ ns.each_database("myserver") {|db|
41
+ p db
42
+ }
43
+
44
+ == Notesgrip:NotesDatabase class
45
+ Wrap NotesDatabase object.
46
+ ns = NotesGrip::NotesSession.new
47
+ db = ns.getDatabase("servername", "dbname.nsf")
48
+ puts "Title:#{db.Title}, Size:#{db.Size}" # Title:tech's Directory, Size:23330816.0
49
+
50
+ === Additional Methods
51
+ [CreateDocument(formName=nil)]
52
+ Create new NotesDocument and set form name. Return Notesgrip::NotesDocument.
53
+ [name()]
54
+ Alias of Title().
55
+ [open?()]
56
+ Alias of IsOpen().
57
+ [each_document {|doc| block}]
58
+ Calls the given block for each document in database.
59
+ db.each_document {|doc|
60
+ p doc
61
+ }
62
+ [each_view {|view| block}]
63
+ Calls the given block for each view in database.
64
+ db.each_view {|view|
65
+ p view
66
+ }
67
+ [each_form {|form| block}]
68
+ Calls the given block for each form in database.
69
+ db.each_form {|form|
70
+ p form
71
+ }
72
+ [each_agent {|agent| agent}]
73
+ Calls the given block for each agent in database.
74
+ db.each_agent {|agent|
75
+ p agent
76
+ }
77
+ [each_profile {|profile| block}]
78
+ Calls the given block for each profile in database.
79
+ db.each_profile {|profile|
80
+ p profile
81
+ }
82
+
83
+ == Notesgrip:NotesView class
84
+ Wrap NotesView object.
85
+ ns = NotesGrip::NotesSession.new
86
+ db = ns.getDatabase("servername", "dbname.nsf")
87
+ view = db.view("All")
88
+ p view.Count
89
+ === Additional Methods
90
+ [each_document {|doc| block}]
91
+ Calls the given block for each document in the view.
92
+ view = db.view("All")
93
+ view.each_document {|doc|
94
+ p doc
95
+ }
96
+ [[index]]
97
+ Return the document at index.
98
+ [each_entry {|entry| block}]
99
+ Calls the given block for each entry in the view.
100
+ view = db.view("All")
101
+ view.each_entry {|entry|
102
+ p entry
103
+ }
104
+ [each_column {|column| block}]
105
+ Calls the given block for each column in the view.
106
+ view = db.view("All")
107
+ view.each_column {|entry|
108
+ p entry
109
+ }
110
+ [UNID]
111
+ Alias of UniversalID().
112
+ [count]
113
+ [size]
114
+ Return count of entries of view.
115
+
116
+ === Notesgrip:NotesDocumentCollection class
117
+ Wrap NotesDocumentCollection object.
118
+ ns = NotesGrip::NotesSession.new
119
+ db = ns.getDatabase("servername", "dbname.nsf")
120
+ view = db.view("ByDate")
121
+ docList = view.GetAllDocumentsByKey("2014/04/20", true)
122
+ p docList.size # count of documents in NotesDocumentCollection
123
+ === Additional Methods
124
+ [each_document {|doc| block}]
125
+ Calls the given block for each document in the view.
126
+ docList = view.GetAllDocumentsByKey("2014/04/20", true)
127
+ docList.each_document {|doc|
128
+ p doc
129
+ }
130
+ [[index]]
131
+ Return the document at index.
132
+
133
+ == Notesgrip:NotesDocument class
134
+ Wrap NotesDocument object.
135
+ ns = NotesGrip::NotesSession.new
136
+ db = ns.getDatabase("servername", "dbname.nsf")
137
+ doc = db.CreateDocument("main")
138
+ doc['subject'].text = "Sample-001"
139
+ doc.save
140
+ === Additional Methods
141
+ [unid]
142
+ Alias of UniversalID().
143
+ [[itemname]]
144
+ Return Notesgrip::NotesItem object which is identified by itemname in the document.
145
+ If item type is richtext, return Notesgrip::NotesRichTextItem object.
146
+ [[itemname]=other_item]
147
+ Copy other NotesItem with given item name.
148
+ [each_item{|item| block}]
149
+ Calls the given block for each NotesItem in my document.
150
+
151
+ == Notesgrip:NotesItem class
152
+ Wrap NotesItem object.
153
+ ns = NotesGrip::NotesSession.new
154
+ db = ns.getDatabase("servername", "dbname.nsf")
155
+ db.each_document {|doc|
156
+ item = doc["subject"]
157
+ p item.text
158
+ }
159
+ ===Additional Methods
160
+ [Values=item_value, text=item_value]
161
+ Copy item_value into my field. You can set Array into the field.
162
+ [each_value {|value| block}]
163
+ Calls the given block for each item value in the field.
164
+ [to_s]
165
+ Return text string in the field.
166
+ [EmbeddedObjects]
167
+ Return [], because the field type is TEXT.
168
+
169
+ == Notesgrip:NotesRichTextItem class
170
+ Wrap NotesRichTextItem object. This class is sub class of Notesgrip::NotesItem.
171
+ ns = NotesGrip::NotesSession.new
172
+ db = ns.getDatabase("servername", "dbname.nsf")
173
+ view = db.view("All")
174
+ doc = view.GetFirstDocument
175
+ doc["Body"].add_file("./sample.pdf") # Body is RichText Field.
176
+ doc.save
177
+ ===Additional Methods
178
+ [Values=item_value, text=item_value]
179
+ Copy item_value into my field. You can set Array into the field.
180
+ [each_value {|value| block}]
181
+ Calls the given block for each item value in the field.
182
+ [to_s]
183
+ Return text string in the field.
184
+ [EmbeddedObjects]
185
+ Return array of Notesgrip::NotesEmbeddedObject in the RichText field.
186
+ Return [] if this field has no Embedded object.
187
+ [each_embeddedFile]
188
+ Calls the given block for each file type embedded object in the field.
189
+ [each_embeddedLink]
190
+ Calls the given block for each link type embedded object in the field.
191
+ [each_embeddedOLE]
192
+ Calls the given block for each OLE type embedded object in the field.
193
+
194
+
195
+ = Author
196
+ notesgrip@tech-notes.dyndns.org
197
+
198
+ = License
199
+ MIT
@@ -1,3 +1,3 @@
1
1
  module IEgrip
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/lib/iegrip.rb CHANGED
@@ -62,7 +62,7 @@ module IEgrip
62
62
  target = proc.call
63
63
  #puts " in retryGetTarget(), target = #{target.inspect}"
64
64
  if target
65
- puts "retryGetTarget() Success fin."
65
+ #puts "retryGetTarget() Success fin."
66
66
  return target
67
67
  end
68
68
  sleep RETRY_INTERVAL
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iegrip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - yac4423
@@ -49,6 +49,7 @@ files:
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
52
+ - README.rdoc
52
53
  - Rakefile
53
54
  - iegrip-0.0.2.gem
54
55
  - iegrip-0.0.9.gem