matiuky_regexp 0.2.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d07fe20171847f39b40ed211f3c40f4f92a2d2cd1ccc11d707ce3e30946db446
4
+ data.tar.gz: 7ed0a312fc088437a204b81a9f23ec3c6dd30a736cfebcd9e2fa7486ef237cf8
5
+ SHA512:
6
+ metadata.gz: 56af0cd1a8b50db59ab3e0a1ffbad5c86bf78cc897631ab112c7630e364175621ffa06837ce0aec04fc787eae58e73b6fb2b5843e549d94e93e02c1e1f1ba354
7
+ data.tar.gz: 938c1da9820b58387bc7669e5ec044718134ef98f1f2e792b454cc302747b0b62115077052b43df69c95268942121cdcfbb959e929254df04125482275ccae2c
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.1
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.6
5
+ - 2.4.3
6
+ - 2.5.0
7
+ before_install: gem install bundler
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in matiuky_regexp.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # MatiukyRegexp
2
+
3
+ [![Build Status][travis_badge]][travis]
4
+
5
+ A collection of usefull regular expressions for ukrainian matiuky
6
+
7
+ Колекція корисних регулярних виразів для [матюків](https://uk.wikipedia.org/wiki/Ненормативна_лексика).
8
+
9
+ ![Image](https://raw.github.com/mamantoha/matiuky_regexp/master/image.png)
10
+
11
+ > Москалі – це не нація, це – збірний образ, спосіб мислення. Москаль – це свідомість, а не походження...
12
+
13
+
14
+ ## Installation
15
+
16
+ Add this line to your application's Gemfile:
17
+
18
+ ```ruby
19
+ gem 'matiuky_regexp'
20
+ ```
21
+
22
+ And then execute:
23
+
24
+ ```
25
+ $ bundle
26
+ ```
27
+
28
+ Or install it yourself as:
29
+
30
+ ```
31
+ $ gem install matiuky_regexp
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ ```
37
+ require 'matiuky_regexp'
38
+
39
+ 'сукня'.match(MatiukyRegexp::REGEXP) # => nil
40
+ ```
41
+
42
+ ## Development
43
+
44
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
+
46
+ 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).
47
+
48
+ ## Contributing
49
+
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mamantoha/matiuky_regexp.
51
+
52
+
53
+ ## License and Author
54
+
55
+ Author: Anton Maminov (anton.maminov@gmail.com)
56
+
57
+ Copyright: 2016-2018 Anton Maminov (anton.maminov@gmail.com)
58
+
59
+ The gem is available as open source under the terms of the [DBAD license](https://github.com/philsturgeon/dbad/blob/master/LICENSE.md).
60
+
61
+ [travis_badge]: http://img.shields.io/travis/mamantoha/matiuky_regexp.svg?style=flat
62
+ [travis]: https://travis-ci.org/mamantoha/matiuky_regexp
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "matiuky_regexp"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/image.png ADDED
Binary file
@@ -0,0 +1,3 @@
1
+ module MatiukyRegexp
2
+ VERSION = "0.2.0"
3
+ end
@@ -0,0 +1,21 @@
1
+ require "matiuky_regexp/version"
2
+
3
+ module MatiukyRegexp
4
+ REGEXP = %r{
5
+ \s*(\S*(
6
+ (?<!ра|нама|вима|роздму|підштов|дома|прочу)ху[йяюєї]
7
+ |
8
+ п[иі]зд
9
+ |
10
+ [єї]б[ауе]
11
+ |
12
+ (?<!гу|ро|лю|ду|кора|знадо|розсла|ру|ша|гра|гре)бл(?!яха)[ьєя]
13
+ |
14
+ сук(?!<н|он|упн)[аиоу]
15
+ |
16
+ йоб
17
+ |
18
+ курв
19
+ )+\S*)\s*
20
+ }xi
21
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'matiuky_regexp/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "matiuky_regexp"
8
+ spec.version = MatiukyRegexp::VERSION
9
+ spec.authors = ["Anton Maminov"]
10
+ spec.email = ["anton.linux@gmail.com"]
11
+
12
+ spec.summary = %q{ A collection of usefull regular expressions for ukrainian matiuky}
13
+ spec.homepage = "https://github.com/mamantoha/matiuky_regexp"
14
+ spec.license = "Nonstandard"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.12"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "minitest", "~> 5.0"
24
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: matiuky_regexp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Anton Maminov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-12-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.12'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ description:
56
+ email:
57
+ - anton.linux@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".ruby-version"
64
+ - ".travis.yml"
65
+ - Gemfile
66
+ - README.md
67
+ - Rakefile
68
+ - bin/console
69
+ - bin/setup
70
+ - image.png
71
+ - lib/matiuky_regexp.rb
72
+ - lib/matiuky_regexp/version.rb
73
+ - matiuky_regexp.gemspec
74
+ homepage: https://github.com/mamantoha/matiuky_regexp
75
+ licenses:
76
+ - Nonstandard
77
+ metadata: {}
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 2.7.6
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: A collection of usefull regular expressions for ukrainian matiuky
98
+ test_files: []