Commit 59bbf5de 59bbf5deb275e89ace7b5d85a8c195d583222c27 by Nicolas Perriault

Merge pull request #170 from hannyu/rubygem

Request for add a new branch rubygem again
2 parents 583868d9 7f4225a5
# by hannyu
CASPERJS_VERSION = File.read("package.json")[/version.*:.*"(.*?)"/,1].gsub(/[\-_\+]/,".")
Gem::Specification.new do |s|
s.name = "casperjs"
s.version = CASPERJS_VERSION
s.homepage = "http://casperjs.org/"
s.authors = ["Nicolas Perriault", ]
s.email = ["nperriault@gmail.com",]
s.description = "CasperJS is a navigation scripting & testing utility for [PhantomJS](http://www.phantomjs.org/).
It eases the process of defining a full navigation scenario and provides useful
high-level functions, methods & syntaxic sugar for doing common tasks."
s.summary = "Navigation scripting & testing utility for PhantomJS"
s.extra_rdoc_files = ["LICENSE.md", "README.md"]
s.files = Dir["LICENSE.md", "README.md", "CHANGELOG.md", "package.json", "casperjs.gemspec",
"bin/bootstrap.js", "bin/usage.txt", "bin/casperjs_python",
"docs/**/*", "modules/**/*", "samples/**/*", "tests/**/*"]
s.bindir = "rubybin"
s.executables = [ "casperjs" ]
s.license = "MIT"
s.requirements = [ "PhantomJS v1.5" ]
end
#!/usr/bin/env ruby
# Ruby Wrapper for CasperJs
# Version: 1.0.0
# by hannyu
......@@ -10,18 +8,21 @@ CASPER_PATH = File.dirname(File.dirname(File.expand_path(__FILE__)))
PHANTOMJS_NATIVE_ARGS = [
'--cookies-file',
'--config',
'--debug',
'--disk-cache',
'--ignore-ssl-errors',
'--load-images',
'--load-plugins',
'--local-storage-path',
'--local-storage-quota',
'--local-to-remote-url-access',
'--max-disk-cache-size',
'--output-encoding',
'--remote-debugger-port',
'--remote-debugger-autorun',
'--proxy',
'--proxy-auth',
'--proxy-type',
'--remote-debugger-port',
'--remote-debugger-autorun',
'--script-encoding',
'--web-security',
]
......