README.md in sequel-fixture-2.0.0 vs README.md in sequel-fixture-2.0.1

- old
+ new

@@ -1,8 +1,8 @@ Sequel::Fixture =============== -[![Build Status](https://secure.travis-ci.org/Fetcher/sequel-fixture.png)](http://travis-ci.org/Fetcher/sequel-fixture) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/Fetcher/sequel-fixture) +[![Build Status](https://secure.travis-ci.org/whitepages/sequel-fixture.png)](http://travis-ci.org/whitepages/sequel-fixture) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/whitepages/sequel-fixture) Just like Rails fixtures, but for Sequel. This version includes support for defining the fixture schemas and uses sqlite3 adapter to inject data into memory. @@ -67,13 +67,15 @@ Sequel::Fixture.path = File.join(File.dirname(__FILE__), "fixtures") fixture = Sequel::Fixture.new :simple, DB # Will load all the data in the fixture into the database fixture.users # == fixture[:users] -fixture.users.john.name # => "John" +fixture.users[0].name # => "John" # The YAML files are parsed into a SymbolMatrix # http://github.com/Fetcher/symbolmatrix + # Each table contains an array of Rows. + # Within each row the columns can be accessed by name (.name) fixture.rollback # returns users and messages to pristine status ('TRUNCATE') fixture = Sequel::Fixture.new :simple, DB, false # The `false` flag prevent the constructor to automatically push @@ -112,10 +114,10 @@ bundle ## License -Copyright (C) 2012 Fetcher +Copyright (C) 2012 Whitepages This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.