iegrip 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +14 -0
- data/README.rdoc +13 -185
- data/lib/iegrip/version.rb +1 -1
- metadata +2 -4
- data/README.md +0 -31
- data/iegrip-0.0.2.gem +0 -0
- data/iegrip-0.0.9.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4e966f05ba35bf4a78dbf2cb6aacac51cabe1a3
|
4
|
+
data.tar.gz: 67f5a7a5d5b910931879f2ad31ed05f1188c4ac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbeb7cfad6e5c688a41e25f02028ff2c645f5768887c8146f787c6d5823734c1a439c0f82189031030e5b127fe8515b95ac4e6fabb04df9e9f738ebc4ba786ff
|
7
|
+
data.tar.gz: 0d3fa3b7becf164c935ca2da834a5b159024ec0c775679099782068180dacfc6f5a443a5ba562e989adaf6023a1981bea19df76f6b74f13016a6decde76759be
|
data/CHANGELOG.rdoc
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
== 0.1.7 (2014/11/03)
|
2
|
+
[Comment:]
|
3
|
+
* Modify README
|
4
|
+
* Add CHANGELOG
|
5
|
+
|
6
|
+
== 0.1.6 (2014/11/03)
|
7
|
+
[Bugfix:]
|
8
|
+
* Commentout debug message.
|
9
|
+
|
10
|
+
== 0.1.5 (2014/11/03)
|
11
|
+
[Feature:]
|
12
|
+
* Add Retry method to getElement type methods.
|
13
|
+
* Remove WIN32OLE_EVENT wait methods.
|
14
|
+
|
data/README.rdoc
CHANGED
@@ -1,199 +1,27 @@
|
|
1
|
-
=
|
2
|
-
|
1
|
+
= IEGrip
|
2
|
+
IEgrip is Ruby library to control Internet Explorer(IE).
|
3
3
|
* Windows Only
|
4
|
-
* Necessary Notes Clinet(all version OK. R4.6-R9)
|
5
4
|
|
6
5
|
= Installation
|
7
|
-
# gem install
|
6
|
+
# gem install iegrip
|
8
7
|
|
9
8
|
= Usage
|
10
|
-
require '
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
require 'iegrip'
|
10
|
+
ie = IEgrip::IE.new
|
11
|
+
ie.navigate("www.yahoo.com")
|
12
|
+
stream = ie.document.getElementByID("stream")
|
13
|
+
stream.elements("a")[0].childNodes.each {|tag|
|
14
|
+
p tag
|
15
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
16
|
|
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
17
|
|
83
|
-
|
84
|
-
|
85
|
-
|
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.
|
18
|
+
= Documentation
|
19
|
+
In RubyDoc.Info, all IEgrip classes are listed.
|
20
|
+
http://rubydoc.info/gems/iegrip/
|
168
21
|
|
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
22
|
|
194
|
-
|
195
23
|
= Author
|
196
|
-
|
24
|
+
yac@tech-notes.dyndns.org
|
197
25
|
|
198
26
|
= License
|
199
27
|
MIT
|
data/lib/iegrip/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yac4423
|
@@ -46,13 +46,11 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- .gitignore
|
49
|
+
- CHANGELOG.rdoc
|
49
50
|
- Gemfile
|
50
51
|
- LICENSE.txt
|
51
|
-
- README.md
|
52
52
|
- README.rdoc
|
53
53
|
- Rakefile
|
54
|
-
- iegrip-0.0.2.gem
|
55
|
-
- iegrip-0.0.9.gem
|
56
54
|
- iegrip.gemspec
|
57
55
|
- lib/iegrip.rb
|
58
56
|
- lib/iegrip/GripWrapper.rb
|
data/README.md
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
# Iegrip
|
2
|
-
|
3
|
-
TODO: Write a gem description
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'iegrip'
|
11
|
-
```
|
12
|
-
|
13
|
-
And then execute:
|
14
|
-
|
15
|
-
$ bundle
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
|
-
$ gem install iegrip
|
20
|
-
|
21
|
-
## Usage
|
22
|
-
|
23
|
-
TODO: Write usage instructions here
|
24
|
-
|
25
|
-
## Contributing
|
26
|
-
|
27
|
-
1. Fork it ( https://github.com/[my-github-username]/iegrip/fork )
|
28
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
-
5. Create a new Pull Request
|
data/iegrip-0.0.2.gem
DELETED
Binary file
|
data/iegrip-0.0.9.gem
DELETED
Binary file
|