daddy 0.0.4 → 0.0.5

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTc3ZmI4NTNlODk3NGI5ZTU0ZTU2Y2U1OGFjYjJiNjA5Y2UwNTAwZg==
4
+ YTljOWIyOWZkZTZjOGQ4MDAzYTBjNzBmOTc0MDY2ZTgyZWY4MDRiYg==
5
5
  data.tar.gz: !binary |-
6
- ZWIxYmFkNGQ1MmIyN2UyMWE4MDM0ZmIyNzY4NDkzNjc2MmU0OWNjOQ==
6
+ YjgzODZkMDU2NmM0MmViNTUxM2Q0OTEwMDgyMjUxYTY2YjI3Zjg2ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OWY3MzcxMDFkNDFkZjJiZDExNGEzOGQ4ZjBkMzAyNDViZTFlMzRjMDUyOWI1
10
- MjBiY2Y3NTdiYTkxODJhZTgzZmVmZTIxMTU2MWY5ZWMxZDRmNTUzZTY3N2Nj
11
- ZWNkZTY1OGEzMTJlZDFmZGE3NjNiOWE3NmRkNjE0NTQxMTMzODc=
9
+ ZWEyODdjNDRmM2Y1OTNhN2JhYmQ3MDAyOWE3YmY1MTRhZjg4Mjg1YTMxNGUz
10
+ YjIxM2NiOTAzNTBmODY3YjZhNzBhNWM3YmVkOGQ2N2NjNDc0MTc2NjA5NWI5
11
+ YzYzM2Q0NTJjYmU1ZDAxMjZmYTcyMWM0OGJjOGJkODJmZjVjZjk=
12
12
  data.tar.gz: !binary |-
13
- NjA3OTlkOWI3MDkxYWVmYzRiNzI4ZWRlOGE3NzJhYTFiZDQ4OWU0ZWUyZTdj
14
- MWE1NThmYWVjYzg3M2I2ODZmNzhlOThlZDY2NTMxZGI5N2U1ZDg4ZGQwNTNl
15
- NTIzMWRiZWM5NmNmMjg2Njk3NDgzZjhjYjE1ODk2MzUwMjhlMjI=
13
+ NjA3NWE1NzA4MmE1OGQ1OTg1MzYwZThiYzMxNmVmZDdiZTk1ZWY2ZjZhY2Yw
14
+ NDY0OGY3MjgzMWJlY2IxNmZiN2NhOWU3MDc3NTYzODY2ZjI5YmI1Y2ZlMDcw
15
+ YTUwOGViZjQ5YjliZjg4NTRiYTg3NWZkNWNiNWYyMDg1MDg4ZTU=
@@ -1,6 +1,6 @@
1
1
  #menu {
2
- width: 120px;
3
2
  float: left;
3
+ margin-right: 10px;
4
4
  background: #FFFFFF;
5
5
  color: #000000;
6
6
  }
@@ -21,9 +21,9 @@
21
21
  font-weight: bold;
22
22
  }
23
23
 
24
- #menu ol li.diary {
24
+ #menu ol li.sub_menu {
25
25
  margin: 0;
26
- padding: 0 20px 0 40px;
26
+ padding: 0 20px 0 20px;
27
27
  border-left: 5px solid #65c400;
28
28
  border-bottom: 1px solid #65c400;
29
29
  line-height: 40px;
@@ -17,10 +17,20 @@
17
17
  end
18
18
  end
19
19
  %>
20
- <ol>
21
- <% branches.each do |b| %>
20
+ <% branches.each do |b| %>
21
+ <ol>
22
22
  <% title = (b == 'master' ? '最新' : 'スプリント ' + b.gsub(/[a-zA-Z]*/, '')) %>
23
- <li class="sprint"><a href="../<%= b %>/index.html"><%= title %></a></li>
24
- <li class="sprint diary"><a href="../<%= b %>/diary.html">開発日記</a></li>
25
- <% end %>
26
- </ol>
23
+ <li class="sprint">
24
+ <%= title %>
25
+ </li>
26
+ <li class="sprint sub_menu">
27
+ <a href="../<%= b %>/index.html">仕様書</a>
28
+ </li>
29
+ <li class="sprint sub_menu">
30
+ <a href="../<%= b %>/diary.html">開発日記</a>
31
+ </li>
32
+ <li class="sprint sub_menu">
33
+ <a href="../<%= b %>/coverage/rcov/index.html" target="_blank">カバレッジ</a>
34
+ </li>
35
+ </ol>
36
+ <% end %>
@@ -4,6 +4,19 @@ require 'rails'
4
4
  require 'rails_i18n'
