ventana 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +12 -0
- data/Gemfile +2 -0
- data/README.md +5 -0
- data/lib/ventana/method.rb +2 -2
- data/lib/ventana/version.rb +1 -1
- data/test/examples_test.rb +1 -1
- data/test/test_helper.rb +8 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1cc9ba7bdc9bb44ed8b7374b290a2643e024af2e
|
|
4
|
+
data.tar.gz: 1247de10f967bad71e21b89ef66dce4cfb4668a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c94b23a28ed85007dd1dc073ba6033c330a9c5654868099f40181f603e619761d18692ff31e6555b67711417166ebf738933f0a101ae45f715c0677f8dd3cc09
|
|
7
|
+
data.tar.gz: 2e2ce8348587931a8b90214eab2bb9e5b1ba03c3a72e9c7dc142598aaebe1583aea24b3be865fed012ade23620a08afbcf4cfb83f6c5500b7707901929938d42
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Ventana
|
|
2
2
|
|
|
3
|
+
[](https://rubygems.org/gems/ventana)
|
|
4
|
+
[](https://travis-ci.org/sagmor/ventana)
|
|
5
|
+
[](https://codeclimate.com/github/sagmor/ventana)
|
|
6
|
+
[](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
|
data/lib/ventana/method.rb
CHANGED
data/lib/ventana/version.rb
CHANGED
data/test/examples_test.rb
CHANGED
|
@@ -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.
|
|
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 '
|
|
2
|
+
require 'test/unit'
|
|
3
|
+
|
|
4
|
+
require "codeclimate-test-reporter"
|
|
5
|
+
CodeClimate::TestReporter.start
|
|
3
6
|
|
|
4
7
|
require 'ventana'
|
|
5
8
|
|
|
6
|
-
|
|
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.
|
|
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-
|
|
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
|