matiuky_regexp 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d07fe20171847f39b40ed211f3c40f4f92a2d2cd1ccc11d707ce3e30946db446
4
- data.tar.gz: 7ed0a312fc088437a204b81a9f23ec3c6dd30a736cfebcd9e2fa7486ef237cf8
3
+ metadata.gz: 518f3a42f9b2da70ffd77754572a335394a13bf0a395d0bf10a82e02e17fbdcf
4
+ data.tar.gz: 36492e0af609bc92f410828bc87def967fef06b6ed445e9227c181f06e1259eb
5
5
  SHA512:
6
- metadata.gz: 56af0cd1a8b50db59ab3e0a1ffbad5c86bf78cc897631ab112c7630e364175621ffa06837ce0aec04fc787eae58e73b6fb2b5843e549d94e93e02c1e1f1ba354
7
- data.tar.gz: 938c1da9820b58387bc7669e5ec044718134ef98f1f2e792b454cc302747b0b62115077052b43df69c95268942121cdcfbb959e929254df04125482275ccae2c
6
+ metadata.gz: de7a9b6e034c51278d3634e137e038e5aff00710e016b639971068fe00c8d5221437947d4aaa1185b214733bf971a529896548bbc8c654bced393c07d462f251
7
+ data.tar.gz: 68429dedf3e1f188249d0054d591aa7a7851a261754777d40283a6b218a78f3b10d662b3efe918b4547d43c7410ad7c05aa95d3362f18aba99b30afef48ba627
data/.rubocop.yml ADDED
@@ -0,0 +1,5 @@
1
+ Metrics/BlockLength:
2
+ Max: 30
3
+
4
+ Layout/LineLength:
5
+ Max: 104
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in matiuky_regexp.gemspec
data/README.md CHANGED
@@ -8,8 +8,7 @@ A collection of usefull regular expressions for ukrainian matiuky
8
8
 
