jekyll-jalali 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-jalali.rb +4 -2
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a8945154aad4c11b4e28e44b622ab0aa22a2866
4
- data.tar.gz: 8b8d262d1c7a94e8a2b90caf835b75320113a9a4
3
+ metadata.gz: a44fc4c0f52365c18c0ea1b3f5e9f31f8b960439
4
+ data.tar.gz: 07a9571c2ef6cde6c2c3ace64bcf53e2f159b32d
5
5
  SHA512:
6
- metadata.gz: 63e5c7100a08cc6288d17412fd71ca88eeb763d6d44763b77a013ed592125763fcbdb080ee33de9ff2dc975ba2261d5e3c528dfa5bc18a9925df39b671d980ae
7
- data.tar.gz: 7fa06ff5a042045bc474f09a5939f9950311085c58c189a76e8205b1eee6df456bf899b7f264989e454e52079adbd951cebb39f4af23e8401f617de4ee0e658c
6
+ metadata.gz: 58d851484ff1caaae7583c52caa1b6b5fcc279081aef1c8f13af3b4a208a06e24d45fa6320d03d93e9a9cbd7cdd88a5aa5701da0390d9f2e3e9abd2d5ec761ac
7
+ data.tar.gz: c069dc3116e1bf4d8395409ec3c0ae88f6a1ad7a33b0a5bcb2df77922653e56e70cdb3349773e1a657738c4f6ef6529367a685f85a5613fa6feb70fc12b8384e
@@ -1,15 +1,17 @@
1
1
  #!/bin/env ruby
2
2
  # encoding: utf-8
3
3
 
4
+ require "date"
4
5
  require "jalalidate"
5
6
 
6
7
  module Jekyll
7
8
  module JDate
8
9
 
9
- def jdate(date, options={})
10
- jalali = JalaliDate.new(date)
10
+ def jdate(date, options="%d %b %Y")
11
+ jalali = JalaliDate.new(Date.parse date.to_s)
11
12
  return jalali.strftime(options)
12
13
  end
14
+
13
15
  end
14
16
  end
15
17
 
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-jalali
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehdi Sadeghi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2017-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jalalidate
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.3
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.3
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement