rake_rack 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rvmrc +1 -0
- data/.travis.yml +15 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +24 -0
- data/README.md +1 -1
- data/Rakefile +7 -0
- data/history.rdoc +11 -0
- data/rake_rack.gemspec +1 -1
- data/spec/.keep +0 -0
- data/tasks/version.rake +33 -22
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff8047370f891de9c32be54447543424552d5786
|
4
|
+
data.tar.gz: fdeb3e724a981c0d8662530099ac95d81988624c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ceebe5d1beffc811f501718a86abee90225dab5ac1ebe699129ba81d8efbcf317b4b2d66d83fa7efb6327783e8c833cb061827a32957e15415e530c4ffb1bb5
|
7
|
+
data.tar.gz: c5d875c4cfa941796dfce5aef8d3104bb9c4ee4c0e0ccd085058e33924cb5fb17c47a596be0385525b8ab2233b4d046b1cad7fcf81ee1707b4c1221cf686eaff
|
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use --create --install ruby-2.1.2@rake_rack
|
data/.travis.yml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.1.0
|
4
|
+
- 2.0.0
|
5
|
+
- 1.9.3
|
6
|
+
- rbx-2
|
7
|
+
- ruby-head
|
8
|
+
- jruby-head
|
9
|
+
deploy:
|
10
|
+
provider: rubygems
|
11
|
+
api_key:
|
12
|
+
secure: "V7ykC2I7kVAvyfI97v8sFPrnewaWGRD6FtWqRGIhb2+BflzxRKydT7dk4nIB85z39YqV5Aq0IOrZSXdVKCN1UJn6kGg69JpTdvK8D5wNWYwFyY0/Y2zcqqVn2rNSYew7G3aSfLQqAipHEKzDB3y33ntdk3QFWYPitC1WbYzmfRE="
|
13
|
+
gem: rake_rack
|
14
|
+
on:
|
15
|
+
tags: true
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.2.5)
|
5
|
+
rake (10.1.0)
|
6
|
+
rspec (3.0.0)
|
7
|
+
rspec-core (~> 3.0.0)
|
8
|
+
rspec-expectations (~> 3.0.0)
|
9
|
+
rspec-mocks (~> 3.0.0)
|
10
|
+
rspec-core (3.0.2)
|
11
|
+
rspec-support (~> 3.0.0)
|
12
|
+
rspec-expectations (3.0.2)
|
13
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
14
|
+
rspec-support (~> 3.0.0)
|
15
|
+
rspec-mocks (3.0.2)
|
16
|
+
rspec-support (~> 3.0.0)
|
17
|
+
rspec-support (3.0.2)
|
18
|
+
|
19
|
+
PLATFORMS
|
20
|
+
ruby
|
21
|
+
|
22
|
+
DEPENDENCIES
|
23
|
+
rake
|
24
|
+
rspec
|
data/README.md
CHANGED
data/Rakefile
ADDED
data/history.rdoc
ADDED
data/rake_rack.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rake_rack"
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.5'
|
8
8
|
spec.authors = ["Richard Vickerstaff"]
|
9
9
|
spec.email = ["m3akq@btinternet.com"]
|
10
10
|
spec.description = "A set of rake tasks I commonly use - Formerly known as pool_net"
|
data/spec/.keep
ADDED
File without changes
|
data/tasks/version.rake
CHANGED
@@ -14,6 +14,7 @@ module Rake::Version
|
|
14
14
|
|
15
15
|
def self.update_to version
|
16
16
|
add_history_header version
|
17
|
+
update_gem version if gem?
|
17
18
|
commit version
|
18
19
|
tag version
|
19
20
|
branch = `git symbolic-ref HEAD`[%r{.*/(.*)}, 1]
|
@@ -30,8 +31,16 @@ module Rake::Version
|
|
30
31
|
puts "Added version to history.rdoc"
|
31
32
|
end
|
32
33
|
|
34
|
+
def self.update_gem version
|
35
|
+
path = Dir.glob('*.gemspec').first
|
36
|
+
text = File.read path
|
37
|
+
File.open(path, "w") do |file|
|
38
|
+
file.puts text.sub(/(.*version\s*=\s*)(['|"].*['|"])/, "\\1'#{version}'")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
33
42
|
def self.commit version
|
34
|
-
`git
|
43
|
+
`git add . && git commit -m 'increment version to #{version}'`
|
35
44
|
puts "Committed change"
|
36
45
|
end
|
37
46
|
|
@@ -39,6 +48,10 @@ module Rake::Version
|
|
39
48
|
`git tag #{version}`
|
40
49
|
puts "Tagged with #{version}"
|
41
50
|
end
|
51
|
+
|
52
|
+
def self.gem?
|
53
|
+
!Dir.glob('*.gemspec').empty?
|
54
|
+
end
|
42
55
|
end
|
43
56
|
|
44
57
|
desc "Display the latest version (from history.rdoc)"
|
@@ -48,29 +61,27 @@ end
|
|
48
61
|
|
49
62
|
namespace :rake_rack do
|
50
63
|
namespace :version do
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
end
|
64
|
+
desc "Increment the major version in history.rdoc (eg 1.2.3 => 2.0.0)"
|
65
|
+
task :major do
|
66
|
+
new_version = Rake::Version.latest_version
|
67
|
+
new_version[0] += 1
|
68
|
+
new_version[1,2] = 0, 0
|
69
|
+
Rake::Version.update_to new_version
|
70
|
+
end
|
59
71
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
72
|
+
desc "Increment the minor version in history.rdoc (eg 1.2.3 => 1.3.0)"
|
73
|
+
task :minor do
|
74
|
+
new_version = Rake::Version.latest_version
|
75
|
+
new_version[1] += 1
|
76
|
+
new_version[2] = 0
|
77
|
+
Rake::Version.update_to new_version
|
78
|
+
end
|
67
79
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
end
|
80
|
+
desc "Increment the patch version in history.rdoc (eg 1.2.3 => 1.2.4)"
|
81
|
+
task :patch do
|
82
|
+
new_version = Rake::Version.latest_version
|
83
|
+
new_version[2] += 1
|
84
|
+
Rake::Version.update_to new_version
|
74
85
|
end
|
75
86
|
end
|
76
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Vickerstaff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -46,9 +46,16 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
|
+
- ".rvmrc"
|
50
|
+
- ".travis.yml"
|
51
|
+
- Gemfile
|
52
|
+
- Gemfile.lock
|
49
53
|
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- history.rdoc
|
50
56
|
- lib/rake_rack.rb
|
51
57
|
- rake_rack.gemspec
|
58
|
+
- spec/.keep
|
52
59
|
- tasks/code_quality.rake
|
53
60
|
- tasks/coverage.rake
|
54
61
|
- tasks/karma.rake
|