regex_for_range 0.1.1 → 0.1.2
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/.gitignore +1 -0
- data/README.md +4 -10
- data/lib/regex_for_range/version.rb +1 -1
- metadata +1 -2
- data/.idea/vcs.xml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f6bf4459e9f00effddad24fbf27e62f1ec1e06c
|
4
|
+
data.tar.gz: 17078c85f835aa2aeb4cdf665b2283f34bef5944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22f2ab25b5a05a6f23c43b1218b5687de302ce498e42811541253bfa140d952540ae9950b83600fcb448def2e6f0da21189088e7a438eeaef9addd489152679a
|
7
|
+
data.tar.gz: 20e1056bd4529a0edbe7d47714db00a35e69e5e9abe61a2dcb6a93cfc0d91f90142397bbe252f6d9f6ceb84cdb907256b8e2059f320c980b8ea4438565b24f9a
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# RegexForRange
|
2
2
|
|
3
|
-
|
3
|
+
This is simple gem to return all possible regex for range of number
|
4
4
|
|
5
|
-
|
5
|
+
Example -> Regex for range 1 to 100 is [1-9]|[1-9][0-9]|100
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -22,18 +22,12 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
regex = RegexForRange.get_regex_for_range(start, end)
|
26
26
|
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
27
|
|
33
28
|
## Contributing
|
34
29
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
36
|
-
|
30
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/dhwanitgupta/regex_for_range.
|
37
31
|
|
38
32
|
## License
|
39
33
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regex_for_range
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dhwanit Gupta
|
@@ -60,7 +60,6 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
-
- ".idea/vcs.xml"
|
64
63
|
- ".rspec"
|
65
64
|
- ".travis.yml"
|
66
65
|
- CODE_OF_CONDUCT.md
|