5
5
  require 'devise'
6
6
 
7
+ if ENV["COVERAGE"]
8
+ require 'simplecov'
9
+ require 'simplecov-rcov'
10
+ SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
11
+
12
+ if ENV['COMMAND_NAME']
13
+ SimpleCov.command_name(ENV['COMMAND_NAME'])
14
+ end
15
+
16
+ SimpleCov.merge_timeout(7200)
17
+ SimpleCov.start 'rails'
18
+ end
19
+
7
20
  module Daddy
8
21
  class Railtie < Rails::Railtie
9
22
  rake_tasks do
@@ -7,7 +7,8 @@ namespace :dad do
7
7
  phase_no = `git branch`.gsub(/[a-zA-Z]*/, '').to_i
8
8
  driver = ENV['DRIVER'] || :webkit
9
9
  pause = ENV['PAUSE'] || 0
10
- options = "PHASE_NO=#{phase_no} DRIVER=#{driver} PAUSE=#{pause}"
10
+ coverage = ENV['COVERAGE'] || true
11
+ options = "PHASE_NO=#{phase_no} DRIVER=#{driver} PAUSE=#{pause} COVERAGE=#{coverage}"
11
12
 
12
13
  output_file = ENV['OUTPUT_FILE'] || 'index.html'
13
14
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  namespace :dad do
4
4
  task :publish do |t|
5
- system("mkdir -p features/reports")
6
- system("bundle exec rake db:schema:load RAILS_ENV=test")
7
- system("bundle exec rake dad:cucumber PUBLISH=true OUTPUT_FILE=diary.html features/開発日記")
8
- system("bundle exec rake dad:cucumber PUBLISH=true OUTPUT_FILE=index.html features/仕様書")
5
+ system("mkdir -p features/reports")
6
+ system("bundle exec rake db:test:prepare")
7
+ system("bundle exec rake dad:cucumber PUBLISH=true OUTPUT_FILE=diary.html features/開発日記")
8
+ system("bundle exec rake dad:cucumber PUBLISH=true OUTPUT_FILE=index.html features/仕様書")
9
9
 
10
10
  system("mkdir -p tmp")
11
11
  system("git branch > tmp/branches")
@@ -23,8 +23,13 @@ namespace :dad do
23
23
  system("cd tmp/gh-pages && git pull")
24
24
  end
25
25
  system("mkdir -p tmp/gh-pages/#{current_branch}")
26
- system("cd tmp/gh-pages && git rm #{current_branch}/screenshots/*")
26
+
27
+ system("cd tmp/gh-pages && git rm -r #{current_branch}/screenshots")
27
28
  system("cp -Rf features/reports/* tmp/gh-pages/#{current_branch}/")
29
+
30
+ system("cd tmp/gh-pages && git rm -r #{current_branch}/coverage")
31
+ system("cp -Rf coverage tmp/gh-pages/#{current_branch}/")
32
+
28
33
  system("cd tmp/gh-pages && git add .")
29
34
  system("cd tmp/gh-pages && git commit -m 'publish'")
30
35
  system("cd tmp/gh-pages && git push")
@@ -2,10 +2,10 @@
2
2
 
3
3
  require 'rake'
4
4
 
5
- Rake::Task["test"].clear
6
-
7
- task :test => :environment do
8
- system("mkdir -p features/reports")
9
- system("bundle exec rake db:schema:load RAILS_ENV=test")
10
- system("bundle exec rake dad:cucumber")
11
- end
5
+ namespace :dad do
6
+ task :test => :environment do
7
+ system("mkdir -p features/reports")
8
+ system("bundle exec rake db:test:prepare")
9
+ system("bundle exec rake dad:cucumber")
10
+ end
11
+ 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.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - ~>
130
130
  - !ruby/object:Gem::Version
131
- version: 3.2.0
131
+ version: '3'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ~>
137
137
  - !ruby/object:Gem::Version
138
- version: 3.2.0
138
+ version: '3'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rails-i18n
141
141
  requirement: !ruby/object:Gem::Requirement