bun_bo 0.1.2 → 0.1.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
  SHA256:
3
- metadata.gz: e2515c4ea90ea2a3f96d7108c50a03a6251f9056a8662aaacfef32a1084929b7
4
- data.tar.gz: 301210b6fd6b07d67c01ef9d5408ee94821d35a0620ab6c05dcd3d1c6c4b5892
3
+ metadata.gz: ce919d50ea888137cb8a19f22c046b2494ad631195316ec929fe4b728263ed8d
4
+ data.tar.gz: 23fd7e27dadf7d54ce16dbe803abb613332feeeb8703421fdb2ddfd22831b227
5
5
  SHA512:
6
- metadata.gz: 7bd0dd8efeaf3b540163deb31981d5b7fc6608d652754542b23f83eaf02e6bee45a174d3a238b19c3fe96e41d8e20a563d85e72204bd2ca99baea19508e7d81d
7
- data.tar.gz: fd710a8fd238c329c40dceba4838466105f78245d816c97eef5e0b339fc6ed05e7f09ec3e72e225c3b523c4ded0c180c1c5b9be20b0f6c1ee1ebac636ba1730b
6
+ metadata.gz: 311e703e4e68f6f7b37c6bf2ed57adb9d2068745251d65bbcda85da5acee2e6302a6e730f7a8d09867b35bcb2f47a5fd9eb85806f18c5e247c9b26b0ce139927
7
+ data.tar.gz: 69b0cb30793c1752acfbbb9b5ec3ee9d784f241adcb3fd809b32a619d4c664ad6971ab50671ad9a9cbe919c620591d39d1225565ccf3e7f998760262d02ccd4e
data/README.md CHANGED
@@ -10,7 +10,7 @@ work-in-progress. The functionality it intends to deliver:
10
10
 
11
11
  ## Installation
12
12
 
13
- Or install it yourself as:
13
+ Install it with:
14
14
 
15
15
  ```shell
16
16
  $ gem install bun_bo
data/exe/bun_bo CHANGED
@@ -1,7 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
3
  require "bun_bo"
5
4
 
6
5
  input_path = ARGV.first
7
- BunBo.new.run(input_path)
6
+
7
+ begin
8
+ BunBo.new.run(input_path)
9
+ rescue BunBo::FileNotFound => e
10
+ puts e.message
11
+ end
@@ -0,0 +1,7 @@
1
+ class BunBo
2
+ class FileNotFound < StandardError
3
+ def message
4
+ "File does not exists"
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  class BunBo
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/bun_bo.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "bun_bo/version"
2
+ require "bun_bo/file_not_found"
2
3
  require 'fileutils'
3
4
 
4
5
  class BunBo
@@ -16,7 +17,7 @@ class BunBo
16
17
  FileUtils.mkdir_p(test_folder)
17
18
  test_path.write('')
18
19
  else
19
- puts "File does not exists"
20
+ raise FileNotFound
20
21
  end
21
22
  end
22
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bun_bo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hieu Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-19 00:00:00.000000000 Z
11
+ date: 2018-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,6 +72,7 @@ files:
72
72
  - bun_bo.gemspec
73
73
  - exe/bun_bo
74
74
  - lib/bun_bo.rb
75
+ - lib/bun_bo/file_not_found.rb
75
76
  - lib/bun_bo/version.rb
76
77
  homepage: https://github.com/hieuk09/bun_bo
77
78
  licenses: