repla 0.3.0 → 0.4.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.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/lib/applescript/{load_html.scpt → load.scpt} +0 -0
  3. data/lib/applescript/{load_html_with_base_url.scpt → load_with_root_access_directory.scpt} +0 -0
  4. data/lib/repla/dependencies/html/index.html +25 -0
  5. data/lib/repla/dependencies/lib/view.rb +5 -5
  6. data/lib/repla/dependencies.rb +1 -2
  7. data/lib/repla/lib/constants.rb +0 -2
  8. data/lib/repla/lib/module.rb +1 -24
  9. data/lib/repla/lib/view/javascript.rb +7 -1
  10. data/lib/repla/lib/view/resources.rb +0 -38
  11. data/lib/repla/lib/view.rb +0 -1
  12. data/lib/repla/lib/window.rb +10 -15
  13. data/lib/repla/logger/test/Rakefile +7 -9
  14. data/lib/repla/logger/test/lib/test_setup.rb +10 -0
  15. data/lib/repla/logger/test/lib/test_view_helper.rb +1 -1
  16. data/lib/repla/logger/test/run_tests.sh +3 -1
  17. data/lib/repla/logger/test/tc_logger.rb +18 -21
  18. data/lib/repla/logger.rb +1 -2
  19. data/lib/repla/repl/html/index.html +22 -0
  20. data/lib/repla/repl/lib/view.rb +5 -50
  21. data/lib/repla/repl.rb +1 -2
  22. data/lib/repla/resources/css/raster.css +131 -0
  23. data/lib/repla/resources/js/bullets/Gruntfile.js +30 -0
  24. data/lib/repla/resources/js/bullets/README.md +3 -0
  25. data/lib/repla/resources/js/bullets/bullets.js +82 -0
  26. data/lib/repla/resources/js/bullets/example/css/bullets.css +6 -0
  27. data/lib/repla/resources/js/bullets/example/css/raster.css +131 -0
  28. data/lib/repla/resources/js/bullets/example/css/style.css +7 -0
  29. data/lib/repla/resources/js/bullets/example/index.html +137 -0
  30. data/lib/repla/resources/js/bullets/example/jade/content.jade +10 -0
  31. data/lib/repla/resources/js/bullets/example/jade/css.jade +3 -0
  32. data/lib/repla/resources/js/bullets/example/jade/index.jade +10 -0
  33. data/lib/repla/resources/js/bullets/example/jade/javascript.jade +5 -0
  34. data/lib/repla/resources/js/bullets/example/js/handlebars.js +2278 -0
  35. data/lib/repla/resources/js/bullets/example/js/jquery.js +9789 -0
  36. data/lib/repla/resources/js/bullets/example/js/mousetrap.js +910 -0
  37. data/lib/repla/resources/js/bullets/example/js/mousetrap_config.js +14 -0
  38. data/lib/repla/resources/js/bullets/example/js/zepto.js +1565 -0
  39. data/lib/repla/resources/js/bullets/package.json +28 -0
  40. data/lib/repla/resources/js/bullets/test/lib/css/mocha.css +270 -0
  41. data/lib/repla/resources/js/bullets/test/lib/index.html +153 -0
  42. data/lib/repla/resources/js/bullets/test/lib/jade/index.jade +13 -0
  43. data/lib/repla/resources/js/bullets/test/lib/jade/mocha.html +15 -0
  44. data/lib/repla/resources/js/bullets/test/lib/js/chai.js +4613 -0
  45. data/lib/repla/resources/js/bullets/test/lib/js/mocha.js +5726 -0
  46. data/lib/repla/resources/js/bullets/test/lib/js/test_helper.js +26 -0
  47. data/lib/repla/resources/js/bullets/test/run_tests.rb +7 -0
  48. data/lib/repla/resources/js/bullets/test/test.js +131 -0
  49. data/lib/repla/resources/js/handlebars.js +2278 -0
  50. data/lib/repla/resources/js/mousetrap.js +910 -0
  51. data/lib/repla/resources/js/zepto.js +1565 -0
  52. data/lib/repla/test/applescript/cancel_dialog.applescript +2 -0
  53. data/lib/repla/test/applescript/confirm_dialog.applescript +2 -0
  54. data/lib/repla/test/applescript/is_running.applescript +5 -0
  55. data/lib/repla/test/applescript/quit.applescript +3 -0
  56. data/lib/repla/test/applescript/set_window_bounds.applescript +23 -0
  57. data/lib/repla/test/applescript/switch_windows.applescript +2 -0
  58. data/lib/repla/test/applescript/window_bounds.applescript +20 -0
  59. data/lib/repla/test/applescript/window_id.applescript +7 -0
  60. data/lib/repla/test/bundles/Cat.wcplugin/Contents/Info.plist +14 -0
  61. data/lib/repla/test/bundles/Cat.wcplugin/Contents/Resources/cat.sh +3 -0
  62. data/lib/repla/test/bundles/HelloWorld.wcplugin/Contents/Info.plist +14 -0
  63. data/lib/repla/test/bundles/HelloWorld.wcplugin/Contents/Resources/hello_world.rb +3 -0
  64. data/lib/repla/test/bundles/Invalid.wcplugin/Contents/Info.plist +16 -0
  65. data/lib/repla/test/bundles/Print.wcplugin/Contents/Info.plist +16 -0
  66. data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/css/style.css +7 -0
  67. data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/index.html +24 -0
  68. data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/js/wcprint.js +8 -0
  69. data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/lib/controller.rb +18 -0
  70. data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/lib/view.rb +13 -0
  71. data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/print.rb +10 -0
  72. data/lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Info.plist +14 -0
  73. data/lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Resources/constants.rb +1 -0
  74. data/lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Resources/test_environment.rb +35 -0
  75. data/lib/repla/test/bundles/TestLog.wcplugin/Contents/Info.plist +16 -0
  76. data/lib/repla/test/bundles/TestLog.wcplugin/Contents/Resources/test_log.rb +13 -0
  77. data/lib/repla/test/html/index.html +36 -0
  78. data/lib/repla/test/html/indexjquery.html +37 -0
  79. data/lib/repla/test/html/js/zepto.js +1565 -0
  80. data/lib/repla/test/js/firstcode.js +3 -0
  81. data/lib/repla/test/js/lastcode.js +3 -0
  82. data/lib/repla/test/js/nodom.js +5 -0
  83. data/lib/repla/test/js/text.js +1 -0
  84. data/lib/repla/test/js/textjquery.js +1 -0
  85. data/lib/repla/test/js/title.js +1 -0
  86. data/lib/repla/test/lib/helper.rb +121 -0
  87. data/lib/repla/test.rb +51 -0
  88. data/lib/repla.rb +6 -6
  89. metadata +78 -14
  90. data/lib/repla/dependencies/views/view.html.erb +0 -25
  91. data/lib/repla/extension_constants.rb +0 -1
  92. data/lib/repla/lib/view/erb.rb +0 -17
  93. data/lib/repla/logger/test/lib/test_constants.rb +0 -8
  94. data/lib/repla/repl/view/view.html.erb +0 -12
  95. /data/lib/repla/dependencies/{css → html/css}/style.css +0 -0
  96. /data/lib/repla/dependencies/{js → html/js}/wcdependencies.js +0 -0
  97. /data/lib/repla/repl/{css → html/css}/style.css +0 -0
  98. /data/lib/repla/repl/{js → html/js}/wcrepl.js +0 -0
