rake-n-bake 2.0.1 → 2.1.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
  SHA1:
3
- metadata.gz: a2c1a41cecc4f0b81aceabd946330f46d6197cb0
4
- data.tar.gz: 31e8eeef8bd4eca2c3220a53417fa9b94aa91490
3
+ metadata.gz: 73bc97d43c32ef44abefbea3cfb9545b537b1c5c
4
+ data.tar.gz: 0b0d179282de4c8635e46d59de92e3ea2739c25c
5
5
  SHA512:
6
- metadata.gz: e4fb8f2cd29aa928b7b3565bcd0ca4fbcb34663dd8983dcfbb2786118a7b51438a7361ae38ced9f86865c192aa226c70a03c429b14b7b7ea13a7ba16b1e0fdd2
7
- data.tar.gz: a35976bd412adf303f6f53be43584cd471009cb9c884bac74f4b870a6f39d8b57b40228e81b67be15c50a14ff42d1caf69d38e146dd59ecda082d633b403c9b9
6
+ metadata.gz: 038451f4067322df6d2fa4552574a94588b0cbb7758c70f37211c17ab6e42354e92b769966e584374a47b1007a09dd429f423272c87d19c62c86f9ba5da1bb54
7
+ data.tar.gz: dbadac1b8355bfce536f44f3eb6ee13aaf655471ac5acf91aefd73f938f858c106c953c5692227949fbf485e2701b4b1d30184cf444264999f95c37431f500a2
data/.semver CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  :major: 2
3
- :minor: 0
4
- :patch: 1
3
+ :minor: 1
4
+ :patch: 0
5
5
  :special: ''
6
6
  :metadata: ''
data/Gemfile CHANGED
@@ -22,4 +22,5 @@ group :development, :test do
22
22
  gem 'term-ansicolor', '~> 1.3'
23
23
  gem 'timecop'
24
24
  gem 'traceroute'
25
+ gem 'terminal-notifier'
25
26
  end
@@ -1,3 +1,7 @@
1
+ == v2.1.0 (25 November 2016)
2
+
3
+ * Add Terminal Notifier OK task (bake:ok_term_notifier)
4
+
1
5
  == v2.0.1 (24 November 2016)
2
6
 
3
7
  * Fix version headding addition in markdown files
@@ -1,3 +1,3 @@
1
1
  module RakeNBake
2
- VERSION = '2.0.1'
2
+ VERSION = '2.1.0'
3
3
  end
@@ -61,4 +61,30 @@ namespace :bake do
61
61
  end
62
62
  puts C.reset
63
63
  end
64
+
65
+ begin
66
+ require 'terminal-notifier'
67
+
68
+ desc 'Show the test complete message using Terminal Notifier'
69
+ task :ok_term_notifier do
70
+ dir_name = File.basename(Dir.getwd)
71
+ TerminalNotifier.notify(
72
+ 'All tests passed!',
73
+ title: "#{dir_name} build complete!",
74
+ group: dir_name,
75
+ appIcon: 'https://www.ruby-lang.org/images/header-ruby-logo.png',
76
+ )
77
+ end
78
+
79
+ rescue LoadError
80
+ tasks = %w[ ok_term_notifier ]
81
+
82
+ tasks.map(&:to_sym).each do |t|
83
+ desc 'Terminal Notifier is not available (gem not installed)'
84
+ task t do
85
+ RakeNBake::Baker.log_missing_gem 'terminal-notifier'
86
+ abort
87
+ end
88
+ end
89
+ end
64
90
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-n-bake
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Vickerstaff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-24 00:00:00.000000000 Z
12
+ date: 2016-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake