kishu 1.0.0 → 1.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
  SHA256:
3
- metadata.gz: 45d4e6ad0c84d9c3dfaef319fb4321bbaf9d6623b8ef810420af2b1e0779fea8
4
- data.tar.gz: 9672d38f55253112c443b17da56e35c7469211ee9a90f9dbc8844e1a4bf67eae
3
+ metadata.gz: e9a72d0115d177b245a1847cd6b3707b8a7b20d552666e8a2e1d005f41aada1d
4
+ data.tar.gz: 868fb97bbedb22d01d46bd11559268d102d09eaf01c897e686f84b87084fea18
5
5
  SHA512:
6
- metadata.gz: 7727dafcfe5f6fbda41a4a5d1d634419e6fdd23afb122c6452c9156e8644bef6999d1527ba74f42237a9f5ee0cf9388fb8231bcea35b99fce70e3a32c716fb28
7
- data.tar.gz: 0dd429d67bae7d4557a04d2b4d4e19d729383571b33d6340dadb9220734888214ede9bac1fa37e9f18e1dc53eec07017f30b13539b899c98b0d75256ae931340
6
+ metadata.gz: d11de678ce4948956207bf7fe8e481ab90f5d69b1098c8faa9de7fb0988672c2f2c942dd38a2497e7f85c9d90ca9e81c5747c2e8a077935b34b07281f7656be3
7
+ data.tar.gz: 8eeaf42007bea19d16990c0c8551ab361a84ed61e6349a37f2b958a6d1c046f84d0cbec26737e7924122290b2b892a4b5554440bb7fa3b5a4b9458b2fe071b93
@@ -8,7 +8,10 @@ module Kishu
8
8
  class S3
9
9
 
10
10
  def initialize
11
- s3 = Aws::S3::Client.new
11
+ s3 = Aws::S3::Client.new(
12
+ :access_key_id => AWS_ACCESS_KEY_ID,
13
+ :secret_access_key => AWS_SECRET_ACCESS_KEY
14
+ )
12
15
  resp = s3.list_buckets
13
16
  resp.buckets.map(&:name)
14
17
  end
@@ -69,8 +69,10 @@ module Kishu
69
69
 
70
70
  desc "is ES running", "check es is working"
71
71
  def elasticsearch_results
72
- es = Client.get({aggs_size: 10, after_key: ""})
73
- puts es
72
+ es = Client.new()
73
+ es = es.get({aggs_size: 10, after_key: ""})
74
+ puts es.dig("hits","total")
75
+ puts "Aggregations:" + es.fetch("aggregations",[]).first.to_s
74
76
  end
75
77
 
76
78
  end
@@ -1,3 +1,3 @@
1
1
  module Kishu
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kishu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Garza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-14 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -386,8 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
386
386
  - !ruby/object:Gem::Version
387
387
  version: '0'
388
388
  requirements: []
389
- rubyforge_project:
390
- rubygems_version: 2.7.8
389
+ rubygems_version: 3.0.0
391
390
  signing_key:
392
391
  specification_version: 4
393
392
  summary: Client for DOI Resolution Logs processing pipeline