jekyll-hinduarabic 0.1.0 → 0.1.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/lib/jekyll-hinduarabic.rb +1 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ee342a0bdb99024f4b0b26a05da8cb38052debc
|
4
|
+
data.tar.gz: aef6e3830f74eba0184753ee0cd5d4aa2a37989e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c478227c461f8de29f0a137cf040e3cc56ceb90a2091f242ad03d3dd72996ed23447cbf749d3f71778e279281c639dfaf4d7c2cb180c204b5ced44a965f7357e
|
7
|
+
data.tar.gz: f98f8abec2244ce4c42522edce7e8671130860b8078c0b0549de6a7dcf87cd863af323942e1954f2e79c5e0266d83f2911a77c81dbb586a8c5dba04fc1c576c4
|
data/lib/jekyll-hinduarabic.rb
CHANGED
@@ -5,13 +5,7 @@ module Jekyll
|
|
5
5
|
module HinduArabicFilter
|
6
6
|
|
7
7
|
def habify(input)
|
8
|
-
|
9
|
-
for x in source.keys
|
10
|
-
if input.include? x
|
11
|
-
input = input.gsub(x, source[x])
|
12
|
-
end
|
13
|
-
end
|
14
|
-
return input
|
8
|
+
input.to_s.tr("0123456789", "۰۱۲۳۴۵۶۷۸۹")
|
15
9
|
end
|
16
10
|
end
|
17
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-hinduarabic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mehdi Sadeghi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
version: '0'
|
53
53
|
requirements: []
|
54
54
|
rubyforge_project:
|
55
|
-
rubygems_version: 2.6.
|
55
|
+
rubygems_version: 2.6.14
|
56
56
|
signing_key:
|
57
57
|
specification_version: 4
|
58
58
|
summary: Jekyll plugin to converts English numerals to the corresponding Hindu-Arabic
|