Skip to content

Commit

Permalink
0.95
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jul 17, 2014
1 parent 6642b2e commit d2f0d6c
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 46 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# DO NOT EDIT
#
# This .travis.yml file generated by Zilla::Dist. To upgrade it, run:
#
# > make update
#

language: perl

perl:
Expand All @@ -24,3 +31,8 @@ script:
after_success:
- cover -report coveralls


# Hack to not run on tag pushes:
branches:
except:
- /^v?[0-9]+\.[0-9]+/
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
version: 0.95
date: Thu Jul 17 00:00:34 PDT 2014
changes:
- Move doc to Swim
- Fix Meta and add Contributing file
---
version: 0.94
date: Sat Jun 14 10:32:08 PDT 2014
changes:
Expand Down
55 changes: 55 additions & 0 deletions Contributing
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Contributing
============

The "YAML-Old" Project needs your help!

Please consider being a contributor. This file contains instructions that will
help you be an effective contributor to the Project.

GitHub
------

The code for this Project is hosted at GitHub. The repository is:

https://github.com/ingydotnet/yaml-pm

You can get the code with this command:

git clone https://github.com/ingydotnet/yaml-pm

If you've found a bug or a missing feature that you would like the author to
know about, report it here:

https://github.com/ingydotnet/yaml-pm/issues

or fix it and submit a pull request here:

https://github.com/ingydotnet/yaml-pm/pulls

See these links for help on interacting with GitHub:

* https://help.github.com/
* https://help.github.com/articles/creating-a-pull-request

Zilla::Dist
-----------

This Project uses Zilla::Dist to prepare it for publishing to CPAN. Read:

https://metacpan.org/pod/distribution/Zilla-Dist/lib/Zilla/Dist/Contributing.pod

for up-to-date instructions on what contributors like yourself need to know to
use it.

IRC
---

YAML-Old has an IRC channel where you can find real people to help you:

irc.freenode.net#yaml

Join the channel. Join the team!


Thanks in advance, Ingy döt Net

90 changes: 50 additions & 40 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@

.PHONY: cpan test

ifeq (,$(shell which zild))
$(error "Error: 'zild' command not found. Please install Zilla::Dist from CPAN")
ifneq (,$(shell which zild))
NAME := $(shell zild meta name)
VERSION := $(shell zild meta version)
RELEASE_BRANCH := $(shell zild meta branch)
else
NAME := No-Name
VERSION := 0
RELEASE_BRANCH := master
endif

NAME := $(shell zild meta name)
VERSION := $(shell zild meta version)
DISTDIR := $(NAME)-$(VERSION)
DIST := $(DISTDIR).tar.gz
NAMEPATH := $(subst -,/,$(NAME))
SUCCESS := "$(DIST) Released!!!"

default: help

Expand All @@ -26,6 +31,7 @@ help:
@echo ' make test - Run the repo tests'
@echo ' make install - Install the repo'
@echo ' make update - Update generated files'
@echo ' make release - Release the dist to CPAN'
@echo ''
@echo ' make cpan - Make cpan/ dir with dist.ini'
@echo ' make cpanshell - Open new shell into new cpan/'
Expand All @@ -36,24 +42,40 @@ help:
@echo ' make distshell - Open new shell into new distdir'
@echo ' make disttest - Run the dist tests'
@echo ''
@echo ' make publish - Publish the dist to CPAN'
@echo ' make preflight - Dryrun of publish'
@echo ''
@echo ' make upgrade - Upgrade the build system (Makefile)'
@echo ' make readme - Make the ReadMe.pod file'
@echo ' make travis - Make a travis.yml file'
@echo ' make upgrade - Upgrade the build system'
@echo ''
@echo ' make clean - Clean up build files'
@echo ' make help - Show this help'
@echo ''

test:
ifeq ($(wildcard pkg/no-test),)
prove -lv test
else
@echo "Testing not available. Use 'disttest' instead."
endif

