paru 0.3.2.2 → 0.3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paru.rb +2 -2
- data/lib/paru/selector.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c38fdb7f414d72479af9800c0657890853235121c6d6babe1b50e11cb37f87
|
4
|
+
data.tar.gz: 50ccdff7030eb0f4095ce3230de1eddbcf176ae8878e0358cacc5832329c0f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daa06cee52aad9ca28c29fb4e064acfa53e9136f40197a9faf2280644d4e91924e8a2cf0fd940af6755c60e17a1c6aa9e8bfc9b05fc48087f5d5b6ff31ee3137
|
7
|
+
data.tar.gz: 7f465517bd4084d2314073258e5897b5ad22a95190c36c4db1ff4d655e8b80f3f617a9dfead9dd8cff087d21cae7864a4f6d3d20a3e21f20aa3dfbebe968eb71
|
data/lib/paru.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright 2015, 2016, 2017 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
# Copyright 2015, 2016, 2017, 2018, 2019 Huub de Beer <Huub@heerdebeer.org>
|
3
3
|
#
|
4
4
|
# This file is part of Paru
|
5
5
|
#
|
@@ -18,5 +18,5 @@
|
|
18
18
|
#++
|
19
19
|
module Paru
|
20
20
|
# Paru's current version
|
21
|
-
VERSION = [0, 3, 2,
|
21
|
+
VERSION = [0, 3, 2, 3]
|
22
22
|
end
|
data/lib/paru/selector.rb
CHANGED
@@ -60,7 +60,8 @@ module Paru
|
|
60
60
|
|
61
61
|
S = /\s*/
|
62
62
|
TYPE = /(?<type>(?<name>[A-Z][a-zA-Z]*)(?<classes>(\.[a-zA-Z-]+)*))/
|
63
|
-
|
63
|
+
# Improved CSS class selector taken from https://stackoverflow.com/questions/448981/which-characters-are-valid-in-css-class-names-selectors/449000#449000
|
64
|
+
OTHER_TYPE = /(?<other_type>(?<other_name>[A-Z][a-zA-Z]*)(?<other_classes>(\.-?[_a-zA-Z]+[_a-zA-Z0-9-]*)*))/
|
64
65
|
OPERATOR = /(?<operator>\+|-|>)/
|
65
66
|
DISTANCE = /(?<distance>[1-9][0-9]*)/
|
66
67
|
RELATION = /(?<relation>#{S}#{OTHER_TYPE}#{S}#{OPERATOR}#{S}#{DISTANCE}?#{S})/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.2.
|
4
|
+
version: 0.3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Huub de Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Use Pandoc (http://www.pandoc.org) with ruby
|
14
14
|
email: Huub@heerdebeer.org
|