gimme_vins 0.0.1 → 0.0.2

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
2
  SHA1:
3
- metadata.gz: 5007278417e6b1a12c120000c6e1287f56322545
4
- data.tar.gz: f4c53e4e50a292c8d7898707d4ffcfe7ce4604fb
3
+ metadata.gz: bf0f845d7d17f91ec23329118a818f3e4b2c02a2
4
+ data.tar.gz: f899ca5eb57dc1078f5b4c1db9ae4d10ece70a0b
5
5
  SHA512:
6
- metadata.gz: be29605b83208fbc1a749f8eb4c08311558dbb187126dd1ae4427e30f39999981fd9afff2fa2ed3c4a35ac0e3a6e914d049e81988f4d1b55d3ba596ac1172587
7
- data.tar.gz: 67d75769a6af763816660f34a06f1295fd477879775fb330979ba7854798a2eb2579f04665715f4f824552cc5cdc53f5630bb863ce909e01dcf779a838d5d526
6
+ metadata.gz: 3585cb4d34dc3259a2f24f179aa1cf6bfcdd524a57a991cc42d8c7494c1e30edca25cb92946562880edf6f4f033ea8dcf17a9d0799aaeeebef7f9f052b999469
7
+ data.tar.gz: f119c5066a49c9d67950e4637a314f5c9ba357e09102a720ac0026c78a07a97b4144abff67a682c2d0ff92beb9aa38924ca3b3e6a14d5655327f25b45d42279e
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
10
11
  *.bundle
11
12
  *.so
12
13
  *.o
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # GimmeVins
2
2
 
3
- TODO: Write a gem description
3
+ I just want some VINs, man.
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,11 +20,19 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ Throw together some string that represents what kind of VINs you want and go for it.
24
+ ```ruby
25
+ GimmeVins.for("2008 volkswagen jetta") # => ["3VWRM71K28M174677", "3VWRJ71K18M154770", "3VWJM71K58M061268", "3VWRZ71K38M137378", "3VWRM71K88M004985", "19UUA8F57CA017054", "JTLKE50E881033678", "3VWD17AJ7EM249055", "19UUA66228A027878", "JM1BL1UF2C1648751", "3VWJM71K18M150898", "3VW1K7AJ9BM040086"]
26
+ GimmeVins.for("04 bmw 325i") # => ["WBAET374X4NJ45141", "WBAVA33577PG50554", "WBAAZ33414KP91141", "WBAET37454NJ45967", "WBAAZ33464KP87618", "WBABW53425PL52334", "WBAAZ33464KP91152", "WBAAX13444PJ00861", "WBAAX13444PJ00861", "WBANW53599CT55511", "WBAET37484NJ84553", "WBAET37454NJ41708", "WBAET37474NJ41676", "WBAEV33414KR35087", "WBAAZ33484KP90729", "WBAAZ33444KP86855", "WBAEV33414KR35087", "WBAAZ33484KP90729", "WBAAZ33444KP86855", "WBAEV33414KR35087", "WBAAZ33484KP90729", "WBAAZ33444KP86855"]
27
+ GimmeVins.for("honda civic") # => ["1HGCR2F76FA003606", "19XFB2F99EE273359", "19XFB2F96FE049676", "19XFB2F56FE020997", "2HGES16314H605428", "2HGFG3B87FH500978", "5FNRL5H69FB056789", "2HGFB6E51FH700109", "2HGFG3A51FH508775", "2HKRM3H76FH518656", "JHMFA3F24AS005577", "1G1JC5SH3D4138151", "2HGFB2F88FH512527", "19XFB4F21EE200503", "19XFB4F38FE000132", "2HGFB2F96FH500451", "WP0AB2A99CS720381", "2HGFB2E56EH553485", "2HGFB2F58EH517828", "2HGFA16566H515476"]
28
+ GimmeVins.for("2013 prius") # => ["JTDKN3DU1F1929027", "JTDKN3DU0D1733660", "JTDKDTB30D1548604", "JTDKDTB31F1090428", "JTDKN3DU1D5562152", "JTEZU5JR1A5012390", "JTDKN3DU9D1629586", "JTDKN3DU9D1688993", "JTDKN3DU0D5618937", "JTDKN3DU8F0416654", "JTDKDTB39D1054337", "JTDKN3DU0D5558528", "JTDKDTB31C1523791", "JTDKN3DUXB0271594", "JTDKN3DU4A5104424", "JTDKN3DU7D0342303", "JTDKN3DU8D1648128", "JTDKN3DU6D1637404", "JTDKN3DU7F0433378", "4T1BF1FK4EU305888", "JTDKN3DU5D5617704", "JTDKN3DU6D5581828", "JTDZN3EU7FJ025096", "JTDZN3EU5D3272473", "JTEBU5JR0F5230376"]
29
+ ```
30
+
31
+ > Note: It is not 100% guaranteed that all VINs returned will actually belong to the vehicles you are trying to query, but most of them should.
24
32
 
25
33
  ## Contributing
26
34
 
27
- 1. Fork it ( https://github.com/[my-github-username]/gimme_vins/fork )
35
+ 1. Fork it ( https://github.com/jordanstephens/gimme_vins/fork )
28
36
  2. Create your feature branch (`git checkout -b my-new-feature`)
29
37
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
38
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,3 +1,3 @@
1
1
  module GimmeVins
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/gimme_vins.rb CHANGED
@@ -8,6 +8,6 @@ module GimmeVins
8
8
  query: "#{query} vin"
9
9
  })
10
10
 
11
- results.map { |r| r.content.scan(/[A-Z0-9]+{17}/) }.flatten
11
+ results.map { |r| r.content.scan(/[A-Z0-9]+{17}/) }.flatten.uniq
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gimme_vins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Stephens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler