simplecov-reporter 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a990726253dca5d5834dfe33d960022b0ecedc76
4
+ data.tar.gz: 7c33bd7b51271c7b0ad91866d3415d15189d44e9
5
+ SHA512:
6
+ metadata.gz: 99fb34a7b0ae83837fab0911e5269337f4cb3f03f715917b23f2fb74bd6027f6ef52774366f6b537fc0389bdb098eb951d686a31f97ef08b9869c2a4beba3919
7
+ data.tar.gz: a926fdf49dafe15af9cdfa6e25aa0bde8691896a9768cc5ca7a1eea9fda7f16d62b33faa0c1650de170d38579bf4140b814ae3d6f5349974d5bb055e720bded8
@@ -0,0 +1,26 @@
1
+ .rvmrc
2
+ .bundle
3
+ Gemfile.lock
4
+
5
+ ## MAC OS
6
+ .DS_Store
7
+
8
+ ## TEXTMATE
9
+ *.tmproj
10
+ tmtags
11
+
12
+ ## EMACS
13
+ *~
14
+ \#*
15
+ .\#*
16
+
17
+ ## VIM
18
+ *.swp
19
+
20
+ ## PROJECT::GENERAL
21
+ coverage
22
+ rdoc
23
+ pkg
24
+ .sass-cache
25
+
26
+ ## PROJECT::SPECIFIC
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ # Use local copy of simplecov in development when checked out, fetch from git otherwise
7
+ if File.directory?(File.dirname(__FILE__) + '/../simplecov')
8
+ gem 'simplecov', :path => File.dirname(__FILE__) + '/../simplecov'
9
+ else
10
+ gem 'simplecov', :git => 'https://github.com/jdoconnor/simplecov'
11
+ end
12
+
13
+ end
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Jay OConnor
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ send simplecov results as json to an external service (URL post)
@@ -0,0 +1,21 @@
1
+ require 'httparty'
2
+
3
+ class SimpleCov::Formatter::Reporter
4
+
5
+ def format(result)
6
+ name = ENV['COVERAGE_REPORTER_NAME']
7
+ url = ENV['COVERAGE_REPORTER_URL']
8
+ return unless name && url
9
+ # send to a remote server
10
+ keys = [:covered_lines, :missed_lines, :total_lines, :created_at, :covered_percent, :covered_strength]
11
+ h = {}
12
+ keys.each do |k|
13
+ h[k] = result.send(k)
14
+ end
15
+ HTTParty.post(url, body: { results: h, name: name } )
16
+ end
17
+
18
+ end
19
+
20
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__)))
21
+ require 'simplecov-reporter/version'
@@ -0,0 +1,7 @@
1
+ module SimpleCov
2
+ module Formatter
3
+ class Reporter
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require 'simplecov-reporter/version'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "simplecov-reporter"
7
+ s.version = SimpleCov::Formatter::Reporter::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Jay OConnor"]
10
+ s.email = ["jaydoconnor@gmail.com"]
11
+ s.homepage = "https://github.com/jdoconnor/simplecov-reporter"
12
+ s.summary = %Q{Report the simplecov coverage data to a server}
13
+ s.description = %Q{Report the simplecov coverage data to a server}
14
+
15
+ s.rubyforge_project = "simplecov-reporter"
16
+ s.add_dependency 'httparty'
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ["lib"]
22
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simplecov-reporter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jay OConnor
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Report the simplecov coverage data to a server
28
+ email:
29
+ - jaydoconnor@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - .gitignore
35
+ - Gemfile
36
+ - LICENSE
37
+ - README.md
38
+ - lib/simplecov-reporter.rb
39
+ - lib/simplecov-reporter/version.rb
40
+ - simplecov-reporter.gemspec
41
+ homepage: https://github.com/jdoconnor/simplecov-reporter
42
+ licenses: []
43
+ metadata: {}
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubyforge_project: simplecov-reporter
60
+ rubygems_version: 2.1.11
61
+ signing_key:
62
+ specification_version: 4
63
+ summary: Report the simplecov coverage data to a server
64
+ test_files: []