This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.util.GroovyTestCase | |
public class Test extends GroovyTestCase { | |
private shouldFailBy(Class expected, Closure c) { | |
try { | |
c.call() | |
assert false // Failure | |
} catch (Throwable t) { | |
assert expected.isInstance(t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.util.GroovyTestCase | |
public class Test extends GroovyTestCase { | |
public void test() { | |
shouldFail (NullPointerException) {throw new NullPointerException()} | |
shouldFail (IllegalAccessError) {throw new IllegalAccessError()} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.util.GroovyTestCase | |
public class Test extends GroovyTestCase { | |
public void test() { | |
shouldFail {assert false} | |
shouldFail {throw new NullPointerException()} | |
shouldFail {throw new IllegalAccessError()} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-PPretty | |
--lib | |
--recurse | |
--color | |
--failures | |
--merge | |
--trap | |
--timer | |
--exec "perl -Ilib -MTest::Name::FromLine" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN | |
git.tagpattern = %v | |
git.push_to = origin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use 5.012000; | |
use autodie; | |
use XML::XML2JSON; | |
sub get_json_contents { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -f pom.json ] ; then | |
if [ -f pom.xml ] ; then | |
mv -f pom.xml pom.xml.old | |
fi | |
# TODO Specify the own pass to script. | |
/usr/local/script/json2xml.pl pom.json | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_directory: ~/.donki | |
repositories: | |
- [email protected]:moznion/Pod2Readme.git | |
- [email protected]:moznion/Implement_Trashbox.git | |
- url: [email protected]:moznion/skeletons4vim.git | |
name: skeletons | |
branch: master | |
target: ~/.vim | |
- url: [email protected]:moznion/snippets4neosnippet.git | |
name: snippets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
~/.rbenv/shims/ruby ~/.donki/rsense/bin/rsense server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
~/.donki/node/node ~/.donki/jslint-reporter/wrapper.js --verbose $@ |