lib/repla/lib/module.rb in repla-0.3.0 vs lib/repla/lib/module.rb in repla-0.4.0
- old
+ new
@@ -46,42 +46,19 @@
CREATE_WINDOW_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "create_window.scpt")
def self.create_window
self.run_applescript(CREATE_WINDOW_SCRIPT)
end
- # Shared Resources
+ # Resources
RESOURCE_PATH_FOR_PLUGIN_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "resource_path_for_plugin.scpt")
def self.resource_path_for_plugin(name)
self.run_applescript(RESOURCE_PATH_FOR_PLUGIN_SCRIPT, [name])
end
- # Shared Resource Path
-
- SHARED_RESOURCES_PLUGIN_NAME = "Shared Resources"
- SHARED_TEST_RESOURCES_PLUGIN_NAME = "Shared Test Resources"
- def self.shared_resources_path
- resource_path_for_plugin(SHARED_RESOURCES_PLUGIN_NAME)
- end
- def self.shared_test_resources_path
- resource_path_for_plugin(SHARED_TEST_RESOURCES_PLUGIN_NAME)
- end
-
- def self.shared_resource(resource)
- File.join(self.shared_resources_path, resource)
- end
- def self.shared_test_resource(resource)
- File.join(self.shared_test_resources_path, resource)
- end
-
- # Shared Resource URL
-
RESOURCE_URL_FOR_PLUGIN_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "resource_url_for_plugin.scpt")
def self.resource_url_for_plugin(name)
self.run_applescript(RESOURCE_URL_FOR_PLUGIN_SCRIPT, [name])
- end
- def self.shared_resources_url
- resource_url_for_plugin(SHARED_RESOURCES_PLUGIN_NAME)
end
private
def self.run_applescript(script, arguments = nil)