Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed gemspec generation and added static gemspec

  • Loading branch information...
commit 4830b023d1ae763177369cd15f8e5582bd96a2df 1 parent 511d568
Andries Coetzee authored September 13, 2011
3  .gitignore
... ...
@@ -0,0 +1,3 @@
  1
+.idea
  2
+Gemfile.lock
  3
+results
10  Gemfile
... ...
@@ -1,12 +1,12 @@
1 1
 source "http://rubygems.org"
2 2
 
3 3
 gem "colored", "~>1.2"
4  
-gem "json", "~>1.5.1"
  4
+gem "json", "~>1.6.0"
5 5
 gem "sinatra", "~>1.2.6"
6 6
 
7 7
 group :development, :test do
8  
-  gem "rack-test", "~>0.6.0"
9  
-  gem "rake", "~>0.8.7"
10  
-  gem "rspec", "~>2.5.0"
11  
-  gem 'simplecov', '~>0.4.2'
  8
+  gem "rack-test", "~>0.6.1"
  9
+  gem "rake", "~>0.9.2"
  10
+  gem "rspec", "~>2.6.0"
  11
+  gem 'simplecov', '~>0.5.2'
12 12
 end
63  Rakefile
... ...
@@ -1,64 +1,23 @@
1 1
 require 'rubygems'
2 2
 require "rake"
3  
-require "rake/rdoctask"
4  
-require 'rake/gempackagetask'
5 3
 require "rspec/core/rake_task"
6  
-require "./lib/sinatra/ananke"
7  
-require "./lib/sinatra/version"
8 4
 
9  
-require File.expand_path("../lib/sinatra/version", __FILE__)
10  
-gemspec = Gem::Specification.new do |gem|
11  
-  gem.name        = "sinatra-rest"
12  
-  gem.version     = Ananke::VERSION
13  
-  gem.platform    = Gem::Platform::RUBY
14  
-  gem.authors     = ["Andries Coetzee"]
15  
-  gem.email       = "andriesc@mixtel.com"
16  
-  gem.summary     = "#{gem.name}-#{Ananke::VERSION}"
17  
-  gem.description = "Full REST Implementation on top of Sinatra"
18  
-  gem.homepage    = "https://github.com/HasAndries/MiXREST"
19  
-
20  
-  gem.rubygems_version   = "1.5.0"
21  
-
22  
-  gem.files            = FileList['lib/**/*', 'spec/**/*', 'Gemfile', 'Rakefile', 'README.rdoc']
23  
-  gem.test_files       = FileList['spec/**/*']
24  
-  gem.extra_rdoc_files = [ "README.rdoc" ]
25  
-  gem.rdoc_options     = ["--charset=UTF-8"]
26  
-  gem.require_path     = "lib"
27  
-
28  
-  gem.post_install_message = %Q{**************************************************
29  
-
30  
-  Thank you for installing #{gem.summary}
31  
-
32  
-  Please be sure to look at README.rdoc to see what might have changed
33  
-  since the last release and how to use this GEM.
34  
-
35  
-**************************************************
36  
-}
37  
-  gem.add_dependency              "colored",   "~> 1.2"
38  
-  gem.add_dependency              "json",      "~> 1.5.1"
39  
-  gem.add_dependency              "sinatra",   "~> 1.2.1"
40  
-
41  
-  gem.add_development_dependency  "rack-test", "~> 0.5.7"
42  
-  gem.add_development_dependency  "rake",      "~> 0.8.7"
43  
-  gem.add_development_dependency  "rspec",     "~> 2.5.0"
44  
-  gem.add_development_dependency  "simplecov", "~> 0.4.2"
45  
-end
46  
-
47  
-Rake::GemPackageTask.new(gemspec) do |pkg|
48  
-  pkg.need_tar = true
  5
+#Building Gem and publishing
  6
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
  7
+require "bundler/version"
  8
+task :build do
  9
+  system "gem build ananke.gemspec"
49 10
 end
50 11
 
51  
-desc %{Build the gemspec file.}
52  
-task :gemspec do
53  
-  gemspec.validate
54  
-  File.open("#{gemspec.name}.gemspec", 'w'){|f| f.write gemspec.to_ruby }
  12
+task :release => :build do
  13
+  system "gem push ananke-#{Ananke::VERSION}"
55 14
 end
56 15
 
57  
-#===========================RAKE TASKS=========================
58  
-def make_task(name, docs = false, path = 'spec')
  16