9
9
  ![Image](https://raw.github.com/mamantoha/matiuky_regexp/master/image.png)
10
10
 
11
- > Москалі – це не нація, це – збірний образ, спосіб мислення. Москаль – це свідомість, а не походження...
12
-
11
+ > Москалі – це не нація, це – збірний образ, спосіб мислення. Москаль – це свідомість, а не походження...
13
12
 
14
13
  ## Installation
15
14
 
@@ -21,19 +20,19 @@ gem 'matiuky_regexp'
21
20
 
22
21
  And then execute:
23
22
 
24
- ```
25
- $ bundle
23
+ ```console
24
+ bundle
26
25
  ```
27
26
 
28
27
  Or install it yourself as:
29
28
 
30
- ```
31
- $ gem install matiuky_regexp
29
+ ```console
30
+ gem install matiuky_regexp
32
31
  ```
33
32
 
34
33
  ## Usage
35
34
 
36
- ```
35
+ ```ruby
37
36
  require 'matiuky_regexp'
38
37
 
39
38
  'сукня'.match(MatiukyRegexp::REGEXP) # => nil
@@ -49,12 +48,11 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
49
48
 
50
49
  Bug reports and pull requests are welcome on GitHub at https://github.com/mamantoha/matiuky_regexp.
51
50
 
52
-
53
51
  ## License and Author
54
52
 
55
53
  Author: Anton Maminov (anton.maminov@gmail.com)
56
54
 
57
- Copyright: 2016-2018 Anton Maminov (anton.maminov@gmail.com)
55
+ Copyright: 2016-2019 Anton Maminov (anton.maminov@gmail.com)
58
56
 
59
57
  The gem is available as open source under the terms of the [DBAD license](https://github.com/philsturgeon/dbad/blob/master/LICENSE.md).
60
58
 
data/Rakefile CHANGED
@@ -1,10 +1,12 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
3
5
 
4
6
  Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
+ t.libs << 'test'
8
+ t.libs << 'lib'
7
9
  t.test_files = FileList['test/**/*_test.rb']
8
10
  end
9
11
 
10
- task :default => :test
12
+ task default: :test
data/bin/console CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
- require "bundler/setup"
4
- require "matiuky_regexp"
4
+ require 'bundler/setup'
5
+ require 'matiuky_regexp'
5
6
 
6
7
  # You can add fixtures and/or initialization code here to make experimenting
7
8
  # with your gem easier. You can also use a different console, if you like.
@@ -10,5 +11,5 @@ require "matiuky_regexp"
10
11
  # require "pry"
11
12
  # Pry.start
12
13
 
13
- require "irb"
14
+ require 'irb'
14
15
  IRB.start
data/image.png CHANGED
Binary file
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module MatiukyRegexp
2
- VERSION = "0.2.0"
4
+ VERSION = '0.3.0'
3
5
  end
@@ -1,21 +1,23 @@
1
- require "matiuky_regexp/version"
1
+ # frozen_string_literal: true
2
+
3
+ require 'matiuky_regexp/version'
2
4
 
3
5
  module MatiukyRegexp
4
- REGEXP = %r{
6
+ REGEXP = /
5
7
  \s*(\S*(
6
- (?<!ра|нама|вима|роздму|підштов|дома|прочу)ху[йяюєї]
8
+ (?<!ра|ма|роздму|слу|штов|прочу|ко|ню)ху[йяюєї]
7
9
  |
8
10
  п[иі]зд
9
11
  |
10
12
  [єї]б[ауе]
11
13
  |
12
- (?<!гу|ро|лю|ду|кора|знадо|розсла|ру|ша|гра|гре)бл(?!яха)[ьєя]
14
+ (?<!гу|ро|лю|ду|кора|знадо|розсла|ру|ша|гра|гре|ансам|бом|свер)бл(?!ях[аиоу]|яш)[ьєя]
13
15
  |
14
- сук(?!<н|он|упн)[аиоу]
16
+ (?<!за)сук(?!<н|он|упн)[аиоу]
15
17
  |
16
18
  йоб
17
19
  |
18
20
  курв
19
21
  )+\S*)\s*
20
- }xi
22
+ /xi.freeze
21
23
  end
@@ -1,24 +1,26 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'matiuky_regexp/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = "matiuky_regexp"
8
+ spec.name = 'matiuky_regexp'
8
9
  spec.version = MatiukyRegexp::VERSION
9
- spec.authors = ["Anton Maminov"]
10
- spec.email = ["anton.linux@gmail.com"]
10
+ spec.authors = ['Anton Maminov']
11
+ spec.email = ['anton.linux@gmail.com']
11
12
 
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"
13
+ spec.summary = ' A collection of usefull regular expressions for ukrainian matiuky'
14
+ spec.homepage = 'https://github.com/mamantoha/matiuky_regexp'
15
+ spec.license = 'Nonstandard'
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
- spec.bindir = "exe"
18
+ spec.bindir = 'exe'
18
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
- spec.require_paths = ["lib"]
20
+ spec.require_paths = ['lib']
20
21
 
21
- spec.add_development_dependency "bundler", "~> 1.12"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "minitest", "~> 5.0"
22
+ spec.add_development_dependency 'bundler'
23
+ spec.add_development_dependency 'minitest'
24
+ spec.add_development_dependency 'rake'
25
+ spec.add_development_dependency 'rubocop'
24
26
  end
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matiuky_regexp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Maminov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-16 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
19
+ version: '0'
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
- version: '1.12'
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '10.0'
47
+ version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '10.0'
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: minitest
56
+ name: rubocop
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '5.0'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '5.0'
68
+ version: '0'
55
69
  description:
56
70
  email:
57
71
  - anton.linux@gmail.com
@@ -60,7 +74,7 @@ extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
62
76
  - ".gitignore"
63
- - ".ruby-version"
77
+ - ".rubocop.yml"
64
78
  - ".travis.yml"
65
79
  - Gemfile
66
80
  - README.md
@@ -90,8 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
104
  - !ruby/object:Gem::Version
91
105
  version: '0'
92
106
  requirements: []
93
- rubyforge_project:
94
- rubygems_version: 2.7.6
107
+ rubygems_version: 3.0.3
95
108
  signing_key:
96
109
  specification_version: 4
97
110
  summary: A collection of usefull regular expressions for ukrainian matiuky
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.5.1