@@ -0,0 +1,3 @@
1
+ var codeTags = document.getElementsByTagName('code');
2
+ var firstCodeTag = codeTags[0];
3
+ firstCodeTag.innerHTML;
@@ -0,0 +1,3 @@
1
+ var codeTags = document.getElementsByTagName('code');
2
+ var lastCodeTag = codeTags[codeTags.length - 1];
3
+ lastCodeTag.innerHTML;
@@ -0,0 +1,5 @@
1
+ function myValue() {
2
+ return 10;
3
+ }
4
+ console.log(myValue()); // For node
5
+ myValue(); // For Repla
@@ -0,0 +1 @@
1
+ document.getElementById('text').innerHTML;
@@ -0,0 +1 @@
1
+ $('#text').text()
@@ -0,0 +1 @@
1
+ document.title
@@ -0,0 +1,121 @@
1
+ require 'Shellwords'
2
+
3
+ module Repla
4
+ module Test
5
+ module Helper
6
+ APPLESCRIPT_DIRECTORY = File.join(File.dirname(__FILE__), '..',
7
+ 'applescript')
8
+
9
+ def self.run_javascript(javascript)
10
+ # `osascript` requires redirecting stderr to stdout for some reason
11
+ `osascript -l JavaScript -e \
12
+ #{Shellwords.escape(javascript)} 2>&1`.chomp!
13
+ # return `node -e #{Shellwords.escape(javascript)}`
14
+ end
15
+
16
+ CONFIRMDIALOGAPPLESCRIPT_FILE = File.join(APPLESCRIPT_DIRECTORY,
17
+ 'confirm_dialog.applescript')
18
+ def self.confirm_dialog
19
+ run_applescript(CONFIRMDIALOGAPPLESCRIPT_FILE)
20
+ sleep TEST_PAUSE_TIME # Give dialog time
21
+ end
22
+
23
+ WINDOWIDAPPLESCRIPT_FILE = File.join(APPLESCRIPT_DIRECTORY,
24
+ 'window_id.applescript')
25
+ def self.window_id
26
+ run_applescript(WINDOWIDAPPLESCRIPT_FILE)
27
+ end
28
+
29
+ CANCELDIALOGAPPLESCRIPT_FILE = File.join(APPLESCRIPT_DIRECTORY,
30
+ 'cancel_dialog.applescript')
31
+ def self.cancel_dialog
32
+ run_applescript(CANCELDIALOGAPPLESCRIPT_FILE)
33
+ sleep TEST_PAUSE_TIME # Give dialog time
34
+ end
35
+
36
+ QUITAPPLESCRIPT_FILE = File.join(APPLESCRIPT_DIRECTORY,
37
+ 'quit.applescript')
38
+ def self.quit
39
+ run_applescript(QUITAPPLESCRIPT_FILE)
40
+ end
41
+
42
+ ISRUNNINGAPPLESCRIPT_FILE = File.join(APPLESCRIPT_DIRECTORY,
43
+ 'is_running.applescript')
44
+ def running
45
+ result = run_applescript(ISRUNNINGAPPLESCRIPT_FILE)
46
+ result == 'true'
47
+ end
48
+
49
+ SWITCHWINDOWSAPPLESCRIPT_FILE = File.join(APPLESCRIPT_DIRECTORY,
50
+ 'switch_windows.applescript')
51
+ def self.switch_windows
52
+ run_applescript(SWITCHWINDOWSAPPLESCRIPT_FILE)
53
+ end
54
+
55
+ WINDOWBOUNDSAPPLESCRIPT_FILE = File.join(APPLESCRIPT_DIRECTORY,
56
+ 'window_bounds.applescript')
57
+ def self.window_bounds(window_id = nil)
58
+ run_applescript(WINDOWBOUNDSAPPLESCRIPT_FILE, [window_id])
59
+ end
60
+
61
+ SETWINDOWBOUNDSAPPLESCRIPT_FILE = File.join(APPLESCRIPT_DIRECTORY,
62
+ 'set_window_bounds'\
63
+ '.applescript')
64
+ def self.set_window_bounds(bounds, window_id = nil)
65
+ arguments = [bounds]
66
+ arguments = arguments.push(window_id) if window_id
67
+ run_applescript(SETWINDOWBOUNDSAPPLESCRIPT_FILE, arguments)
68
+ end
69
+
70
+ private
71
+
72
+ private_class_method def self.run_applescript(script, arguments = nil)
73
+ command = "osascript #{Shellwords.escape(script)}"
74
+ if arguments
75
+ arguments.each do |argument|
76
+ if argument
77
+ argument = argument.to_s
78
+ command = command + ' ' + Shellwords.escape(argument)
79
+ end
80
+ end
81
+ end
82
+
83
+ result = `#{command}`
84
+
85
+ result.chomp!
86
+
87
+ return nil if result.empty?
88
+
89
+ return result.to_i if result.integer?
90
+
91
+ return result.to_f if result.float?
92
+
93
+ result
94
+ end
95
+
96
+ class ::String
97
+ def float?
98
+ !!Float(self)
99
+ rescue StandardError
100
+ false
101
+ end
102
+
103
+ def integer?
104
+ to_i.to_s == self
105
+ end
106
+ end
107
+
108
+ class ::Float
109
+ def javascript_argument
110
+ to_s
111
+ end
112
+ end
113
+
114
+ class ::Integer
115
+ def javascript_argument
116
+ to_s
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
data/lib/repla/test.rb ADDED
@@ -0,0 +1,51 @@
1
+ module Repla
2
+ module Test
3
+ # General
4
+ TEST_PAUSE_TIME = 2.00
5
+
6
+ # Ruby
7
+ REPLA_FILE = File.join(File.dirname(__FILE__), '../repla')
8
+ TEST_DIRECTORY = File.join(File.dirname(__FILE__), 'test')
9
+ LIB_DIRECTORY = File.join(TEST_DIRECTORY, 'lib')
10
+ HELPER_FILE = File.join(LIB_DIRECTORY, 'helper')
11
+
12
+ # Test Assets
13
+
14
+ # Plugins
15
+ TEST_PLUGIN_DIRECTORY = File.join(TEST_DIRECTORY, 'bundles')
16
+ HELLOWORLD_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY,
17
+ 'HelloWorld.wcplugin')
18
+ HELLOWORLD_PLUGIN_NAME = 'HelloWorld'.freeze
19
+ PRINT_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY, 'Print.wcplugin')
20
+ PRINT_PLUGIN_NAME = 'Print'.freeze
21
+ TESTLOG_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY, 'TestLog.wcplugin')
22
+ TESTLOG_PLUGIN_NAME = 'TestLog'.freeze
23
+ INVALID_PLUGIN_FILE = File.join(TEST_PLUGIN_DIRECTORY, 'Invalid.wcplugin')
24
+ INVALID_PLUGIN_NAME = 'Invalid'.freeze
25
+
26
+ # HTML
27
+ TEST_HTML_DIRECTORY = File.join(TEST_DIRECTORY, 'html')
28
+ INDEX_HTML_FILE = File.join(TEST_HTML_DIRECTORY, 'index.html')
29
+ INDEXJQUERY_HTML_FILE = File.join(TEST_HTML_DIRECTORY, 'indexjquery.html')
30
+ INDEX_HTML_TITLE = 'Index'
31
+ INDEXJQUERY_HTML_TITLE = 'Index JQuery'
32
+
33
+ # JavaScript
34
+ TEST_ASSETS_JAVASCRIPT_DIRECTORY = File.join(TEST_DIRECTORY, 'js')
35
+ TITLE_JAVASCRIPT_FILE = File.join(TEST_ASSETS_JAVASCRIPT_DIRECTORY,
36
+ 'title.js')
37
+
38
+ # Local Asssets
39
+
40
+ # JavaScript
41
+ TEST_JAVASCRIPT_DIRECTORY = File.join(LIB_DIRECTORY, '../js')
42
+ LASTCODE_JAVASCRIPT_FILE = File.join(TEST_JAVASCRIPT_DIRECTORY,
43
+ 'lastcode.js')
44
+ FIRSTCODE_JAVASCRIPT_FILE = File.join(TEST_JAVASCRIPT_DIRECTORY,
45
+ 'firstcode.js')
46
+ NODOM_JAVASCRIPT_FILE = File.join(TEST_JAVASCRIPT_DIRECTORY, 'nodom.js')
47
+ TEXT_JAVASCRIPT_FILE = File.join(TEST_JAVASCRIPT_DIRECTORY, 'text.js')
48
+ TEXTJQUERY_JAVASCRIPT_FILE = File.join(TEST_JAVASCRIPT_DIRECTORY,
49
+ 'textjquery.js')
50
+ end
51
+ end
data/lib/repla.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  module Repla
2
- require_relative "repla/lib/constants"
3
- require_relative "repla/lib/window"
4
- require_relative "repla/lib/controller"
5
- require_relative "repla/lib/view"
6
- require_relative "repla/lib/module"
2
+ require_relative 'repla/lib/constants'
3
+ require_relative 'repla/lib/window'
4
+ require_relative 'repla/lib/controller'
5
+ require_relative 'repla/lib/view'
6
+ require_relative 'repla/lib/module'
7
7
  end
