repla 0.7.6 → 0.8.0
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/repla/dependencies.rb +1 -1
- data/lib/repla/logger/test/js/test_view_helper.js +3 -0
- data/lib/repla/logger/test/lib/log_helper.rb +7 -2
- data/lib/repla/logger/test/lib/log_tester.rb +49 -0
- data/lib/repla/logger/test/tc_logger.rb +30 -71
- data/lib/repla/test/{bundles/Cat.replabundle → packages/Cat.replaplugin}/Contents/Info.plist +0 -0
- data/lib/repla/test/{bundles/Cat.replabundle → packages/Cat.replaplugin}/Contents/Resources/cat.sh +0 -0
- data/lib/repla/test/{bundles/FileExtension.replabundle → packages/FileExtension.replaplugin}/Contents/Info.plist +0 -0
- data/lib/repla/test/{bundles/FileExtension.replabundle → packages/FileExtension.replaplugin}/Contents/Resources/cat.sh +0 -0
- data/lib/repla/test/{bundles/HelloWorld.replabundle → packages/HelloWorld.replaplugin}/Contents/Info.plist +6 -0
- data/lib/repla/test/{bundles/HelloWorld.replabundle → packages/HelloWorld.replaplugin}/Contents/Resources/hello_world.rb +0 -0
- data/lib/repla/test/{bundles/Invalid.replabundle → packages/Invalid.replaplugin}/Contents/Info.plist +0 -0
- data/lib/repla/test/{bundles/Print.replabundle → packages/Print.replaplugin}/Contents/Info.plist +0 -4
- data/lib/repla/test/{bundles/Print.replabundle → packages/Print.replaplugin}/Contents/Resources/html/css/style.css +0 -0
- data/lib/repla/test/{bundles/Print.replabundle → packages/Print.replaplugin}/Contents/Resources/html/index.html +0 -0
- data/lib/repla/test/{bundles/Print.replabundle → packages/Print.replaplugin}/Contents/Resources/html/js/wcprint.js +0 -0
- data/lib/repla/test/{bundles/Print.replabundle → packages/Print.replaplugin}/Contents/Resources/lib/controller.rb +0 -0
- data/lib/repla/test/{bundles/Print.replabundle → packages/Print.replaplugin}/Contents/Resources/lib/view.rb +0 -0
- data/lib/repla/test/{bundles/Print.replabundle → packages/Print.replaplugin}/Contents/Resources/print.rb +0 -0
- data/lib/repla/test/{bundles/PromptInterrupt.replabundle → packages/PromptInterrupt.replaplugin}/Contents/Info.plist +0 -0
- data/lib/repla/test/{bundles/PromptInterrupt.replabundle → packages/PromptInterrupt.replaplugin}/Contents/Resources/cat.sh +0 -0
- data/lib/repla/test/{bundles/TestEnvironment.replabundle → packages/TestEnvironment.replaplugin}/Contents/Info.plist +0 -0
- data/lib/repla/test/{bundles/TestEnvironment.replabundle → packages/TestEnvironment.replaplugin}/Contents/Resources/constants.rb +0 -0
- data/lib/repla/test/{bundles/TestEnvironment.replabundle → packages/TestEnvironment.replaplugin}/Contents/Resources/test_environment.rb +0 -0
- data/lib/repla/test/{bundles/TestLog.replabundle → packages/TestLog.replaplugin}/Contents/Info.plist +5 -3
- data/lib/repla/test/packages/TestLog.replaplugin/Contents/Resources/echo.sh +14 -0
- data/lib/repla/test/{bundles/TestServer.replabundle → packages/TestServer.replaplugin}/Contents/Info.plist +0 -0
- data/lib/repla/test/{bundles/TestServer.replabundle → packages/TestServer.replaplugin}/Contents/Resources/server.sh +0 -0
- data/lib/repla/test.rb +8 -8
- metadata +25 -24
- data/lib/repla/test/bundles/TestLog.replabundle/Contents/Resources/test_log.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aae4b6c188582d9c3eb7e6f3445d5af6927bff7e
|
4
|
+
data.tar.gz: f5627327e35865fe416b8d7047d464f703aa3fee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a8cce91dada9ca36a2e99f1bf4e0f2344a82e9389d7714f7a2d3bc8b8eb533407755b71b632dfcc5d1e0b543125070079c18d5bac2195d9dea6e5e61b8ca847
|
7
|
+
data.tar.gz: 793b7ac5f555c2f8ca54b6a13385488100e9e79e1b079a6be525144e28ae5c47c9b993422d5881ff883e318182144c40904b056daafa18ee26aa710f3447342f
|
data/lib/repla/dependencies.rb
CHANGED
@@ -2,7 +2,7 @@ require_relative '../repla'
|
|
2
2
|
|
3
3
|
module Repla
|
4
4
|
module Dependencies
|
5
|
-
# Checks whether
|
5
|
+
# Checks whether plugin dependencies are installed
|
6
6
|
class Checker
|
7
7
|
require_relative 'dependencies/lib/model'
|
8
8
|
require_relative 'dependencies/lib/controller'
|
@@ -11,16 +11,21 @@ module Repla
|
|
11
11
|
TEST_JAVASCRIPT_DIRECTORY = File.join(__dir__, '..', 'js')
|
12
12
|
TEST_JAVASCRIPT_FILE = File.join(TEST_JAVASCRIPT_DIRECTORY,
|
13
13
|
'test_view_helper.js')
|
14
|
-
def initialize(window_id, view_id)
|
14
|
+
def initialize(window_id, view_id = nil)
|
15
|
+
view_id ||= Repla.split_id_in_window_last(window_id)
|
15
16
|
@view = Repla::View.new(window_id, view_id)
|
16
17
|
javascript = File.read(TEST_JAVASCRIPT_FILE)
|
17
18
|
@view.do_javascript(javascript)
|
18
19
|
end
|
19
20
|
|
20
|
-
def
|
21
|
+
def log_message_at(index)
|
21
22
|
@view.do_javascript_function('innerTextOfBodyChildAtIndex', [index])
|
22
23
|
end
|
23
24
|
|
25
|
+
def log_class_at(index)
|
26
|
+
@view.do_javascript_function('classOfBodyChildAtIndex', [index])
|
27
|
+
end
|
28
|
+
|
24
29
|
def number_of_log_messages
|
25
30
|
@view.do_javascript(TEST_MESSAGE_COUNT_JAVASCRIPT)
|
26
31
|
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module Repla
|
2
|
+
# Test
|
3
|
+
module Test
|
4
|
+
MESSAGES = [
|
5
|
+
'Testing log error',
|
6
|
+
'Testing log message',
|
7
|
+
'ERROR',
|
8
|
+
'MESSAGE',
|
9
|
+
'Done'
|
10
|
+
].freeze
|
11
|
+
CLASSES = %w[
|
12
|
+
error
|
13
|
+
message
|
14
|
+
message
|
15
|
+
message
|
16
|
+
message
|
17
|
+
].freeze
|
18
|
+
def self.test_log(window)
|
19
|
+
test_message = 'Done'
|
20
|
+
test_log_helper = Repla::Test::LogHelper.new(window.window_id)
|
21
|
+
message = nil
|
22
|
+
Repla::Test.block_until do
|
23
|
+
message = test_log_helper.last_log_message
|
24
|
+
message == test_message
|
25
|
+
end
|
26
|
+
(0..MESSAGES.count).each do |i|
|
27
|
+
result = test_log_helper.log_message_at(i)
|
28
|
+
message = MESSAGES[i]
|
29
|
+
if result != message
|
30
|
+
STDERR.puts "Expected #{message} instead of #{result}"
|
31
|
+
return false
|
32
|
+
end
|
33
|
+
type = CLASSES[i]
|
34
|
+
type_result = test_log_helper.log_class_at(i)
|
35
|
+
if type_result != type
|
36
|
+
STDERR.puts "Expected #{type_result} instead of #{type}"
|
37
|
+
return false
|
38
|
+
end
|
39
|
+
end
|
40
|
+
expected = MESSAGES.count
|
41
|
+
result = test_log_helper.number_of_log_messages
|
42
|
+
if expected != result
|
43
|
+
STDERR.puts "Expected #{expected} instead of #{result}"
|
44
|
+
return false
|
45
|
+
end
|
46
|
+
true
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
|
5
5
|
require_relative 'lib/test_setup'
|
6
|
+
require_relative 'lib/log_tester'
|
6
7
|
require_relative '../../logger'
|
7
8
|
|
8
9
|
# Test constants
|
@@ -49,96 +50,35 @@ class TestUnintializedLogger < Minitest::Test
|
|
49
50
|
end
|
50
51
|
|
51
52
|
# Test logger
|
52
|
-
class
|
53
|
+
class TestLoggerObject < Minitest::Test
|
53
54
|
def setup
|
54
55
|
@logger = Repla::Logger.new
|
55
56
|
@logger.show
|
56
57
|
@test_log_helper = Repla::Test::LogHelper.new(@logger.window_id,
|
57
58
|
@logger.view_id)
|
59
|
+
@window = Repla::Window.new(@logger.window_id)
|
58
60
|
end
|
59
61
|
|
60
62
|
def teardown
|
61
|
-
window
|
62
|
-
window.close
|
63
|
+
@window.close
|
63
64
|
end
|
64
65
|
|
65
|
-
def
|
66
|
-
test_count = 0
|
67
|
-
|
66
|
+
def test_logger_object
|
68
67
|
# Test Error
|
69
68
|
message = 'Testing log error'
|
70
69
|
@logger.error(message)
|
71
|
-
test_message = nil
|
72
|
-
Repla::Test.block_until do
|
73
|
-
test_message = @test_log_helper.last_log_message
|
74
|
-
message == test_message
|
75
|
-
end
|
76
|
-
assert_equal(message, test_message)
|
77
|
-
test_class = @test_log_helper.last_log_class
|
78
|
-
assert_equal('error', test_class)
|
79
|
-
result_count = @test_log_helper.number_of_log_messages
|
80
|
-
test_count += 1
|
81
|
-
assert_equal(test_count, result_count)
|
82
|
-
|
83
|
-
# Test Message
|
84
70
|
message = 'Testing log message'
|
85
71
|
@logger.info(message)
|
86
|
-
test_message = nil
|
87
|
-
Repla::Test.block_until do
|
88
|
-
test_message = @test_log_helper.last_log_message
|
89
|
-
message == test_message
|
90
|
-
end
|
91
|
-
assert_equal(message, test_message)
|
92
|
-
test_class = @test_log_helper.last_log_class
|
93
|
-
assert_equal('message', test_class)
|
94
|
-
result_count = @test_log_helper.number_of_log_messages
|
95
|
-
test_count += 1
|
96
|
-
assert_equal(test_count, result_count)
|
97
|
-
|
98
|
-
# Test Only Error Prefix
|
99
|
-
# Note the trailing whitespace is trimmed
|
100
72
|
message = Repla::Logger::ERROR_PREFIX.rstrip
|
101
73
|
@logger.info(message)
|
102
|
-
test_message = nil
|
103
|
-
Repla::Test.block_until do
|
104
|
-
test_message = @test_log_helper.last_log_message
|
105
|
-
message == test_message
|
106
|
-
end
|
107
|
-
assert_equal(message, test_message)
|
108
|
-
test_class = @test_log_helper.last_log_class
|
109
|
-
assert_equal('message', test_class)
|
110
|
-
result_count = @test_log_helper.number_of_log_messages
|
111
|
-
test_count += 1
|
112
|
-
assert_equal(test_count, result_count)
|
113
|
-
|
114
|
-
# Test Only Message Prefix
|
115
|
-
# Note the trailing whitespace is trimmed
|
116
74
|
message = Repla::Logger::MESSAGE_PREFIX.rstrip
|
117
75
|
@logger.info(message)
|
118
|
-
test_message = nil
|
119
|
-
Repla::Test.block_until do
|
120
|
-
test_message = @test_log_helper.last_log_message
|
121
|
-
message == test_message
|
122
|
-
end
|
123
|
-
assert_equal(message, test_message)
|
124
|
-
test_class = @test_log_helper.last_log_class
|
125
|
-
assert_equal('message', test_class)
|
126
|
-
result_count = @test_log_helper.number_of_log_messages
|
127
|
-
test_count += 1
|
128
|
-
assert_equal(test_count, result_count)
|
129
|
-
|
130
|
-
# Test empty string is ignored
|
131
|
-
# Test blank space is ignored
|
132
|
-
# Note this uses the same `message` from the last test
|
133
76
|
@logger.info('')
|
134
77
|
@logger.info(" \t")
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
assert_equal('message', test_class)
|
140
|
-
|
141
|
-
# TODO: Also add the following tests the `Log.replabundle`
|
78
|
+
@logger.info('Done')
|
79
|
+
result = Repla::Test.test_log(@window)
|
80
|
+
assert(result)
|
81
|
+
# TODO: Also add the following tests the `Log.replaplugin`
|
142
82
|
|
143
83
|
# Test Whitespace
|
144
84
|
# White space to the left should be preserved, whitespace to the right
|
@@ -174,7 +114,7 @@ Line 3
|
|
174
114
|
assert_equal(result_count, lines)
|
175
115
|
|
176
116
|
(1..lines).each do |i|
|
177
|
-
result = @test_log_helper.
|
117
|
+
result = @test_log_helper.log_message_at(i - 1)
|
178
118
|
test_result = "Line #{i}"
|
179
119
|
assert_equal(result,
|
180
120
|
test_result,
|
@@ -183,6 +123,25 @@ Line 3
|
|
183
123
|
end
|
184
124
|
end
|
185
125
|
|
126
|
+
# Test logging via standard out
|
127
|
+
class TestSimpleLogging < Minitest::Test
|
128
|
+
def setup
|
129
|
+
Repla.load_plugin(Repla::Test::TEST_LOG_PLUGIN_FILE)
|
130
|
+
window_id = Repla.run_plugin(Repla::Test::TEST_LOG_PLUGIN_NAME)
|
131
|
+
@window = Repla::Window.new(window_id)
|
132
|
+
assert(window_id == @window.window_id)
|
133
|
+
end
|
134
|
+
|
135
|
+
def test_simple_logging
|
136
|
+
result = Repla::Test.test_log(@window)
|
137
|
+
assert(result)
|
138
|
+
end
|
139
|
+
|
140
|
+
def teardown
|
141
|
+
@window.close
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
186
145
|
# Test logger threads
|
187
146
|
class TestLoggerThreads < Minitest::Test
|
188
147
|
def setup
|
@@ -219,7 +178,7 @@ class TestLoggerThreads < Minitest::Test
|
|
219
178
|
@logger.view_id)
|
220
179
|
Repla::Test.block_until { @test_log_helper.number_of_log_messages >= 2 }
|
221
180
|
result = @test_log_helper.last_log_message
|
222
|
-
result_two = @test_log_helper.
|
181
|
+
result_two = @test_log_helper.log_message_at(0)
|
223
182
|
assert(result == message_text || result_two == message_text)
|
224
183
|
assert(result == error_text || result_two == error_text)
|
225
184
|
end
|
data/lib/repla/test/{bundles/Cat.replabundle → packages/Cat.replaplugin}/Contents/Info.plist
RENAMED
File without changes
|
data/lib/repla/test/{bundles/Cat.replabundle → packages/Cat.replaplugin}/Contents/Resources/cat.sh
RENAMED
File without changes
|
File without changes
|
File without changes
|
@@ -10,5 +10,11 @@
|
|
10
10
|
<string>9DF1F4D6-16BA-4D18-88D2-155CF262035F</string>
|
11
11
|
<key>WCEditable</key>
|
12
12
|
<integer>0</integer>
|
13
|
+
<key>WCDebugModeEnabled</key>
|
14
|
+
<integer>1</integer>
|
15
|
+
<key>WCAutoShowLog</key>
|
16
|
+
<integer>1</integer>
|
17
|
+
<key>WCTransparentBackground</key>
|
18
|
+
<integer>1</integer>
|
13
19
|
</dict>
|
14
20
|
</plist>
|
File without changes
|
data/lib/repla/test/{bundles/Invalid.replabundle → packages/Invalid.replaplugin}/Contents/Info.plist
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/repla/test/{bundles/TestLog.replabundle → packages/TestLog.replaplugin}/Contents/Info.plist
RENAMED
@@ -5,14 +5,16 @@
|
|
5
5
|
<key>WCName</key>
|
6
6
|
<string>TestLog</string>
|
7
7
|
<key>WCCommand</key>
|
8
|
-
<string>
|
8
|
+
<string>echo.sh</string>
|
9
9
|
<key>WCUUID</key>
|
10
10
|
<string>7A95638E-798D-437C-9404-08E7DC68655B</string>
|
11
11
|
<key>WCEditable</key>
|
12
12
|
<integer>0</integer>
|
13
13
|
<key>WCDebugModeEnabled</key>
|
14
|
-
<integer>
|
14
|
+
<integer>0</integer>
|
15
15
|
<key>WCAutoShowLog</key>
|
16
|
-
<integer>
|
16
|
+
<integer>0</integer>
|
17
|
+
<key>WCTransparentBackground</key>
|
18
|
+
<integer>0</integer>
|
17
19
|
</dict>
|
18
20
|
</plist>
|
File without changes
|
File without changes
|
data/lib/repla/test.rb
CHANGED
@@ -51,25 +51,25 @@ module Repla
|
|
51
51
|
TITLE_JAVASCRIPT_FILE = File.join(TEST_ASSETS_JAVASCRIPT_DIRECTORY,
|
52
52
|
'title.js')
|
53
53
|
# Plugins
|
54
|
-
TEST_PLUGIN_DIRECTORY = File.join(TEST_DIRECTORY, '
|
54
|
+
TEST_PLUGIN_DIRECTORY = File.join(TEST_DIRECTORY, 'packages')
|
55
55
|
HELLOWORLD_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY,
|
56
|
-
'HelloWorld.
|
56
|
+
'HelloWorld.replaplugin')
|
57
57
|
HELLOWORLD_PLUGIN_NAME = 'HelloWorld'.freeze
|
58
58
|
TEST_SERVER_PLUGIN_NAME = 'TestServer'.freeze
|
59
59
|
TEST_SERVER_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY,
|
60
|
-
'TestServer.
|
60
|
+
'TestServer.replaplugin')
|
61
61
|
INDEX_HTML_URL = html_server_url(INDEX_HTML_FILENAME)
|
62
62
|
INDEXJQUERY_HTML_URL = html_server_url(
|
63
63
|
INDEXJQUERY_HTML_FILENAME
|
64
64
|
)
|
65
65
|
NO_SERVER_URL = 'NoServer'.freeze
|
66
|
-
PRINT_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY, 'Print.
|
66
|
+
PRINT_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY, 'Print.replaplugin')
|
67
67
|
PRINT_PLUGIN_NAME = 'Print'.freeze
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
TEST_LOG_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY,
|
69
|
+
'TestLog.replaplugin')
|
70
|
+
TEST_LOG_PLUGIN_NAME = 'TestLog'.freeze
|
71
71
|
INVALID_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY,
|
72
|
-
'Invalid.
|
72
|
+
'Invalid.replaplugin')
|
73
73
|
INVALID_PLUGIN_NAME = 'Invalid'.freeze
|
74
74
|
|
75
75
|
# Local Asssets
|
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.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roben Kleene
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/repla/logger/test/Rakefile
|
58
58
|
- lib/repla/logger/test/js/test_view_helper.js
|
59
59
|
- lib/repla/logger/test/lib/log_helper.rb
|
60
|
+
- lib/repla/logger/test/lib/log_tester.rb
|
60
61
|
- lib/repla/logger/test/lib/test_setup.rb
|
61
62
|
- lib/repla/logger/test/run_tests.sh
|
62
63
|
- lib/repla/logger/test/tc_logger.rb
|
@@ -106,29 +107,6 @@ files:
|
|
106
107
|
- lib/repla/test/applescript/switch_windows.scpt
|
107
108
|
- lib/repla/test/applescript/window_bounds.scpt
|
108
109
|
- lib/repla/test/applescript/window_id.scpt
|
109
|
-
- lib/repla/test/bundles/Cat.replabundle/Contents/Info.plist
|
110
|
-
- lib/repla/test/bundles/Cat.replabundle/Contents/Resources/cat.sh
|
111
|
-
- lib/repla/test/bundles/FileExtension.replabundle/Contents/Info.plist
|
112
|
-
- lib/repla/test/bundles/FileExtension.replabundle/Contents/Resources/cat.sh
|
113
|
-
- lib/repla/test/bundles/HelloWorld.replabundle/Contents/Info.plist
|
114
|
-
- lib/repla/test/bundles/HelloWorld.replabundle/Contents/Resources/hello_world.rb
|
115
|
-
- lib/repla/test/bundles/Invalid.replabundle/Contents/Info.plist
|
116
|
-
- lib/repla/test/bundles/Print.replabundle/Contents/Info.plist
|
117
|
-
- lib/repla/test/bundles/Print.replabundle/Contents/Resources/html/css/style.css
|
118
|
-
- lib/repla/test/bundles/Print.replabundle/Contents/Resources/html/index.html
|
119
|
-
- lib/repla/test/bundles/Print.replabundle/Contents/Resources/html/js/wcprint.js
|
120
|
-
- lib/repla/test/bundles/Print.replabundle/Contents/Resources/lib/controller.rb
|
121
|
-
- lib/repla/test/bundles/Print.replabundle/Contents/Resources/lib/view.rb
|
122
|
-
- lib/repla/test/bundles/Print.replabundle/Contents/Resources/print.rb
|
123
|
-
- lib/repla/test/bundles/PromptInterrupt.replabundle/Contents/Info.plist
|
124
|
-
- lib/repla/test/bundles/PromptInterrupt.replabundle/Contents/Resources/cat.sh
|
125
|
-
- lib/repla/test/bundles/TestEnvironment.replabundle/Contents/Info.plist
|
126
|
-
- lib/repla/test/bundles/TestEnvironment.replabundle/Contents/Resources/constants.rb
|
127
|
-
- lib/repla/test/bundles/TestEnvironment.replabundle/Contents/Resources/test_environment.rb
|
128
|
-
- lib/repla/test/bundles/TestLog.replabundle/Contents/Info.plist
|
129
|
-
- lib/repla/test/bundles/TestLog.replabundle/Contents/Resources/test_log.rb
|
130
|
-
- lib/repla/test/bundles/TestServer.replabundle/Contents/Info.plist
|
131
|
-
- lib/repla/test/bundles/TestServer.replabundle/Contents/Resources/server.sh
|
132
110
|
- lib/repla/test/html/index.html
|
133
111
|
- lib/repla/test/html/indexjquery.html
|
134
112
|
- lib/repla/test/html/js/zepto.js
|
@@ -140,6 +118,29 @@ files:
|
|
140
118
|
- lib/repla/test/js/title.js
|
141
119
|
- lib/repla/test/lib/helper.rb
|
142
120
|
- lib/repla/test/lib/view_helper.rb
|
121
|
+
- lib/repla/test/packages/Cat.replaplugin/Contents/Info.plist
|
122
|
+
- lib/repla/test/packages/Cat.replaplugin/Contents/Resources/cat.sh
|
123
|
+
- lib/repla/test/packages/FileExtension.replaplugin/Contents/Info.plist
|
124
|
+
- lib/repla/test/packages/FileExtension.replaplugin/Contents/Resources/cat.sh
|
125
|
+
- lib/repla/test/packages/HelloWorld.replaplugin/Contents/Info.plist
|
126
|
+
- lib/repla/test/packages/HelloWorld.replaplugin/Contents/Resources/hello_world.rb
|
127
|
+
- lib/repla/test/packages/Invalid.replaplugin/Contents/Info.plist
|
128
|
+
- lib/repla/test/packages/Print.replaplugin/Contents/Info.plist
|
129
|
+
- lib/repla/test/packages/Print.replaplugin/Contents/Resources/html/css/style.css
|
130
|
+
- lib/repla/test/packages/Print.replaplugin/Contents/Resources/html/index.html
|
131
|
+
- lib/repla/test/packages/Print.replaplugin/Contents/Resources/html/js/wcprint.js
|
132
|
+
- lib/repla/test/packages/Print.replaplugin/Contents/Resources/lib/controller.rb
|
133
|
+
- lib/repla/test/packages/Print.replaplugin/Contents/Resources/lib/view.rb
|
134
|
+
- lib/repla/test/packages/Print.replaplugin/Contents/Resources/print.rb
|
135
|
+
- lib/repla/test/packages/PromptInterrupt.replaplugin/Contents/Info.plist
|
136
|
+
- lib/repla/test/packages/PromptInterrupt.replaplugin/Contents/Resources/cat.sh
|
137
|
+
- lib/repla/test/packages/TestEnvironment.replaplugin/Contents/Info.plist
|
138
|
+
- lib/repla/test/packages/TestEnvironment.replaplugin/Contents/Resources/constants.rb
|
139
|
+
- lib/repla/test/packages/TestEnvironment.replaplugin/Contents/Resources/test_environment.rb
|
140
|
+
- lib/repla/test/packages/TestLog.replaplugin/Contents/Info.plist
|
141
|
+
- lib/repla/test/packages/TestLog.replaplugin/Contents/Resources/echo.sh
|
142
|
+
- lib/repla/test/packages/TestServer.replaplugin/Contents/Info.plist
|
143
|
+
- lib/repla/test/packages/TestServer.replaplugin/Contents/Resources/server.sh
|
143
144
|
homepage:
|
144
145
|
licenses: []
|
145
146
|
metadata: {}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
#!/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
|
2
|
-
|
3
|
-
require_relative '../../../../../../lib/repla'
|
4
|
-
require_relative '../../../../../../lib/repla/logger'
|
5
|
-
|
6
|
-
logger = Repla::Logger.new
|
7
|
-
logger.info('Testing log message')
|
8
|
-
puts 'Testing print to standard input'
|
9
|
-
STDERR.puts 'Testing print to standard error'
|
10
|
-
window = Repla::Window.new
|
11
|
-
window.do_javascript('document.body.innerHTML = "test";')
|
12
|
-
logger.error('Testing log error')
|
13
|
-
logger.show
|