geet 0.14.0 → 0.15.0

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: 4e0c9b0b20cd918b9ba0bce2769f4200ed86f73dc96007953f119f5e3cca3a26
4
- data.tar.gz: 2f807bd361e8eb6fe20a8a6ceb40de0437470de0c2a7014e2576638e007cee51
3
+ metadata.gz: f79d89578fca34fafcc206ab8e821849d67f0caaf2462670617d6bdba5e6dbeb
4
+ data.tar.gz: 9b61f3d999540e14a04888a3a612a3cd4e911adbe52962812b0ca3741316858c
5
5
  SHA512:
6
- metadata.gz: 02c71d752459372d8339b348d52db79720a7846d37406d913923a7906aba88c5b4fd658d4118f74c9fce6c91c073e7b04a42a377381968e481f112c522f05acd
7
- data.tar.gz: 418cbcd62a90765d0e9927d6d6487527ed67fedcb359a8afd8fc141e0bac4903504a84b19b4e9fa14b356dc86b2c382a547ab24d2c017ec9205f41072d43d55d
6
+ metadata.gz: '067489ba58c5c32fa4958ec6f43603b2f5746a7526a2918a0869641d654443e42223ec28876a1d13a3b900513563517200fd2933d5b0f01fdb2d8758cd526fb4'
7
+ data.tar.gz: 78d9fcc96abc7670b6802a4b3eeccbfd90258e0206da0914d9a845fd2b739f43d1e968791d89cce4a8ea3a2409035cd8d8909747bb9007fa2ff51e9e474cad5d
data/geet.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.required_ruby_version = '>= 2.6.0'
12
12
  s.authors = ['Saverio Miroddi']
13
- s.date = '2022-11-28'
13
+ s.date = '2022-12-18'
14
14
  s.email = ['saverio.pub2@gmail.com']
15
15
  s.homepage = 'https://github.com/saveriomiroddi/geet'
16
16
  s.summary = 'Commandline interface for performing SCM host operations, eg. create a PR on GitHub'
@@ -12,6 +12,7 @@ module Geet
12
12
 
13
13
  GIST_CREATE_OPTIONS = [
14
14
  ['-p', '--public'],
15
+ ['-s', '--stdin', "Read content from stdin"],
15
16
  ['-B', '--no-browse', "Don't open the gist link in the browser after creation"],
16
17
  'filename',
17
18
  '[description]'
@@ -24,8 +24,8 @@ module Geet
24
24
  # :publik: defaults to false
25
25
  # :no_browse defaults to false
26
26
  #
27
- def execute(full_filename, description: nil, publik: false, no_browse: false)
28
- content = IO.read(full_filename)
27
+ def execute(full_filename, stdin: false, description: nil, publik: false, no_browse: false)
28
+ content = stdin ? $stdin.read : IO.read(full_filename)
29
29
 
30
30
  gist_access = publik ? 'public' : 'private'
31
31
  @out.puts "Creating a #{gist_access} gist..."
data/lib/geet/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geet
4
- VERSION = '0.14.0'
4
+ VERSION = '0.15.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saverio Miroddi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-28 00:00:00.000000000 Z
11
+ date: 2022-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_scripting