install: distdir
(cd $(DISTDIR); perl Makefile.PL; make install)
make clean

update: makefile readme travis
update: makefile
make readme contrib travis version

release: clean update check-release test disttest
make dist
[ -n "$$(git status -s)" ] && git commit -am '$(VERSION)'
cpan-upload $(DIST)
git push
git tag $(VERSION)
git push --tag
make clean
git status
@echo
@[ -n "$$(which cowsay)" ] && cowsay "$(SUCCESS)" || echo "$(SUCCESS)"
@echo

cpan:
zild-make-cpan
Expand All @@ -63,7 +85,11 @@ cpanshell: cpan
make clean

cpantest: cpan
ifeq ($(wildcard pkg/no-test),)
(cd cpan; prove -lv t) && make clean
else
@echo "Testing not available. Use 'disttest' instead."
endif

dist: clean cpan
(cd cpan; dzil build)
Expand All @@ -83,51 +109,35 @@ distshell: distdir
disttest: cpan
(cd cpan; dzil test) && make clean

publish release: update test check-release disttest
make dist
cpan-upload $(DIST)
git push
git tag $(VERSION)
git push --tag
make clean
git status

preflight: update test check-release disttest
make dist
@echo cpan-upload $(DIST)
@echo git push
@echo git tag $(VERSION)
@echo git push --tag
make clean
git status
upgrade:
cp `zild sharedir`/Makefile ./

readme:
kwim --pod-cpan doc/$(NAMEPATH).kwim > ReadMe.pod
swim --pod-cpan doc/$(NAMEPATH).swim > ReadMe.pod

travis:
zild-make-travis
contrib:
zild-render-template Contributing

upgrade:
cp `zild sharedir`/Makefile ./
travis:
zild-render-template travis.yml .travis.yml

clean purge:
rm -fr cpan .build $(DIST) $(DISTDIR)

#------------------------------------------------------------------------------
# Non-pulic-facing targets:
#------------------------------------------------------------------------------
check-release:
zild-check-release
RELEASE_BRANCH=$(RELEASE_BRANCH) zild-check-release

# We don't want to update the Makefile in Zilla::Dist since it is the real
# source, and would be reverting to whatever was installed.
ifeq (Zilla-Dist,$(NAME))
makefile:
@echo Skip 'make upgrade'
else
makefile:
cp Makefile /tmp/
make upgrade
@if [ -n "`diff Makefile /tmp/Makefile`" ]; then \
echo "Makefile updated. Try again"; \
exit 1; \
fi
rm /tmp/Makefile
makefile: upgrade
endif

version:
zild-version-update
8 changes: 4 additions & 4 deletions Meta
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=meta: 0.0.1

name: YAML-Old
version: 0.94
version: 0.95
abstract: Old YAML.pm Legacy Code
homepage: http://yaml.org

Expand All @@ -19,9 +19,9 @@ requires:
perl: 5.8.1

devel:
git: git@github.org/ingydotnet/yaml-pm
irc: irc.freenode.net/yaml
bug: https://github.com/ingydotnet/yaml-pm/issues/
git: https://github.com/ingydotnet/yaml-pm
bug: https://github.com/ingydotnet/yaml-pm/issues
irc: irc.freenode.net#yaml

=cpan:
include_testbase: true
Expand Down
4 changes: 2 additions & 2 deletions ReadMe.pod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=pod

=for comment
DO NOT EDIT. This Pod was generated by Kwim.
See http://github.com/ingydotnet/kwim-pm#readme
DO NOT EDIT. This Pod was generated by Swim.
See http://github.com/ingydotnet/swim-pm#readme

=encoding utf8

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions lib/YAML/Old.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use 5.008001;
package YAML::Old;
our $VERSION = '0.95';

use YAML::Old::Mo;

Expand Down

0 comments on commit d2f0d6c

Please sign in to comment.