ventana 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3141723af739ed9cadf77a14e0a8fe5d48b7f0d9
4
- data.tar.gz: 868d62c8112050f4d5d3bdb77d58e27187e0e927
3
+ metadata.gz: 1cc9ba7bdc9bb44ed8b7374b290a2643e024af2e
4
+ data.tar.gz: 1247de10f967bad71e21b89ef66dce4cfb4668a9
5
5
  SHA512:
6
- metadata.gz: aa8dfcac6a0972813039ef474e02928837d3046b583a13dea27e8516cab8428f7cad603ba572e3a0aff539bb1cef5fa95a6dcc0c2efad5b91de3d53cf1053894
7
- data.tar.gz: ca602a803454aeea263ab037fe7305ebc632bf71e02f77f008f788188f0edf205a929896c488c2bd29558d1718bd3d4c5e524472d92e281058981249c0cfdbc5
6
+ metadata.gz: c94b23a28ed85007dd1dc073ba6033c330a9c5654868099f40181f603e619761d18692ff31e6555b67711417166ebf738933f0a101ae45f715c0677f8dd3cc09
7
+ data.tar.gz: 2e2ce8348587931a8b90214eab2bb9e5b1ba03c3a72e9c7dc142598aaebe1583aea24b3be865fed012ade23620a08afbcf4cfb83f6c5500b7707901929938d42
data/.travis.yml ADDED
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ cache: bundler
3
+ bundler_args: --without docs
4
+ rvm:
5
+ - 2.1.0
6
+ - 2.0.0
7
+ - 1.9.3
8
+ - jruby-19mode
9
+ addons:
10
+ code_climate:
11
+ repo_token: 77e63028c53dc5df71ce553c8d9a82538c55e0d18b8a94c0619dc89f957c6417
12
+
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in ventana.gemspec
4
4
  gemspec
5
+
6
+ gem "codeclimate-test-reporter", group: :test, require: nil
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Ventana
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/ventana.png)](https://rubygems.org/gems/ventana)
4
+ [![Build Status](https://travis-ci.org/sagmor/ventana.svg)](https://travis-ci.org/sagmor/ventana)
5
+ [![Coverage](https://codeclimate.com/github/sagmor/ventana/coverage.png)](https://codeclimate.com/github/sagmor/ventana)
6
+ [![Code Climate](https://codeclimate.com/github/sagmor/ventana.png)](https://codeclimate.com/github/sagmor/ventana)
7
+
3
8
  Ventana takes two dates and gives you a nice string with the window between those two dates
4
9
 
5
10
  ## Installation
@@ -81,7 +81,7 @@ def Ventana(from,to,options={})
81
81
  from_time: Ventana.time_format(from),
82
82
  to_time: Ventana.time_format(to),
83
83
  scope: :ventana,
84
- })
84
+ }) unless options[:only] == :date
85
85
 
86
- [date, time].join(' ')
86
+ [date, time].compact.join(' ')
87
87
  end
@@ -1,3 +1,3 @@
1
1
  module Ventana
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
@@ -5,7 +5,7 @@ require 'time'
5
5
  # This test case runs all the examples from the examples.csv file
6
6
  class ExampleTest < TestCase
7
7
 
8
- CSV.foreach(File.expand_path('../examples.csv',__FILE__),{
8
+ CSV.read(File.expand_path('../examples.csv',__FILE__),{
9
9
  headers: true
10
10
  }).each_with_index do |row, index|
11
11
  define_method "test_example_#{index + 1}" do
data/test/test_helper.rb CHANGED
@@ -1,7 +1,13 @@
1
1
  require 'bundler/setup'
2
- require 'minitest/autorun'
2
+ require 'test/unit'
3
+
4
+ require "codeclimate-test-reporter"
5
+ CodeClimate::TestReporter.start
3
6
 
4
7
  require 'ventana'
5
8
 
6
- class TestCase < Minitest::Unit::TestCase
9
+ # Remove deprecation warning
10
+ I18n.enforce_available_locales = true
11
+
12
+ class TestCase < Test::Unit::TestCase
7
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ventana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seba Gamboa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - ".gitignore"
64
+ - ".travis.yml"
64
65
  - Gemfile
65
66
  - LICENSE.txt
66
67
  - README.md