regeng 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b08c143342913d8a64a5cce550f2d1fa132acd8f92b543f833ac3fb631661cf8
4
- data.tar.gz: 4121b024940ece38acec13398b97630fd65e7d369d1c91dad03b8a2c805da1ca
3
+ metadata.gz: '0941bdc7ae5218e1ec7431f77c4fde247e08763102914f2aa657784aca96934d'
4
+ data.tar.gz: f0631a706e59e80770a165473984b34cd1f216d38601d590b786746036134dbc
5
5
  SHA512:
6
- metadata.gz: 4862c021d796fa74b5ac55ae15f069ff3f4c7f03d15b45da3fa3a52cf7b0ed7f7dea97f4f4bc1829fe3ae5c37c4051d0d29919e5e9b0b3b5d492a6bf44b489ca
7
- data.tar.gz: 720e2344a7670dc5509c3a5b5a53931b9523ba7b1dfa645466e1f869f291676c6251b4d98656d77e1fc6bd490a7f0fdf8b4d17bec2c437972cf084302a0e470c
6
+ metadata.gz: 78c728ee73e553266c9454cc09dc8e97755bb542094addf523d490007131ec9c9af674465cbb3a041392f8cd07294773eb8bd2c5fbc7375ee0c7b3d5875ccb56
7
+ data.tar.gz: bb52f64b166204035d8f47fdcfe59b32b25861205c641623918411b66d05fc036897fd27d08404c294bc7551eba2d1042eb9f068aab008f5741cb78e6c39cdc4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- regeng (0.2.5)
4
+ regeng (0.2.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Regeng (WIP) {docsify-ignore-all}
1
+ # Regeng (WIP)
2
2
 
3
- Regeng or regular english, is a gem aimed to make regular expressions a bit more noob friendly.
3
+ [![Gem Version](https://badge.fury.io/rb/regeng.svg)](https://badge.fury.io/rb/regeng)
4
4
 
5
- [Regeng Gem](https://rubygems.org/gems/regeng)
5
+ Regeng or regular english, is a gem aimed to make regular expressions a bit more noob friendly.
6
6
 
7
7
  ## Installation
8
8
 
@@ -29,7 +29,7 @@ Regeng.new 'any characters except e through z at start of string'
29
29
  => /\A[^e-z]+/
30
30
  ```
31
31
 
32
- More examples in the [Documentation](https://luchighwalker.github.io/regeng/)
32
+ More examples in the [Documentation](https://luchighwalker.github.io/regeng/#/?id=usage)
33
33
 
34
34
  ## Development
35
35
 
@@ -1,8 +1,8 @@
1
- # Regeng (WIP) {docsify-ignore-all}
1
+ # Regeng (WIP)
2
2
 
3
- Regeng or regular english, is a gem aimed to make regular expressions a bit more noob friendly.
3
+ [![Gem Version](https://badge.fury.io/rb/regeng.svg)](https://badge.fury.io/rb/regeng)
4
4
 
5
- [Regeng Gem](https://rubygems.org/gems/regeng)
5
+ Regeng or regular english, is a gem aimed to make regular expressions a bit more noob friendly.
6
6
 
7
7
  ## Installation
8
8
 
@@ -1,10 +1,12 @@
1
- [01-04-19] [0.2.5]: Now handles uppercase/lowercase with specified characters.
1
+ [01-06-19] [0.2.6]: Fixed error handling.
2
+
3
+ [01-04-19] [0.2.5]: Handles uppercase/lowercase with specified characters.
2
4
 
3
- [01-02-19] [0.2.4]: Now processes more complex numbers.
5
+ [01-02-19] [0.2.4]: Processes more complex numbers.
4
6
 
5
- [12-11-18] [0.2.3]: Now raises errors when expression fails to process.
7
+ [12-11-18] [0.2.3]: Raises errors when expression fails to process.
6
8
 
7
- [12-11-18] [0.2.2]: Now can use .new to mimic Regex behaviour.
9
+ [12-11-18] [0.2.2]: Can use .new to mimic Regex behaviour.
8
10
  Slightly expanded functionality.
9
11
 
10
12
  [12-11-18] [0.2.1d]: Dev Build: At modifiers and simple digit expressions.
@@ -15,7 +15,7 @@ module Regeng
15
15
  # Regeng's error raiser.
16
16
  class Error < StandardError
17
17
  def self.invalid_expression(string)
18
- raise self, "Invalid expression: (#{string})"
18
+ raise ArgumentError, "Invalid expression, check spelling: '#{string}'"
19
19
  end
20
20
  end
21
21
 
@@ -39,7 +39,7 @@ module Regeng
39
39
  # Adds a 'at' modifier if one is present.
40
40
  at_mod = at_condition(string) if AT_COND.match?(string)
41
41
 
42
- Error.invalid_expression if expression.nil?
42
+ Error.invalid_expression(string) if expression.nil?
43
43
 
44
44
  Regexp.new "#{at_mod}#{expression}"
45
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Regeng
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regeng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - LucHighwalker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-04 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler