From a64cc6a1c2d8beb1f4bcd6adc5b66694fb0e6c66 Mon Sep 17 00:00:00 2001 From: masa21kik Date: Fri, 30 May 2014 23:11:20 +0900 Subject: [PATCH 1/2] remove '$' from fixture because YAML output changes between ruby 2.0 and 2.1 --- spec/fixtures/books.csv | 10 +++++----- spec/fixtures/books.json | 10 +++++----- spec/fixtures/books.ltsv | 10 +++++----- spec/fixtures/books.yaml | 10 +++++----- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/spec/fixtures/books.csv b/spec/fixtures/books.csv index 5a23359..c6ce712 100644 --- a/spec/fixtures/books.csv +++ b/spec/fixtures/books.csv @@ -1,6 +1,6 @@ Title,Author,Price -The Fault in Our Stars,John Green,$12.99 -City of Heavenly Fire (The Mortal Instruments),Cassandra Clare,$24.99 -"Oh, The Places You'll Go!",Dr. Seuss,$17.99 -Capital in the Twenty-First Century,Thomas Piketty,$39.95 -Skin Game (Dresden Files),Jim Butcher,$27.95 +The Fault in Our Stars,John Green,12.99 +City of Heavenly Fire (The Mortal Instruments),Cassandra Clare,24.99 +"Oh, The Places You'll Go!",Dr. Seuss,17.99 +Capital in the Twenty-First Century,Thomas Piketty,39.95 +Skin Game (Dresden Files),Jim Butcher,27.95 diff --git a/spec/fixtures/books.json b/spec/fixtures/books.json index c46dd91..ab69de3 100644 --- a/spec/fixtures/books.json +++ b/spec/fixtures/books.json @@ -1,5 +1,5 @@ -{"Title":"The Fault in Our Stars","Author":"John Green","Price":"$12.99"} -{"Title":"City of Heavenly Fire (The Mortal Instruments)","Author":"Cassandra Clare","Price":"$24.99"} -{"Title":"Oh, The Places You'll Go!","Author":"Dr. Seuss","Price":"$17.99"} -{"Title":"Capital in the Twenty-First Century","Author":"Thomas Piketty","Price":"$39.95"} -{"Title":"Skin Game (Dresden Files)","Author":"Jim Butcher","Price":"$27.95"} +{"Title":"The Fault in Our Stars","Author":"John Green","Price":"12.99"} +{"Title":"City of Heavenly Fire (The Mortal Instruments)","Author":"Cassandra Clare","Price":"24.99"} +{"Title":"Oh, The Places You'll Go!","Author":"Dr. Seuss","Price":"17.99"} +{"Title":"Capital in the Twenty-First Century","Author":"Thomas Piketty","Price":"39.95"} +{"Title":"Skin Game (Dresden Files)","Author":"Jim Butcher","Price":"27.95"} diff --git a/spec/fixtures/books.ltsv b/spec/fixtures/books.ltsv index da3e871..a20fa2d 100644 --- a/spec/fixtures/books.ltsv +++ b/spec/fixtures/books.ltsv @@ -1,5 +1,5 @@ -Title:The Fault in Our Stars Author:John Green Price:$12.99 -Title:City of Heavenly Fire (The Mortal Instruments) Author:Cassandra Clare Price:$24.99 -Title:Oh, The Places You'll Go! Author:Dr. Seuss Price:$17.99 -Title:Capital in the Twenty-First Century Author:Thomas Piketty Price:$39.95 -Title:Skin Game (Dresden Files) Author:Jim Butcher Price:$27.95 +Title:The Fault in Our Stars Author:John Green Price:12.99 +Title:City of Heavenly Fire (The Mortal Instruments) Author:Cassandra Clare Price:24.99 +Title:Oh, The Places You'll Go! Author:Dr. Seuss Price:17.99 +Title:Capital in the Twenty-First Century Author:Thomas Piketty Price:39.95 +Title:Skin Game (Dresden Files) Author:Jim Butcher Price:27.95 diff --git a/spec/fixtures/books.yaml b/spec/fixtures/books.yaml index d3a3a00..e699d7e 100644 --- a/spec/fixtures/books.yaml +++ b/spec/fixtures/books.yaml @@ -1,16 +1,16 @@ --- - Title: The Fault in Our Stars Author: John Green - Price: "$12.99" + Price: '12.99' - Title: City of Heavenly Fire (The Mortal Instruments) Author: Cassandra Clare - Price: "$24.99" + Price: '24.99' - Title: Oh, The Places You'll Go! Author: Dr. Seuss - Price: "$17.99" + Price: '17.99' - Title: Capital in the Twenty-First Century Author: Thomas Piketty - Price: "$39.95" + Price: '39.95' - Title: Skin Game (Dresden Files) Author: Jim Butcher - Price: "$27.95" + Price: '27.95' From 9a273f86edeafbbfeb37a2e91143fbdd6a6c28d4 Mon Sep 17 00:00:00 2001 From: masa21kik Date: Fri, 30 May 2014 23:13:24 +0900 Subject: [PATCH 2/2] add badges --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 007ce71..f0305b9 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ CSV converter to JSON, YAML, LTSV +[![Build Status](https://travis-ci.org/masa21kik/csvconv.png?branch=master)](https://travis-ci.org/masa21kik/csvconv) +[![Coverage Status](https://coveralls.io/repos/masa21kik/csvconv/badge.png)](https://coveralls.io/r/masa21kik/csvconv) +[![Code Climate](https://codeclimate.com/github/masa21kik/csvconv.png?branch=master)](https://codeclimate.com/github/masa21kik/csvconv) + ## Installation Add this line to your application's Gemfile: