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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c605c242810018d440dc6d1d875afc58d5a2d96c
4
- data.tar.gz: 3953bc522d7d19a6841e8b9cace5b6c1a28a19ab
3
+ metadata.gz: 2f6bf4459e9f00effddad24fbf27e62f1ec1e06c
4
+ data.tar.gz: 17078c85f835aa2aeb4cdf665b2283f34bef5944
5
5
  SHA512:
6
- metadata.gz: 1d6b675099dba297d50987883b8a707422faac872f20d5d3ce2e96cc9e4be707a4397632e0405353643589a67f8a534660619aea9a35358728acaeb09bf2d109
7
- data.tar.gz: 0edac468491065e62d1133806af2f8869e16c179e193c8a06afd4dde4c6b263bd1ec6343a314fc38341d8aedbb6ae73db441c966103bac7e551a80bad9b366f4
6
+ metadata.gz: 22f2ab25b5a05a6f23c43b1218b5687de302ce498e42811541253bfa140d952540ae9950b83600fcb448def2e6f0da21189088e7a438eeaef9addd489152679a
7
+ data.tar.gz: 20e1056bd4529a0edbe7d47714db00a35e69e5e9abe61a2dcb6a93cfc0d91f90142397bbe252f6d9f6ceb84cdb907256b8e2059f320c980b8ea4438565b24f9a
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /.idea/
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # RegexForRange
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/regex_for_range`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ This is simple gem to return all possible regex for range of number
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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/[USERNAME]/regex_for_range. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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
 
@@ -1,3 +1,3 @@
1
1
  module RegexForRange
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>