8
8
 
9
- Repla::application_exists || abort("The Web Console application is not installed.")
9
+ Repla.application_exists || abort('The Repla application is not installed.')
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roben Kleene
@@ -21,9 +21,9 @@ files:
21
21
  - lib/applescript/do_javascript.scpt
22
22
  - lib/applescript/exists.scpt
23
23
  - lib/applescript/hide_log.scpt
24
- - lib/applescript/load_html.scpt
25
- - lib/applescript/load_html_with_base_url.scpt
24
+ - lib/applescript/load.scpt
26
25
  - lib/applescript/load_plugin.scpt
26
+ - lib/applescript/load_with_root_access_directory.scpt
27
27
  - lib/applescript/read_from_standard_input.scpt
28
28
  - lib/applescript/resource_path_for_plugin.scpt
29
29
  - lib/applescript/resource_url_for_plugin.scpt
@@ -36,36 +36,100 @@ files:
36
36
  - lib/applescript/window_id_for_plugin.scpt
37
37
  - lib/repla.rb
38
38
  - lib/repla/dependencies.rb
39
- - lib/repla/dependencies/css/style.css
40
- - lib/repla/dependencies/js/wcdependencies.js
39
+ - lib/repla/dependencies/html/css/style.css
40
+ - lib/repla/dependencies/html/index.html
41
+ - lib/repla/dependencies/html/js/wcdependencies.js
41
42
  - lib/repla/dependencies/lib/controller.rb
