validaDolarUol 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c85871f46a0ce47635d887916fef5b39e0e5a95c
4
- data.tar.gz: c91a24a326378f33bc947656eb266b16b07fd6e4
3
+ metadata.gz: 3b5d7a4aca01a15bf75ff0c4536ee64fc9b7fc92
4
+ data.tar.gz: f1462c49925dfe197c9b2f13e924294a191e4900
5
5
  SHA512:
6
- metadata.gz: 79979bbeb959482dabcd459b6d871e59cbf4af78e1d071c1e45c46b834031ddc0ca0c2bc03a95f25d4cd46e33cdaaed4be537592a1e5163bb9a2f7ac321f4645
7
- data.tar.gz: 7fce8865b0dee7914e0270ccceeaa3d2517f1f6fbbea3ec4f653d99509fb3c55d67888f8b1d98f5d656ca284f9deffdbe752806a800be1a22de77ad646c23bbb
6
+ metadata.gz: 3b1176d902986490561a0818015aded84cce1e9d1e8f080dde667af95fcc867136842503b0d6548bf19f2ad418ce4bc3db381858640a18d9aa1e6e1f8dbe7374
7
+ data.tar.gz: 8169c04d2e412989754ef6a51e7b71b84cffc4777b1ca4da901e04f1c981dda674e60bfd4431e3c5a856876eda2d1ab0a84093aab5021266a997989fe0673469
data/Gemfile CHANGED
@@ -3,4 +3,3 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in validaDolarUol.gemspec
4
4
  gemspec
5
5
  gem 'nokogiri'
6
- gem 'loofah'
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ValidaDolarUol
2
2
 
3
- TODO: Write a gem description
3
+ Repassa um json com valores do dolar da pagina de cotações do uol
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,7 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ $ ValidaDolarUol
22
22
 
23
23
  ## Contributing
24
24
 
data/Rakefile CHANGED
@@ -1,7 +1 @@
1
- require "bundler/gem_tasks"
2
-
3
- # Rake::TestTask.new do |t|
4
- # t.libs << "tests"
5
- # t.test_files = FileList['tests/test*.rb']
6
- # t.verbose = true
7
- # end
1
+ require "bundler/gem_tasks"
@@ -1,7 +1,6 @@
1
1
  require "validaDolarUol/version"
2
2
  require "open-uri"
3
3
  require "nokogiri"
4
- require "loofah"
5
4
 
6
5
  module ValidaDolarUol
7
6
  def self.coletar
@@ -15,8 +14,8 @@ module ValidaDolarUol
15
14
  :horario => cols[0],
16
15
  :compra => cols[1],
17
16
  :venda => cols[2],
18
- :perc_Variacao => cols[3],
19
- :variação => cols[4],
17
+ :perc_variacao => cols[3],
18
+ :variacao => cols[4],
20
19
  :maximo => cols[5],
21
20
  :minimo => cols[6]
22
21
  }
@@ -1,3 +1,3 @@
1
1
  module ValidaDolarUol
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -7,9 +7,9 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "validaDolarUol"
8
8
  spec.version = ValidaDolarUol::VERSION
9
9
  spec.authors = ["Everton Amaral"]
10
- spec.email = ["everton.amaral@abril.com.br"]
10
+ spec.email = ["everton.amaral@gmai.com"]
11
11
  spec.summary = "Capturar cotacao dolar uol"
12
- spec.description = "Simples assim http no site do uol parse e resultado"
12
+ spec.description = "Simples assim request http no site do uol e um parse e resultado"
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
- spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "nokogiri"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validaDolarUol
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
  - Everton Amaral
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -38,9 +38,9 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Simples assim http no site do uol parse e resultado
41
+ description: Simples assim request http no site do uol e um parse e resultado
42
42
  email:
43
- - everton.amaral@abril.com.br
43
+ - everton.amaral@gmai.com
44
44
  executables:
45
45
  - validaDolarUol
46
46
  extensions: []