splat 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/splat.rb +7 -3
- metadata +50 -73
- data/lib/splat/darwin_browser.rb +0 -7
- data/lib/splat/linux_browser.rb +0 -7
- data/lib/splat/win32_browser.rb +0 -7
data/README.rdoc
CHANGED
@@ -30,7 +30,7 @@ Defaults to notepad on windows and vim everywhere else. Set "EDITOR" environment
|
|
30
30
|
|
31
31
|
'http://www.google.com'.to_browser
|
32
32
|
|
33
|
-
Returns a watir compatible browser
|
33
|
+
Returns a watir compatible browser using watir-webdriver.
|
34
34
|
|
35
35
|
== clipboard
|
36
36
|
|
data/lib/splat.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'tempfile'
|
2
|
+
require 'watir-webdriver'
|
2
3
|
|
3
4
|
class String
|
4
5
|
def splat_unsupported
|
@@ -12,6 +13,12 @@ class String
|
|
12
13
|
alias :to_player :splat_unsupported
|
13
14
|
alias :to_os_path :to_s
|
14
15
|
|
16
|
+
def to_browser
|
17
|
+
@browser = Watir::Browser.new
|
18
|
+
@browser.goto self
|
19
|
+
@browser
|
20
|
+
end
|
21
|
+
|
15
22
|
def to_editor
|
16
23
|
tmp_file = Tempfile.new('splat')
|
17
24
|
tmp_file.close
|
@@ -51,7 +58,6 @@ module Splat
|
|
51
58
|
try_load 'clipboard', 'win32-clipboard' => 'win32/clipboard'
|
52
59
|
try_load 'launcher'
|
53
60
|
try_load 'player'
|
54
|
-
try_load 'browser', 'watir' => 'watir'
|
55
61
|
try_load 'os_path'
|
56
62
|
when /darwin/i
|
57
63
|
@platform = :darwin
|
@@ -59,14 +65,12 @@ module Splat
|
|
59
65
|
try_load 'clipboard'
|
60
66
|
try_load 'launcher'
|
61
67
|
try_load 'player'
|
62
|
-
try_load 'browser', 'safariwatir' => 'safariwatir'
|
63
68
|
when /linux/i
|
64
69
|
@platform = :linux
|
65
70
|
try_load 'tts'
|
66
71
|
try_load 'clipboard'
|
67
72
|
try_load 'launcher'
|
68
73
|
try_load 'player'
|
69
|
-
try_load 'browser', 'firewatir' => 'firewatir'
|
70
74
|
else
|
71
75
|
@platform = :unknown
|
72
76
|
puts "I have no idea how to cope with \"#{Config::CONFIG['host_os']}\""
|
metadata
CHANGED
@@ -1,79 +1,65 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: splat
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
version: 0.1.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Mark Ryall
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2011-08-21 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: watir-webdriver
|
16
|
+
requirement: &70171734295760 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
22
23
|
prerelease: false
|
23
|
-
|
24
|
+
version_requirements: *70171734295760
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &70171734295320 !ruby/object:Gem::Requirement
|
24
28
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 0
|
30
|
-
- 8
|
31
|
-
- 7
|
32
|
-
version: 0.8.7
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
33
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: gemesis
|
37
34
|
prerelease: false
|
38
|
-
|
35
|
+
version_requirements: *70171734295320
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &70171734322020 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
- 0
|
45
|
-
- 0
|
46
|
-
- 4
|
47
|
-
version: 0.0.4
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
48
44
|
type: :development
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
* a default application launcher
|
55
|
-
* a media player
|
56
|
-
* text to speech
|
57
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70171734322020
|
47
|
+
description: ! "An adapter to get access to the following features across different
|
48
|
+
platforms:\n\n * the clipboard\n * a default application launcher\n * a media player\n
|
49
|
+
* text to speech\n"
|
58
50
|
email: mark@ryall.name
|
59
51
|
executables: []
|
60
|
-
|
61
52
|
extensions: []
|
62
|
-
|
63
53
|
extra_rdoc_files: []
|
64
|
-
|
65
|
-
files:
|
66
|
-
- lib/splat/darwin_browser.rb
|
54
|
+
files:
|
67
55
|
- lib/splat/darwin_clipboard.rb
|
68
56
|
- lib/splat/darwin_launcher.rb
|
69
57
|
- lib/splat/darwin_player.rb
|
70
58
|
- lib/splat/darwin_tts.rb
|
71
|
-
- lib/splat/linux_browser.rb
|
72
59
|
- lib/splat/linux_clipboard.rb
|
73
60
|
- lib/splat/linux_launcher.rb
|
74
61
|
- lib/splat/linux_player.rb
|
75
62
|
- lib/splat/linux_tts.rb
|
76
|
-
- lib/splat/win32_browser.rb
|
77
63
|
- lib/splat/win32_clipboard.rb
|
78
64
|
- lib/splat/win32_launcher.rb
|
79
65
|
- lib/splat/win32_os_path.rb
|
@@ -82,37 +68,28 @@ files:
|
|
82
68
|
- lib/splat.rb
|
83
69
|
- README.rdoc
|
84
70
|
- MIT-LICENSE
|
85
|
-
has_rdoc: true
|
86
71
|
homepage: http://github.com/markryall/splat
|
87
72
|
licenses: []
|
88
|
-
|
89
73
|
post_install_message:
|
90
74
|
rdoc_options: []
|
91
|
-
|
92
|
-
require_paths:
|
75
|
+
require_paths:
|
93
76
|
- lib
|
94
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
78
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
|
101
|
-
version: "0"
|
102
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
84
|
none: false
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
|
108
|
-
- 0
|
109
|
-
version: "0"
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
110
89
|
requirements: []
|
111
|
-
|
112
90
|
rubyforge_project:
|
113
|
-
rubygems_version: 1.
|
91
|
+
rubygems_version: 1.8.6
|
114
92
|
signing_key:
|
115
93
|
specification_version: 3
|
116
94
|
summary: cross platform adapter for various os specific features
|
117
95
|
test_files: []
|
118
|
-
|
data/lib/splat/darwin_browser.rb
DELETED
data/lib/splat/linux_browser.rb
DELETED