42
43
  - lib/repla/dependencies/lib/model.rb
43
44
  - lib/repla/dependencies/lib/tester.rb
44
45
  - lib/repla/dependencies/lib/view.rb
45
- - lib/repla/dependencies/views/view.html.erb
46
- - lib/repla/extension_constants.rb
47
46
  - lib/repla/lib/constants.rb
48
47
  - lib/repla/lib/controller.rb
49
48
  - lib/repla/lib/module.rb
50
49
  - lib/repla/lib/view.rb
51
- - lib/repla/lib/view/erb.rb
52
50
  - lib/repla/lib/view/javascript.rb
53
51
  - lib/repla/lib/view/resources.rb
54
52
  - lib/repla/lib/window.rb
55
53
  - lib/repla/logger.rb
56
54
  - lib/repla/logger/test/Rakefile
57
55
  - lib/repla/logger/test/js/test_view_helper.js
58
- - lib/repla/logger/test/lib/test_constants.rb
56
+ - lib/repla/logger/test/lib/test_setup.rb
59
57
  - lib/repla/logger/test/lib/test_view_helper.rb
60
58
  - lib/repla/logger/test/run_tests.sh
61
59
  - lib/repla/logger/test/tc_logger.rb
62
60
  - lib/repla/repl.rb
63
- - lib/repla/repl/css/style.css
64
- - lib/repla/repl/js/wcrepl.js
61
+ - lib/repla/repl/html/css/style.css
62
+ - lib/repla/repl/html/index.html
63
+ - lib/repla/repl/html/js/wcrepl.js
65
64
  - lib/repla/repl/lib/input_controller.rb
