genial 0.0.1 → 0.0.2

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: d8f345d87c0bd05f6a8f473092ec78c4e06a2cc8
4
- data.tar.gz: a8ef854fd459d8fa68a12a6f61e658bd32b37ac1
3
+ metadata.gz: 0c440e329e0688b49b74fe0217c118fc24fbecaf
4
+ data.tar.gz: 13ebe732e56b4a8c499bb659c49439dc2a142fe2
5
5
  SHA512:
6
- metadata.gz: 8d1716d81edcff450980953328cae49c467a8c1615f59c3d00c623d74a2655d206ef998365da5d2341bccd8ff6c1d4fef99cd52d94cc14e361d60e6708f52ab4
7
- data.tar.gz: e0ca37e2d438e80b9b7541d07336afaa11095de33bcb575e36cea37882f229ae34ac9cebbe9936d4b577de09bc50a1e2ba75cc16b3b44c1c6d47fecde1084610
6
+ metadata.gz: 0551ac346f09c451afa1c3d3bf9103e0d49dd09da93a234954daeb317c1857711d02125149df7160a73d0f20ee2c65f908bf0e0621a2eb517690e44a90013ba6
7
+ data.tar.gz: 9e623db1777bcd570e38674bac0528ebbbb2cbbc84c134edd3ccaea4e1565cf140d2b80736b01d0b1f4ea5b2638dcf2752bc7145cf52895e809b8e738d80c7b1
@@ -9,9 +9,10 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Renan Gurgel"]
10
10
  spec.email = ["gurgel.renan@gmail.com"]
11
11
 
12
- spec.summary = %q{Métodos rotineiros do dia-a-dia}
13
- spec.description = %q{Algumas funções comuns no dia-a-dia do desenvolvimento}
12
+ spec.summary = %q{Mostra a cotação de algumas moedas em Real(R$).}
13
+ spec.description = %q{Mostra a cotação de algumas moedas em Real(R$) com base nos dados do Banco Central.}
14
14
  spec.homepage = "https://github.com/gurgelrenan/genial"
15
+ spec.license = "MIT"
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
18
  spec.bindir = "exe"
@@ -20,4 +21,6 @@ Gem::Specification.new do |spec|
20
21
 
21
22
  spec.add_development_dependency "bundler", "~> 1.9"
22
23
  spec.add_development_dependency "rake", "~> 10.0"
24
+
25
+ spec.add_dependency "httparty", "~> 0.13.7"
23
26
  end
@@ -1,5 +1,14 @@
1
1
  require "genial/version"
2
+ require "httparty"
2
3
 
3
4
  module Genial
4
- # Your code goes here...
5
+ class Currency
6
+ include HTTParty
7
+ base_uri "http://api.xgeek.com.br/taxa-cambio"
8
+
9
+ def self.dolar
10
+ get("/currency?code=USD").parsed_response["buying_rate"]
11
+ end
12
+ end
13
+
5
14
  end
@@ -1,3 +1,3 @@
1
1
  module Genial
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genial
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
  - Renan Gurgel
@@ -38,7 +38,22 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description: Algumas funções comuns no dia-a-dia do desenvolvimento
41
+ - !ruby/object:Gem::Dependency
42
+ name: httparty
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.13.7
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.13.7
55
+ description: Mostra a cotação de algumas moedas em Real(R$) com base nos dados do
56
+ Banco Central.
42
57
  email:
43
58
  - gurgel.renan@gmail.com
44
59
  executables: []
@@ -57,7 +72,8 @@ files:
57
72
  - lib/genial.rb
58
73
  - lib/genial/version.rb
59
74
  homepage: https://github.com/gurgelrenan/genial
60
- licenses: []
75
+ licenses:
76
+ - MIT
61
77
  metadata: {}
62
78
  post_install_message:
63
79
  rdoc_options: []
@@ -78,5 +94,5 @@ rubyforge_project:
78
94
  rubygems_version: 2.4.6
79
95
  signing_key:
80
96
  specification_version: 4
81
- summary: Métodos rotineiros do dia-a-dia
97
+ summary: Mostra a cotação de algumas moedas em Real(R$).
82
98
  test_files: []