jumpup 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/README.mkdn +8 -19
- data/lib/jumpup/version.rb +1 -1
- data/lib/tasks/integrate.rake +0 -6
- metadata +3 -6
- data/lib/jumpup/test_case.rb +0 -7
- data/test/coverage_test.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ed0c9528c69588fdb4ceeb4c0903e2a1d3031a3
|
4
|
+
data.tar.gz: f97154f489694aacfa37c24c85b4b8be5c493523
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fd5bc4b91d8d3f279d4f0618009b3475d60a8e5dcf7c3056f9db4965b43ceda7e3b8579ef5221032c17e91f4afe3634f288f49af3ad5d22c39c0023a140e8f4
|
7
|
+
data.tar.gz: f769f6316fc344fddc4e025016fc4e9fd24d38248688e5ce6057d87a267b78379c1184a4ca31c8f9311ead56d559d3e379349a12577e967bf61a244ea8eca80d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## 0.0.
|
3
|
+
## 0.0.7 (unreleased)
|
4
4
|
|
5
5
|
### features
|
6
6
|
|
@@ -8,6 +8,15 @@
|
|
8
8
|
|
9
9
|
### bug fixes
|
10
10
|
|
11
|
+
## 0.0.6 (July 11, 2014)
|
12
|
+
|
13
|
+
### features
|
14
|
+
|
15
|
+
### improvements
|
16
|
+
- Transfer coverage verification to simplecov
|
17
|
+
|
18
|
+
### bug fixes
|
19
|
+
|
11
20
|
|
12
21
|
## 0.0.5 (May 15, 2014)
|
13
22
|
|
data/README.mkdn
CHANGED
@@ -51,11 +51,6 @@ The integration process is composed of several steps that are explained ahead. I
|
|
51
51
|
|
52
52
|
Remove temporary files.
|
53
53
|
|
54
|
-
* task backup:local
|
55
|
-
|
56
|
-
Backup files locally. This is done before scm update to create a recovery point if you have problems during scm update. If a file merge creates undesirable effects on the software, you can recover from the backup file.
|
57
|
-
Backup file names have a timestamp. By default, the last 30 backups are kept. You may change this number as you'll see shortly. This task won't work on Windows because it uses [tar][]. So, if you're using Windows you'll have to write your own version of this task or just stop using Windows. We highly recommend the later.
|
58
|
-
|
59
54
|
* task git:pull
|
60
55
|
|
61
56
|
Update local files from your remote scm repository.
|
@@ -68,10 +63,6 @@ The integration process is composed of several steps that are explained ahead. I
|
|
68
63
|
|
69
64
|
Set the rake task your test/spec suite needs to run. Use a command that generate the coverage files.
|
70
65
|
|
71
|
-
* coverage_verify
|
72
|
-
|
73
|
-
Check if tests/specs cover 100% of the application code.
|
74
|
-
|
75
66
|
* git:push
|
76
67
|
|
77
68
|
Push your changes. If any of the previous tasks break, because one test failed, for instance, the script won't push. Actually this task runs only if every checking done before work well.
|
@@ -103,19 +94,16 @@ Using this almost paranoid sequence of steps it will be hard to check in bad cod
|
|
103
94
|
jumpup:finish
|
104
95
|
)
|
105
96
|
|
106
|
-
As a matter of fact, since this case might be very common, **we decided to create a lib/tasks/integration.rake for you once the gem has been installed. It has this very configuration and you can use it as a starting point to customize your integration process**.
|
107
|
-
|
108
97
|
* Spec infected programmer
|
109
98
|
|
110
|
-
So you used to [TDD][TDD] all around but then someone told you that this is for gramma. The new wave has a name on it: [BDD][BDD]. So, of course, you now have specs covering 100% of your code and doesn't have any more tests. Great! Just
|
99
|
+
So you used to [TDD][TDD] all around but then someone told you that this is for gramma. The new wave has a name on it: [BDD][BDD]. So, of course, you now have specs covering 100% of your code and doesn't have any more tests. Great! Just change your test_helper.rb/spec_helper.rb with:
|
111
100
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
)
|
101
|
+
```ruby
|
102
|
+
require 'simplecov'
|
103
|
+
SimpleCov.start 'rails' do
|
104
|
+
minimum_coverage 100
|
105
|
+
end
|
106
|
+
```
|
119
107
|
|
120
108
|
## Versioning
|
121
109
|
|
@@ -151,6 +139,7 @@ Comments are welcome.
|
|
151
139
|
## Maintainers
|
152
140
|
|
153
141
|
- [Thiago Borges](https://github.com/thiagogabriel)
|
142
|
+
- [Mauro George](https://github.com/maurogeorge)
|
154
143
|
|
155
144
|
## Authors
|
156
145
|
|
data/lib/jumpup/version.rb
CHANGED
data/lib/tasks/integrate.rake
CHANGED
@@ -34,11 +34,6 @@ namespace :jumpup do
|
|
34
34
|
end
|
35
35
|
task :finish => ["git:push"]
|
36
36
|
|
37
|
-
desc 'Check code coverage'
|
38
|
-
task :coverage_verify do
|
39
|
-
sh "ruby #{File.expand_path(File.dirname(__FILE__) + '/../../test/coverage_test.rb')}"
|
40
|
-
end
|
41
|
-
|
42
37
|
desc 'Run bundle install'
|
43
38
|
task :bundle_install do
|
44
39
|
Bundler.with_clean_env do
|
@@ -63,7 +58,6 @@ INTEGRATION_TASKS = %w(
|
|
63
58
|
jumpup:bundle_install
|
64
59
|
db:migrate
|
65
60
|
spec
|
66
|
-
jumpup:coverage_verify
|
67
61
|
jumpup:finish
|
68
62
|
)
|
69
63
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HE:labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -54,10 +54,8 @@ files:
|
|
54
54
|
- Rakefile
|
55
55
|
- jumpup.gemspec
|
56
56
|
- lib/jumpup.rb
|
57
|
-
- lib/jumpup/test_case.rb
|
58
57
|
- lib/jumpup/version.rb
|
59
58
|
- lib/tasks/integrate.rake
|
60
|
-
- test/coverage_test.rb
|
61
59
|
homepage: https://github.com/Helabs/jumpup
|
62
60
|
licenses:
|
63
61
|
- MIT
|
@@ -83,5 +81,4 @@ signing_key:
|
|
83
81
|
specification_version: 4
|
84
82
|
summary: Jumpup gem help people that want to do synchronous continuous integration
|
85
83
|
on their ruby projects.
|
86
|
-
test_files:
|
87
|
-
- test/coverage_test.rb
|
84
|
+
test_files: []
|
data/lib/jumpup/test_case.rb
DELETED
data/test/coverage_test.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
%w(minitest/autorun jumpup/test_case rubygems json).each { |lib| require lib }
|
2
|
-
|
3
|
-
class CoverageTest < Jumpup::TestCase
|
4
|
-
COVERAGE_FILE = "coverage/.last_run.json"
|
5
|
-
def test_if_application_is_fully_covered
|
6
|
-
last_run = JSON.parse(File.read(COVERAGE_FILE))
|
7
|
-
covered_percent = last_run['result']['covered_percent']
|
8
|
-
|
9
|
-
assert_equal 100, covered_percent, "\nBad Boy! Coverage is #{covered_percent}% < 100%..."
|
10
|
-
puts "\nCongratulations! Your coverage is 100%!"
|
11
|
-
end
|
12
|
-
end
|