ripl-watir 0.0.1 → 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.
data/bin/ripl-watir CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
- $: << File.dirname(__FILE__)+'/../lib'
3
2
  require 'ripl'
4
- require 'ripl_watir'
5
- Ripl::Commands.include RiplWatir::Commands
6
- browser = RiplWatir.browser = ::Watir::Browser.new
3
+ require 'watir-page-helper/commands'
4
+ Ripl::Commands.include WatirPageHelper::Commands
5
+ browser = WatirPageHelper.create
6
+ puts "'browser' has started and is now available to control: see http://bit.ly/ripl-watir for more details."
7
7
  Ripl.start :binding => binding
data/ripl-watir.gemspec CHANGED
@@ -1,10 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "ripl_watir/version"
4
3
 
5
4
  Gem::Specification.new do |s|
6
5
  s.name = "ripl-watir"
7
- s.version = RiplWatir::VERSION
6
+ s.version = '0.0.2'
8
7
  s.authors = ["Mark Ryall"]
9
8
  s.email = ["mark@ryall.name"]
10
9
  s.homepage = "https://github.com/markryall/ripl_watir"
@@ -24,5 +23,5 @@ EOF
24
23
  s.add_runtime_dependency "ripl"
25
24
  s.add_runtime_dependency "watir-page-helper"
26
25
 
27
- s.add_development_dependency "rspec"
26
+ s.add_development_dependency "rake"
28
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripl-watir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-26 00:00:00.000000000 Z
12
+ date: 2012-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ripl
16
- requirement: &70117511154860 !ruby/object:Gem::Requirement
16
+ requirement: &70311937843260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70117511154860
24
+ version_requirements: *70311937843260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: watir-page-helper
27
- requirement: &70117511154400 !ruby/object:Gem::Requirement
27
+ requirement: &70311937842820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70117511154400
35
+ version_requirements: *70311937842820
36
36
  - !ruby/object:Gem::Dependency
37
- name: rspec
38
- requirement: &70117511153920 !ruby/object:Gem::Requirement
37
+ name: rake
38
+ requirement: &70311937842380 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70117511153920
46
+ version_requirements: *70311937842380
47
47
  description: ! 'A ripl plugin to provide an interactive shell for creating page objects
48
48
 
49
49
  to build an automated testing infrastructure for a site.
@@ -61,9 +61,6 @@ files:
61
61
  - README.rdoc
62
62
  - Rakefile
63
63
  - bin/ripl-watir
64
- - lib/ripl_watir.rb
65
- - lib/ripl_watir/page.rb
66
- - lib/ripl_watir/version.rb
67
64
  - ripl-watir.gemspec
68
65
  homepage: https://github.com/markryall/ripl_watir
69
66
  licenses: []
@@ -79,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
76
  version: '0'
80
77
  segments:
81
78
  - 0
82
- hash: 749351036081304174
79
+ hash: -102335906843895574
83
80
  required_rubygems_version: !ruby/object:Gem::Requirement
84
81
  none: false
85
82
  requirements:
@@ -88,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
85
  version: '0'
89
86
  segments:
90
87
  - 0
91
- hash: 749351036081304174
88
+ hash: -102335906843895574
92
89
  requirements: []
93
90
  rubyforge_project: ripl-watir
94
91
  rubygems_version: 1.8.11
data/lib/ripl_watir.rb DELETED
@@ -1,44 +0,0 @@
1
- require 'watir-webdriver'
2
- require 'ripl_watir/page'
3
-
4
- module RiplWatir
5
- class << self
6
- attr_accessor :browser
7
- end
8
-
9
- module Array
10
- def classify
11
- self.map(&:classify).join('::')
12
- end
13
- end
14
-
15
- module Commands
16
- def classify s
17
- s.to_s.split('_').map(&:capitalize).join
18
- end
19
-
20
- def page_class *args
21
- page = Page.new RiplWatir.browser
22
- require "ripl_watir/#{args.join '/'}"
23
- mod = RiplWatir
24
- args.each do |name|
25
- mod = mod.const_get classify name
26
- end
27
- page.extend mod
28
- page
29
- end
30
-
31
- def on_page *args
32
- page_class(*args).tap do |p|
33
- yield p if block_given?
34
- end
35
- end
36
-
37
- def visit_page *args
38
- on_page(*args) do |p|
39
- p.goto
40
- yield p if block_given?
41
- end
42
- end
43
- end
44
- end
@@ -1,10 +0,0 @@
1
- require 'delegate'
2
-
3
- module RiplWatir
4
- class Page < DelegateClass Watir::Browser
5
- def initialize browser
6
- @browser = browser
7
- super browser
8
- end
9
- end
10
- end
@@ -1,3 +0,0 @@
1
- module RiplWatir
2
- VERSION = "0.0.1"
3
- end