celerity 0.7.7 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -64,7 +64,7 @@ The source code is available on [GitHub](http://github.com/jarib/celerity/tree/m
64
64
  == License
65
65
 
66
66
  Celerity - JRuby wrapper for HtmlUnit
67
- Copyright (c) 2008-2009 FINN.no AS
67
+ Copyright (c) 2008-2010 FINN.no AS
68
68
 
69
69
  This program is free software: you can redistribute it and/or modify
70
70
  it under the terms of the GNU General Public License as published by
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
+ :patch: 8
2
3
  :major: 0
3
- :minor: 7
4
- :patch: 7
5
4
  :build:
5
+ :minor: 7
data/celerity.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{celerity}
8
- s.version = "0.7.7"
8
+ s.version = "0.7.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jari Bakken", "T. Alexander Lystad", "Knut Johannes Dahle"]
12
- s.date = %q{2010-01-08}
12
+ s.date = %q{2010-01-21}
13
13
  s.description = %q{Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications. Celerity provides a superset of Watir's API.}
14
14
  s.email = %q{jari.bakken@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -83,6 +83,17 @@ module Celerity
83
83
  @object.focus
84
84
  end
85
85
 
86
+ #
87
+ # Returns true if this element is the currently focused element
88
+ #
89
+ # Celerity-specific.
90
+ #
91
+
92
+ def focused?
93
+ assert_exists
94
+ @object == browser.page.getFocusedElement
95
+ end
96
+
86
97
  #
87
98
  # Fires the given event for this element
88
99
  #
@@ -1,3 +1,3 @@
1
1
  module Celerity
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celerity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-01-08 00:00:00 +01:00
14
+ date: 2010-01-21 00:00:00 +01:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency