Browse Source

update to 0.1.1

Add changelog, readme, gemspec, ...
master
Arthur Poulet 6 years ago
parent
commit
9ff30deeab
No known key found for this signature in database GPG Key ID: 7C42395DCA99B923
  1. 1
      .gitignore
  2. 8
      CHANGELOG
  3. 1
      Gemfile
  4. 13
      Gemfile.lock
  5. 29
      README.md
  6. 22
      certs/nephos.pem
  7. 34
      ruby-email.gemspec
  8. 1
      version

1
.gitignore

@ -0,0 +1 @@
archives/

8
CHANGELOG

@ -0,0 +1,8 @@
v0.1.1
* Fix readme and changelog
v0.1
* Initialize git
* Create regexp and basic helpers
* Gemfile and dependancies
* Create unitary test (cover 100%)

1
Gemfile

@ -1,3 +1,4 @@
source 'https://rubygems.org'
gem 'nomorebeer' # action against drunk driving

13
Gemfile.lock

@ -0,0 +1,13 @@
GEM
remote: https://rubygems.org/
specs:
nomorebeer (1.1)
PLATFORMS
ruby
DEPENDENCIES
nomorebeer
BUNDLED WITH
1.11.2

29
README.md

@ -0,0 +1,29 @@
# A RFC compliant Email validator
Complient to the http://www.ietf.org/rfc/rfc5322.txt standard.
## Usage
```ruby
require 'ruby_email'
"local@domain".is_email? # => true
RubyEmail.validates? "toto@tata" # => true
RubyEmail.match "toto@tata" # => #<MatchData "toto@tata" local:"toto" domain:"tata">
"local".is_email? # => false
RubyEmail.validates? "toto" # => false
RubyEmail.match "toto" # => nil
```
## Unitary tests
```sh
rake test
```
## Contributes !
Find a bug ? Want a new feature ?
Create a clear pull request and we'll see :)
- Nephos (poulet_a)

22
certs/nephos.pem

@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRYwFAYDVQQDDA1hcnRo
dXIucG91bGV0MRkwFwYKCZImiZPyLGQBGRYJY3J5cHRvbGFiMRMwEQYKCZImiZPy
LGQBGRYDbmV0MB4XDTE1MTAwMzIxNTQyMFoXDTE2MTAwMjIxNTQyMFowSDEWMBQG
A1UEAwwNYXJ0aHVyLnBvdWxldD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 @@
Gem::Specification.new do |s|
s.name = 'ruby-email'
s.version = File.read("version")
s.date = Time.now.getgm.to_s.split.first
s.summary = File.read("CHANGELOG").match(/^v[^\n]+\n((\t[^\n]+\n)+)/m)[1].split("\t").join
s.description = 'A RFC compliant email validator'
s.authors = ['Nephos (poulet_a)']
s.email = ['arthur.poulet@mailoo.org']
s.files = %w(
lib/ruby_email.rb
README.md
CHANGELOG
Rakefile
Gemfile
Gemfile.lock
ruby-email.gemspec
version
test/unit_test.rb
)
s.executables = %w(
)
s.homepage = 'https://github.com/Nephos/RubyEmail'
s.license = 'WTFPL'
s.cert_chain = ['certs/nephos.pem']
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $0 =~ /gem\z/
# s.add_dependency 'nephos', '~> 1.0'
s.add_dependency 'nomorebeer', '~> 1.1'
end

1
version

@ -0,0 +1 @@
0.1.1
Loading…
Cancel
Save