qfunction 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -1,5 +1,7 @@
1
1
  Rakefile
2
- lib/HTMLElement.rb
3
- lib/assertions.rb
4
- lib/sfunction.rb
2
+ lib/function/HTMLElement.rb
3
+ lib/function/assertions.rb
4
+ lib/function/javascriptPopup.rb
5
+ lib/function/sfunction.rb
6
+ lib/qfunction.rb
5
7
  Manifest
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('qfunction', '0.0.1') do |p|
5
+ Echoe.new('qfunction', '0.0.2') do |p|
6
6
  p.description = "Funciton"
7
7
  p.author = "QuangMV, Cyworld Vietnam, 5th Floor, 447 Lac Long Quan Street, Tay Ho Dist, Hanoi, Vietnam"
8
8
  p.email = "quangnnt@gmail.com"
@@ -1,5 +1,5 @@
1
1
  #B: HTML
2
-
2
+ module Qfunction
3
3
  #Goto url
4
4
  def goto(url)
5
5
  $ff.goto(url)
@@ -416,7 +416,7 @@ end
416
416
  def wait_ut(text)
417
417
  Watir::Waiter.wait_until($timeout) { text }
418
418
  end
419
-
419
+ end
420
420
 
421
421
 
422
422
 
@@ -1,6 +1,7 @@
1
1
 
2
2
  #E: Assert
3
- #Assertion text in page
3
+ #Assertion text in page
4
+ module Qfunction
4
5
  def assertText(text)
5
6
  i = 0
6
7
  while !$ff.contains_text(text) do
@@ -289,5 +290,5 @@ def returnwaitExists(text)
289
290
  return false
290
291
  end
291
292
  end
292
-
293
+ end
293
294
  #E: Assert
@@ -0,0 +1,12 @@
1
+ #code start#
2
+ require 'win32ole'
3
+ autoit = WIN32OLE.new('AutoItX3.Control')
4
+ IETitle = autoit.WinGetTitle("The page at http://www.cyworld.vn says:")
5
+ autoit.WinActivate(IETitle)
6
+ sleep(2)
7
+ #~ ret = autoit.WinWait(IETitle, "", 10)
8
+ #~ puts "ret :#{ret}"
9
+ autoit.Send("{ENTER}")
10
+ #~ if ret==1 then # 0 timeout, 1 succeed
11
+ #~ autoit.Send("{ENTER}")
12
+ #~ end
@@ -1,4 +1,4 @@
1
-
1
+ module Qfunction
2
2
  def decoder(n)
3
3
  str = [" ","!","\"","#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";",
4
4
  "<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",
@@ -124,4 +124,5 @@ def getFile(name)
124
124
  rescue
125
125
  return false
126
126
  end
127
- end
127
+ end
128
+ end
data/lib/qfunction.rb ADDED
@@ -0,0 +1,9 @@
1
+ require 'test/unit'
2
+ require 'rubygems'
3
+ require 'firewatir'
4
+ require 'cgi'
5
+ require 'win32ole'
6
+
7
+ require "function/HTMLElement"
8
+ require "function/assertions"
9
+ require "function/sfunction"
data/qfunction.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{qfunction}
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["QuangMV, Cyworld Vietnam, 5th Floor, 447 Lac Long Quan Street, Tay Ho Dist, Hanoi, Vietnam"]
9
9
  s.date = %q{2010-09-13}
10
10
  s.description = %q{Funciton}
11
11
  s.email = %q{quangnnt@gmail.com}
12
- s.extra_rdoc_files = ["lib/HTMLElement.rb", "lib/assertions.rb", "lib/sfunction.rb"]
13
- s.files = ["Rakefile", "lib/HTMLElement.rb", "lib/assertions.rb", "lib/sfunction.rb", "Manifest", "qfunction.gemspec"]
12
+ s.extra_rdoc_files = ["lib/function/HTMLElement.rb", "lib/function/assertions.rb", "lib/function/javascriptPopup.rb", "lib/function/sfunction.rb", "lib/qfunction.rb"]
13
+ s.files = ["Rakefile", "lib/function/HTMLElement.rb", "lib/function/assertions.rb", "lib/function/javascriptPopup.rb", "lib/function/sfunction.rb", "lib/qfunction.rb", "Manifest", "qfunction.gemspec"]
14
14
  s.homepage = %q{}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Qfunction"]
16
16
  s.require_paths = ["lib"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - QuangMV, Cyworld Vietnam, 5th Floor, 447 Lac Long Quan Street, Tay Ho Dist, Hanoi, Vietnam
@@ -25,14 +25,18 @@ executables: []
25
25
  extensions: []
26
26
 
27
27
  extra_rdoc_files:
28
- - lib/HTMLElement.rb
29
- - lib/assertions.rb
30
- - lib/sfunction.rb
28
+ - lib/function/HTMLElement.rb
29
+ - lib/function/assertions.rb
30
+ - lib/function/javascriptPopup.rb
31
+ - lib/function/sfunction.rb
32
+ - lib/qfunction.rb
31
33
  files:
32
34
  - Rakefile
33
- - lib/HTMLElement.rb
34
- - lib/assertions.rb
35
- - lib/sfunction.rb
35
+ - lib/function/HTMLElement.rb
36
+ - lib/function/assertions.rb
37
+ - lib/function/javascriptPopup.rb
38
+ - lib/function/sfunction.rb
39
+ - lib/qfunction.rb
36
40
  - Manifest
37
41
  - qfunction.gemspec
38
42
  has_rdoc: true