arugula 0.2.0 → 0.2.1
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/Gemfile.lock +1 -1
- data/README.md +24 -10
- data/lib/arugula.rb +1 -2
- data/lib/arugula/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450b105a13d2bee3427f3ab008d1a0172e0bbacf
|
4
|
+
data.tar.gz: 091ebc89a888684923c2c05175c7370e43844a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afb71d903455aa9d1508078919cccc34fd7cb1fb5ad7e15d3e39ab8170f9d31cfd12d21633098088b57e0003e99d267dd097d5acf8aca10901afac03c1266e9e
|
7
|
+
data.tar.gz: 27130b99003c17307830266fc1f2b29045d109c9bfaec2fc505f03e4978c3347e35e4945caebe4fe7437b16d7608c3c3510f910a0afc0443450fa26b598cfc5f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Arugula
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
`Arugula` is a naïve (and incomplete) regular expression implementation written
|
4
|
+
from scratch on a Friday night.
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
@@ -22,20 +21,35 @@ Or install it yourself as:
|
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
```ruby
|
25
|
+
regexp = Arugula.new('[A-Z][a-z]+')
|
26
|
+
regexp.match?('ahoy! my name is Samuel') # => 17
|
27
|
+
regexp.match?('foobar') # => null
|
28
|
+
```
|
26
29
|
|
27
30
|
## Development
|
28
31
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
32
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
33
|
+
Then, run `bin/rake spec` to run the tests.
|
34
|
+
You can also run `bin/console` for an interactive prompt that will allow you to
|
35
|
+
experiment.
|
30
36
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
37
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
38
|
+
To release a new version, update the version number in `version.rb`,
|
39
|
+
run `bundle install`, commit,
|
40
|
+
and then run `bundle exec rake release`, which will create a git tag for the
|
41
|
+
version, push git commits and tags,
|
42
|
+
and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
43
|
|
33
44
|
## Contributing
|
34
45
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at
|
36
|
-
|
46
|
+
Bug reports and pull requests are welcome on GitHub at
|
47
|
+
https://github.com/segiddins/arugula.
|
48
|
+
This project is intended to be a safe, welcoming space for collaboration,
|
49
|
+
and contributors are expected to adhere to the
|
50
|
+
[Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
37
51
|
|
38
52
|
## License
|
39
53
|
|
40
|
-
The gem is available as open source under the terms of the
|
41
|
-
|
54
|
+
The gem is available as open source under the terms of the
|
55
|
+
[MIT License](http://opensource.org/licenses/MIT).
|
data/lib/arugula.rb
CHANGED
data/lib/arugula/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arugula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Giddins
|
@@ -14,42 +14,42 @@ dependencies:
|
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.11'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.11'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.5'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.4'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.4'
|
55
55
|
description:
|
@@ -59,10 +59,10 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
62
|
+
- .gitignore
|
63
|
+
- .rspec
|
64
|
+
- .rubocop.yml
|
65
|
+
- .travis.yml
|
66
66
|
- CODE_OF_CONDUCT.md
|
67
67
|
- Gemfile
|
68
68
|
- Gemfile.lock
|
@@ -89,12 +89,12 @@ require_paths:
|
|
89
89
|
- lib
|
90
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- -
|
92
|
+
- - '>='
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - '>='
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|