paru 0.3.2.3 → 0.3.2.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/paru.rb +1 -1
  3. data/lib/paru/selector.rb +3 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7c38fdb7f414d72479af9800c0657890853235121c6d6babe1b50e11cb37f87
4
- data.tar.gz: 50ccdff7030eb0f4095ce3230de1eddbcf176ae8878e0358cacc5832329c0f28
3
+ metadata.gz: 1261d9ed472a37779339b1617b83ea967a6d2401b9e0adc02492ed6e92f494c0
4
+ data.tar.gz: 800b359a7f1b357bdd59383f7d32ed76b8a2c74337dbc9845fd8d161bd3384c0
5
5
  SHA512:
6
- metadata.gz: daa06cee52aad9ca28c29fb4e064acfa53e9136f40197a9faf2280644d4e91924e8a2cf0fd940af6755c60e17a1c6aa9e8bfc9b05fc48087f5d5b6ff31ee3137
7
- data.tar.gz: 7f465517bd4084d2314073258e5897b5ad22a95190c36c4db1ff4d655e8b80f3f617a9dfead9dd8cff087d21cae7864a4f6d3d20a3e21f20aa3dfbebe968eb71
6
+ metadata.gz: 210fc6796c8008e5e0fb7581e0da7d92e3afe0ccf18fec285773755dfb2b8fb7f3171665359d311356efb57ea1c5b931bb7d487ffc95ee019a84a1c1539382ea
7
+ data.tar.gz: 31176b671807e2895034ae63ca355cb6d4695e72620e957d8ce38b92c51092fe1134c0470c4cc99a4c719309d24639d20283fa0eab83e8a125a787c99cb050e8
data/lib/paru.rb CHANGED
@@ -18,5 +18,5 @@
18
18
  #++
19
19
  module Paru
20
20
  # Paru's current version
21
- VERSION = [0, 3, 2, 3]
21
+ VERSION = [0, 3, 2, 4]
22
22
  end
data/lib/paru/selector.rb CHANGED
@@ -59,9 +59,10 @@ module Paru
59
59
  private
60
60
 
61
61
  S = /\s*/
62
- TYPE = /(?<type>(?<name>[A-Z][a-zA-Z]*)(?<classes>(\.[a-zA-Z-]+)*))/
63
62
  # 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-]*)*))/
63
+ CLASS = /(\.-?[_a-zA-Z]+[_a-zA-Z0-9-]*)/
64
+ TYPE = /(?<type>(?<name>[A-Z][a-zA-Z]*)(?<classes>#{CLASS}*))/
65
+ OTHER_TYPE = /(?<other_type>(?<other_name>[A-Z][a-zA-Z]*)(?<other_classes>#{CLASS}*))/
65
66
  OPERATOR = /(?<operator>\+|-|>)/
66
67
  DISTANCE = /(?<distance>[1-9][0-9]*)/
67
68
  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.3
4
+ version: 0.3.2.4
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-08-31 00:00:00.000000000 Z
11
+ date: 2019-09-06 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