babygitter 1.1.3 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 1
4
- :patch: 3
4
+ :patch: 5
@@ -60,7 +60,7 @@
60
60
  <p>The main repository on this server is at version <tt><%= @lastest_commit.id_abbrev %></tt>.
61
61
  <p>It was last deployed <%=@lastest_commit.date_time_string %>.</p>
62
62
  <p><%= authors_list(@authors_names) %> committed to this project since <%= @began.date_time_string%>.</p>
63
- <p> The repository has <%=pluralize(@branches.size, "branch") %>:</p>
63
+ <p> The repository has <%=pluralize(@branches.size, "branch", "branches") %>:</p>
64
64
  <%= branch_names_list(@branch_names) %>
65
65
  <p>They have committed a total of <%=pluralize(@total_commits, "commit")%></p>
66
66
  </div>
@@ -3,7 +3,7 @@ module Babygitter
3
3
  module GraphOutput
4
4
 
5
5
  THEME = { # Declare a custom theme
6
- :colors => %w(orange silver yellow pink purple green white red #cccccc), # colors can be described on hex values (#0f0f0f)
6
+ :colors => %w(orange silver yellow pink purple green #009999 #0033CC #E60066 #FED9BF #FFB200 #FFE500 #B2B300 #8FB200 #E6FEBF #BFFFFE #12127D #EABFFE #FE80B9 #B22400 white red #cccccc), # colors can be described on hex values (#0f0f0f)
7
7
  :font_color => 'white',
8
8
  :marker_color => 'white', # The horizontal lines color
9
9
  :background_colors => %w(black grey) # you can use instead: :background_image => ‘some_image.png’
@@ -101,6 +101,7 @@ module Babygitter
101
101
  g = Gruff::Line.new('800x600') # Define a custom size
102
102
  g.title = "Plot of commits #{pluralize(level, 'level')} deep"
103
103
  g.legend_font_size = 12 # Legend font size
104
+ g.theme = THEME
104
105
 
105
106
 
106
107
  branch.plot_folder_points(level).each do |key,value|
@@ -117,6 +118,8 @@ module Babygitter
117
118
  g = Gruff::Line.new(SMALL_SIZE) # Define a custom size
118
119
  g.title = "Plot of commits #{pluralize(level, 'level')} deep"
119
120
  g.legend_font_size = 32 # Legend font size
121
+ g.theme = THEME
122
+
120
123
  g.hide_legend = true
121
124
  branch.plot_folder_points(level).each do |key,value|
122
125
  key = "program_folder" if key == ""
@@ -23,15 +23,15 @@ module Babygitter
23
23
 
24
24
  # Displays custome files being used in gneration, if any, when verbose is on.
25
25
  def using_custom_files?
26
- if Babygitter.template != 'lib/babygitter/assets/templates/default.html.erb'
26
+ if Babygitter.template.scan(/lib\/babygitter\/assets\/templates\/default.html.erb/).empty?
27
27
  $stdout.puts "Using custom template at #{Babygitter.template}"
28
28
  end
29
29
 
30
- if Babygitter.stylesheet != 'lib/babygitter/assets/stylesheets/default.css'
30
+ if Babygitter.stylesheet.scan(/babygitter\/assets\/stylesheets\/default.css/).empty?
31
31
  $stdout.puts "Using custom stylesheet at #{Babygitter.stylesheet}"
32
32
  end
33
33
 
34
- if Babygitter.image_assets_path != 'lib/babygitter/assets/image_assets'
34
+ if Babygitter.image_assets_path.scan(/lib\/babygitter\/assets\/image_assets/).empty?
35
35
  $stdout.puts "Using custom images at #{Babygitter.image_assets_path}"
36
36
  end
37
37
  end
@@ -66,11 +66,11 @@ module Babygitter
66
66
  end
67
67
 
68
68
  self.repo_path = FileUtils.pwd #Should I even have this set or should I leve it as nil?
69
- self.stylesheet = File.expand_path 'lib/babygitter/assets/stylesheets/default.css'
70
- self.image_assets_path = File.expand_path 'lib/babygitter/assets/image_assets'
71
- self.jquery = File.expand_path 'lib/babygitter/assets/javascripts/jquery.js'
72
- self.template = File.expand_path 'lib/babygitter/assets/templates/default.html.erb'
73
- self.additional_links = File.expand_path 'lib/babygitter/assets/guides/bdd_stack.html.erb'
69
+ self.stylesheet = File.dirname(__FILE__) +'/babygitter/assets/stylesheets/default.css'
70
+ self.image_assets_path = File.dirname(__FILE__) +'/babygitter/assets/image_assets'
71
+ self.jquery = File.dirname(__FILE__) + '/babygitter/assets/javascripts/jquery.js'
72
+ self.template = File.dirname(__FILE__) + '/babygitter/assets/templates/default.html.erb'
73
+ self.additional_links = File.dirname(__FILE__) + '/babygitter/assets/guides/bdd_stack.html.erb'
74
74
  self.use_whitelist = false
75
75
  self.output_graphs = true
76
76
  self.folder_levels = [1]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babygitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Bergman
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-13 00:00:00 -04:00
12
+ date: 2009-04-20 00:00:00 -04:00
13
13
  default_executable: babygitter-report
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -42,6 +42,16 @@ dependencies:
42
42
  - !ruby/object:Gem::Version
43
43
  version: 0.3.4
44
44
  version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: rmagick
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 2.9.0
54
+ version:
45
55
  description:
46
56
  email: MZBPhoto@gmail.com
47
57
  executables: