mina-ci 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: cfce2b48ca849fd415abdd74c7b14d370d5fa18d
4
- data.tar.gz: 4eae0dddba6be5851a9961a39a08913976ae67e7
3
+ metadata.gz: 13a69d39ecdadb08a4d559901e61579629ea2b04
4
+ data.tar.gz: 397b65ca2030e3a421a8ab9993e6242ecc340541
5
5
  SHA512:
6
- metadata.gz: 2ef3ae944f934ab6147763219b6d090a1947c247bb698286ab7121fa8d9578308446fab2d404ae926c69404090ccf4ba767351598c40ff6d8949d300b911ceea
7
- data.tar.gz: 2c5741e4d1e9094ec7f9ea344b47745dd196ef437232a1093870c95370aa0d4d36012f84f401d10a49ae09be3a669913ff7d4feaad2fe911f8010d22697e45c4
6
+ metadata.gz: eef80bbc556d057f9f4679924aa1656b68a5c561c84e2c1e32d0a23c19b8866d279ab59e3860709e7548bd3289e95e323472af166bf2425659c5b45ec6ab92b0
7
+ data.tar.gz: a37d69b1c169856fc0cbdeef7612d923e392629556a003de15de807c284173068c154da7c66998bbf34b2d6db13e3c2ecc461e397f07dbb889bc5a9b67af0802
data/lib/mina/ci/tasks.rb CHANGED
@@ -17,15 +17,19 @@ require 'json'
17
17
  # Name by which CircleCI knows your project
18
18
  #
19
19
 
20
- set_default :circle_token, fail('CircleCI token required')
21
- set_default :circle_username, fail('CircleCI username required')
22
- set_default :circle_project, fail('CircleCI project required')
20
+ set_default :circle_token, nil
21
+ set_default :circle_username, nil
22
+ set_default :circle_project, nil
23
23
 
24
24
  namespace :ci do
25
25
 
26
26
  desc 'Verify CircleCI building status.'
27
27
  task :verify_status => :evironment do
28
28
  queue %[echo "-----> check CircleCI status"]
29
+ die 0, 'Please set your `:circle_token`.' unless circle_token
30
+ die 0, 'Please set your `:circle_username`.' unless circle_username
31
+ die 0, 'Please set your `:circle_project`.' unless circle_project
32
+
29
33
  unless %w(success fixed).include?(cricle_status)
30
34
  die 1, "CircleCI not passed (#{cricle_status}), please check and fix problem first."
31
35
  end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Ci
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Dong