jekyll-jalali 0.1.0

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 +7 -0
  2. data/lib/jekyll-jalali.rb +17 -0
  3. metadata +87 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 43a26d80a18d88f1113258c97fb1fc071ee2ed97
4
+ data.tar.gz: 1d5234e2b9dab00df9c148c5bf84fa53c8e8de29
5
+ SHA512:
6
+ metadata.gz: f857ab0033544e8d3fb44a5d02a3f765730dc22509cbbd25ac8811afaa132c5a73a26c4a543dd525e92d4347003a6d8b83a1d3f8bbea7ee8eb57d1a810ab8608
7
+ data.tar.gz: 577d3023f6ba6fe12d744c438c69d1d6cf7479b2d16646a5d253c3250abcd18f64e965563d99ee63a32b07cc726bf25f4226d76ca023dfd09d2be33ba228a16b
@@ -0,0 +1,17 @@
1
+ #!/bin/env ruby
2
+ # encoding: utf-8
3
+
4
+ require "jalalidate"
5
+
6
+ module Jekyll
7
+ module JDate
8
+
9
+ def jdate(date, options={})
10
+ jalali = JalaliDate.new(date)
11
+ return jalali.strftime(options)
12
+ end
13
+ end
14
+ end
15
+
16
+ Liquid::Template.register_filter(Jekyll::JDate)
17
+
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-jalali
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mehdi Sadeghi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jalalidate
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description:
56
+ email:
57
+ - mehdi@mehdix.org
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - lib/jekyll-jalali.rb
63
+ homepage: https://github.com/mehdisadeghi/jekyll-jalali
64
+ licenses:
65
+ - MIT
66
+ metadata: {}
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubyforge_project:
83
+ rubygems_version: 2.6.11
84
+ signing_key:
85
+ specification_version: 4
86
+ summary: Jalali date plugin for Jekyll.
87
+ test_files: []