Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
Repository maintenance.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Feb 12, 2014
1 parent 42de3c6 commit 7524ece
Show file tree
Hide file tree
Showing 55 changed files with 3,174 additions and 2,646 deletions.
2 changes: 1 addition & 1 deletion .travis.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Kw1FwTaVR50drtyzC662FW2xCJppr3+6N74gz5+YLoM5SwjfDIc0JM7d3uYKhNO5207Qr2FG1r22ECW9sRhGnwqAbwOfO7zXjZOfLXrWzBBmSXaSKZN66dAJysD6JrBbWBk7q2pLKya6us+Litls3ztiLEtkb6/tsmHK1C/dIeA=
SiOC21wKzpCTYuB45JqEwkbghDCKBGx5q3vlqWKs8n8T421eXrMSQl+AMLRsk2x4btjfktq0I2/6zVpqW4jMofkNvukvSP2BPPppojG+19u/+28+noFeeu0n3CLaxI9vvWlUQUXyr5ry8QG+/SlRfoPlLO68LftHYrlmBUFSSeU=
45 changes: 28 additions & 17 deletions .travis.install
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
#!/usr/bin/env php
<?php
/**
* This script is executed before composer dependencies are installed,
* and as such must be included in each project as part of the skeleton.
*/
if ($token = getenv('ARCHER_TOKEN')) {
$config = array(
'config' => array(
'github-oauth' => array('github.com' => $token)
)
);
// Update composer to the latest version ...
passthru('composer self-update --no-interaction');

$file = '~/.composer/config.json';
$dir = dirname($file);
if (!is_dir($dir)) {
mkdir($dir, 0755, true);
}
file_put_contents($file, json_encode($config));
// Build a composer config that uses the GitHub OAuth token if it is available ...
$config = array(
'config' => array(
'notify-on-install' => false
)
);

if ($token = getenv('ARCHER_TOKEN')) {
$config['config']['github-oauth'] = array(
'github.com' => $token
);
$composerFlags = '--prefer-dist';
} else {
$composerFlags = '--prefer-source';
}

passthru('composer install --dev --no-progress --no-interaction --ansi ' . $composerFlags);
$file = '~/.composer/config.json';
$dir = dirname($file);
if (!is_dir($dir)) {
mkdir($dir, 0755, true);
}
file_put_contents($file, json_encode($config));

// Display some information about GitHub rate limiting ...
if ($token) {
passthru('curl -s -i -H "Authorization: token $ARCHER_TOKEN" https://api.github.com | grep "^X-RateLimit"');
}

// Install composer dependencies ...
$exitCode = 0;
passthru('composer install --dev --no-progress --no-interaction --ansi ' . $composerFlags, $exitCode);
exit($exitCode);
27 changes: 8 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
#
# This is the default Travis CI configuration.
#
# It uses a GitHub OAuth token when fetching composer dependencies
# to avoid IP-based API throttling.
#
# It also allows publication of artifacts via an additional build.
#
language: php

php:
- 5.3
- 5.4
- 5.5
php: ["5.3", "5.4", "5.5", "hhvm"]

matrix:
allow_failures:
- php: hhvm

env:
global:
- ARCHER_PUBLISH_VERSION=5.4
- secure: "Kw1FwTaVR50drtyzC662FW2xCJppr3+6N74gz5+YLoM5SwjfDIc0JM7d3uYKhNO5207Qr2FG1r22ECW9sRhGnwqAbwOfO7zXjZOfLXrWzBBmSXaSKZN66dAJysD6JrBbWBk7q2pLKya6us+Litls3ztiLEtkb6/tsmHK1C/dIeA="
- ARCHER_PUBLISH_VERSION=5.5
- secure: "SiOC21wKzpCTYuB45JqEwkbghDCKBGx5q3vlqWKs8n8T421eXrMSQl+AMLRsk2x4btjfktq0I2/6zVpqW4jMofkNvukvSP2BPPppojG+19u/+28+noFeeu0n3CLaxI9vvWlUQUXyr5ry8QG+/SlRfoPlLO68LftHYrlmBUFSSeU="

install:
- ./.travis.install

script:
- ./vendor/bin/archer travis:build

matrix:
# PHP 5.5 is still in alpha, so ignore build failures.
allow_failures:
- php: 5.5
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Fixie changelog

## 0.1.0 (unreleased)

- **[NEW]** Initial release.
25 changes: 14 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,27 @@ changes.

### Code style

All PHP code must adhere to the
[PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)
standards.
All PHP code must adhere to the [PSR-2] standards.

### Branching and pull requests

As a guideline, please follow this process:

1. [Fork the repository](https://help.github.com/articles/fork-a-repo).
1. [Fork the repository].
2. Create a topic branch for the change:
* New features should branch from **develop**.
* Bug fixes to existing versions should branch from **master**.
* Please ensure the branch is clearly labelled as a feature or fix.
- New features should branch from **develop**.
- Bug fixes to existing versions should branch from **master**.
- Please ensure the branch is clearly labelled as a feature or fix.
3. Make the relevant changes.
4. [Squash](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages)
commits if necessary.
4. [Squash] commits if necessary.
4. Submit a pull request to the **develop** branch.

Please note this is a general guideline only. For more information on the
branching structure please see the
[git-flow cheatsheet](http://danielkummer.github.com/git-flow-cheatsheet/).
branching structure please see the [git-flow cheatsheet].

<!-- References -->

[Fork the repository](https://help.github.com/articles/fork-a-repo)
[git-flow cheatsheet](http://danielkummer.github.com/git-flow-cheatsheet/)
[PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)
[Squash](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2013 Erin Millard
Copyright © 2014 Erin Millard

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
45 changes: 29 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@

*YAML-based data fixtures.*

[![Build Status]](http://travis-ci.org/eloquent/fixie)
[![Test Coverage]](http://eloquent-software.com/fixie/artifacts/tests/coverage/)
[![There is no current stable version][version-image]][Semantic versioning]
[![Current build status image][build-image]][Current build status]
[![Current coverage status image][coverage-image]][Current coverage status]

## Installation
## Installation and documentation

Available as [Composer](http://getcomposer.org/) package
[eloquent/fixie](https://packagist.org/packages/eloquent/fixie).
- Available as [Composer] package [eloquent/dumpling].
- [API documentation] available.

## What is Fixie?

Fixie is a format for storing tabular data. It blends the strengths of
[YAML](http://yaml.org/) and [CSV](http://en.wikipedia.org/wiki/Comma-separated_values)
to produce a syntax that is well suited for both human and machine readers.
Fixie is a format for storing tabular data. It blends the strengths of [YAML]
and [CSV] to produce a syntax that is well suited for both human and machine
readers.

The Fixie syntax is actually a subset of [YAML 1.2](http://www.yaml.org/spec/1.2/spec.html),
meaning that any given example of Fixie syntax is also perfectly valid YAML.
Unlike free-form YAML however, all Fixie variants can be read row-by-row, which
allows for minimal memory usage when reading large amounts of data.
The Fixie syntax is actually a subset of [YAML 1.2], meaning that any given
example of Fixie syntax is also perfectly valid YAML. Unlike free-form YAML
however, all Fixie variants can be read row-by-row, which allows for minimal
memory usage when reading large amounts of data.

## Output styles

Expand Down Expand Up @@ -161,7 +162,7 @@ as other options. If human readability is not an issue, use this variant.
#### AlignedExpandedFixtureWriteHandle

Writes rows in the 'expanded' style, and aligns row values. A versatile variant
produces a much more vertically elongated output. Good for both human
that produces a much more vertically elongated output. Good for both human
readability and memory usage.

#### ExpandedFixtureWriteHandle
Expand Down Expand Up @@ -274,6 +275,18 @@ $handle = $reader->openStream($stream);
- Very human-readable when formatted correctly.
- Good string encoding support.

<!-- references -->
[Build Status]: https://raw.github.com/eloquent/fixie/gh-pages/artifacts/images/icecave/regular/build-status.png
[Test Coverage]: https://raw.github.com/eloquent/fixie/gh-pages/artifacts/images/icecave/regular/coverage.png
<!-- References -->

[CSV]: http://en.wikipedia.org/wiki/Comma-separated_values
[YAML 1.2]: http://www.yaml.org/spec/1.2/spec.html
[YAML]: http://yaml.org/

[API documentation]: http://lqnt.co/dumpling/artifacts/documentation/api/
[Composer]: http://getcomposer.org/
[build-image]: http://img.shields.io/travis/eloquent/dumpling/develop.svg "Current build status for the develop branch"
[Current build status]: https://travis-ci.org/eloquent/dumpling
[coverage-image]: http://img.shields.io/coveralls/eloquent/dumpling/develop.svg "Current test coverage for the develop branch"
[Current coverage status]: https://coveralls.io/r/eloquent/dumpling
[eloquent/dumpling]: https://packagist.org/packages/eloquent/dumpling
[Semantic versioning]: http://semver.org/
[version-image]: http://img.shields.io/:semver-0.0.0-red.svg "This project uses semantic versioning"
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eloquent/fixie",
"description": "YAML-based data fixtures.",
"keywords": ["yaml","data","fixture","csv","file"],
"keywords": ["yaml", "data", "fixture", "csv", "file"],
"homepage": "https://github.com/eloquent/fixie",
"license": "MIT",
"authors": [
Expand All @@ -12,17 +12,17 @@
}
],
"require": {
"php": ">=5.3.0",
"php": ">=5.3",
"icecave/isolator": "~2",
"symfony/yaml": "~2"
},
"require-dev": {
"eloquent/liberator": "~1",
"icecave/archer": "~0.2"
"eloquent/liberator": "~2",
"icecave/archer": "~1"
},
"autoload": {
"psr-0": {
"Eloquent\\Fixie": "src"
"psr-4": {
"Eloquent\\Fixie\\": "src"
}
}
}
Loading

0 comments on commit 7524ece

Please sign in to comment.