brfipe 0.0.0 → 0.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
2
  SHA1:
3
- metadata.gz: d25af6364acb0195abff8a550e61bb8802ba07ab
4
- data.tar.gz: 140ad256104e3b0f3e2c7c51851ab02556b4eac9
3
+ metadata.gz: 003e0730468b4edfa4d7eb234729bf0f7cbba97d
4
+ data.tar.gz: ff786ba5d4178d520a7a4b0f3c046d872dec7eab
5
5
  SHA512:
6
- metadata.gz: 9619a57b0f3db5e7ae3de4ccda1c7688bd0c7d265556c48f97563e6c670473fc0bf75fbd5763c34ded680156e0146940af36fa2b1db90e204a0a41320124f0c6
7
- data.tar.gz: f9146d9be5c9facb506493159777fb4cd7284ac24833e993bb64a0e0cb4f35e161fb093a961406a376119701f518bad489a552fd8efbdb15da4523761173c807
6
+ metadata.gz: cf2b60cbcb29ab8507c2e7a70b2a31f424af2250fd1906f2f5b677b879b6c8dcddd64ef382d425a28fa2eec6a331dba58738038cde60aa09f46bd267aee86643
7
+ data.tar.gz: 05a9d2fe51db4c921cb4ae38ca38422ee70faee018ac0078ae01cc190141c37853d987861aebfbd0311f7fea7c8b6444d88fe88bc3d08b76be7c688f807518e4
data/.gitignore CHANGED
@@ -16,3 +16,10 @@ tmp
16
16
  .yardoc
17
17
  _yardoc
18
18
  doc/
19
+
20
+ # Ignore all tempfiles.
21
+ /tmp
22
+ /.settings
23
+ /log
24
+ .loadpath
25
+ .project
data/lib/brfipe/fipe.rb CHANGED
@@ -44,6 +44,10 @@ class Fipe
44
44
  data << ["__VIEWSTATE", view_state]
45
45
 
46
46
  page = get_data(data, veiculo)
47
+
48
+ modelos = extrai_modelos(page)
49
+
50
+ ano_modelo = modelos.invert[ano_modelo]
47
51
 
48
52
  view_state = catch_view_state(page)
49
53
  event_validation = catch_event_validation(page)
@@ -1,3 +1,3 @@
1
1
  module Brfipe
2
- VERSION = "0.0.0"
2
+ VERSION = "0.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brfipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Batista da Silva
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2013-05-10 00:00:00 Z
12
+ date: 2013-05-12 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec