jumpup 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.mkdn +1 -3
- data/jumpup.gemspec +0 -2
- data/lib/jumpup/version.rb +1 -1
- data/lib/tasks/integrate.rake +6 -7
- data/test/coverage_test.rb +7 -14
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9034054d3abacb3e4bc0ca75822baf3b9843c3c3
|
4
|
+
data.tar.gz: edb667649a01ca4e6158c46481566de7cf2e52ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02338a6f52369fdbfd5c685a79bf3fd28d90a7796c15c8222a999872d6cf46caeda5720b1290a368e60fbd14861713ca34ef9bd6e3186b965bee4929a7f4f204
|
7
|
+
data.tar.gz: 5848c36943b14f530f322a17e0889cf8d02c70b0368beb8e294def2c523466027bfe4261b85d9fcce0f0dda3c73d4ec257f4c9a636168e8f75b68269b28a62db
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.0.2 (January 8, 2014)
|
4
|
+
|
5
|
+
### features
|
6
|
+
|
7
|
+
### improvements
|
8
|
+
|
9
|
+
- Remove hpricot dependency
|
10
|
+
- Test against ```coverage/.last_run.json``` file
|
11
|
+
- Renamed namespace `integration` to `jumpup` file
|
12
|
+
|
13
|
+
### bug fixes
|
14
|
+
|
3
15
|
## 0.0.1 (August 06, 2013)
|
4
16
|
|
5
17
|
### features
|
data/README.mkdn
CHANGED
@@ -19,7 +19,6 @@ After installing the plugin is ready to be used and you will need to execute onl
|
|
19
19
|
## Dependencies
|
20
20
|
|
21
21
|
* Git
|
22
|
-
* [Hpricot][h] to verify coverage
|
23
22
|
* [Rcov][rc](Ruby 1.8) or [Simplecov][sc](Ruby 1.9) (optional)
|
24
23
|
|
25
24
|
## [ProTip] Using Simplecov
|
@@ -119,7 +118,7 @@ Using this almost paranoid sequence of steps it will be hard to check in bad cod
|
|
119
118
|
|
120
119
|
## Versioning
|
121
120
|
|
122
|
-
Jumpup
|
121
|
+
Jumpup follows the [Semantic Versioning](http://semver.org/).
|
123
122
|
|
124
123
|
## License
|
125
124
|
|
@@ -145,7 +144,6 @@ Jumpup came from the idea of [integration](https://github.com/tapajos/integratio
|
|
145
144
|
[f]: http://rubyforge.org/forum/?group_id=4662
|
146
145
|
[s]: http://subversion.tigris.org
|
147
146
|
[git]: http://git.or.cz/
|
148
|
-
[h]: http://code.whytheluckystiff.net/hpricot
|
149
147
|
[rc]: http://eigenclass.org/hiki.rb?rcov
|
150
148
|
[sc]: https://github.com/colszowka/simplecov
|
151
149
|
[sor]: http://selenium-on-rails.openqa.org
|
data/jumpup.gemspec
CHANGED
data/lib/jumpup/version.rb
CHANGED
data/lib/tasks/integrate.rake
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'find'
|
2
2
|
|
3
|
-
namespace :
|
3
|
+
namespace :jumpup do
|
4
4
|
|
5
5
|
def p80(message)
|
6
6
|
puts "-"*80
|
@@ -50,20 +50,19 @@ desc 'Integrate new code to repository'
|
|
50
50
|
task :integrate do
|
51
51
|
if !defined?(INTEGRATION_TASKS)
|
52
52
|
p80 %{
|
53
|
-
You should define INTEGRATION_TASKS constant. We recommend that you define it on lib/tasks/
|
53
|
+
You should define INTEGRATION_TASKS constant. We recommend that you define it on lib/tasks/jumpup.rake file. The file doesn't exists. You should create it in your project.
|
54
54
|
|
55
55
|
You'll probably want to add coverage/ to your .gitignore file.
|
56
56
|
|
57
57
|
A sample content look like this:
|
58
58
|
|
59
59
|
INTEGRATION_TASKS = %w(
|
60
|
-
|
61
|
-
|
60
|
+
jumpup:start
|
61
|
+
jumpup:bundle_install
|
62
62
|
db:migrate
|
63
63
|
spec
|
64
|
-
|
65
|
-
|
66
|
-
integration:finish
|
64
|
+
jumpup:coverage_verify
|
65
|
+
jumpup:finish
|
67
66
|
)
|
68
67
|
|
69
68
|
}
|
data/test/coverage_test.rb
CHANGED
@@ -1,22 +1,15 @@
|
|
1
|
-
%w(test/unit rubygems
|
1
|
+
%w(test/unit rubygems json).each { |lib| require lib }
|
2
2
|
|
3
3
|
class CoverageTest < Test::Unit::TestCase
|
4
|
-
COVERAGE_FILE = "coverage
|
4
|
+
COVERAGE_FILE = "coverage/.last_run.json"
|
5
5
|
def test_if_application_is_fully_covered
|
6
|
-
|
6
|
+
last_run = JSON.parse(File.read(COVERAGE_FILE))
|
7
|
+
covered_percent = last_run['result']['covered_percent']
|
7
8
|
|
8
|
-
if
|
9
|
-
|
10
|
-
search("//tt").
|
11
|
-
search("[text()!='100.00%']").
|
12
|
-
search('../../../td[1]/a')
|
9
|
+
if covered_percent < 100
|
10
|
+
puts "\nBad Boy! Coverage is #{covered_percent}% < 100%..."
|
13
11
|
else
|
14
|
-
|
15
|
-
search("//td[2]").
|
16
|
-
search("//[text()!='100.0 %']").
|
17
|
-
search('../td[1]/a/')
|
12
|
+
puts "\nCongratulations! Your coverage is 100%!"
|
18
13
|
end
|
19
|
-
assert files_without_coverage.empty?, "Bad Boy! Coverage is not 100%... \n Files with problem:\n\t#{files_without_coverage.collect{|file_name| file_name.inner_text}.join("\n\t")}"
|
20
|
-
puts "Congratulations! Your coverage is 100%!"
|
21
14
|
end
|
22
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jumpup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HE:labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: hpricot
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '>='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
description: A synchronous continuous integration gem.
|
56
42
|
email:
|
57
43
|
- contato@helabs.com.br
|
@@ -90,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
76
|
version: '0'
|
91
77
|
requirements: []
|
92
78
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.0.
|
79
|
+
rubygems_version: 2.0.6
|
94
80
|
signing_key:
|
95
81
|
specification_version: 4
|
96
82
|
summary: Jumpup gem help people that want to do synchronous continuous integration
|