From 24dd0ed49db6dff8fa7488e9a05acf3a981703b8 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 30 Dec 2011 15:39:01 -0500 Subject: [PATCH] initial commit --- .gitignore | 17 +++++++++++ .gitmodules | 3 ++ Gemfile | 4 +++ LICENSE | 22 ++++++++++++++ README.md | 29 +++++++++++++++++++ Rakefile | 2 ++ jasmine-headless-webkit-reporters.gemspec | 17 +++++++++++ lib/jasmine-headless-webkit-reporters.rb | 11 +++++++ .../version.rb | 9 ++++++ vendor/assets/javascripts/jasmine-reporters | 1 + .../jasmine.HeadlessReporter.JUnit.coffee | 8 +++++ .../jasmine.HeadlessReporter.Teamcity.coffee | 8 +++++ 12 files changed, 131 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 Gemfile create mode 100644 LICENSE create mode 100644 README.md create mode 100644 Rakefile create mode 100644 jasmine-headless-webkit-reporters.gemspec create mode 100644 lib/jasmine-headless-webkit-reporters.rb create mode 100644 lib/jasmine-headless-webkit-reporters/version.rb create mode 160000 vendor/assets/javascripts/jasmine-reporters create mode 100644 vendor/assets/javascripts/jasmine.HeadlessReporter.JUnit.coffee create mode 100644 vendor/assets/javascripts/jasmine.HeadlessReporter.Teamcity.coffee diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d87d4be --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +*.gem +*.rbc +.bundle +.config +.yardoc +Gemfile.lock +InstalledFiles +_yardoc +coverage +doc/ +lib/bundler/man +pkg +rdoc +spec/reports +test/tmp +test/version_tmp +tmp diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7681507 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vendor/assets/javascripts/jasmine-reporters"] + path = vendor/assets/javascripts/jasmine-reporters + url = git://github.com/larrymyers/jasmine-reporters.git diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..f9c5fe9 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +# Specify your gem's dependencies in jasmine-headless-webkit-reporters.gemspec +gemspec diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9a643a5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2011 John Bintz + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..8a5982e --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Jasmine::Headless::Webkit::Reporters + +TODO: Write a gem description + +## Installation + +Add this line to your application's Gemfile: + + gem 'jasmine-headless-webkit-reporters' + +And then execute: + + $ bundle + +Or install it yourself as: + + $ gem install jasmine-headless-webkit-reporters + +## Usage + +TODO: Write usage instructions here + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Added some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..f57ae68 --- /dev/null +++ b/Rakefile @@ -0,0 +1,2 @@ +#!/usr/bin/env rake +require "bundler/gem_tasks" diff --git a/jasmine-headless-webkit-reporters.gemspec b/jasmine-headless-webkit-reporters.gemspec new file mode 100644 index 0000000..528f8eb --- /dev/null +++ b/jasmine-headless-webkit-reporters.gemspec @@ -0,0 +1,17 @@ +# -*- encoding: utf-8 -*- +require File.expand_path('../lib/jasmine-headless-webkit-reporters/version', __FILE__) + +Gem::Specification.new do |gem| + gem.authors = ["John Bintz"] + gem.email = ["john@coswellproductions.com"] + gem.description = %q{TODO: Write a gem description} + gem.summary = %q{TODO: Write a gem summary} + gem.homepage = "" + + gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + gem.files = `git ls-files`.split("\n") + gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + gem.name = "jasmine-headless-webkit-reporters" + gem.require_paths = ["lib"] + gem.version = Jasmine::Headless::Webkit::Reporters::VERSION +end diff --git a/lib/jasmine-headless-webkit-reporters.rb b/lib/jasmine-headless-webkit-reporters.rb new file mode 100644 index 0000000..c5c16ab --- /dev/null +++ b/lib/jasmine-headless-webkit-reporters.rb @@ -0,0 +1,11 @@ +require "jasmine-headless-webkit-reporters/version" + +module Jasmine + module Headless + module Webkit + module Reporters + # Your code goes here... + end + end + end +end diff --git a/lib/jasmine-headless-webkit-reporters/version.rb b/lib/jasmine-headless-webkit-reporters/version.rb new file mode 100644 index 0000000..b4ad343 --- /dev/null +++ b/lib/jasmine-headless-webkit-reporters/version.rb @@ -0,0 +1,9 @@ +module Jasmine + module Headless + module Webkit + module Reporters + VERSION = "0.0.1" + end + end + end +end diff --git a/vendor/assets/javascripts/jasmine-reporters b/vendor/assets/javascripts/jasmine-reporters new file mode 160000 index 0000000..69930b0 --- /dev/null +++ b/vendor/assets/javascripts/jasmine-reporters @@ -0,0 +1 @@ +Subproject commit 69930b0c652b7f2f5fe06137e612144e53a17333 diff --git a/vendor/assets/javascripts/jasmine.HeadlessReporter.JUnit.coffee b/vendor/assets/javascripts/jasmine.HeadlessReporter.JUnit.coffee new file mode 100644 index 0000000..798f004 --- /dev/null +++ b/vendor/assets/javascripts/jasmine.HeadlessReporter.JUnit.coffee @@ -0,0 +1,8 @@ +#= require jasmine-reporters/src/jasmine.junit_reporter.js +# +class jasmine.HeadlessReporter.JUnit extends jasmine.JUnitXmlReporter + constructor: (@outputTarget = null) -> + + writeFile: (filename, text) => + JHW.print(@outputTarget, text) + diff --git a/vendor/assets/javascripts/jasmine.HeadlessReporter.Teamcity.coffee b/vendor/assets/javascripts/jasmine.HeadlessReporter.Teamcity.coffee new file mode 100644 index 0000000..2e52a6c --- /dev/null +++ b/vendor/assets/javascripts/jasmine.HeadlessReporter.Teamcity.coffee @@ -0,0 +1,8 @@ +#= require jasmine-reporters/src/jasmine.teamcity_reporter.js +# +class jasmine.HeadlessReporter.Teamcity extends jasmine.TeamcityReporter + constructor: (@outputTarget = null) -> + + log: (text) => + JHW.print(@outputTarget, text + "\n") +