webconsole 0.1.5 → 0.1.10
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.
- checksums.yaml +4 -4
- data/lib/applescript/load_html.scpt +0 -0
- data/lib/applescript/load_html_with_base_url.scpt +0 -0
- data/lib/applescript/load_plugin.scpt +0 -0
- data/lib/applescript/read_from_standard_input.scpt +0 -0
- data/lib/applescript/resource_path_for_plugin.scpt +0 -0
- data/lib/applescript/run_plugin.scpt +0 -0
- data/lib/applescript/window_id_for_plugin.scpt +0 -0
- data/lib/webconsole/lib/module.rb +4 -8
- data/lib/webconsole/lib/window.rb +6 -1
- metadata +2 -2
- data/lib/applescript/plugin_read_from_standard_input.scpt +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de950ee6080a9d60cb6fd718f458fa26c63acf1e
|
4
|
+
data.tar.gz: 7369eafe03ce155412422ca8d8e5a9758eace62f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 463c9fa0935a02ac8af08a14381528221412e0d82cc129a7e2d9bc480fe6421adee30fd54df2b6f1cf410289c54c29eed7c5b59d37cb119b46d4de9fc53bae94
|
7
|
+
data.tar.gz: 00314d3e33b51f7995d79351070ff98a45753741302cbd5387c4372a3004d1b804a64fa761b74005217046c0ff40d573a4ab69a2edce8a99b78657ed375a3890
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -25,7 +25,9 @@ module WebConsole
|
|
25
25
|
if arguments
|
26
26
|
parameters = parameters + arguments
|
27
27
|
end
|
28
|
-
self.run_applescript(RUN_PLUGIN_SCRIPT, parameters)
|
28
|
+
result = self.run_applescript(RUN_PLUGIN_SCRIPT, parameters)
|
29
|
+
result.chomp!
|
30
|
+
return result
|
29
31
|
end
|
30
32
|
|
31
33
|
PLUGIN_HAS_WINDOWS_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "plugin_has_windows.scpt")
|
@@ -85,12 +87,6 @@ module WebConsole
|
|
85
87
|
return resource_url_for_plugin(SHARED_RESOURCES_PLUGIN_NAME)
|
86
88
|
end
|
87
89
|
|
88
|
-
|
89
|
-
PLUGIN_READ_FROM_STANDARD_INPUT_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "plugin_read_from_standard_input.scpt")
|
90
|
-
def self.plugin_read_from_standard_input(name, text)
|
91
|
-
self.run_applescript(PLUGIN_READ_FROM_STANDARD_INPUT_SCRIPT, [name, text])
|
92
|
-
end
|
93
|
-
|
94
90
|
private
|
95
91
|
|
96
92
|
def self.run_applescript(script, arguments = nil)
|
@@ -105,4 +101,4 @@ module WebConsole
|
|
105
101
|
end
|
106
102
|
return `#{command}`
|
107
103
|
end
|
108
|
-
end
|
104
|
+
end
|
@@ -40,6 +40,11 @@ module WebConsole
|
|
40
40
|
WebConsole::run_applescript(DOJAVASCRIPT_SCRIPT, [javascript, window_id])
|
41
41
|
end
|
42
42
|
|
43
|
+
READ_FROM_STANDARD_INPUT_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "read_from_standard_input.scpt")
|
44
|
+
def read_from_standard_input(text)
|
45
|
+
WebConsole::run_applescript(READ_FROM_STANDARD_INPUT_SCRIPT, [text, window_id])
|
46
|
+
end
|
47
|
+
|
43
48
|
CLOSEWINDOW_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "close_window.scpt")
|
44
49
|
def close
|
45
50
|
WebConsole::run_applescript(CLOSEWINDOW_SCRIPT, [window_id])
|
@@ -59,4 +64,4 @@ module WebConsole
|
|
59
64
|
end
|
60
65
|
|
61
66
|
end
|
62
|
-
end
|
67
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webconsole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roben Kleene
|
@@ -26,7 +26,7 @@ files:
|
|
26
26
|
- lib/applescript/load_html_with_base_url_in_split.scpt
|
27
27
|
- lib/applescript/load_plugin.scpt
|
28
28
|
- lib/applescript/plugin_has_windows.scpt
|
29
|
-
- lib/applescript/
|
29
|
+
- lib/applescript/read_from_standard_input.scpt
|
30
30
|
- lib/applescript/resource_path_for_plugin.scpt
|
31
31
|
- lib/applescript/resource_url_for_plugin.scpt
|
32
32
|
- lib/applescript/run_plugin.scpt
|
Binary file
|