repla 0.8.4 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fddb1e04929f5b8882eb0df76ad25d2f29ce10e
4
- data.tar.gz: 98ac1b7d7e7062e145081dde0d3c292b66e7387f
3
+ metadata.gz: '035941f5ebc68d4069856aa0c670cce9d27546ab'
4
+ data.tar.gz: 06ecfbafea0e4b708ecc48bbe69dcede7d2db7fc
5
5
  SHA512:
6
- metadata.gz: 43ee47428be07d0fafdecd604c055559bfe48e46299a546ff696ba2786d2d71ffbee3ecf1933906021f47a0244faa48444cc7548b2e69be6a82dbe1b1b8c8977
7
- data.tar.gz: 1b527d5f202d20c9901a7aba1ec5dcf8f1fde15eb191314d749b8fb8355105228114d67b2343b1dea9cd40ab77f2f54cf75852fd45382b521c620a4eab0f4b57
6
+ metadata.gz: 7163c302c1cbc2386af71009036d2732724d36415a30aebdbe85254d631fd9976e5ed477a16e92874b7ee2f0c5d320bce82adaaf3f827cea3fdf96b1420b8c60
7
+ data.tar.gz: 3a862fc3194e21d0b1f0bc987d71a91b56c96a17e55a56df07895720e74bff602bc2908cb918a728ed9d9d048a3fbffef23c3129ff7e532a0993e75ae5d519ab
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -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 --disable-gems
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(result_count, lines)
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(result,
125
- test_result,
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
@@ -7,7 +7,8 @@ module Repla
7
7
  ERROR_PREFIX = 'ERROR '.freeze
8
8
  LOG_PLUGIN_NAME = 'Log'.freeze
9
9
 
10
- def initialize
10
+ def initialize(window_id = nil)
11
+ @window_id = window_id
11
12
  @mutex = Mutex.new
12
13
  end
13
14
  # Toggle
@@ -1,4 +1,6 @@
1
- #!/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby --disable-gems
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.8.4
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