kril 0.2.2 → 0.2.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: 76311c3631f04d8825304e54631a10d2f854cc0f
4
- data.tar.gz: dd0fe954dabe659bb5ecac6c04aa269d2a7991c5
3
+ metadata.gz: 78ad85e819260343f49eaf744a1a3adc57358286
4
+ data.tar.gz: 4dd49e901cd9769dff1e3a8829295f36fe7f2b5b
5
5
  SHA512:
6
- metadata.gz: 54cc317fe57dfb796a0f87f0f88f7440e472048a010f159199f6285263604413b3aa5de054425425d0ddb0c473adb8a5f7d7b85b6943b45a225aa545b73010da
7
- data.tar.gz: 51c201f5a3175d716431459f459637bb296405986e931584958b93394d215f204cd29c15653102dbf0ed8264b701a0987db4fb42131e2649727b12886f737305
6
+ metadata.gz: eeda51547bb8cf4d2a5b21194f5988b551b87a3cdf9392737b95a5b5f1476542c89db11266f982413349a9ab39e217b1df12ed3d8adaba274ae2feb0aed9115b
7
+ data.tar.gz: 5be17cd3024a8eb353c7e63694bc4360568cc9d12a59940033b3fbca064c05eb6c26e59536db514395c754c5a5ceacc3b44f7e0ad74b9cb9b1fe4e66e58ed372
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kril (0.2.2)
4
+ kril (0.2.3)
5
5
  avro_turf (~> 0.8.0)
6
6
  clamp (~> 1.2, >= 1.2.1)
7
7
  ruby-kafka (~> 0.5.3)
data/README.md CHANGED
@@ -2,14 +2,15 @@
2
2
 
3
3
  Kril is an easy to use command line interface (CLI) for interacting with [Apache Kafka](https://kafka.apache.org/). It uses [Apache Avro](https://avro.apache.org/) for serialization/deserialization.
4
4
 
5
- [![Build Status](https://travis-ci.org/ChadBowman/kril.svg?branch=master)](https://travis-ci.org/ChadBowman/kril)
5
+ [![Build Status](https://img.shields.io/travis/ChadBowman/kril.svg?style=for-the-badge)](https://travis-ci.org/ChadBowman/kril)
6
+ [![Gem](https://img.shields.io/gem/v/kril.svg?style=for-the-badge)](https://rubygems.org/gems/kril)
6
7
 
7
8
  ## Installation
8
9
 
9
10
  Add this line to your application's Gemspec:
10
11
 
11
12
  ```ruby
12
- spec.add_development_dependency 'kril', '~> 0.1'
13
+ spec.add_dependency 'kril', '~> 0.1'
13
14
  ```
14
15
 
15
16
  And then execute:
@@ -20,6 +21,7 @@ Or install it yourself as:
20
21
 
21
22
  $ gem install kril
22
23
 
24
+
23
25
  ## Usage
24
26
 
25
27
  Assuming your schema is not registered with the schema registry, and doesn't exist in the repository, you can define a schema and commit a record like so:
@@ -93,9 +95,10 @@ To see what schemas are saved in the repository:
93
95
  $ kril --list-schemas
94
96
  ```
95
97
  ```bash
96
- human
97
98
  another_schema
99
+ human
98
100
  ```
101
+
99
102
  ## Contributing
100
103
 
101
104
  1. Fork it ( https://github.com/ChadBowman/kril/fork )
@@ -109,3 +112,4 @@ Obey 👮[Rubocop](https://github.com/bbatsov/rubocop)! 🚨
109
112
  ## License
110
113
 
111
114
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
115
+
data/bin/kril CHANGED
@@ -79,7 +79,9 @@ Clamp do
79
79
  end
80
80
  if list_schemas?
81
81
  schemas = File.join(schemas_path, '**', '*.avsc')
82
- Dir.glob(schemas).map { |file| puts File.basename(file, '.avsc') }
82
+ files = Dir.glob(schemas).map { |file| File.basename(file, '.avsc') }
83
+ files.sort.each { |name| puts name }
84
+ files
83
85
  end
84
86
  end
85
87
 
@@ -17,6 +17,7 @@ module Kril
17
17
  # input_string - schema name, schema file, or schema contents [String]
18
18
  # returns - stored schema [Avro::Schema]
19
19
  def process(input_string)
20
+ return nil unless input_string
20
21
  name, namespace =
21
22
  if File.exist?(input_string)
22
23
  copy_schema_to_store(input_string)
data/lib/kril/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kril
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kril
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Bowman