gh_draft_issues_converter 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 9e6927a8af7beeb90fd25f0e5679e12b282d47277c38ca3202b98c8163dfd401
4
- data.tar.gz: 0e13cef93bd8ee40883210e317b4581b097b18457df306403c81f06d246c0412
3
+ metadata.gz: 90e65b30dabc270fdf07b0fbaba74aa02e6f8b5f3fd815f653bf7e5efbbda1d3
4
+ data.tar.gz: d7f856443b45713c3146201f7b7bfc5334ec01fb8800f1a66bccaacedca395eb
5
5
  SHA512:
6
- metadata.gz: b98d084851cf3dc2b2b322653aa8c57a660fd1f54a84ef1fcade935d9af1b0172eb7b9f1b16ec9d25a1714ec354189ec85f29b71d2025a13e0071a36f3e1330b
7
- data.tar.gz: be9c5c8f0d623129f6752d761ea02590fc2309ee3902e76d24c4bfafdf74b13af1a0c56803402d45aa9cc9b6a4ec0ba630562a7394f9f765ec8e8433894752d0
6
+ metadata.gz: e9c295644f9cd312818330695df91cce9a65757814dc5c483e9d1f3c949a9bcecf4524de61dd670a19ed0a69319e32ab2a73e189780ec52f32b1332255800a34
7
+ data.tar.gz: a99bd0bd6669350d8362dc6af63b5f353e2d9c4d85bf709f8c3cc17dfe33175ca84fc2626191e92f6a0ea69c676ef30eb1f33fed6634f844227a54bac5ce8d64
@@ -3,4 +3,4 @@
3
3
 
4
4
  require "gh_draft_issues_converter"
5
5
 
6
- GhDraftIssuesConerter::CLI.start(ARGV)
6
+ GhDraftIssuesConverter::CLI.start(ARGV)
@@ -4,7 +4,7 @@ require_relative "lib/gh_draft_issues_converter/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "gh_draft_issues_converter"
7
- spec.version = GhDraftIssuesConerter::VERSION
7
+ spec.version = GhDraftIssuesConverter::VERSION
8
8
  spec.authors = ["Akira Kure"]
9
9
  spec.email = ["kuredev@users.noreply.github.com"]
10
10
 
@@ -5,7 +5,7 @@ require "optparse"
5
5
  # Example
6
6
  # bundle exec ruby gh_draft_issues_converter --projects_number N --repository_name "XXX"
7
7
 
8
- module GhDraftIssuesConerter
8
+ module GhDraftIssuesConverter
9
9
  class CLI
10
10
  def self.start(argv)
11
11
  options = {}
@@ -329,6 +329,11 @@ module GhDraftIssueConverter
329
329
  !draft_issue.unnecessary_for_convert_issue?
330
330
  end
331
331
 
332
+ if draft_issues.length.zero?
333
+ puts "Nothing to convert items."
334
+ exit
335
+ end
336
+
332
337
  draft_issues.each_with_index do |draft_issue, index|
333
338
  puts "Converting: #{draft_issue.title}"
334
339
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module GhDraftIssuesConerter
4
- VERSION = "0.1.3"
3
+ module GhDraftIssuesConverter
4
+ VERSION = "0.1.4"
5
5
  end
@@ -4,6 +4,6 @@ require_relative "gh_draft_issues_converter/version"
4
4
  require_relative "gh_draft_issues_converter/cli"
5
5
  require_relative "gh_draft_issues_converter/gh_draft_issues_converter"
6
6
 
7
- module GhDraftIssuesConerter
7
+ module GhDraftIssuesConverter
8
8
  class Error < StandardError; end
9
9
  end
@@ -1,4 +1,4 @@
1
- module GhDraftIssuesConerter
1
+ module GhDraftIssuesConverter
2
2
  VERSION: String
3
3
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh_draft_issues_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Kure
@@ -40,9 +40,9 @@ files:
40
40
  - exe/gh_draft_issues_converter
41
41
  - gh_draft_issues_conerter.code-workspace
42
42
  - gh_draft_issues_converter.gemspec
43
- - lib/gh_draft_issues_conerter.rb
43
+ - lib/gh_draft_issues_converter.rb
44
44
  - lib/gh_draft_issues_converter/cli.rb
45
- - lib/gh_draft_issues_converter/gh_draft_issues_conerter.rb
45
+ - lib/gh_draft_issues_converter/gh_draft_issues_converter.rb
46
46
  - lib/gh_draft_issues_converter/version.rb
47
47
  - sig/gh_draft_issues_conerter.rbs
48
48
  homepage: https://github.com/kuredev/gh_draft_issues_converter