66
65
  - lib/repla/repl/lib/output_controller.rb
67
66
  - lib/repla/repl/lib/view.rb
68
- - lib/repla/repl/view/view.html.erb
67
+ - lib/repla/resources/css/raster.css
68
+ - lib/repla/resources/js/bullets/Gruntfile.js
69
+ - lib/repla/resources/js/bullets/README.md
70
+ - lib/repla/resources/js/bullets/bullets.js
71
+ - lib/repla/resources/js/bullets/example/css/bullets.css
72
+ - lib/repla/resources/js/bullets/example/css/raster.css
73
+ - lib/repla/resources/js/bullets/example/css/style.css
74
+ - lib/repla/resources/js/bullets/example/index.html
75
+ - lib/repla/resources/js/bullets/example/jade/content.jade
76
+ - lib/repla/resources/js/bullets/example/jade/css.jade
77
+ - lib/repla/resources/js/bullets/example/jade/index.jade
78
+ - lib/repla/resources/js/bullets/example/jade/javascript.jade
79
+ - lib/repla/resources/js/bullets/example/js/handlebars.js
80
+ - lib/repla/resources/js/bullets/example/js/jquery.js
81
+ - lib/repla/resources/js/bullets/example/js/mousetrap.js
82
+ - lib/repla/resources/js/bullets/example/js/mousetrap_config.js
83
+ - lib/repla/resources/js/bullets/example/js/zepto.js
84
+ - lib/repla/resources/js/bullets/package.json
85
+ - lib/repla/resources/js/bullets/test/lib/css/mocha.css
86
+ - lib/repla/resources/js/bullets/test/lib/index.html
87
+ - lib/repla/resources/js/bullets/test/lib/jade/index.jade
88
+ - lib/repla/resources/js/bullets/test/lib/jade/mocha.html
89
+ - lib/repla/resources/js/bullets/test/lib/js/chai.js
90
+ - lib/repla/resources/js/bullets/test/lib/js/mocha.js
91
+ - lib/repla/resources/js/bullets/test/lib/js/test_helper.js
92
+ - lib/repla/resources/js/bullets/test/run_tests.rb
93
+ - lib/repla/resources/js/bullets/test/test.js
94
+ - lib/repla/resources/js/handlebars.js
95
+ - lib/repla/resources/js/mousetrap.js
96
+ - lib/repla/resources/js/zepto.js
97
+ - lib/repla/test.rb
98
+ - lib/repla/test/applescript/cancel_dialog.applescript
99
+ - lib/repla/test/applescript/confirm_dialog.applescript
100
+ - lib/repla/test/applescript/is_running.applescript
101
+ - lib/repla/test/applescript/quit.applescript
102
+ - lib/repla/test/applescript/set_window_bounds.applescript
103
+ - lib/repla/test/applescript/switch_windows.applescript
104
+ - lib/repla/test/applescript/window_bounds.applescript
105
+ - lib/repla/test/applescript/window_id.applescript
106
+ - lib/repla/test/bundles/Cat.wcplugin/Contents/Info.plist
107
+ - lib/repla/test/bundles/Cat.wcplugin/Contents/Resources/cat.sh
108
+ - lib/repla/test/bundles/HelloWorld.wcplugin/Contents/Info.plist
109
+ - lib/repla/test/bundles/HelloWorld.wcplugin/Contents/Resources/hello_world.rb
110
+ - lib/repla/test/bundles/Invalid.wcplugin/Contents/Info.plist
111
+ - lib/repla/test/bundles/Print.wcplugin/Contents/Info.plist
112
+ - lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/css/style.css
113
+ - lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/index.html
114
+ - lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/js/wcprint.js
115
+ - lib/repla/test/bundles/Print.wcplugin/Contents/Resources/lib/controller.rb
116
+ - lib/repla/test/bundles/Print.wcplugin/Contents/Resources/lib/view.rb
117
+ - lib/repla/test/bundles/Print.wcplugin/Contents/Resources/print.rb
118
+ - lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Info.plist
119
+ - lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Resources/constants.rb
120
+ - lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Resources/test_environment.rb
121
+ - lib/repla/test/bundles/TestLog.wcplugin/Contents/Info.plist
122
+ - lib/repla/test/bundles/TestLog.wcplugin/Contents/Resources/test_log.rb
123
+ - lib/repla/test/html/index.html
124
+ - lib/repla/test/html/indexjquery.html
125
+ - lib/repla/test/html/js/zepto.js
126
+ - lib/repla/test/js/firstcode.js
127
+ - lib/repla/test/js/lastcode.js
128
+ - lib/repla/test/js/nodom.js
129
+ - lib/repla/test/js/text.js
130
+ - lib/repla/test/js/textjquery.js
131
+ - lib/repla/test/js/title.js
132
+ - lib/repla/test/lib/helper.rb
69
133
  homepage:
