repo string | commit string | message string | diff string |
|---|---|---|---|
zorgnax/libtap | ac35029ea81c7daf746ac4cf1a9d985a799d75d8 | Move includes and define to near the top | diff --git a/tap.c b/tap.c
index 2a7ba57..9ea8bb1 100644
--- a/tap.c
+++ b/tap.c
@@ -1,364 +1,366 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | 38ccd86aa085657cf799fe00447ade4c04ea93d2 | fix dropped const qualifier | diff --git a/tap.c b/tap.c
index 788970a..e470838 100644
--- a/tap.c
+++ b/tap.c
@@ -1,362 +1,362 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | cb611c1f054bdce02eefc6e038558427018edb88 | Forcibly disable optimization on tests | diff --git a/Makefile b/Makefile
index c00bef1..f020c28 100644
--- a/Makefile
+++ b/Makefile
@@ -1,72 +1,73 @@
CC ?= gcc
CFLAGS += -Wall -I. -fPIC
PREFIX ?= $(DESTDIR)/usr/local
TESTS = $(patsubst %.c, %, $(wildcard t/*.c))
ifdef ANSI
# -D_BSD_SOURCE for MAP_ANONYMOUS
CFLAGS += -ansi -D_BSD_SOURCE
LDLIBS +... |
zorgnax/libtap | a9eb032378085bed04f65fd01bb3c45fe6aa18ac | Include additional headers | diff --git a/tap.c b/tap.c
index 788970a..eea43dc 100644
--- a/tap.c
+++ b/tap.c
@@ -1,362 +1,364 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | 72bbe878d38856b0f68dd6b261f3f77be5f8e2e2 | Make division by zero test fail | diff --git a/t/diesok.c b/t/diesok.c
index e5471bf..4f531e8 100644
--- a/t/diesok.c
+++ b/t/diesok.c
@@ -1,14 +1,14 @@
#include "tap.h"
int main () {
plan(5);
ok(1, "sanity");
- dies_ok({int x = 0; x = x/x;}, "can't divide by zero");
+ dies_ok({int x = 0; x = 1/x;}, "can't divide by zero");
liv... |
zorgnax/libtap | 14e6708db5215a657e615171682a1741023c9c0c | Add spacing | diff --git a/tap.c b/tap.c
index e7b1cef..788970a 100644
--- a/tap.c
+++ b/tap.c
@@ -1,362 +1,362 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | 72f3c06fa5f924767be49809446f8b645d14bdb7 | Fixing a bug which prevents builds for Windows targets. | diff --git a/tap.h b/tap.h
index d1f9af3..e366a6a 100644
--- a/tap.h
+++ b/tap.h
@@ -1,115 +1,115 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#ifndef __TAP_H__
#define __TAP_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef va... |
zorgnax/libtap | 96cc218b4fbbafe506805c53fa35e1fa88fdaa34 | tap.c: fix unused parameter warnings | diff --git a/tap.c b/tap.c
index 39c2bc2..e7b1cef 100644
--- a/tap.c
+++ b/tap.c
@@ -1,360 +1,362 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | 593108e0006b67761bfeecfa46673560afe2eaf7 | tap:c don't leak arg va_list if format string is NULL | diff --git a/tap.c b/tap.c
index bde6189..39c2bc2 100644
--- a/tap.c
+++ b/tap.c
@@ -1,358 +1,360 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | 3c99c3d1c745149aaa80c0af9bef75fad3a55e64 | Only define define MAP_ANONYMOUS when necessary | diff --git a/tap.c b/tap.c
index 152e39e..bde6189 100644
--- a/tap.c
+++ b/tap.c
@@ -1,354 +1,358 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | 699f2f5561bd1cf6620d3e4e18b51645ae85beb6 | Change the synopsis a little bit | diff --git a/README.md b/README.md
index f89ea6c..5332d52 100644
--- a/README.md
+++ b/README.md
@@ -1,273 +1,268 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int main () {
plan(5);
- ok(3 == 3);
- is("fnord", "eek", "two different strings not t... |
zorgnax/libtap | 71d6d2ea7e33a24b90c89fee6bed92d5834c4f4d | They will have diff installed, no need to mention it | diff --git a/INSTALL b/INSTALL
index 05197cc..5b2c76d 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,43 +1,41 @@
-To install libtap on a unix-like system:
+To install libtap on a Unix-like system:
$ make
$ make check
$ make install
-Note that `make check` makes use of diff(1), so if you run it, make
-sure ... |
zorgnax/libtap | 503bcc45368c0343b28a5391cedcb6bfdc279c75 | Do not auto cast first argument to an int in the ok macro | diff --git a/tap.h b/tap.h
index 7cccdba..d1f9af3 100644
--- a/tap.h
+++ b/tap.h
@@ -1,115 +1,115 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#ifndef __TAP_H__
#define __TAP_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef va... |
zorgnax/libtap | e08bb1df1ff5029e5f3b9978f79b86211ba22ab2 | Add a note about the use of macros | diff --git a/README.md b/README.md
index 711fece..f89ea6c 100644
--- a/README.md
+++ b/README.md
@@ -1,270 +1,273 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int main () {
plan(5);
ok(3 == 3);
is("fnord", "eek", "two different strings not t... |
zorgnax/libtap | 6278b5c958802a70f02dab77f26fd16756232903 | Remove the ; at the end of cmp_mem macro | diff --git a/tap.h b/tap.h
index 85f776a..7cccdba 100644
--- a/tap.h
+++ b/tap.h
@@ -1,115 +1,115 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#ifndef __TAP_H__
#define __TAP_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef va... |
zorgnax/libtap | 275a69de3d4ee32b8729b07c12c2d79bd5223356 | Makefile variable changes to help overrides on command line | diff --git a/INSTALL b/INSTALL
index a74527b..05197cc 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,43 +1,43 @@
To install libtap on a unix-like system:
$ make
$ make check
$ make install
Note that `make check` makes use of diff(1), so if you run it, make
sure you have those tools installed first. To c... |
zorgnax/libtap | 3d442fc68c722346982015292fbeb72a6a862de7 | Allow CFLAGS and CC to be append and set | diff --git a/Makefile b/Makefile
index 1bec192..180ada2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,72 +1,72 @@
-CFLAGS = -g -Wall -I. -fPIC
-CC = gcc
+CFLAGS += -g -Wall -I. -fPIC
+CC ?= gcc
PREFIX = $(DESTDIR)/usr/local
TESTS = $(patsubst %.c, %, $(wildcard t/*.c))
ifdef ANSI
# -D_BSD_SOURCE for MAP_ANONYMOUS
... |
zorgnax/libtap | d2109aa9d3898359bb8c5f8dabe0221169ed4bd2 | Use x variable so compiler doesn't complain about it | diff --git a/t/diesok.c b/t/diesok.c
index 2ec156f..e5471bf 100644
--- a/t/diesok.c
+++ b/t/diesok.c
@@ -1,14 +1,14 @@
#include "tap.h"
int main () {
plan(5);
ok(1, "sanity");
dies_ok({int x = 0; x = x/x;}, "can't divide by zero");
- lives_ok({int x; x = 3/7;}, "this is a perfectly fine statement"... |
zorgnax/libtap | 16681aa47681cabadf71cc0ecaa4a3e3ccd80366 | Cast argument to int to avoid possibly compiler warnings | diff --git a/tap.h b/tap.h
index 8269e7e..85f776a 100644
--- a/tap.h
+++ b/tap.h
@@ -1,115 +1,115 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#ifndef __TAP_H__
#define __TAP_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef va... |
zorgnax/libtap | 5a85bec45f052a6756dbecba8c71bfaa4cfb15f2 | Make all diagnostic messages go to STDOUT to avoid out of order display issues | diff --git a/README.md b/README.md
index 0a60767..711fece 100644
--- a/README.md
+++ b/README.md
@@ -1,273 +1,270 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int main () {
plan(5);
ok(3 == 3);
is("fnord", "eek", "two different strings not t... |
zorgnax/libtap | 72a57250e3f55e67ce4749771d251db58532ae0c | Rely on prove (or another tap consumer) to provide color results | diff --git a/Makefile b/Makefile
index ac843df..1bec192 100644
--- a/Makefile
+++ b/Makefile
@@ -1,76 +1,72 @@
CFLAGS = -g -Wall -I. -fPIC
CC = gcc
PREFIX = $(DESTDIR)/usr/local
TESTS = $(patsubst %.c, %, $(wildcard t/*.c))
ifdef ANSI
# -D_BSD_SOURCE for MAP_ANONYMOUS
CFLAGS += -ansi -D_BSD_SOURCE
LDLIBS +... |
zorgnax/libtap | 8e03f5ddcfa39b159be1f171fbef3db8563d301a | Remove the extra whitespace | diff --git a/tap.c b/tap.c
index bfb6cbd..c68beff 100644
--- a/tap.c
+++ b/tap.c
@@ -1,371 +1,371 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | 50c89465fcbc79d955180fd50fb4901274a89070 | Make color optional | diff --git a/Makefile b/Makefile
index 2ab04a5..0903c99 100644
--- a/Makefile
+++ b/Makefile
@@ -1,73 +1,76 @@
CFLAGS = -g -Wall -I. -fPIC
CC = gcc
PREFIX = $(DESTDIR)/usr/local
TESTS = $(patsubst %.c, %, $(wildcard t/*.c))
ifdef ANSI
# -D_BSD_SOURCE for MAP_ANONYMOUS
CFLAGS += -ansi -D_BSD_SOURCE
LDLIBS +... |
zorgnax/libtap | b78ba661a40b48dc1094382ee8b270da9243d414 | Add color text | diff --git a/tap.c b/tap.c
index b4f306d..bfb6cbd 100644
--- a/tap.c
+++ b/tap.c
@@ -1,369 +1,371 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the LGPL
*/
#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
zorgnax/libtap | 6317aa3e2c6b0d98ee365078fbef2e299ec4930c | Move tap.pc section down so all section stays the default | diff --git a/Makefile b/Makefile
index f038714..2ab04a5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,72 +1,73 @@
CFLAGS = -g -Wall -I. -fPIC
CC = gcc
PREFIX = $(DESTDIR)/usr/local
TESTS = $(patsubst %.c, %, $(wildcard t/*.c))
ifdef ANSI
# -D_BSD_SOURCE for MAP_ANONYMOUS
CFLAGS += -ansi -D_BSD_SOURCE
LDLIBS +... |
zorgnax/libtap | 6c87a037f2fa8361dec9f2968fb4168bac1d0cf6 | Adding pkgconfig file | diff --git a/.gitignore b/.gitignore
index 778a470..2c95d04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1,13 @@
/t/*
!/t/*.*
/t/*.exe
/t/*.got
*.a
*.lo
*.o
*.so
+*.pc
usr/
*.sw?
/.deps
/.dirstamp
diff --git a/Makefile b/Makefile
index 0da18e7..f038714 100644
--- a/Makefile
+++ b/Makefile
@@ -1,58 +1,... |
zorgnax/libtap | a5076cea862a535c93003d50fb32e430b15c92dc | License under LGPL | diff --git a/COPYING b/COPYING
index d159169..65c5ca8 100644
--- a/COPYING
+++ b/COPYING
@@ -1,339 +1,165 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
- Copyright (C... |
zorgnax/libtap | c7b93973fd09532ad71e94f486b10131b0ad1052 | done_testing to return 0, 1, or 2 not the number of tests failed | diff --git a/README.md b/README.md
index ea47173..0a60767 100644
--- a/README.md
+++ b/README.md
@@ -1,274 +1,273 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int main () {
plan(5);
ok(3 == 3);
is("fnord", "eek", "two different strings not t... |
zorgnax/libtap | 4ebdef73989f407a1deeb20957f6f6c6e0c0ea1a | Link tests with the static library to avoid LD_LIBRARY_PATH errors | diff --git a/Makefile b/Makefile
index 6d774f5..0da18e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,58 +1,58 @@
CFLAGS = -g -Wall -I. -fPIC
CC = gcc
PREFIX = $(DESTDIR)/usr/local
TESTS = $(patsubst %.c, %, $(wildcard t/*.c))
ifdef ANSI
# -D_BSD_SOURCE for MAP_ANONYMOUS
CFLAGS += -ansi -D_BSD_SOURCE
LDLIBS +... |
zorgnax/libtap | 2d23c18824a6023cda2d01bb351c5e00bbd00c3c | Remove the Visual Studio project file since it might be out of date | diff --git a/INSTALL b/INSTALL
index 8df7ce3..acd3cae 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,49 +1,46 @@
To install libtap on a unix-like system:
$ make
$ make check
$ make install
Note that `make check` runs a perl unit test. It makes use of
diff(1), so if you run it, make sure you have those t... |
zorgnax/libtap | cf2c7c3b0722eac365613b03a9f2b8c027273043 | Create libtap.so by default | diff --git a/Makefile b/Makefile
index 76d0941..6d774f5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,56 +1,58 @@
CFLAGS = -g -Wall -I. -fPIC
CC = gcc
PREFIX = $(DESTDIR)/usr/local
TESTS = $(patsubst %.c, %, $(wildcard t/*.c))
ifdef ANSI
# -D_BSD_SOURCE for MAP_ANONYMOUS
CFLAGS += -ansi -D_BSD_SOURCE
LDLIBS +... |
zorgnax/libtap | db4aa0d7e8a7b2a9f48dd7d50f0beb2734851446 | Create shared objects by default | diff --git a/.gitignore b/.gitignore
index 0e470a3..778a470 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,12 @@
/t/*
!/t/*.*
/t/*.exe
/t/*.got
*.a
*.lo
*.o
+*.so
+usr/
*.sw?
/.deps
/.dirstamp
diff --git a/Makefile b/Makefile
index 16e8ca5..76d0941 100644
--- a/Makefile
+++ b/Makefile
@@ -1,54 +1,56 @@
... |
zorgnax/libtap | 78de74db6028a4a7efaa90f4e8924a4d06a5100a | Add a PREFIX variable to the Makefile | diff --git a/INSTALL b/INSTALL
index 13b5a70..a268542 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,44 +1,49 @@
To install libtap on a unix-like system:
$ make
$ make check
$ make install
Note that `make check` runs Perl unit-tests, which require the
Test::Differences module from CPAN; if you run them,... |
zorgnax/libtap | 4f14d706ac2bfa2e7dfa40b7dc9f1a88a4f66af0 | _BSD_SOURCE is deprecated so use _DEFAULT_SOURCE instead | diff --git a/tap.c b/tap.c
index e037ba6..580b050 100644
--- a/tap.c
+++ b/tap.c
@@ -1,372 +1,372 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPLv2 or any later version
*/
-#define _BSD_SOURCE 1
+#define _DEFAULT_SOURCE 1
#include <stdio.h>
... |
zorgnax/libtap | 0bdd9778f610c974295fb0199a85953f01cd13dc | Ignore more junk | diff --git a/.gitignore b/.gitignore
index 2e45fcb..a603eee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,8 @@
/t/*
!/t/*.*
*.a
+*.lo
*.o
*.sw?
+/.deps
+/.dirstamp
|
zorgnax/libtap | de94575882012b112babb049ab9a1bfb1679b432 | Add install section to README; add make check note. | diff --git a/INSTALL b/INSTALL
index 2ed4543..13b5a70 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,42 +1,44 @@
To install libtap on a unix-like system:
$ make
$ make check
$ make install
+Note that `make check` runs Perl unit-tests, which require the
+Test::Differences module from CPAN; if you run them,... |
zorgnax/libtap | 56f9c06bab324e9680c40b22ca995f8b8c02a080 | Make a function for finding memory difference offsets | diff --git a/README.md b/README.md
index eaaa2ba..09366dc 100644
--- a/README.md
+++ b/README.md
@@ -1,264 +1,264 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int main () {
plan(5);
ok(3 == 3);
is("fnord", "eek", "two different strings not t... |
zorgnax/libtap | 18f1ec08977eb0b1355c33a909efe9ac1dd74a01 | cmp_mem() improvements | diff --git a/README.md b/README.md
index 449388c..eaaa2ba 100644
--- a/README.md
+++ b/README.md
@@ -1,264 +1,264 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int main () {
plan(5);
ok(3 == 3);
is("fnord", "eek", "two different strings not t... |
zorgnax/libtap | 1796a0d15d69d817cd3f72672337a5ec9353f291 | Fix whitespace | diff --git a/tap.c b/tap.c
index 27ebec8..46eeaa6 100644
--- a/tap.c
+++ b/tap.c
@@ -1,359 +1,359 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPLv2 or any later version
*/
#define _BSD_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#inclu... |
zorgnax/libtap | 433c24900fd19bb68e49de74e7d6972ed09da92d | Add cmp_mem test | diff --git a/README.md b/README.md
index b241e5d..449388c 100644
--- a/README.md
+++ b/README.md
@@ -1,245 +1,264 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int main () {
plan(5);
ok(3 == 3);
is("fnord", "eek", "two different strings not t... |
zorgnax/libtap | 959a1126967da00f672a7bc71e6f11f6d07f81f5 | Replace ternary operations with if statements | diff --git a/tap.c b/tap.c
index 904c4c1..560b97c 100644
--- a/tap.c
+++ b/tap.c
@@ -1,331 +1,334 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPLv2 or any later version
*/
#define _BSD_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#inclu... |
zorgnax/libtap | 74494abafb18bd5e2d690bbb0416ff05d0ece903 | Ignore all compiled tests no matter their names | diff --git a/.gitignore b/.gitignore
index 64a4dfc..2e45fcb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,14 +1,5 @@
+/t/*
+!/t/*.*
*.a
*.o
*.sw?
-
-# compiled tests
-/t/cmpok
-/t/diesok
-/t/is
-/t/like
-/t/notediag
-/t/simple
-/t/skip
-/t/synopsis
-/t/todo
|
zorgnax/libtap | 0b06bea3a3e16651c0bbd7b3174752c2145535c4 | Define _BSD_SOURCE to 1 | diff --git a/tap.c b/tap.c
index d731f6c..51e2e8d 100644
--- a/tap.c
+++ b/tap.c
@@ -1,329 +1,331 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPLv2
*/
+#define _BSD_SOURCE 1
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#inclu... |
zorgnax/libtap | 4d5a11a1c29b3fb5f23b5174e9df47da373248b6 | Make better naming choices: planf -> tap_plan, skippy -> tap_skip, todof -> tap_todo | diff --git a/tap.c b/tap.c
index b28debd..d731f6c 100644
--- a/tap.c
+++ b/tap.c
@@ -1,329 +1,329 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPLv2
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "... |
zorgnax/libtap | 3fdd33db63d54e1df75c09aa6d10e0e74743102a | Remove autotools support | diff --git a/.gitignore b/.gitignore
index 3eb6036..64a4dfc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,33 +1,14 @@
*.a
*.o
*.sw?
# compiled tests
/t/cmpok
/t/diesok
/t/is
/t/like
/t/notediag
/t/simple
/t/skip
/t/synopsis
/t/todo
-
-# autotools
-autom4te.cache/
-configure
-Makefile
-Makefile.in
-acloc... |
zorgnax/libtap | 23dec52cee1b083e1cd2c7afa2534c5796c2c364 | Add autotools support | diff --git a/.gitignore b/.gitignore
index 64a4dfc..3eb6036 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,14 +1,33 @@
*.a
*.o
*.sw?
# compiled tests
/t/cmpok
/t/diesok
/t/is
/t/like
/t/notediag
/t/simple
/t/skip
/t/synopsis
/t/todo
+
+# autotools
+autom4te.cache/
+configure
+Makefile
+Makefile.in
+acloc... |
zorgnax/libtap | c3c3d0aa447611c779ee117f3bde0ec58798760d | Travis now supports C | diff --git a/.travis.yml b/.travis.yml
index 5920737..6f9809e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,13 @@
-language: erlang # no C/shell language support; use least-loaded worker(s)
+language: c
+
+compiler:
+ - gcc
+ - clang
before_install: sudo apt-get install -y libtest-differences-perl
-insta... |
zorgnax/libtap | baf4d46e8b9df591ec40f963cb7a9e0b47b626d9 | Generate testing command in subroutine | diff --git a/t/tap.t b/t/tap.t
index e0f726a..6dbafdf 100755
--- a/t/tap.t
+++ b/t/tap.t
@@ -1,211 +1,217 @@
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 9;
use Test::Differences;
my $x = $^O eq 'MSWin32' ? ".exe" : "";
-eq_or_diff ~~`t/cmpok$x 2>&1`, <<'END', "cmp_ok";
+sub cmd_eq_or_dif... |
zorgnax/libtap | 0e45669c781edad2062a60e689adda447c0a380b | Rename endskip and endtodo to end_skip and end_todo | diff --git a/README.md b/README.md
index c51384c..b241e5d 100644
--- a/README.md
+++ b/README.md
@@ -1,245 +1,245 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int main () {
plan(5);
ok(3 == 3);
is("fnord", "eek", "two different strings not t... |
zorgnax/libtap | e1329bfc033d8bb7eaac89fb3e9b58dd362dc180 | Use the name Windows instead of MSWin32 | diff --git a/tap.h b/tap.h
index 04eeb86..ea4af00 100644
--- a/tap.h
+++ b/tap.h
@@ -1,114 +1,114 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPLv2
*/
#ifndef __TAP_H__
#define __TAP_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef v... |
zorgnax/libtap | efcecfe3dcc66fdd9eb1427bf090283754342e80 | Rename cplan, ctodo, and cendtodo to planf, todof, endtodof | diff --git a/tap.c b/tap.c
index 35694ea..a923bb0 100644
--- a/tap.c
+++ b/tap.c
@@ -1,329 +1,329 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPLv2
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "... |
zorgnax/libtap | b2b8e01d6d40a1a34e726847e4c1c57b0819725f | Check for malloc errors | diff --git a/tap.c b/tap.c
index 517d5c6..35694ea 100644
--- a/tap.c
+++ b/tap.c
@@ -1,325 +1,329 @@
/*
libtap - Write tests in C
Copyright 2012 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPLv2
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "... |
zorgnax/libtap | 52a6219d6121a13d30192d6c187a9f0f1d08fff4 | Simplify synopsis | diff --git a/README.md b/README.md
index a77d22a..c51384c 100644
--- a/README.md
+++ b/README.md
@@ -1,248 +1,245 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
- int foo () {return 3;}
- char *bar () {return "fnord";}
-
int main () {
plan(5);
- ... |
zorgnax/libtap | 1af28ae72e34ba8c42b62d25acafed05456fddba | Give the isnt and unlike arguments better names | diff --git a/README.md b/README.md
index 7384e86..a77d22a 100644
--- a/README.md
+++ b/README.md
@@ -1,248 +1,248 @@
NAME
====
libtap - Write tests in C
SYNOPSIS
========
#include <tap.h>
int foo () {return 3;}
char *bar () {return "fnord";}
int main () {
plan(5);
... |
zorgnax/libtap | fbfeb81248cea090328fe1dd78f96a51e9b4bc9f | License with GPLv2 | diff --git a/COPYING b/COPYING
index 94a9ed0..d159169 100644
--- a/COPYING
+++ b/COPYING
@@ -1,674 +1,339 @@
GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
+ Version 2, June 1991
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/... |
zorgnax/libtap | e0faf0a0a317f0b1515a65d2912f13a8941c5f0e | Add Travis CI config | diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..5920737
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,9 @@
+language: erlang # no C/shell language support; use least-loaded worker(s)
+
+before_install: sudo apt-get install -y libtest-differences-perl
+
+install: make install
+
+script: make test... |
zorgnax/libtap | 5cf810f0832ddbaed1f3769296e4cd532f7c3a33 | Ignore build products for Unix-like systems | diff --git a/.gitignore b/.gitignore
index b8cd647..64a4dfc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,14 @@
+*.a
+*.o
*.sw?
+# compiled tests
+/t/cmpok
+/t/diesok
+/t/is
+/t/like
+/t/notediag
+/t/simple
+/t/skip
+/t/synopsis
+/t/todo
|
zorgnax/libtap | 3e7643f76a013feb84e2449406a693f262814b21 | Indent with spaces | diff --git a/INSTALL b/INSTALL
index 1e378ca..2ed4543 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,42 +1,42 @@
To install libtap on a unix-like system:
$ make
$ make check
$ make install
To compile with gcc -ansi, run
- $ make ANSI=1
+ $ make ANSI=1
On Windows, the library can be created by fir... |
zorgnax/libtap | c588c134dcadd96aca093b1156387638c5f6aae0 | Combine #ifdef statements for MAP_ANONYMOUS macro | diff --git a/tap.c b/tap.c
index e5a5171..f666b64 100644
--- a/tap.c
+++ b/tap.c
@@ -1,330 +1,325 @@
/*
libtap - Write tests in C
Copyright (C) 2011 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPL v3
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#incl... |
zorgnax/libtap | 3985ee37ddc36b9641088617e1f9a03d7752b1fe | make tap work on freebsd | diff --git a/tap.c b/tap.c
index 77aaee0..e5a5171 100644
--- a/tap.c
+++ b/tap.c
@@ -1,324 +1,330 @@
/*
libtap - Write tests in C
Copyright (C) 2011 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPL v3
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#incl... |
zorgnax/libtap | b7d9e585098d940a24afb0651c29f80f7251a6e2 | Declaration moved out of statement for C90 compliance. | diff --git a/tap.c b/tap.c
index 7dcd0e9..77aaee0 100644
--- a/tap.c
+++ b/tap.c
@@ -1,324 +1,324 @@
/*
libtap - Write tests in C
Copyright (C) 2011 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPL v3
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#incl... |
zorgnax/libtap | 94859c6f5f84a615c6370d0dd45db28662ab3c5c | Removes declaration in statements. (When using older compilers, declarations in statements are not allowed - C90 style) | diff --git a/tap.h b/tap.h
index 09935e8..89484f4 100644
--- a/tap.h
+++ b/tap.h
@@ -1,112 +1,114 @@
/*
libtap - Write tests in C
Copyright (C) 2011 Jake Gelbman <gelbman@gmail.com>
This file is licensed under the GPL v3
*/
#ifndef __TAP_H__
#define __TAP_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifn... |
zorgnax/libtap | b993a60c5bc3451ca824e293668440d5d4490646 | Combine config.mk and t/Makefile into Makefile. Separate windows related stuff to its own Makefile. | diff --git a/INSTALL b/INSTALL
index 6db3249..1e378ca 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,42 +1,42 @@
To install libtap on a unix-like system:
$ make
$ make check
$ make install
To compile with gcc -ansi, run
$ make ANSI=1
On Windows, the library can be created by first setting up
the ... |
zorgnax/libtap | 7d699d37ce940b2b62f187cad6fa5c5ab33744f6 | Ignore vim swap files. | diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b8cd647
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.sw?
+
|
zorgnax/libtap | f9ab55a5ab098f0a8877d93b82d9c087cf48c4ff | Compile everything before running the tests. | diff --git a/Makefile b/Makefile
index 88ef897..55bed02 100644
--- a/Makefile
+++ b/Makefile
@@ -1,30 +1,30 @@
include config.mk
all: $(TAPLIB)
$(MAKE) -C t/ all
$(TAPLIB): tap$(_O)
tap$(_O): tap.c tap.h
clean:
$(RM) -rv $(TAPLIB) *.o *.obj *.lib *.pdb *.ilk _C
$(MAKE) -C t/ clean
ifdef GNU
install... |
zorgnax/libtap | cfd204593be1b5f50a3a876fa294eb5b141f8bd6 | Make the library compatible with gcc -ansi. | diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy... |
scrooloose/snipmate-snippets | 15cb6bf4fad5b11f83d2ddb7186aadc0604329c1 | added a bunch of css snippets and one eruby snippet | diff --git a/css/background/all.snippet b/css/background/all.snippet
new file mode 100644
index 0000000..5e94d2c
--- /dev/null
+++ b/css/background/all.snippet
@@ -0,0 +1 @@
+background:${6: #${1:DDD}} url($2) ${3:repeat/repeat-x/repeat-y/no-repeat} ${4:scroll/fixed} ${5:top left/top center/top right/center left/center... |
scrooloose/snipmate-snippets | b6b739145253089aaae745d7d13f2aefd9560ce4 | Added div to html | diff --git a/html/div.snippet b/html/div.snippet
new file mode 100644
index 0000000..1ee10bf
--- /dev/null
+++ b/html/div.snippet
@@ -0,0 +1,3 @@
+<div id="${1}">
+ ${2}
+</div>
|
scrooloose/snipmate-snippets | a9f4887259ec04628db39be2419c00805de20ad5 | added snippets for Test::Unit 2.2.0 assertions | diff --git a/ruby/asam.snippet b/ruby/asam.snippet
new file mode 100644
index 0000000..3c95b31
--- /dev/null
+++ b/ruby/asam.snippet
@@ -0,0 +1 @@
+assert_alias_method ${1:object}, ${2:alias_name}, ${3:original_name}
diff --git a/ruby/asb.snippet b/ruby/asb.snippet
new file mode 100644
index 0000000..ab1eff7
--- /dev/n... |
scrooloose/snipmate-snippets | fc0b41cd02c142442ede3f39bc444e897232dd3f | Added try catch snippet for php | diff --git a/php/try.snippet b/php/try.snippet
new file mode 100644
index 0000000..66a7f65
--- /dev/null
+++ b/php/try.snippet
@@ -0,0 +1,6 @@
+try {
+ ${1:// code...}
+} catch (${2:Exception} $e) {
+ ${3:// code...}
+}
+
|
scrooloose/snipmate-snippets | 68c133b51caa7e5c628e0103391998eb750f5538 | detect correctly Windows OS work with pathogen.vim too | diff --git a/Rakefile b/Rakefile
index 22ce218..15cece2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,22 +1,24 @@
#require 'fileutils'
#include FileUtils
namespace :snippets_dir do
task :find do
- @snippets_dir = File.join(ENV['VIMFILES'] || ENV['HOME'] || ENV['USERPROFILE'], RUBY_PLATFORM =~ /mswin32/ ? "vimfi... |
scrooloose/snipmate-snippets | 50574d8577a69b242dcded6ce9635bf5d0320067 | Use double quotes for RSpec it blocks | diff --git a/ruby-rspec/it.snippet b/ruby-rspec/it.snippet
index 5f3900b..8af38db 100644
--- a/ruby-rspec/it.snippet
+++ b/ruby-rspec/it.snippet
@@ -1,3 +1,3 @@
-it '${1}' do
+it "${1}" do
${2}
end
|
scrooloose/snipmate-snippets | f8e281cfa24b67d8886317bf71368c7210eb4836 | Simplify RSpec require | diff --git a/ruby-rspec/desc.snippet b/ruby-rspec/desc.snippet
index c733bd1..6311aa1 100644
--- a/ruby-rspec/desc.snippet
+++ b/ruby-rspec/desc.snippet
@@ -1,5 +1,5 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
-describe ${1:controller} do
+describe ${1:`Snippet_Ruby... |
scrooloose/snipmate-snippets | 8e6192909d72595c5909cecd3c567d3152592d60 | Javascript log -> console.log() snippet | diff --git a/javascript/log.snippet b/javascript/log.snippet
new file mode 100644
index 0000000..b4cf84f
--- /dev/null
+++ b/javascript/log.snippet
@@ -0,0 +1 @@
+console.log(${1});
|
scrooloose/snipmate-snippets | 8e4c0724bbca1c4a7e7d67b07a175c5f540a0649 | Added an Class Extend snippet to PHP | diff --git a/php/classe.snippet b/php/classe.snippet
new file mode 100644
index 0000000..2f2b0bc
--- /dev/null
+++ b/php/classe.snippet
@@ -0,0 +1,12 @@
+/**
+ * ${1}
+ */
+class ${2:ClassName} extends ${3:AnotherClass}
+{
+ ${4}
+ function ${5:__construct}(${6:argument})
+ {
+ ${7:// code...}
+ }
+}
+
|
scrooloose/snipmate-snippets | f189e5b5b00c360b2b86f475c0d5db8d1fddd380 | fix the lorem snippet | diff --git a/_/lorem.snippet b/_/lorem.snippet
index 5a21b06..cee7a92 100644
--- a/_/lorem.snippet
+++ b/_/lorem.snippet
@@ -1 +1 @@
-Lorem ipsum dolor sit amet, consectetur magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in... |
scrooloose/snipmate-snippets | c37351df1541fcfdd5e4e22050ebc3b3eb320b00 | fix the eruby/unlesse snippet | diff --git a/eruby/unlesse.snippet b/eruby/unlesse.snippet
index fff2996..6f44739 100644
--- a/eruby/unlesse.snippet
+++ b/eruby/unlesse.snippet
@@ -1,4 +1,4 @@
-<% if ${1} %>
+<% unless ${1} %>
${2}
<% else %>
<% end %>
|
scrooloose/snipmate-snippets | d4095107c2a335d8b5bdaf9d2e596991f9e32b4c | added snippets for xslt | diff --git a/xslt/call.snippet b/xslt/call.snippet
new file mode 100644
index 0000000..2fe4f9d
--- /dev/null
+++ b/xslt/call.snippet
@@ -0,0 +1,3 @@
+ <xsl:call-template name="${1:template}">
+ ${2}
+ </xsl:call-template>
diff --git a/xslt/choose.snippet b/xslt/choose.snippet
new file mode 100644
index 0000000..1a8775... |
scrooloose/snipmate-snippets | f9f420418df3578c10833fe1a7f33adaedacf8c0 | isbl stands for it_should_behave_like | diff --git a/ruby-rspec/isbl.snippet b/ruby-rspec/isbl.snippet
new file mode 100644
index 0000000..728223f
--- /dev/null
+++ b/ruby-rspec/isbl.snippet
@@ -0,0 +1 @@
+it_should_behave_like '${1:do something}'
|
scrooloose/snipmate-snippets | 2c21d7086ed342454c21e7d4d8539b082f2234d9 | sef stands for shared_examples_for | diff --git a/ruby-rspec/sef.snippet b/ruby-rspec/sef.snippet
new file mode 100644
index 0000000..89d3411
--- /dev/null
+++ b/ruby-rspec/sef.snippet
@@ -0,0 +1,3 @@
+shared_examples_for "${1:do something}" do
+ ${2}
+end
|
scrooloose/snipmate-snippets | 3e4b05e9f2e73dc67a1dc8a19996523e0890bcaa | fixing commonly used rails snippets | diff --git a/ruby-rails/hm.snippet b/ruby-rails/hm.snippet
index a622201..9204df5 100644
--- a/ruby-rails/hm.snippet
+++ b/ruby-rails/hm.snippet
@@ -1 +1 @@
-has_many :<+object+>s<+, :class_name => "<+object+>", :foreign_key => "<+reference+>_id"+>
+has_many :${1:object}
diff --git a/ruby-rails/hmt.snippet b/ruby-rails... |
scrooloose/snipmate-snippets | e42aef33c821728a071bda52d01cadb6b86d47a4 | fix html and factory girl. remove conflicting ruby snippets. dont need rjs | diff --git a/html/body.snippet b/html/body.snippet
index f4d5c24..692403d 100644
--- a/html/body.snippet
+++ b/html/body.snippet
@@ -1,3 +1,3 @@
-<body<+ id="<+id+>"<+ onload="<++>"+>+>>
- <++>
-</body>
\ No newline at end of file
+<body id="${1}">
+ ${2}
+</body>
diff --git a/html/h1.snippet b/html/h1.snippet
index d... |
scrooloose/snipmate-snippets | b1b1279e7be4fa7ee2d8ef38c0efe1667dac3705 | add sshconfig/host snippet | diff --git a/sshconfig/host.snippet b/sshconfig/host.snippet
new file mode 100644
index 0000000..5992a2d
--- /dev/null
+++ b/sshconfig/host.snippet
@@ -0,0 +1,3 @@
+Host ${1:name}
+ Hostname ${2:example.com}
+ User ${3:username}
|
scrooloose/snipmate-snippets | 8182fb7cf6c87fb2e3f07fec52c7738efb4d928c | fix rakefile to recognize the home directory | diff --git a/Rakefile b/Rakefile
index f8f3bed..22ce218 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,26 +1,22 @@
-require 'fileutils'
-include FileUtils
+#require 'fileutils'
+#include FileUtils
namespace :snippets_dir do
task :find do
- @snippets_dir = File.join(ENV['VIMFILES'] || if RUBY_PLATFORM =~ /mswin32/
... |
scrooloose/snipmate-snippets | 842e5d5f2278ccafceee36638219616bd241d2dc | refactor Rakefile | diff --git a/Rakefile b/Rakefile
index a602b4d..f8f3bed 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,31 +1,26 @@
-desc "Copy the snippets directories into ~/.vim/snippets"
-task :deploy_local do
- run "rm -rf ~/.vim/snippets"
- run "mkdir ~/.vim/snippets"
- run "cp -r _ ~/.vim/snippets/"
- run "cp -r ant ~/.vim/snipp... |
scrooloose/snipmate-snippets | 1637f516ffa3acccf0d51d89591133bff3f18b0c | added content_tag snippet | diff --git a/eruby-rails/ct.snippet b/eruby-rails/ct.snippet
new file mode 100644
index 0000000..c31743e
--- /dev/null
+++ b/eruby-rails/ct.snippet
@@ -0,0 +1 @@
+<%= content_tag '${1:DIV}', ${2:content}${3:,options} -%>
|
scrooloose/snipmate-snippets | 5cb12da5eb75e2f25d38d60bc3df253caf904f5c | Added rest of Shoulda's activerecord helper methods. Renamed some snippet variables. | diff --git a/ruby-shoulda/sbt.snippet b/ruby-shoulda/sbt.snippet
index e8097f5..90d25c8 100644
--- a/ruby-shoulda/sbt.snippet
+++ b/ruby-shoulda/sbt.snippet
@@ -1 +1 @@
-should_belong_to :${1:field}
+should_belong_to :${1:association}
diff --git a/ruby-shoulda/selal.snippet b/ruby-shoulda/selal.snippet
new file mode 10... |
scrooloose/snipmate-snippets | 7b2c33943485494d9f895c4610606f7a7c290dd6 | Added snippets for some shoulda helper methods. | diff --git a/ruby-rspec/shm.snippet b/ruby-rspec/shdm.snippet
similarity index 100%
rename from ruby-rspec/shm.snippet
rename to ruby-rspec/shdm.snippet
diff --git a/ruby-shoulda/context.snippet b/ruby-shoulda/context.snippet
new file mode 100644
index 0000000..0e5a7fd
--- /dev/null
+++ b/ruby-shoulda/context.snippet
@... |
scrooloose/snipmate-snippets | 53968e73e04c93a51d525e544d77554ee331bde3 | more fixes to the method snippet | diff --git a/objc/m/method.snippet b/objc/m/method.snippet
index 3cf3aa6..9f7390e 100644
--- a/objc/m/method.snippet
+++ b/objc/m/method.snippet
@@ -1,4 +1,4 @@
- (${1:id}) ${2:method}
{${3}
- return nil;
+ ${4:return nil;}
}
|
scrooloose/snipmate-snippets | baa078d036a5fde40b71d35c26d04456c9a59f5e | fix bug by adding text in the snippet placeholder | diff --git a/eruby-rails/lt.snippet b/eruby-rails/lt.snippet
index be074d7..b6c9a5b 100644
--- a/eruby-rails/lt.snippet
+++ b/eruby-rails/lt.snippet
@@ -1 +1 @@
-<%= link_to "${1}", ${2:dest} %>
+<%= link_to "${1:name}", ${2:dest} %>
|
scrooloose/snipmate-snippets | e6f2fe3890355b6b82f0267c4c6b7e052ea1f602 | fix issue with if snippet | diff --git a/eruby/if.snippet b/eruby/if.snippet
index c5e8f22..cc6d87c 100644
--- a/eruby/if.snippet
+++ b/eruby/if.snippet
@@ -1,3 +1,3 @@
-<% if ${1} %>
+<% if ${1:condition} %>
${2}
<% end %>
|
scrooloose/snipmate-snippets | dc907ab72693d8bf8653363202cd36cf0a0689d5 | add before_filter | diff --git a/ruby-rails/bf.snippet b/ruby-rails/bf.snippet
new file mode 100644
index 0000000..ad25cc9
--- /dev/null
+++ b/ruby-rails/bf.snippet
@@ -0,0 +1 @@
+before_filter :${1:method}
|
scrooloose/snipmate-snippets | 5d08c0dbebe9165faec5772830958cd5ba302a38 | fix mccc snippet | diff --git a/ruby-rails/mccc.snippet b/ruby-rails/mccc.snippet
index d19d1fd..2915a37 100644
--- a/ruby-rails/mccc.snippet
+++ b/ruby-rails/mccc.snippet
@@ -1,2 +1 @@
t.column :${1:title}, :${2:string}
-mccc${3}
|
scrooloose/snipmate-snippets | 7c59b63b6c36fa70beaabc997d1e275a1906dd72 | changed m objc snippet | diff --git a/objc/M.snippet b/objc/m/class method.snippet
similarity index 100%
rename from objc/M.snippet
rename to objc/m/class method.snippet
diff --git a/objc/m/method.snippet b/objc/m/method.snippet
new file mode 100644
index 0000000..3cf3aa6
--- /dev/null
+++ b/objc/m/method.snippet
@@ -0,0 +1,4 @@
+- (${1:id}) $... |
scrooloose/snipmate-snippets | 7e71ed2b4f38cc104e4430192844d29e3ad11755 | Some formattings change | diff --git a/haml/cs.snippet b/haml/cs.snippet
index 598904e..8dfa8d4 100644
--- a/haml/cs.snippet
+++ b/haml/cs.snippet
@@ -1 +1 @@
-=collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+>
+=collection_select :${1:object}, :${2:method}, :${3:c... |
scrooloose/snipmate-snippets | fdc40c3a974c4b4d9fb874df2704563687bae660 | Fix for ffl | diff --git a/haml/ffl.snippet b/haml/ffl.snippet
index 38f90f7..ba820dd 100644
--- a/haml/ffl.snippet
+++ b/haml/ffl.snippet
@@ -1 +1 @@
-= f.label :<+attribute+><+, '<+attribute+>'+>
+= f.label :${1:attribute}
|
scrooloose/snipmate-snippets | e5c0b5c4eb6493c4c30181700aa24f8726b9dec8 | Translate snippets from eruby to haml | diff --git a/haml/if.snippet b/haml/if.snippet
new file mode 100644
index 0000000..9462ff5
--- /dev/null
+++ b/haml/if.snippet
@@ -0,0 +1,2 @@
+- if ${1}
+ ${2}
diff --git a/haml/ife.snippet b/haml/ife.snippet
new file mode 100644
index 0000000..fe0a5e8
--- /dev/null
+++ b/haml/ife.snippet
@@ -0,0 +1,4 @@
+- if ${1}
+... |
scrooloose/snipmate-snippets | ccf100d78a04fd1fc7d8c0c6479ce8a96fa5073f | Add haml snippets (translation from eruby-rails) | diff --git a/Rakefile b/Rakefile
index 6c705ca..a602b4d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,30 +1,31 @@
desc "Copy the snippets directories into ~/.vim/snippets"
task :deploy_local do
run "rm -rf ~/.vim/snippets"
run "mkdir ~/.vim/snippets"
run "cp -r _ ~/.vim/snippets/"
run "cp -r ant ~/.vim/snipp... |
scrooloose/snipmate-snippets | 78a4cf659de88a22a6eafdc618dfdc753b48042a | fix some rspec-ruby indenting | diff --git a/ruby-rspec/desrc.snippet b/ruby-rspec/desrc.snippet
index 8ff6dc7..a9c8ac2 100644
--- a/ruby-rspec/desrc.snippet
+++ b/ruby-rspec/desrc.snippet
@@ -1,3 +1,3 @@
describe ${1:controller}, "${2:GET|POST|PUT|DELETE} ${3:/some/path}${4}" do
- ${5}
+ ${5}
end
diff --git a/ruby-rspec/it.snippet b/ruby-rspec/it... |
scrooloose/snipmate-snippets | 5f0621fbc682a1ae36edba5e200ff39f62dcb2c0 | convert some ruby-rspec snippets from nerd snippets to snipmate | diff --git a/ruby-rspec/its.snippet b/ruby-rspec/its.snippet
index c22c0d4..963f404 100644
--- a/ruby-rspec/its.snippet
+++ b/ruby-rspec/its.snippet
@@ -1 +1 @@
-it "should <+do something+>"<+ do<++>+>
+it "should ${1:do something}" do${2}
diff --git a/ruby-rspec/shc.snippet b/ruby-rspec/shc.snippet
index 95cc1f4..1620... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.