daddy 0.3.16 → 0.3.17

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: 11eb7b66278f2bb815e82014c7c0b9fcb36cb001
4
- data.tar.gz: bceb7189334bbf29477dd775c6f7a68556bd0a70
3
+ metadata.gz: 22ede2b8bffdeeeef8fad37888d0ffd6b94d476f
4
+ data.tar.gz: 0195c0d9bf1ba0f35672b06848a7b0eef81afb61
5
5
  SHA512:
6
- metadata.gz: af22bf75bc4ab262d3a8fad0c22190318d3cd86978c549676f2e39dce97c604ccd3401a745dfe89cb7f0beadae50facba53195a3f82aa725973ef6c106d15a18
7
- data.tar.gz: c45401db03041d00c034bf0cc57bab94c4607bca9168ccbcb127fde45c754e2869e621be168439b414b7bc9f109829d3015433cdd3c354e2da2f0bb7daf151b0
6
+ metadata.gz: b4f900c1eab63ab1b331569bf835cf3a6a1ef317e049df4c62ec98acc29e1a0a7de64c2588e70447c8ba1bb938b3be0358c680c9ce859de0f7ba2ac309e2d36c
7
+ data.tar.gz: d0f65da877b39f2ebc2eb2662eb1ec5fb55a57b03f95176d236c3db35c1850e7ff031705ceec2a3ba5166b95cb2a427aafe6d583b40b0cb2e76bf21cc080567f
@@ -1,3 +1,3 @@
1
1
  module Daddy
2
- VERSION = '0.3.16'.freeze
2
+ VERSION = '0.3.17'.freeze
3
3
  end
@@ -1,5 +1,3 @@
1
- # coding: UTF-8
2
-
3
1
  require 'rake'
4
2
 
5
3
  namespace :dad do
@@ -7,17 +5,16 @@ namespace :dad do
7
5
 
8
6
  desc "PhantomJSをインストールします。"
9
7
  task :install do
10
- name = 'phantomjs-1.9.7-linux-x86_64'
8
+ name = 'phantomjs-1.9.8-linux-x86_64'
11
9
  file = "#{name}.tar.bz2"
12
- unless File.exist?("tmp/#{file}")
13
- system("wget https://bitbucket.org/ariya/phantomjs/downloads/#{file} -O tmp/#{file}")
14
- end
15
- system("rm -Rf tmp/#{name}")
16
- system("cd tmp && tar jxf #{file}")
17
10
 
18
- system("sudo cp -f tmp/#{name}/bin/phantomjs /usr/local/bin/phantomjs")
19
- system("sudo chown root:root /usr/local/bin/phantomjs")
20
- system("sudo chmod 755 /usr/local/bin/phantomjs")
11
+ run "wget https://bitbucket.org/ariya/phantomjs/downloads/#{file} -O tmp/#{file}" unless File.exist?("tmp/#{file}")
12
+ run "rm -Rf tmp/#{name}",
13
+ "cd tmp && tar jxf #{file}"
14
+
15
+ run "sudo cp -f tmp/#{name}/bin/phantomjs /usr/local/bin/phantomjs",
16
+ "sudo chown root:root /usr/local/bin/phantomjs",
17
+ "sudo chmod 755 /usr/local/bin/phantomjs"
21
18
  end
22
19
 
23
20
  end
@@ -4,8 +4,8 @@ namespace :dad do
4
4
 
5
5
  desc 'Cucumberを使用してテストを実行します。'
6
6
  task :test => :environment do
7
- system("mkdir -p features/reports")
8
- system("rm -Rf features/reports/*")
7
+ run 'mkdir -p features/reports',
8
+ 'rm -Rf features/reports/*'
9
9
 
10
10
  args = []
11
11
  ARGV[1..-1].each do |arg|
@@ -16,6 +16,7 @@ namespace :dad do
16
16
  end
17
17
 
18
18
  format = ENV['FORMAT'] || 'Daddy::Formatter::Html'
19
- run "bundle exec rake close FORMAT=#{format} #{args.join(' ')}"
19
+ coverage = ENV['COVERAGE'] || true
20
+ run "bundle exec rake close FORMAT=#{format} COVERAGE=#{coverage} #{args.join(' ')}"
20
21
  end
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy