ampersat 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6232057d580f3bbeb66de8d6149fbd19f1d70c67
4
- data.tar.gz: 2d3ab791c9798b8b7326f0c20f44bf19c949b052
2
+ SHA256:
3
+ metadata.gz: 456381b197416d702572377808500480babed246ef9c30082dd90855e18e545d
4
+ data.tar.gz: 2fc5cced97ef1920290cba974411d43821a190195b66ad232cc0c0766e865fde
5
5
  SHA512:
6
- metadata.gz: 93eddae22b005d6f6b6b56b271cec43d81071f68fdc62d4ad886c65c69b79e4c107cfc290d43e830c8bd2b0ab77955e3c9a5a8c7d70e77e33b7bf03eccdb3574
7
- data.tar.gz: 8c74fd344c52e67a5523d17dd0a35762ca421b107e74946c2bef50d7eb55cb5fe898c67b1785c34de1458ce232171dc4f8142207673010ff59578d718ec97331
6
+ metadata.gz: ad15d679cbb7d7a31d58179caef116248f7eb1ffe219882fd69fd2dcc9ca9f52841bce1432ec4e05abcfc6ce62135f1c069e75428dd66282dc3072aab061bbdb
7
+ data.tar.gz: 23dfa02f89ed855dd73d5e9c58a263c1217f01077aa42e9b71d688c36092553db598e1e372ab8287f6b788c38741663734eba77d8746f5626fd74752d68f0afe
@@ -0,0 +1,18 @@
1
+ name: Build Status
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ os: [ubuntu-latest, macos-latest]
9
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
10
+ ruby: [2.5, 2.6, 2.7, '3.0', head, jruby, jruby-head, truffleruby, truffleruby-head]
11
+ runs-on: ${{ matrix.os }}
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: ${{ matrix.ruby }}
17
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
18
+ - run: bundle exec rake
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in ampersat.gemspec
4
4
  gemspec
data/LICENCE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Gareth Rees
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,6 +1,7 @@
1
1
  # Calculate Most Common Domains From Email List
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/garethrees/ampersat.png)](http://travis-ci.org/garethrees/ampersat) [![Code Climate](https://codeclimate.com/github/garethrees/ampersat.png)](https://codeclimate.com/github/garethrees/ampersat)
3
+ ![Build Status](https://github.com/garethrees/ampersat/actions/workflows/rake.yml/badge.svg)
4
+ [![Code Climate](https://codeclimate.com/github/garethrees/ampersat.png)](https://codeclimate.com/github/garethrees/ampersat)
4
5
 
5
6
  It's worth checking what email clients your subscribers are using so that you can make sure your emails look good when they view them.
6
7
 
data/ampersat.gemspec CHANGED
@@ -10,9 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.email = ['gareth.h.rees@gmail.com', 'github@robert.net.nz']
11
11
  s.homepage = 'http://github.com/garethrees/ampersat'
12
12
  s.summary = 'Calculates which email domains your subscribers use'
13
- s.description = 'Calculates which email domains your subscribers use'
14
-
15
- s.rubyforge_project = "ampersat"
13
+ s.license = 'MIT'
16
14
 
17
15
  s.files = `git ls-files`.split("\n")
18
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -20,10 +18,10 @@ Gem::Specification.new do |s|
20
18
  s.require_paths = ['lib']
21
19
 
22
20
  s.add_development_dependency 'rake'
23
- s.add_development_dependency 'rspec', '~> 2.7'
24
- s.add_dependency 'thor', '~> 0.19.1'
25
- s.add_dependency 'public_suffix', '~> 1.4.4'
26
- s.add_dependency 'ruby-progressbar', '~> 1.5.1'
27
- s.add_dependency 'celluloid', '0.15.2'
28
- s.add_dependency 'celluloid-pmap', '~> 0.1.0'
21
+ s.add_development_dependency 'rspec', '~> 3.10'
22
+ s.add_dependency 'thor', '~> 1.1'
23
+ s.add_dependency 'public_suffix', '~> 4.0'
24
+ s.add_dependency 'ruby-progressbar', '~> 1.11'
25
+ s.add_dependency 'celluloid', '0.18'
26
+ s.add_dependency 'celluloid-pmap', '~> 1.0'
29
27
  end
data/lib/ampersat/cli.rb CHANGED
@@ -26,5 +26,9 @@ module Ampersat
26
26
  end
27
27
  end
28
28
 
29
+ def self.exit_on_failure?
30
+ true
31
+ end
32
+
29
33
  end
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module Ampersat
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -11,19 +11,19 @@ describe Ampersat do
11
11
 
12
12
  it 'should return the sum of each email provider' do
13
13
  expected_result = [['example.com', 3], ['example.org', 2], ['example.net', 1]]
14
- Ampersat.domains(csv_path).should == expected_result
14
+ expect(Ampersat.domains(csv_path)).to eq(expected_result)
15
15
  end
16
16
 
17
17
  it 'should return the email providers with the most common first' do
18
18
  incorrect_result = [['example.org', 2],['example.com', 3], ['example.net', 1]]
19
- Ampersat.domains(csv_path).should_not == incorrect_result
19
+ expect(Ampersat.domains(csv_path)).not_to eq(incorrect_result)
20
20
 
21
21
  expected_result = [['example.com', 3], ['example.org', 2], ['example.net', 1]]
22
- Ampersat.domains(csv_path).should == expected_result
22
+ expect(Ampersat.domains(csv_path)).to eq(expected_result)
23
23
  end
24
24
 
25
25
  it 'should find the domain of an email address' do
26
- Ampersat.find_domain(email).should == 'example.com'
26
+ expect(Ampersat.find_domain(email)).to eq('example.com')
27
27
  end
28
28
 
29
29
  describe 'column' do
@@ -34,15 +34,15 @@ describe Ampersat do
34
34
 
35
35
  it 'should return the sum of each email provider' do
36
36
  expected_result = [['example.com', 3], ['example.org', 2], ['example.net', 1]]
37
- Ampersat.domains(csv_path, column).should == expected_result
37
+ expect(Ampersat.domains(csv_path, column)).to eq(expected_result)
38
38
  end
39
39
 
40
40
  it 'should return the email providers with the most common first' do
41
41
  incorrect_result = [['example.org', 2],['example.com', 3], ['example.net', 1]]
42
- Ampersat.domains(csv_path, column).should_not == incorrect_result
42
+ expect(Ampersat.domains(csv_path, column)).not_to eq(incorrect_result)
43
43
 
44
44
  expected_result = [['example.com', 3], ['example.org', 2], ['example.net', 1]]
45
- Ampersat.domains(csv_path, column).should == expected_result
45
+ expect(Ampersat.domains(csv_path, column)).to eq(expected_result)
46
46
  end
47
47
  end
48
48
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ampersat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth Rees
8
8
  - Robert Coleman
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-22 00:00:00.000000000 Z
12
+ date: 2021-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -31,85 +31,85 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '2.7'
34
+ version: '3.10'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '2.7'
41
+ version: '3.10'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: thor
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.19.1
48
+ version: '1.1'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 0.19.1
55
+ version: '1.1'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: public_suffix
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 1.4.4
62
+ version: '4.0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 1.4.4
69
+ version: '4.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: ruby-progressbar
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 1.5.1
76
+ version: '1.11'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 1.5.1
83
+ version: '1.11'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: celluloid
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - '='
89
89
  - !ruby/object:Gem::Version
90
- version: 0.15.2
90
+ version: '0.18'
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.15.2
97
+ version: '0.18'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: celluloid-pmap
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: 0.1.0
104
+ version: '1.0'
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: 0.1.0
112
- description: Calculates which email domains your subscribers use
111
+ version: '1.0'
112
+ description:
113
113
  email:
114
114
  - gareth.h.rees@gmail.com
115
115
  - github@robert.net.nz
@@ -118,10 +118,11 @@ executables:
118
118
  extensions: []
119
119
  extra_rdoc_files: []
120
120
  files:
121
+ - ".github/workflows/rake.yml"
121
122
  - ".gitignore"
122
123
  - ".rspec"
123
- - ".travis.yml"
124
124
  - Gemfile
125
+ - LICENCE.md
125
126
  - README.md
126
127
  - Rakefile
127
128
  - ampersat.gemspec
@@ -133,9 +134,10 @@ files:
133
134
  - spec/support/multiple-columns.csv
134
135
  - spec/support/test.csv
135
136
  homepage: http://github.com/garethrees/ampersat
136
- licenses: []
137
+ licenses:
138
+ - MIT
137
139
  metadata: {}
138
- post_install_message:
140
+ post_install_message:
139
141
  rdoc_options: []
140
142
  require_paths:
141
143
  - lib
@@ -150,9 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
152
  - !ruby/object:Gem::Version
151
153
  version: '0'
152
154
  requirements: []
153
- rubyforge_project: ampersat
154
- rubygems_version: 2.2.0
155
- signing_key:
155
+ rubygems_version: 3.2.3
156
+ signing_key:
156
157
  specification_version: 4
157
158
  summary: Calculates which email domains your subscribers use
158
159
  test_files:
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 2.1.0
5
- - 1.9.3