arquivo 0.2.6 → 0.2.7

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
  SHA256:
3
- metadata.gz: 21339beec18ea834dfa2524eba7181a1fba0397f2c02e32cc39430bdec64e5dd
4
- data.tar.gz: 4982d9660b49dca975a73cdfccf5698d69a55335eb2324a48ede6fd32dd2e4cc
3
+ metadata.gz: 89558d48120f776a51fec71ba71944581249e3ad23838737c1d424166e47e42b
4
+ data.tar.gz: 4cf0050da0b5b1e69a655802981a78bc01d1398eff08d2ab9d8ce7b5d7ef8fb1
5
5
  SHA512:
6
- metadata.gz: ae5e58177ded024eb030f431e0c991abc9ab3ef2a54d2e04c082bc84cf38582af7a451d57c984a4e6d412e72519a2919178619daec7638696cde36e31b8f1000
7
- data.tar.gz: 68017fa4d90eca7612494aeb51ed965aa46fe8c17ab7f03bbcb4581fef320945788d1966aab3b933dfbe330f5c5bdb31a768afbc273bf3dd9dfee81c37f34eb3
6
+ metadata.gz: dfb1d7d6a3361c2b9ed6308481a8a87d3252f6be230a2bc2446080915883968dac1d8e9f14eeb372ba2f90fdfb33ef098f1b0fc748c8af49c0344e5f1022987c
7
+ data.tar.gz: a4c1d2d860a1f48552e4f0015cf2a8c42e69cfa387615f2776c399b5216233eb2907f06004ce53f04ce3031d34e7a9d18fc438fb73dc377070d24f0e942919ac
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arquivo (0.2.6)
4
+ arquivo (0.2.7)
5
5
  fastimage (~> 2.1)
6
6
  google-api-client (~> 0.34)
7
7
  google-cloud-bigquery
data/lib/arquivo.rb CHANGED
@@ -67,7 +67,7 @@ module Arquivo
67
67
  desc 'big', 'processa dados bigquery c118'
68
68
  # processa bigquery c118
69
69
  def big
70
- C118dir.new('.', options).processa_big
70
+ C118dir.new('/home/c118', options).processa_big
71
71
  end
72
72
 
73
73
  desc 'dir PASTA', 'processa faturas/recibos/extratos/minutas ' \
data/lib/arquivo/dir.rb CHANGED
@@ -68,15 +68,20 @@ module Arquivo
68
68
  end
69
69
 
70
70
  def processa_big
71
- puts contem
71
+ # sheet c118-contas
72
+ dg = '1PbiMrtTtqGztZMhe3AiJbDS6NQE9o3hXebnQEFdt954'
73
+ ano = c118_sheets.get_spreadsheet_values(dg, 'cdb!AJ2').values
74
+ ins = c118_sheets.get_spreadsheet_values(dg, 'cbd!AJ:AJ').values
75
+ puts ano
76
+ puts ins
77
+
72
78
  # This uses Application Default Credentials to authenticate.
73
79
  # @see https://cloud.google.com/bigquery/docs/authentication/getting-started
74
- bigquery = Google::Cloud::Bigquery.new
75
-
76
- r = bigquery.query 'select * from arquivo.bal order by 1 desc limit 10'
77
- r.each do |row|
78
- puts "#{row[:data]}: #{row[:documento]}"
79
- end
80
+ # bigquery = Google::Cloud::Bigquery.new
81
+ # r = bigquery.query 'select * from arquivo.bal order by 1 desc limit 10'
82
+ # r.each do |row|
83
+ # puts "#{row[:data]}: #{row[:documento]}"
84
+ # end
80
85
  end
81
86
 
82
87
  # @return [String] proximo item dentro da pasta
data/lib/arquivo/noise.rb CHANGED
@@ -44,15 +44,12 @@ module Arquivo
44
44
  # @return [C118dir] pasta de documentos c118
45
45
  def initialize(dir, opt)
46
46
  c = Dir.glob(File.join(dir, '*'))
47
- puts c
48
47
  @local = dir
49
- puts @local
50
48
  @items = c.each
51
49
  @nome = File.basename(dir, File.extname(dir)) + '-' +
52
50
  Date.today.strftime('%Y%m%d')
53
51
  @opcoes = opt
54
52
  @contem = obtem_conteudo(c)
55
- puts @contem
56
53
  end
57
54
 
58
55
  # Agrupa conteudo duma pasta segundo tipos de documentos validos
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Arquivo
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arquivo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hernâni Rodrigues Vaz