This repository has been archived by the owner. It is now read-only.

New Package: casperjs #12394

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
4 participants

CasperJS is an open source navigation scripting & testing utility
written in Javascript and based on PhantomJS — the scriptable headless
WebKit engine. It eases the process of defining a full navigation
scenario and provides useful high-level functions, methods & syntactic
sugar for doing common tasks such as:
-- defining & ordering browsing navigation steps
-- filling & submitting forms
-- clicking & following links
-- capturing screenshots of a page (or part of it)
-- making assertions on remote DOM
-- logging events
-- downloading resources, including binary ones
-- writing functional test suites, saving results as JUnit XML
-- scraping Web contents

New Package: casperjs
CasperJS is an open source navigation scripting & testing utility
written in Javascript and based on PhantomJS — the scriptable headless
WebKit engine. It eases the process of defining a full navigation
scenario and provides useful high-level functions, methods & syntactic
sugar for doing common tasks such as:
-- defining & ordering browsing navigation steps
-- filling & submitting forms
-- clicking & following links
-- capturing screenshots of a page (or part of it)
-- making assertions on remote DOM
-- logging events
-- downloading resources, including binary ones
-- writing functional test suites, saving results as JUnit XML
-- scraping Web contents
Contributor

bugQ commented May 24, 2012

Error: class "Casperjs" expected but not found in casperjs.rb
Double-check the name of the class in that formula.

@bugQ does my last commit work?

@jacknagel jacknagel commented on the diff May 25, 2012

Library/Formula/casperjs.rb
@@ -0,0 +1,27 @@
+require 'formula'
@jacknagel

jacknagel May 25, 2012

Contributor

Add a line break here

@jacknagel jacknagel commented on an outdated diff May 25, 2012

Library/Formula/casperjs.rb
@@ -0,0 +1,27 @@
+require 'formula'
+class Casperjs < Formula
+ homepage 'http://casperjs.org'
+ head 'git://github.com/n1k0/casperjs.git'
+ url 'https://github.com/n1k0/casperjs/tarball/0.6.8'
+ md5 'cb72d1c5f33528e7020678e06d80352c'
+ depends_on 'phantomjs'
@jacknagel

jacknagel May 25, 2012

Contributor

Preferred organization for this is:

homepage ...
url ..
md5 ..

head ...

depends_on ...

@jacknagel jacknagel commented on an outdated diff May 25, 2012

Library/Formula/casperjs.rb
+
+ def script; <<-EOS.undent
+ #!/bin/sh
+ exec #{libexec}/casperjs "$@"
+ EOS
+ end
+
+ def install
+ inreplace 'bin/casperjs' do |s|
+ s.gsub! /'bin', 'bootstrap.js'/, "'#{libexec}', 'bootstrap.js'"
+ end
+ inreplace 'bin/bootstrap.js' do |s|
+ s.gsub! /'bin', 'usage.txt'/, "'libexec', 'usage.txt'"
+ end
+ prefix.install ['docs', 'modules', 'samples','package.json', 'tests', 'CHANGELOG.md', 'LICENSE.md']
+ libexec.install ['bin/casperjs','bin/bootstrap.js', 'bin/usage.txt']
@jacknagel

jacknagel May 25, 2012

Contributor

Don't need array brackets on these two lines

@jacknagel thanks for the formatting tips... i would think that commit notes would trigger github notifications

Contributor

bugQ commented May 25, 2012

sam said:

@bugQ does my last commit work?

Well, I patched the formula myself and everything seemed to work.

Contributor

jacknagel commented May 25, 2012

Squash down to a single commit please, thanks.

Contributor

adamv commented Jun 8, 2012

Pulled an alternate request.

@adamv adamv closed this Jun 8, 2012

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.