guessmail 0.2.0 → 1.4.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: f7041404bbe3148a627657032369cc85597a2bc8e3d5da136f4ff25817342264
4
- data.tar.gz: d54bdede9cb09a338ca2201e339c536fb10b57da2a8527054d7ca399768532f0
3
+ metadata.gz: 2dc9d57313f932e242d834520966f2d435a0a2eba64f1ad2589d24c75209b3fa
4
+ data.tar.gz: d2c8f0a1d6aef230c21efc5bb125b6e156c229765e5a5d72d5bee8928b58aa81
5
5
  SHA512:
6
- metadata.gz: 92464606a90556f4f62acf8b315f494f7bf02b2e004e52db1af35879c8786e5b55411a67dbd177b805f1a862233158ca6c2697d52324e0177e0146a07ad5ae37
7
- data.tar.gz: 07f112483e771eea0e72e4b25d6429a1ff0a87396a21e10f320a691a278a9f77781be91f155f0eb22d9ea823533b77441e90831290cdb18d45a553d498c5b74d
6
+ metadata.gz: 7855e90bbcf84463eb4e61169ac7e57657cf86ab016739ba8284f46ac6fcb75aaed962f1dc130b1f7144c2370ba779f87fc0271c4164f66b1206505600f133d2
7
+ data.tar.gz: d62c5a2e1f26ca16fb8d131e1cad27be424c17dfa915f2054098b347631233c86be2ba538e92fe12db6c6017aa66f1d9e62411bd363c28bc41aa573d082ecf68
@@ -0,0 +1,52 @@
1
+ name: Test
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ push:
7
+ branches: [develop, master]
8
+
9
+ env:
10
+ GIT_COMMIT_SHA: ${{ github.sha }}
11
+ GIT_BRANCH: ${{ github.ref }}
12
+ COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
13
+
14
+ jobs:
15
+ lint:
16
+ runs-on: ubuntu-latest
17
+ name: lint ${{ matrix.ruby }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ ruby: ["3.4.1", "3.3.6", "3.2.6", "3.1.6", "3.0.7"]
22
+
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ - uses: ruby/setup-ruby@v1
26
+ with:
27
+ ruby-version: ${{ matrix.ruby }}
28
+ bundler-cache: true
29
+
30
+ - name: StandardRB
31
+ continue-on-error: ${{ matrix.experimental }}
32
+ run: bundle exec standardrb --parallel --format progress
33
+
34
+ test:
35
+ needs: [lint]
36
+ runs-on: ubuntu-latest
37
+ name: test ${{ matrix.ruby }}
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ ruby: ["3.4.1", "3.3.6", "3.2.6", "3.1.6", "3.0.7"]
42
+
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+ - uses: ruby/setup-ruby@v1
46
+ with:
47
+ ruby-version: ${{ matrix.ruby }}
48
+ bundler-cache: true
49
+
50
+ - name: Test
51
+ continue-on-error: ${{ matrix.experimental }}
52
+ run: bundle exec rake
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.4.1
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in guessmail.gemspec
6
6
  gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016-2025 Kerem Bozdas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # Guessmail 💌
2
2
 
3
- [![Travis](https://img.shields.io/travis/krmbzds/guessmail.svg)](https://travis-ci.org/krmbzds/guessmail)
4
- [![Gem](https://img.shields.io/gem/dt/guessmail.svg)](https://rubygems.org/gems/guessmail)
5
- [![Gem](https://img.shields.io/gem/v/guessmail.svg)](https://rubygems.org/gems/guessmail)
3
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/krmbzds/guessmail/test.yml?branch=master)](https://github.com/krmbzds/guessmail/actions/workflows/test.yml)
4
+ [![Coveralls](https://img.shields.io/coveralls/github/krmbzds/guessmail)](https://coveralls.io/github/krmbzds/guessmail)
5
+ [![Maintainability](https://img.shields.io/codeclimate/maintainability/krmbzds/guessmail.svg)](https://codeclimate.com/github/krmbzds/guessmail/maintainability)
6
+ [![Downloads](https://img.shields.io/gem/dt/guessmail.svg)](https://rubygems.org/gems/guessmail)
7
+ [![Gem Version](https://img.shields.io/gem/v/guessmail.svg)](https://rubygems.org/gems/guessmail)
8
+
6
9
 
7
10
  [**guessmail**][Guessmail] helps you find possible email addresses of a person.
8
11
 
@@ -61,6 +64,16 @@ guessmail Yukihiro Matz Matsumoto ruby-lang.org
61
64
 
62
65
  Yes.
63
66
 
67
+ ## Support
68
+
69
+ This gem is tested against the following Ruby versions:
70
+
71
+ - ✅ `3.4.1` (stable)
72
+ - ✅ `3.3.6` (stable)
73
+ - ✅ `3.2.6` (stable)
74
+ - ⏳ `3.1.6` (security maintenance)
75
+ - 🪦 `3.0.7` (end of life)
76
+
64
77
  ## Installation
65
78
 
66
79
  Add this line to your application's Gemfile:
@@ -101,7 +114,7 @@ You can donate me at [Liberapay][Donation]. Thanks! ☕️
101
114
 
102
115
  ## License
103
116
 
104
- Copyright © 2016-2020 [Kerem Bozdas][Personal Webpage]
117
+ Copyright © 2016-2025 [Kerem Bozdas][Personal Webpage]
105
118
 
106
119
  This project is available under the terms of the [MIT License][License].
107
120
 
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
data/guessmail.gemspec CHANGED
@@ -1,26 +1,28 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
3
+ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'guessmail/version'
5
+ require "guessmail/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = 'guessmail'
9
- spec.version = Guessmail::VERSION
10
- spec.authors = ['Kerem Bozdas']
11
- spec.email = ['krmbzds.github@gmail.com']
8
+ spec.name = "guessmail"
9
+ spec.version = Guessmail::VERSION
10
+ spec.authors = ["Kerem Bozdas"]
11
+ spec.email = ["krmbzds.github@gmail.com"]
12
12
 
13
- spec.summary = "Find anyone's email address"
14
- spec.description = "Find anyone's email address"
15
- spec.homepage = 'https://github.com/krmbzds/guessmail'
13
+ spec.summary = "Find anyone's email address"
14
+ spec.description = "Find anyone's email address"
15
+ spec.homepage = "https://github.com/krmbzds/guessmail"
16
16
 
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- spec.bindir = 'bin'
19
- spec.executables = ['guessmail']
20
- spec.require_paths = ['lib']
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "bin"
19
+ spec.executables = ["guessmail"]
20
+ spec.require_paths = ["lib"]
21
21
 
22
- spec.add_runtime_dependency 'tate', '~> 1.6.0'
23
- spec.add_development_dependency 'bundler'
24
- spec.add_development_dependency 'rake'
25
- spec.add_development_dependency 'rspec'
22
+ spec.add_runtime_dependency "tate", "~> 1.7.0"
23
+ spec.add_development_dependency "bundler"
24
+ spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "rspec"
26
+ spec.add_development_dependency "standardrb"
27
+ spec.add_development_dependency "coveralls_reborn"
26
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Guessmail
4
- VERSION = '0.2.0'
4
+ VERSION = "1.4.0"
5
5
  end
data/lib/guessmail.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
3
+ lib = File.expand_path(File.dirname(__FILE__) + "/../lib")
4
4
  $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
5
5
 
6
- require 'guessmail/version'
7
- require 'tate'
8
- require 'templates'
6
+ require "guessmail/version"
7
+ require "tate"
8
+ require "templates"
9
9
 
10
10
  module Guessmail
11
11
  def self.guess(names, options)
@@ -16,8 +16,12 @@ module Guessmail
16
16
  ln = names.pop
17
17
  mn = names.pop
18
18
 
19
- params = { fn: fn, mn: mn, ln: ln, fi: fn[0], mi: (mn[0] if mn), li: ln[0], dn: dn }
20
- template = options[:extended] ? (mn ? FMLE : FLE) : (mn ? FL : FML)
19
+ params = {fn: fn, mn: mn, ln: ln, fi: fn[0], mi: (mn[0] if mn), li: ln[0], dn: dn}
20
+ template = if options[:extended]
21
+ mn ? FMLE : FLE
22
+ else
23
+ (mn ? FML : FL)
24
+ end
21
25
  string = format(template, params)
22
26
 
23
27
  Tate.transliterate(string, options[:language])
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guessmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerem Bozdas
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2020-08-13 00:00:00.000000000 Z
10
+ date: 2025-01-01 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: tate
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: 1.6.0
18
+ version: 1.7.0
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: 1.6.0
25
+ version: 1.7.0
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: bundler
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +65,34 @@ dependencies:
66
65
  - - ">="
67
66
  - !ruby/object:Gem::Version
68
67
  version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: standardrb
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: coveralls_reborn
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
69
96
  description: Find anyone's email address
70
97
  email:
71
98
  - krmbzds.github@gmail.com
@@ -74,12 +101,12 @@ executables:
74
101
  extensions: []
75
102
  extra_rdoc_files: []
76
103
  files:
104
+ - ".github/workflows/test.yml"
77
105
  - ".gitignore"
78
106
  - ".rspec"
79
- - ".ruby-gemset"
80
- - ".ruby-version"
81
- - ".travis.yml"
107
+ - ".tool-versions"
82
108
  - Gemfile
109
+ - LICENSE.txt
83
110
  - README.md
84
111
  - Rakefile
85
112
  - bin/console
@@ -92,7 +119,6 @@ files:
92
119
  homepage: https://github.com/krmbzds/guessmail
93
120
  licenses: []
94
121
  metadata: {}
95
- post_install_message:
96
122
  rdoc_options: []
97
123
  require_paths:
98
124
  - lib
@@ -107,8 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
133
  - !ruby/object:Gem::Version
108
134
  version: '0'
109
135
  requirements: []
110
- rubygems_version: 3.1.2
111
- signing_key:
136
+ rubygems_version: 3.6.2
112
137
  specification_version: 4
113
138
  summary: Find anyone's email address
114
139
  test_files: []
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- guessmail
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.7.1
data/.travis.yml DELETED
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.7.1