informativos-api 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e5d193ce6018d02b95a0629e1eb85c029b9f3c101657b1fc44b1ee3793105464
4
+ data.tar.gz: 6d066e9d51f01e720e89d92975be9deeae90528e6af91539538ce50479249201
5
+ SHA512:
6
+ metadata.gz: 28c0cc88aedbf9ef8021c1a4d0290ba8f1736f86b253b32b57b0b027762e7c6d4c53eeb65ee9c79de73234c49024ecbcf7598e4c5960a72e93e9cfe602df2531
7
+ data.tar.gz: 71ce9dc59b3a35a15a338b36b30aae962b0059d488c2ddc00afe116fe7e6b5572ae3da0f1cf5a243cc8981c8aed532e280096366b1fae931a52182337b8901bb
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in informativos-api.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,17 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ informativos-api (1.0.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+
10
+ PLATFORMS
11
+ ruby
12
+
13
+ DEPENDENCIES
14
+ informativos-api!
15
+
16
+ BUNDLED WITH
17
+ 2.1.1
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2020 Investtools
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/gen/Prices_pb.rb ADDED
@@ -0,0 +1,37 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: Prices.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("Prices.proto", :syntax => :proto3) do
8
+ add_message "informativos.GetPricesReq" do
9
+ optional :updated_since, :uint64, 1
10
+ end
11
+ add_message "informativos.Price" do
12
+ optional :id, :string, 1
13
+ optional :security, :string, 2
14
+ optional :settlement_date, :uint64, 3
15
+ optional :date, :uint64, 4
16
+ optional :close, :double, 5
17
+ optional :open, :double, 6
18
+ optional :high, :double, 7
19
+ optional :low, :double, 8
20
+ optional :average, :double, 9
21
+ optional :bid, :double, 10
22
+ optional :ask, :double, 11
23
+ optional :volume, :double, 12
24
+ optional :quantity, :double, 13
25
+ optional :trades, :double, 14
26
+ optional :change, :double, 15
27
+ optional :a_change, :float, 16
28
+ optional :origin, :string, 17
29
+ optional :updated_at, :uint64, 18
30
+ end
31
+ end
32
+ end
33
+
34
+ module Informativos
35
+ GetPricesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetPricesReq").msgclass
36
+ Price = Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Price").msgclass
37
+ end
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: Prices.proto for package 'informativos'
3
+
4
+ require 'grpc'
5
+ require 'Prices_pb'
6
+
7
+ module Informativos
8
+ module Prices
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'informativos.Prices'
16
+
17
+ rpc :GetPrices, GetPricesReq, stream(Price)
18
+ end
19
+
20
+ Stub = Service.rpc_stub_class
21
+ end
22
+ end
@@ -0,0 +1,19 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "informativos-api"
7
+ spec.version = File.read(File.expand_path('../../version.txt', __FILE__))
8
+ spec.authors = ["Breno Perricone Fischer"]
9
+ spec.email = ["breno@investtools.com.br"]
10
+ spec.summary = %q{Informativos API}
11
+ spec.description = %q{Informativos API}
12
+ spec.homepage = "https://api.informtivos.io/"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib", "gen"]
19
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: informativos-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Breno Perricone Fischer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-01-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Informativos API
14
+ email:
15
+ - breno@investtools.com.br
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Gemfile
21
+ - Gemfile.lock
22
+ - LICENSE.txt
23
+ - Rakefile
24
+ - gen/Prices_pb.rb
25
+ - gen/Prices_services_pb.rb
26
+ - informativos-api.gemspec
27
+ homepage: https://api.informtivos.io/
28
+ licenses:
29
+ - MIT
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ - gen
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubygems_version: 3.0.3
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: Informativos API
51
+ test_files: []