nfl-teams 0.0.2 → 0.0.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nfl_teams.rb +4 -0
  3. data/nfl-teams.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3af08a46dd207cd1e0cd6fd3189ed4e691c72f74ecec9849bf47e5fba00f73e
4
- data.tar.gz: a1b25162e4ea8838a2e50a9a0f34a691c5bfeb54559e765484ed74930620d131
3
+ metadata.gz: e92c16620ec20d1ed5e3d98d0b5f2ab3b9befdb6ee7e3ee3aa156090ff760749
4
+ data.tar.gz: caaacc4704b7c100db62be9c630bbecfa22c7c0d4565800af00f8ad728ed82cd
5
5
  SHA512:
6
- metadata.gz: d5e117f13d88b091bb5c15ed1359068d7cad9941849fce8116429c216da349f63c1b07cd95a2310f2062939c8ebc22702dcab2ecb9bce793e4adf3180321e613
7
- data.tar.gz: f88ed62337bb8d4bb38406dd92d7bea3321dca4183cd59cab809a036e147088b04e206b1c949b2297a7e88e3fc8c787ed2fe7d1f139dab7fbeb1a4bd43c04e40
6
+ metadata.gz: 0f342c1fec70655478e5daf35dbf5f54d1c6498610c7b194c86cd1f6940658ef8592d1a0b978b47bde1db641fa30a53922ce19e0e8b8bfb1dd7a766f8e971293
7
+ data.tar.gz: d982fafd71207432b1920c86ac8dbe865343c2a4a163bbce32617f4c554f0a2d52b962f3b50089b14213c6a6598c0a97ea769f18c1bd936da09c796665fdb74b
data/lib/nfl_teams.rb CHANGED
@@ -22,4 +22,8 @@ module NFLTeams
22
22
 
23
23
  nil
24
24
  end
25
+
26
+ def self.search(string)
27
+ NFLTeams.all.find { |t| "#{t[:location].downcase} #{t[:name].downcase} #{t[:abbreviation].downcase}".include?(string.downcase) }
28
+ end
25
29
  end
data/nfl-teams.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'nfl-teams'
5
5
  s.platform = Gem::Platform::RUBY
6
- s.version = '0.0.2'
6
+ s.version = '0.0.3'
7
7
  s.summary = 'NFL team names, locations, and abbreviations.'
8
8
  s.description = 'A simple library containing team name information about current NFL teams.'
9
9
  s.authors = ['Robert Peterson']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfl-teams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Peterson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-22 00:00:00.000000000 Z
11
+ date: 2018-11-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple library containing team name information about current NFL teams.
14
14
  email: robertpeterson@gmail.com