+#Testing tasks
  17
+def make_task(name, html = false, path = 'spec')
59 18
   options = ["-c", "-r ./spec/spec_helper.rb"]
60  
-  options << "-f progress" if !docs
61  
-  options << "-f NiceFormatter" << "-o results/test_results.htm" << "-r ./spec/nice_formatter.rb" if docs
  19
+  options << "-f progress" if !html
  20
+  options << "-o results/test_results.htm" if html
62 21
   pattern = path.end_with?('.rb') ? path : "#{path}/**/*_spec.rb"
63 22
 
64 23
   RSpec::Core::RakeTask.new(name) do |t|
73  ananke.gemspec
... ...
@@ -1,59 +1,28 @@
1 1
 # -*- encoding: utf-8 -*-
  2
+$:.push File.expand_path("../lib", __FILE__)
  3
+require "sinatra/version"
2 4
 
3 5
 Gem::Specification.new do |s|
4  
-  s.name = %q{ananke}
5  
-  s.version = "1.1.1"
  6
+  s.name        = "ananke"
  7
+  s.version     = Ananke::VERSION
  8
+  s.platform    = Gem::Platform::RUBY
  9
+  s.authors     = ["Andries Coetzee"]
  10
+  s.email       = ["andriesc@lime-square.net"]
  11
+  s.homepage    = "http://github.com/hasandries/ananke"
  12
+  s.summary     = "The Awesome ReST framework"
  13
+  s.description = "Ananke enables a new kind of ReST implementation"
6 14
 
