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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 749133b313bcf4e027302e498d5c3db68d27e417
4
- data.tar.gz: ea1e71a8165b82d10fb09cb8b954cdc697f58940
3
+ metadata.gz: ff8047370f891de9c32be54447543424552d5786
4
+ data.tar.gz: fdeb3e724a981c0d8662530099ac95d81988624c
5
5
  SHA512:
6
- metadata.gz: 968178ec430d602923701d37bd79d9210350fb77404a23fe880f03aba5712eb04146bacb06a6a3cc7875b748ac95677389feba785ae88e993cbd58fb7715c4aa
7
- data.tar.gz: 892df821bd57a0c3e962a7f293e2ee197ab2a5fa0ec6b8108d460f629a113844b82b79e24b86591f5c75e5fec674a6acbf7763adfacb23bd3145918f0a0cebe7
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
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rspec'
4
+ gem 'rake'
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
@@ -1,6 +1,6 @@
1
1
  RakeRack
2
2
  ========
3
-
3
+ [![Build Status](https://travis-ci.org/RichardVickerstaff/rake_rack.svg?branch=master)](https://travis-ci.org/RichardVickerstaff/rake_rack)
4
4
  Common rake tasks I use a lot
5
5
  -----------------------------------------
6
6
 
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require './lib/rake_rack'
2
+
3
+ task :default => [
4
+ :"rake_rack:rspec",
5
+ :"rake_rack:ok",
6
+ ]
7
+
data/history.rdoc ADDED
@@ -0,0 +1,11 @@
1
+ == 0.0.5 (16 July 2014)
2
+
3
+ * Change version tack so it can update gem version
4
+
5
+ == 0.0.4 (16 July 2014)
6
+
7
+ * Allow Travis to push gem on tag
8
+
9
+ == 0.0.3 (14 July 2014)
10
+
11
+ * Introduce history file
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.3'
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 commit history.rdoc -m'increment version to #{version}'`
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
- namespace :increment do
52
- desc "Increment the major version in history.rdoc (eg 1.2.3 => 2.0.0)"
53
- task :major do
54
- new_version = Rake::Version.latest_version
55
- new_version[0] += 1
56
- new_version[1,2] = 0, 0
57
- Rake::Version.update_to new_version
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
- desc "Increment the minor version in history.rdoc (eg 1.2.3 => 1.3.0)"
61
- task :minor do
62
- new_version = Rake::Version.latest_version
63
- new_version[1] += 1
64
- new_version[2] = 0
65
- Rake::Version.update_to new_version
66
- end
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
- desc "Increment the patch version in history.rdoc (eg 1.2.3 => 1.2.4)"
69
- task :patch do
70
- new_version = Rake::Version.latest_version
71
- new_version[2] += 1
72
- Rake::Version.update_to new_version
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.3
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-14 00:00:00.000000000 Z
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