70
134
  licenses: []
71
135
  metadata: {}
@@ -75,9 +139,9 @@ require_paths:
75
139
  - lib
76
140
  required_ruby_version: !ruby/object:Gem::Requirement
77
141
  requirements:
78
- - - "~>"
142
+ - - ">="
79
143
  - !ruby/object:Gem::Version
80
- version: '2.0'
144
+ version: '0'
81
145
  required_rubygems_version: !ruby/object:Gem::Requirement
82
146
  requirements:
83
147
  - - ">="
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title><%= title %></title>
6
- <%= shared_stylesheet_link_tag "raster" %>
7
- <link rel="stylesheet" href="css/style.css" />
8
- <script id="dependency-template" type="text/x-handlebars-template">
9
- <section>
10
- <header>
11
- <h5>Dependency <span class="type">{{type}}</span> <code class="name">{{name}}</code> not found.</h5>
12
- </header>
13
- {{#if installationInstructions}}
14
- <p><blockquote class="installation">To install <code>{{name}}</code>: {{{installationInstructions}}}</blockquote></p>
15
- {{/if}}
16
- </section>
17
- </script>
18
- <%= shared_javascript_include_tag "handlebars" %>
19
- <%= shared_javascript_include_tag "zepto" %>
20
- <script type="text/javascript" src="js/wcdependencies.js"></script>
21
- </head>
22
- <body>
23
-
24
- </body>
25
- </html>
@@ -1 +0,0 @@
1
- REPLA_FILE = File.join(File.dirname(__FILE__), "../repla")
@@ -1,17 +0,0 @@
1
- module Repla
2
- class View < Window
3
-
4
- require 'erb'
5
-
6
- def load_erb_from_path(path)
7
- erb = File.new(path).read
8
- load_erb(erb)
9
- end
10
-
11
- def load_erb(erb)
12
- template = ERB.new(erb, nil, '-')
13
- html = template.result(binding)
14
- load_html(html)
15
- end
16
- end
17
- end
@@ -1,8 +0,0 @@
1
- require_relative "../../../extension_constants"
2
-
3
- TEST_CLASS_JAVASCRIPT = "document.body.lastChild.classList[0]"
4
- TEST_MESSAGE_JAVASCRIPT = "document.body.lastChild.innerText"
5
- TEST_MESSAGE_COUNT_JAVASCRIPT = "document.body.children.length"
6
-
7
- TEST_JAVASCRIPT_DIRECTORY = File.join(File.dirname(__FILE__), "..", "js")
8
- TEST_JAVASCRIPT_FILE = File.join(TEST_JAVASCRIPT_DIRECTORY, "test_view_helper.js")
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title><%= title %></title>
6
- <%= shared_stylesheet_link_tag "raster" %>
7
- <%= repl_header_tags %>
8
- </head>
9
- <body>
10
-
11
- </body>
12
- </html>
File without changes
File without changes
File without changes