7  
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8  
-  s.authors = ["Andries Coetzee"]
9  
-  s.date = %q{2011-03-28}
10  
-  s.description = %q{Full REST Implementation on top of Sinatra}
11  
-  s.email = %q{andriesc@mixtel.com}
12  
-  s.extra_rdoc_files = ["README.rdoc"]
13  
-  s.files = ["lib/ananke.rb", "lib/version.rb", "lib/ananke/utf8.rb", "lib/ananke/settings.rb", "lib/ananke/linking.rb", "lib/ananke/routing.rb", "lib/ananke/validation.rb", "lib/ananke/helpers.rb", "lib/ananke/serialize.rb", "spec/dumping.rb", "spec/cov_adapter.rb", "spec/lib/ananke_spec.rb", "spec/lib/validation_spec.rb", "spec/lib/out_spec.rb", "spec/lib/json_spec.rb", "spec/lib/serialize_spec.rb", "spec/lib/link_to_spec.rb", "spec/lib/route_for_spec.rb", "spec/lib/error_spec.rb", "spec/lib/linked_spec.rb", "spec/spec_helper.rb", "spec/call_chain.rb", "spec/nice_formatter.rb", "Gemfile", "Rakefile", "README.rdoc"]
14  
-  s.homepage = %q{https://github.com/HasAndries/ananke}
15  
-  s.post_install_message = %q{**************************************************
  15
+  s.required_rubygems_version = "~> 1.8.10"
16 16
 
17  
-  Thank you for installing ananke-1.1.1
  17
+  s.add_dependency "colored", '~>1.2'
  18
+  s.add_dependency "json", '~>1.6.0'
  19
+  s.add_dependency "sinatra", '~>1.2.6'
  20
+  
  21
+  s.add_development_dependency "rack-test", '~>0.6.1'
  22
+  s.add_development_dependency "rake", '~>0.9.2'
  23
+  s.add_development_dependency "rspec", '~>2.6.0'
  24
+  s.add_development_dependency "simplecov", '~>0.5.2'
18 25
 
19  
-  Please be sure to look at README.rdoc to see what might have changed
20  
-  since the last release and how to use this GEM.
21  
-
22  
-**************************************************
23  
-}
24  
-  s.rdoc_options = ["--charset=UTF-8"]
25  
-  s.require_paths = ["lib"]
26  
-  s.rubygems_version = %q{1.5.0}
27  
-  s.summary = %q{ananke-1.1.1}
28  
-  s.test_files = ["spec/dumping.rb", "spec/cov_adapter.rb", "spec/lib/ananke_spec.rb", "spec/lib/validation_spec.rb", "spec/lib/out_spec.rb", "spec/lib/json_spec.rb", "spec/lib/serialize_spec.rb", "spec/lib/link_to_spec.rb", "spec/lib/route_for_spec.rb", "spec/lib/error_spec.rb", "spec/lib/linked_spec.rb", "spec/spec_helper.rb", "spec/call_chain.rb", "spec/nice_formatter.rb"]
29  
-
30  
-  if s.respond_to? :specification_version then
31  
-    s.specification_version = 3
32  
-
33  
-    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
34  
-      s.add_runtime_dependency(%q<sinatra>, ["~> 1.1.2"])
35  
-      s.add_runtime_dependency(%q<colored>, ["~> 1.2"])
36  
-      s.add_runtime_dependency(%q<json>, ["~> 1.5.1"])
37  
-      s.add_development_dependency(%q<rack-test>, ["~> 0.5.6"])
38  
-      s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
39  
-      s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
40  
-      s.add_development_dependency(%q<simplecov>, ["~> 0.3.9"])
41  
-    else
42  
-      s.add_dependency(%q<sinatra>, ["~> 1.1.2"])
43  
-      s.add_dependency(%q<colored>, ["~> 1.2"])
44  
-      s.add_dependency(%q<json>, ["~> 1.5.1"])
45  
-      s.add_dependency(%q<rack-test>, ["~> 0.5.6"])
46  
-      s.add_dependency(%q<rake>, ["~> 0.8.7"])
47  
-      s.add_dependency(%q<rspec>, ["~> 2.5.0"])
48  
-      s.add_dependency(%q<simplecov>, ["~> 0.3.9"])
49  
-    end
50  
-  else
51  
-    s.add_dependency(%q<sinatra>, ["~> 1.1.2"])
52  
-    s.add_dependency(%q<colored>, ["~> 1.2"])
53  
-    s.add_dependency(%q<json>, ["~> 1.5.1"])
54  
-    s.add_dependency(%q<rack-test>, ["~> 0.5.6"])
55  
-    s.add_dependency(%q<rake>, ["~> 0.8.7"])
56  
-    s.add_dependency(%q<rspec>, ["~> 2.5.0"])
57  
-    s.add_dependency(%q<simplecov>, ["~> 0.3.9"])
58  
-  end
  26
+  s.files        = Dir.glob("lib/**/*") + %w(README.rdoc)
  27
+  s.require_path = 'lib'
59 28
 end
BIN  public/favicon.ico
Binary file not shown
461  spec/nice_formatter.rb
... ...
@@ -1,461 +0,0 @@
1  
-require 'erb'
2  
-require 'rspec/core/formatters/base_text_formatter'
3  
-require 'rspec/core/formatters/snippet_extractor'
4  
-
5  
-class NiceFormatter < RSpec::Core::Formatters::BaseTextFormatter
6  
-  include ERB::Util # for the #h method
7  
-
8  
-  def initialize(output)
9  
-    super(output)
10  
-    @example_group_number = 0
11  
-    @example_number = 0
12  
-    @header_red = nil
13  
-  end
14  
-
15  
-  private
16  
-  def method_missing(m, *a, &b)
17  
-    # no-op
18  
-  end
19  
-
20  
-  public
21  
-  def message(message)
22  
-  end
23  
-
24  
-  # The number of the currently running example_group
25  
-  def example_group_number
26  
-    @example_group_number
27  
-  end
28  
-
29  
-  # The number of the currently running example (a global counter)
30  
-  def example_number
31  
-    @example_number
32  
-  end
33  
-
34  
-  def start(example_count)
35  
-    super(example_count)
36  
-    @output.puts html_header
37  
-    @output.puts report_header
38  
-    @output.flush
39  
-  end
40  
-
41  
-  def example_group_started(example_group)
42  
-    super(example_group)
43  
-    @example_group_red = false
44  
-    @example_group_number += 1
45  
-    unless example_group_number == 1
46  
-      @output.puts "  </dl>"
47  
-      @output.puts "</div>"
48  
-    end
49  
-    @output.puts "<div id=\"div_group_#{example_group_number}\" class=\"example_group passed\">"
50  
-    @output.puts "  <dl #{current_indentation}>"
51  
-    #@output.puts "  <dt id=\"example_group_#{example_group_number}\" class=\"passed\">#{h(example_group.description)}</dt>"
52  
-    @output.puts "  <dt id=\"example_group_#{example_group_number}\" class=\"passed\">#{example_group.description.gsub(/[\n]/, "<br />")}</dt>"
53  
-    @output.flush
54  
-  end
55  
-
56  
-  def start_dump
57  
-    @output.puts "  </dl>"
58  
-    @output.puts "</div>"
59  
-    @output.flush
60  
-  end
61  
-
62  
-  def example_started(example)
63  
-    super(example)
64  
-    @example_number += 1
65  
-  end
66  
-
67  
-  def example_passed(example)
68  
-    move_progress
69  
-    #@output.puts "    <dd class=\"example passed\"><span class=\"passed_spec_name\">#{h(example.description)}</span></dd>"
70  
-    text = example.description.gsub(/[\n]/, "<br>")
71  
-    text.gsub!(' ', '&nbsp;')
72  
-    @output.puts "    <dd class=\"example passed\"><span class=\"passed_spec_name\">#{text}</span></dd>"
73  
-    @output.flush
74  
-  end
75  
-
76  
-  def example_failed(example)
77  
-    super(example)
78  
-    exception = example.metadata[:execution_result][:exception]
79  
-    extra = extra_failure_content(exception)
80  
-    failure_style = RSpec::Core::PendingExampleFixedError === exception ? 'pending_fixed' : 'failed'
81  
-    @output.puts "    <script type=\"text/javascript\">makeRed('rspec-header');</script>" unless @header_red
82  
-    @header_red = true
83  
-    @output.puts "    <script type=\"text/javascript\">makeRed('div_group_#{example_group_number}');</script>" unless @example_group_red
84  
-    @output.puts "    <script type=\"text/javascript\">makeRed('example_group_#{example_group_number}');</script>" unless @example_group_red
85  
-    @example_group_red = true
86  
-    move_progress
87  
-    @output.puts "    <dd class=\"example #{failure_style}\">"
88  
-    #@output.puts "      <span class=\"failed_spec_name\">#{h(example.description)}</span>"
89  
-    text = example.description.gsub(/[\n]/, "<br>")
90  
-    text.gsub!(' ', '&nbsp;')
91  
-    @output.puts "      <span class=\"failed_spec_name\">#{text}</span>"
92  
-    @output.puts "      <div class=\"failure\" id=\"failure_#{@failed_examples.size}\">"
93  
-    @output.puts "        <div class=\"message\"><pre>#{h(exception.message)}</pre></div>" unless exception.nil?
94  
-    @output.puts "        <div class=\"backtrace\"><pre>#{format_backtrace(exception.backtrace, example).join("\n")}</pre></div>" if exception
95  
-    @output.puts extra unless extra == ""
96  
-    @output.puts "      </div>"
97  
-    @output.puts "    </dd>"
98  
-    @output.flush
99  
-  end
100  
-
101  
-  def example_pending(example)
102  
-    message = example.metadata[:execution_result][:pending_message]
103  
-    @output.puts "    <script type=\"text/javascript\">makeYellow('rspec-header');</script>" unless @header_red
104  
-    @output.puts "    <script type=\"text/javascript\">makeYellow('div_group_#{example_group_number}');</script>" unless @example_group_red
105  
-    @output.puts "    <script type=\"text/javascript\">makeYellow('example_group_#{example_group_number}');</script>" unless @example_group_red
106  
-    move_progress
107  
-    #@output.puts "    <dd class=\"example not_implemented\"><span class=\"not_implemented_spec_name\">#{h(example.description)} (PENDING: #{h(message)})</span></dd>"
108  
-    text = example.description.gsub(/[\n]/, "<br>")
109  
-    text.gsub!(' ', '&nbsp;')
110  
-    @output.puts "    <dd class=\"example not_implemented\"><span class=\"not_implemented_spec_name\">#{text} (PENDING: #{h(message)})</span></dd>"
111  
-    @output.flush
112  
-  end
113  
-
114  
-  # Override this method if you wish to output extra HTML for a failed spec. For example, you
115  
-  # could output links to images or other files produced during the specs.
116  
-  #
117  
-  def extra_failure_content(exception)
118  
-    require 'rspec/core/formatters/snippet_extractor'
119  
-    @snippet_extractor ||= RSpec::Core::Formatters::SnippetExtractor.new
120  
-    "    <pre class=\"ruby\"><code>#{@snippet_extractor.snippet(exception)}</code></pre>"
121  
-  end
122  
-
123  
-  def move_progress
124  
-    @output.puts "    <script type=\"text/javascript\">moveProgressBar('#{percent_done}');</script>"
125  
-    @output.flush
126  
-  end
127  
-
128  
-  def percent_done
129  
-    result = 100.0
130  
-    if @example_count > 0
131  
-      result = ((example_number).to_f / @example_count.to_f * 1000).to_i / 10.0
132  
-    end
133  
-    result
134  
-  end
135  
-
136  
-  def dump_failures
137  
-  end
138  
-
139  
-  def dump_pending
140  
-  end
141  
-
142  
-  def dump_summary(duration, example_count, failure_count, pending_count)
143  
-    # TODO - kill dry_run?
144  
-    if dry_run?
145  
-      totals = "This was a dry-run"
146  
-    else
147  
-      totals =  "#{example_count} example#{'s' unless example_count == 1}, "
148  
-      totals << "#{failure_count} failure#{'s' unless failure_count == 1}"
149  
-      totals << ", #{pending_count} pending" if pending_count > 0
150  
-    end
151  
-    @output.puts "<script type=\"text/javascript\">document.getElementById('duration').innerHTML = \"Finished in <strong>#{duration} seconds</strong>\";</script>"
152  
-    @output.puts "<script type=\"text/javascript\">document.getElementById('totals').innerHTML = \"#{totals}\";</script>"
153  
-    @output.puts "</div>"
154  
-    @output.puts "</div>"
155  
-    @output.puts "</body>"
156  
-    @output.puts "</html>"
157  
-    @output.flush
158  
-  end
159  
-
160  
-  def current_indentation
161  
-    "style=\"margin-left: #{(example_group.ancestors.size - 1) * 15}px;\""
162  
-  end
163  
-
164  
-  def html_header
165  
-          <<-EOF
166  
-<?xml version="1.0" encoding="UTF-8"?>
167  
-<!DOCTYPE html
168  
-  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
169  
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
170  
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
171  
-<head>
172  
-  <title>RSpec results</title>
173  
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
174  
-  <meta http-equiv="Expires" content="-1" />
175  
-  <meta http-equiv="Pragma" content="no-cache" />
176  
-  <style type="text/css">
177  
-  body {
178  
-    margin: 0;
179  
-    padding: 0;
180  
-    background: #fff;
181  
-    font-size: 80%;
182  
-  }
183  
-  </style>
184  
-  <script type="text/javascript">
185  
-    // <![CDATA[
186  
-#{global_scripts}
187  
-    // ]]>
188  
-  </script>
189  
-  <style type="text/css">
190  
-#{global_styles}
191  
-  </style>
192  
-</head>
193  
-<body>
194  
-EOF
195  
-        end
196  
-
197  
-        def report_header
198  
-          <<-EOF
199  
-<div class="rspec-report">
200  
-
201  
-<div id="rspec-header">
202  
-  <div id="label">
203  
-    <h1>RSpec Code Examples</h1>
204  
-  </div>
205  
-
206  
-  <div id="display-filters">
207  
-    <input id="passed_checkbox" name="passed_checkbox" type="checkbox" checked onchange="apply_filters()" value="1"> <label for="passed_checkbox">Passed</label>
208  
-    <input id="failed_checkbox" name="failed_checkbox" type="checkbox" checked onchange="apply_filters()" value="2"> <label for="failed_checkbox">Failed</label>
209  
-    <input id="pending_checkbox" name="pending_checkbox" type="checkbox" checked onchange="apply_filters()" value="3"> <label for="pending_checkbox">Pending</label>
210  
-  </div>
211  
-
212  
-  <div id="summary">
213  
-    <p id="totals">&nbsp;</p>
214  
-    <p id="duration">&nbsp;</p>
215  
-  </div>
216  
-</div>
217  
-
218  
-
219  
-<div class="results">
220  
-EOF
221  
-        end
222  
-
223  
-        def global_scripts
224  
-          <<-EOF
225  
-
226  
-function addClass(element_id, classname) {
227  
-  document.getElementById(element_id).className += (" " + classname);
228  
-}
229  
-
230  
-function removeClass(element_id, classname) {
231  
-  var elem = document.getElementById(element_id);
232  
-  var classlist = elem.className.replace(classname,'');
233  
-  elem.className = classlist;
234  
-}
235  
-
236  
-function moveProgressBar(percentDone) {
237  
-  document.getElementById("rspec-header").style.width = percentDone +"%";
238  
-}
239  
-
240  
-function makeRed(element_id) {
241  
-  removeClass(element_id, 'passed');
242  
-  removeClass(element_id, 'not_implemented');
243  
-  addClass(element_id,'failed');
244  
-}
245  
-
246  
-function makeYellow(element_id) {
247  
-  var elem = document.getElementById(element_id);
248  
-  if (elem.className.indexOf("failed") == -1) {  // class doesn't includes failed
249  
-    if (elem.className.indexOf("not_implemented") == -1) { // class doesn't include not_implemented
250  
-      removeClass(element_id, 'passed');
251  
-      addClass(element_id,'not_implemented');
252  
-    }
253  
-  }
254  
-}
255  
-
256  
-function apply_filters() {
257  
-  var passed_filter = document.getElementById('passed_checkbox').checked;
258  
-  var failed_filter = document.getElementById('failed_checkbox').checked;
259  
-  var pending_filter = document.getElementById('pending_checkbox').checked;
260  
-
261  
-  assign_display_style("example passed", passed_filter);
262  
-  assign_display_style("example failed", failed_filter);
263  
-  assign_display_style("example not_implemented", pending_filter);
264  
-
265  
-  assign_display_style_for_group("example_group passed", passed_filter);
266  
-  assign_display_style_for_group("example_group not_implemented", pending_filter, pending_filter || passed_filter);
267  
-  assign_display_style_for_group("example_group failed", failed_filter, failed_filter || pending_filter || passed_filter);
268  
-}
269  
-
270  
-function get_display_style(display_flag) {
271  
-  var style_mode = 'none';
272  
-  if (display_flag == true) {
273  
-    style_mode = 'block';
274  
-  }
275  
-  return style_mode;
276  
-}
277  
-
278  
-function assign_display_style(classname, display_flag) {
279  
-  var style_mode = get_display_style(display_flag);
280  
-  var elems = document.getElementsByClassName(classname)
281  
-  for (var i=0; i<elems.length;i++) {
282  
-    elems[i].style.display = style_mode;
283  
-  }
284  
-}
285  
-
286  
-function assign_display_style_for_group(classname, display_flag, subgroup_flag) {
287  
-  var display_style_mode = get_display_style(display_flag);
288  
-  var subgroup_style_mode = get_display_style(subgroup_flag);
289  
-  var elems = document.getElementsByClassName(classname)
290  
-  for (var i=0; i<elems.length;i++) {
291  
-    var style_mode = display_style_mode;
292  
-    if ((display_flag != subgroup_flag) && (elems[i].getElementsByTagName('dt')[0].innerHTML.indexOf(", ") != -1)) {
293  
-      elems[i].style.display = subgroup_style_mode;
294  
-    } else {
295  
-      elems[i].style.display = display_style_mode;
296  
-    }
297  
-  }
298  
-}
299  
-EOF
300  
-        end
301  
-
302  
-        def global_styles
303  
-          <<-EOF
304  
-#rspec-header {
305  
-  background: #65C400; color: #fff; height: 4em;
306  
-}
307  
-
308  
-.rspec-report h1 {
309  
-  margin: 0px 10px 0px 10px;
310  
-  padding: 10px;
311  
-  font-family: "Lucida Grande", Helvetica, sans-serif;
312  
-  font-size: 1.8em;
313  
-  position: absolute;
314  
-}
315  
-
316  
-#label {
317  
-  float:left;
318  
-}
319  
-
320  
-#display-filters {
321  
-  float:left;
322  
-  padding: 28px 0 0 40%;
323  
-  font-family: "Lucida Grande", Helvetica, sans-serif;
324  
-}
325  
-
326  
-#summary {
327  
-  float:right;
328  
-  padding: 5px 10px;
329  
-  font-family: "Lucida Grande", Helvetica, sans-serif;
330  
-  text-align: right;
331  
-}
332  
-
333  
-#summary p {
334  
-  margin: 0 0 0 2px;
335  
-}
336  
-
337  
-#summary #totals {
338  
-  font-size: 1.2em;
339  
-}
340  
-
341  
-.example_group {
342  
-  margin: 0 10px 5px;
343  
-  background: #fff;
344  
-}
345  
-
346  
-dl {
347  
-  margin: 0; padding: 0 0 5px;
348  
-  font: normal 16px monospaced;
349  
-}
350  
-
351  
-dt {
352  
-  padding: 3px;
353  
-  background: #65C400;
354  
-  color: #fff;
355  
-  font-weight: bold;
356  
-}
357  
-
358  
-dd {
359  
-  margin: 5px 0 5px 5px;
360  
-  padding: 3px 3px 3px 18px;
361  
-}
362  
-
363  
-
364  
-dd.example.passed {
365  
-  border-left: 5px solid #65C400;
366  
-  border-bottom: 1px solid #65C400;
367  
-  background: #DBFFB4; color: #3D7700;
368  
-}
369  
-
370  
-dd.example.not_implemented {
371  
-  border-left: 5px solid #FAF834;
372  
-  border-bottom: 1px solid #FAF834;
373  
-  background: #FCFB98; color: #131313;
374  
-}
375  
-
376  
-dd.example.pending_fixed {
377  
-  border-left: 5px solid #0000C2;
378  
-  border-bottom: 1px solid #0000C2;
379  
-  color: #0000C2; background: #D3FBFF;
380  
-}
381  
-
382  
-dd.example.failed {
383  
-  border-left: 5px solid #C20000;
384  
-  border-bottom: 1px solid #C20000;
385  
-  color: #C20000; background: #FFFBD3;
386  
-}
387  
-
388  
-
389  
-dt.not_implemented {
390  
-  color: #000000; background: #FAF834;
391  
-}
392  
-
393  
-dt.pending_fixed {
394  
-  color: #FFFFFF; background: #C40D0D;
395  
-}
396  
-
397  
-dt.failed {
398  
-  color: #FFFFFF; background: #C40D0D;
399  
-}
400  
-
401  
-
402  
-#rspec-header.not_implemented {
403  
-  color: #000000; background: #FAF834;
404  
-}
405  
-
406  
-#rspec-header.pending_fixed {
407  
-  color: #FFFFFF; background: #C40D0D;
408  
-}
409  
-
410  
-#rspec-header.failed {
411  
-  color: #FFFFFF; background: #C40D0D;
412  
-}
413  
-
414  
-
415  
-.backtrace {
416  
-  color: #000;
417  
-  font-size: 12px;
418  
-}
419  
-
420  
-a {
421  
-  color: #BE5C00;
422  
-}
423  
-
424  
-/* Ruby code, style similar to vibrant ink */
425  
-.ruby {
426  
-  font-size: 12px;
427  
-  font-family: monospace;
428  
-  color: white;
429  
-  background-color: black;
430  
-  padding: 0.1em 0 0.2em 0;
431  
-}
432  
-
433  
-.ruby .keyword { color: #FF6600; }
434  
-.ruby .constant { color: #339999; }
435  
-.ruby .attribute { color: white; }
436  
-.ruby .global { color: white; }
437  
-.ruby .module { color: white; }
438  
-.ruby .class { color: white; }
439  
-.ruby .string { color: #66FF00; }
440  
-.ruby .ident { color: white; }
441  
-.ruby .method { color: #FFCC00; }
442  
-.ruby .number { color: white; }
443  
-.ruby .char { color: white; }
444  
-.ruby .comment { color: #9933CC; }
445  
-.ruby .symbol { color: white; }
446  
-.ruby .regex { color: #44B4CC; }
447  
-.ruby .punct { color: white; }
448  
-.ruby .escape { color: white; }
449  
-.ruby .interp { color: white; }
450  
-.ruby .expr { color: white; }
451  
-
452  
-.ruby .offending { background-color: gray; }
453  
-.ruby .linenum {
454  
-  width: 75px;
455  
-  padding: 0.1em 1em 0.2em 0;
456  
-  color: #000000;
457  
-  background-color: #FFFBD3;
458  
-}
459  
-EOF
460  
-  end
461  
-end
9  spec/spec_helper.rb
@@ -2,15 +2,10 @@
2 2
 #=========================CODE COVERAGE========================
3 3
 require 'simplecov'
4 4
 SimpleCov.start do
5  
-  coverage_dir 'public/coverage'
  5
+  coverage_dir 'results/coverage'
6 6
 
7  
-  add_filter '/config/'
8  
-  add_filter '/dump/'
9  
-  add_filter '/public/'
  7
+  add_filter '/example/'
10 8
   add_filter '/spec/'
11  
-  add_filter '/tmp/'
12  
-  add_filter '/views/'
13  
-
14 9
 end
15 10
 
16 11
 #===========================REQUIRES===========================

0 notes on commit 4830b02

Please sign in to comment.
Something went wrong with that request. Please try again.