CiHelper 2.1 → 2.1.1

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: aad5fddb4944394ae717fc8eb203d5ef7c390270
4
- data.tar.gz: b321528c4c31345d7a054bf877a01342c5595f6b
3
+ metadata.gz: aacf21fd288b3f175986474b464199f1f166763c
4
+ data.tar.gz: 6d4ccfec41b48e53dbf54daa5367a61879e70cf3
5
5
  SHA512:
6
- metadata.gz: 8abec7a049dd5ecaeb052b5748cfcf6b68c89c3004143da5fa09e103b63e7f015eca5b5963ec5eb172937304a692b19553176b43cd82a2f0b914782ad6452c89
7
- data.tar.gz: 5ec021b00aef2415fd9fc7fb8e72d0baf83f622096b3535458c1b39196f2731c7ea1bb7f95e1fa2c5ebde6cbb3361823a28f8f4f5d6e9fbecdcec1d21fa8fbdc
6
+ metadata.gz: 8835873dfa3e81049ec90e86d35dda7fe301f0fe1c3d079be31f965ae563967882e07a5b2c7f03b85bc5463cdfe6e94d3e64cdddba46478158240bdb0ebcbc87
7
+ data.tar.gz: 4417f5b08c7969e491b73ecc3e0abfc56c2cc8059aa7894d9045393c6e9472ef6b53b535e91d631f5db40e9beaf367523952e657e92cf015d4fca541593a7a02
@@ -0,0 +1,51 @@
1
+ module CiHelper
2
+ module Formatter
3
+ module Common
4
+ def budddha
5
+ #
6
+ # [
7
+ # " _oo8oo_",
8
+ # " o8888888o",
9
+ # " 88' . '88",
10
+ # " (| -_- |)",
11
+ # " 0\ = /0",
12
+ # " ___/'==='\___ where is my mom mom ? ",
13
+ # " ' \\| | '.",
14
+ # " / \\||| : ||| \"",
15
+ # " / _||||| -:- |||||_ \"",
16
+ # " | | \\\ - / | | "",
17
+ # " | \_| ''\---/ '' |_/ |",
18
+ # " \ .-\__ '-' __/-. /"",
19
+ # ___'. .' /--.--\ '. .'___
20
+ # ."" '< '.___\_<|>_/___.' >' "".
21
+ # | | : `- \`.:`\ _ /`:.`/ -` : | |
22
+ # \ \ `-. \_ __\ /__ _/ .-` / /
23
+ # =====`-.____`.___ \_____/ ___.`____.-`=====
24
+ # `=---=`
25
+ #
26
+ #
27
+ #
28
+ end
29
+
30
+ def print_horse_format
31
+ puts horse_formatter.join("\n")
32
+ end
33
+
34
+ def horse_formatter
35
+ [
36
+ " where is my mommom ?",
37
+ "\\",
38
+ "\\ ^___^",
39
+ " \\ (O O) \\______________",
40
+ " (___) \\ ) \\/\\",
41
+ " || -----------w | ",
42
+ " || | |",
43
+ " || | \\",
44
+ " ######### ########"
45
+ ]
46
+
47
+ end
48
+ end
49
+ end
50
+ end
51
+
@@ -1,6 +1,7 @@
1
+ require 'ci_helper/formatter/common'
1
2
  module CiHelper
2
3
  class UserCommandLineInterface
3
-
4
+ include CiHelper::Formatter::Common
4
5
 
5
6
  # TODO : need to move to bitbucket related setting to let user set
6
7
  REVIEWERS = ['anna_ho_2014', 'cherylyu_jcm',
@@ -132,7 +133,10 @@ module CiHelper
132
133
  reviewer = []
133
134
  choosen_key.each do |value|
134
135
  if value.to_i == CiHelper::DANGEROUS
136
+
135
137
  print_ngyan_cat
138
+ puts "\n"
139
+ print_horse_format
136
140
  fail Exceptions::SettingError, 'Please dont choose Ciao Bao its dangerous !!!!!!!'
137
141
  end
138
142
 
@@ -1,3 +1,3 @@
1
1
  module CiHelper
2
- VERSION = '2.1'
2
+ VERSION = '2.1.1'
3
3
  end
data/lib/ci_helper.rb CHANGED
@@ -12,4 +12,3 @@ require 'ci_helper/constants'
12
12
  require 'ci_helper/exceptions'
13
13
  require 'ci_helper/redmine_procedure'
14
14
  require 'ci_helper/functions'
15
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CiHelper
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.1'
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Yu
@@ -68,6 +68,7 @@ files:
68
68
  - lib/ci_helper/cli.rb
69
69
  - lib/ci_helper/constants.rb
70
70
  - lib/ci_helper/exceptions.rb
71
+ - lib/ci_helper/formatter/common.rb
71
72
  - lib/ci_helper/functions.rb
72
73
  - lib/ci_helper/functions/base.rb
73
74
  - lib/ci_helper/functions/jenkin.rb