jekyll-timeago 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: 9d4b2b6bddb90157fb80c3c7fecd1154856803d8
4
- data.tar.gz: 430dbea158d988267bc00b3ea9c5c5708e030355
3
+ metadata.gz: 534bfa373797db655ca8c1c99ee7fd5d3384aab7
4
+ data.tar.gz: bcd74e33c76fe04d39b4835ef1ade56017143767
5
5
  SHA512:
6
- metadata.gz: fb56e09b24cbf51da1efab5f62d55f95149093e9d2e5efddd30906db6be23a6e69c7062d715eb0e21a43a6a1dc9972815827594d2f46f231c68690a53f13955f
7
- data.tar.gz: 144e8ca11755ec40da5ac4ce3e2dfd83a071fe569247f0c3fca6a0153dead5cdda6c0c5f5bfc56fccda6f46d2979242f50bdbf79afedfc75e5601c81ddf9cfce
6
+ metadata.gz: a6e3faef952bf144f33841300603ae96d7be487072b49424bdd09468c65016e3985d9b34f38f57f10d5eadb898ff0083b5e85b4416d421d690b363c0a3dff97d
7
+ data.tar.gz: 848257b166e211eafa2e7637071f48c7630a2fda9c9f92e74a705cd21c4cb9836baf7412e2325a2f0d9d5c9eb8c317b3585f67fbb2783b50396cc73957ae81c6
data/.travis.yml CHANGED
@@ -5,6 +5,7 @@ cache: bundler
5
5
  sudo: false
6
6
 
7
7
  rvm:
8
+ - 2.3.1
8
9
  - 2.2
9
10
  - 2.1
10
11
  - 2.0
data/Appraisals CHANGED
@@ -8,6 +8,6 @@ appraise 'jekyll-v2' do
8
8
  end
9
9
 
10
10
  appraise 'jekyll-v3' do
11
- gem 'jekyll', '~> 3.0'
11
+ gem 'jekyll', '~> 3.1'
12
12
  gem 'listen', '< 3.1.0' if RUBY_VERSION <= "2.2"
13
13
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "jekyll", "~> 3.0"
5
+ gem "jekyll", "~> 3.1"
6
6
  gem "listen", "< 3.1.0"
7
7
 
8
8
  gemspec :path => "../"
@@ -5,8 +5,8 @@ Gem::Specification.new do |spec|
5
5
  spec.version = Jekyll::Timeago::VERSION
6
6
  spec.authors = ["markets"]
7
7
  spec.email = ["srmarc.ai@gmail.com"]
8
- spec.description = "Custom timeago filter for Jekyll (Liquid Filter and Tag). Localization and futures supported."
9
- spec.summary = "Custom timeago filter for Jekyll (Liquid Filter and Tag). Localization and futures supported."
8
+ spec.description = "A Ruby library to compute distance of dates in words. Originally built for Jekyll, as a Liquid extension. It also supports localization and futures."
9
+ spec.summary = "A date helper to compute distance of dates in words."
10
10
  spec.homepage = "https://github.com/markets/jekyll-timeago"
11
11
  spec.license = "MIT"
12
12
 
@@ -48,7 +48,7 @@ module Jekyll
48
48
  end
49
49
 
50
50
  def validate_depth!(depth)
51
- (1..MAX_DEPTH_LEVEL).include?(depth) or raise("Invalid depth level: #{depth.inspect}")
51
+ (1..MAX_DEPTH_LEVEL).include?(depth) or raise(ArgumentError, "Invalid depth level: #{depth.inspect}")
52
52
  depth
53
53
  end
54
54
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Timeago
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
@@ -39,7 +39,7 @@ describe Jekyll::Timeago do
39
39
  end
40
40
 
41
41
  it 'does not accept invalid depth' do
42
- expect { timeago(today, sample_date, "depth" => 5) }.to raise_error
42
+ expect { timeago(today, sample_date, "depth" => 5) }.to raise_error(ArgumentError)
43
43
  end
44
44
 
45
45
  it 'accepts a hash (options) as a second parameter (implicit "to")' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-timeago
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
  - markets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-23 00:00:00.000000000 Z
11
+ date: 2016-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -94,8 +94,8 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- description: Custom timeago filter for Jekyll (Liquid Filter and Tag). Localization
98
- and futures supported.
97
+ description: A Ruby library to compute distance of dates in words. Originally built
98
+ for Jekyll, as a Liquid extension. It also supports localization and futures.
99
99
  email:
100
100
  - srmarc.ai@gmail.com
101
101
  executables:
@@ -150,8 +150,7 @@ rubyforge_project:
150
150
  rubygems_version: 2.2.2
151
151
  signing_key:
152
152
  specification_version: 4
153
- summary: Custom timeago filter for Jekyll (Liquid Filter and Tag). Localization and
154
- futures supported.
153
+ summary: A date helper to compute distance of dates in words.
155
154
  test_files:
156
155
  - spec/jekyll-timeago_spec.rb
157
156
  - spec/source/_config.yml