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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64c2f1bcf7710ae23e0bed83fdee467ec674d947
4
- data.tar.gz: 35643924db0b55a790c218a88d3e44bb41e2a137
3
+ metadata.gz: 9034054d3abacb3e4bc0ca75822baf3b9843c3c3
4
+ data.tar.gz: edb667649a01ca4e6158c46481566de7cf2e52ed
5
5
  SHA512:
6
- metadata.gz: e21c85ecbc83aae1c0f1302f102e0b5d94bffbbba29dfe627299a7d3ca7e960aa0cb535362d2b09a0900720825a820726232b7d9d12e0b7b1f6223e01f4134e7
7
- data.tar.gz: 3edfb5b1b58a2d2a6cc38ec9e43f667582ffcea51f861e8fe5094308143527075106e40c9037dfa4ad5ba96279bea48817d99d5dd901d5026ddaae2b69348eba
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 follow the [Semantic Versioning](http://semver.org/).
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
@@ -20,6 +20,4 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
-
24
- spec.add_runtime_dependency('hpricot')
25
23
  end
@@ -1,3 +1,3 @@
1
1
  module Jumpup
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'find'
2
2
 
3
- namespace :integration do
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/integration.rake file. The file doesn't exists. You should create it in your project.
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
- integration:start
61
- integration:bundle_install
60
+ jumpup:start
61
+ jumpup:bundle_install
62
62
  db:migrate
63
63
  spec
64
- integration:coverage_verify
65
- jasmine:ci
66
- integration:finish
64
+ jumpup:coverage_verify
65
+ jumpup:finish
67
66
  )
68
67
 
69
68
  }
@@ -1,22 +1,15 @@
1
- %w(test/unit rubygems hpricot).each { |lib| require lib }
1
+ %w(test/unit rubygems json).each { |lib| require lib }
2
2
 
3
3
  class CoverageTest < Test::Unit::TestCase
4
- COVERAGE_FILE = "coverage/index.html"
4
+ COVERAGE_FILE = "coverage/.last_run.json"
5
5
  def test_if_application_is_fully_covered
6
- doc = Hpricot(File.read(COVERAGE_FILE))
6
+ last_run = JSON.parse(File.read(COVERAGE_FILE))
7
+ covered_percent = last_run['result']['covered_percent']
7
8
 
8
- if RUBY_VERSION =~ /1.8/
9
- files_without_coverage = doc.search("//div[@class='percent_graph_legend']").
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
- files_without_coverage = doc.search("//div[@id='AllFiles']").
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.1
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: 2013-08-06 00:00:00.000000000 Z
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.5
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