repla 0.8.4 → 0.9.1
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/go_back.scpt +0 -0
- data/lib/applescript/go_forward.scpt +0 -0
- data/lib/applescript/hide_log.scpt +0 -0
- data/lib/applescript/reload.scpt +0 -0
- data/lib/applescript/show_log.scpt +0 -0
- data/lib/applescript/toggle_log.scpt +0 -0
- data/lib/repla/lib/window.rb +15 -0
- data/lib/repla/logger/test/tc_logger.rb +4 -4
- data/lib/repla/logger.rb +2 -1
- data/lib/repla/test/packages/TestEnvironment.replaplugin/Contents/Resources/test_environment.rb +3 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '035941f5ebc68d4069856aa0c670cce9d27546ab'
|
4
|
+
data.tar.gz: 06ecfbafea0e4b708ecc48bbe69dcede7d2db7fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7163c302c1cbc2386af71009036d2732724d36415a30aebdbe85254d631fd9976e5ed477a16e92874b7ee2f0c5d320bce82adaaf3f827cea3fdf96b1420b8c60
|
7
|
+
data.tar.gz: 3a862fc3194e21d0b1f0bc987d71a91b56c96a17e55a56df07895720e74bff602bc2908cb918a728ed9d9d048a3fbffef23c3129ff7e532a0993e75ae5d519ab
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/repla/lib/window.rb
CHANGED
@@ -59,6 +59,21 @@ module Repla
|
|
59
59
|
run_script(DOJAVASCRIPT_SCRIPT, [javascript])
|
60
60
|
end
|
61
61
|
|
62
|
+
RELOAD_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, 'reload.scpt')
|
63
|
+
def reload
|
64
|
+
run_script(RELOAD_SCRIPT)
|
65
|
+
end
|
66
|
+
|
67
|
+
GOBACK_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, 'go_back.scpt')
|
68
|
+
def go_back
|
69
|
+
run_script(GOBACK_SCRIPT)
|
70
|
+
end
|
71
|
+
|
72
|
+
GOFORWARD_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, 'go_forward.scpt')
|
73
|
+
def go_forward
|
74
|
+
run_script(GOFORWARD_SCRIPT)
|
75
|
+
end
|
76
|
+
|
62
77
|
READ_FROM_STANDARD_INPUT_SCRIPT = File.join(APPLESCRIPT_DIRECTORY,
|
63
78
|
'read_from_standard_input.scpt')
|
64
79
|
def read_from_standard_input(text)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
|
1
|
+
#!/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
|
2
2
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
|
@@ -116,13 +116,13 @@ Line 3
|
|
116
116
|
result_count = @test_log_helper.number_of_log_messages
|
117
117
|
result_count == lines
|
118
118
|
end
|
119
|
-
assert_equal(
|
119
|
+
assert_equal(lines, result_count)
|
120
120
|
|
121
121
|
(1..lines).each do |i|
|
122
122
|
result = @test_log_helper.log_message_at(i - 1)
|
123
123
|
test_result = "Line #{i}"
|
124
|
-
assert_equal(
|
125
|
-
|
124
|
+
assert_equal(test_result,
|
125
|
+
result,
|
126
126
|
'The number of log messages should match')
|
127
127
|
end
|
128
128
|
end
|
data/lib/repla/logger.rb
CHANGED
data/lib/repla/test/packages/TestEnvironment.replaplugin/Contents/Resources/test_environment.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
#!/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
|
1
|
+
#!/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
|
2
|
+
|
3
|
+
# This shebang doesn't use `--disable-gems` because otherwise it wouldn't be able to access `test/unit`.
|
2
4
|
|
3
5
|
require 'test/unit'
|
4
6
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roben Kleene
|
@@ -20,6 +20,8 @@ files:
|
|
20
20
|
- lib/applescript/create_window.scpt
|
21
21
|
- lib/applescript/do_javascript.scpt
|
22
22
|
- lib/applescript/exists.scpt
|
23
|
+
- lib/applescript/go_back.scpt
|
24
|
+
- lib/applescript/go_forward.scpt
|
23
25
|
- lib/applescript/hide_log.scpt
|
24
26
|
- lib/applescript/load.scpt
|
25
27
|
- lib/applescript/load_plugin.scpt
|
@@ -27,6 +29,7 @@ files:
|
|
27
29
|
- lib/applescript/load_url_clearing_cache.scpt
|
28
30
|
- lib/applescript/load_with_root_access_directory.scpt
|
29
31
|
- lib/applescript/read_from_standard_input.scpt
|
32
|
+
- lib/applescript/reload.scpt
|
30
33
|
- lib/applescript/resource_path_for_plugin.scpt
|
31
34
|
- lib/applescript/resource_url_for_plugin.scpt
|
32
35
|
- lib/applescript/run_plugin.scpt
|