quando 0.0.1 → 0.0.2

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
  SHA256:
3
- metadata.gz: 1ac311f1942017666bffa27bcfded9b292d59b1b80733e9eb19cf275f24ae4be
4
- data.tar.gz: 3c1e52f8eeffba30e192aa38732055daced228721f0ae81f935314aed80cd2c3
3
+ metadata.gz: 8e5750a6507d6b1f1a1abdaba34591014a1288d24720b6ff2d24299ce2fdb5e0
4
+ data.tar.gz: efc1b8ae6a9c67e55f6d941b5efbf112e869a5584060ed051f8959a0474d76fb
5
5
  SHA512:
6
- metadata.gz: 58126069e12f3446a1f555fe2cdcc68229901fd9f8a05b0b58c1bc8f35187991a6c6d602b5028522d7e6c841afd19868cc326f5934b273a6fa91154c80427eab
7
- data.tar.gz: 0d265149ce2f56b86281417bb312fa251ff2bee9f2ef16ea50ef44492e5a5a79e04c897d5e0b0cc4f4f4adaaab8ade5aa90af2142ab78b01c3b5533dcfdddd50
6
+ metadata.gz: 59173a1541b71b270872725d7b2a83a30218a6cc5d30b32265389f6443d19e00a86bb3fdad51fe4ef65333ffce05288e16f34c9cfdd71dad6f4a4ab1aa1dd5c2
7
+ data.tar.gz: f9bb328ad18cec91a28119b3595a785d50774c94bcf3bc5bdfa41fd1fbce97d58d14e5c804d71c9102f59352edd0638d6533f3fc54acbff26b7ea60a8ac215d3
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  .DS_Store
2
+ pkg
2
3
  .idea/
3
4
  docker/*
4
5
  docker-compose.yml
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- quando (0.0.1)
4
+ quando (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -38,4 +38,4 @@ DEPENDENCIES
38
38
  rspec (~> 3.0)
39
39
 
40
40
  BUNDLED WITH
41
- 1.16.1
41
+ 1.16.5
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Quando
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/quando.svg)](https://badge.fury.io/rb/quando)
3
4
  [![Build Status](https://semaphoreci.com/api/v1/kinkou/quando/branches/master/shields_badge.svg)](https://semaphoreci.com/kinkou/quando)
4
5
  [![Maintainability](https://api.codeclimate.com/v1/badges/b0653fc45ec54c23e05c/maintainability)](https://codeclimate.com/github/kinkou/quando/maintainability)
5
6
 
@@ -18,8 +19,8 @@ Quando.configure do |c|
18
19
  c.unimonth!
19
20
 
20
21
  c.formats = [
21
- /#{c.month_num} #{c.dlm} #{c.month_txt} #{c.dlm} #{c.year}/xi,
22
- /#{c.year} #{c.dlm} #{c.month_txt} #{c.dlm} #{c.month_num}/xi,
22
+ /#{c.day} #{c.dlm} #{c.month_txt} #{c.dlm} #{c.year}/xi,
23
+ /#{c.year} #{c.dlm} #{c.month_txt} #{c.dlm} #{c.day}/xi,
23
24
  ]
24
25
  end
25
26
 
@@ -28,7 +28,7 @@ module Quando
28
28
 
29
29
  @current_format = rx
30
30
  year, month, day = detect_year, detect_month, detect_day
31
- next unless (year || month || day)
31
+ next unless (year && month && day)
32
32
 
33
33
  return Date.new(year, month, day)
34
34
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Quando
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quando
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Konotopov