redis_rds 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/Rakefile +39 -15
- data/lib/redis_rds/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7d35d14c390d18c576381847c2fc2fde2afa84e
|
4
|
+
data.tar.gz: 7ff88f9b3d9714d24d1ba2d92bea81380ad9b597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee92775152853502d6d04fa4547466533b2295b4535411977565cd8c2d37e2aaef5b17fdc0c54b548848220bb310971ce8d4b4e8a10af1cb6bdea82753e1a2f7
|
7
|
+
data.tar.gz: 40e7b5ceec154bd0d33fbd3880146407446f120661de5f1fe624edff36758fde4d57d0923e9654d215e1226307fc18101dffcb2486009219699594affaa5ee83
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
##0.1.2
|
4
|
+
|
5
|
+
- [3651e53](https://github.com/barcoo/redis_rds/commit/3651e53) *2016-08-02* __updated rake release task__ (Nicolas Pepin-Perreault)
|
6
|
+
- [35bfaeb](https://github.com/barcoo/redis_rds/commit/35bfaeb) *2016-08-02* __ignore .gem files__ (Nicolas Pepin-Perreault)
|
7
|
+
- [d317bc8](https://github.com/barcoo/redis_rds/commit/d317bc8) *2016-08-02* __remove COC__ (Nicolas Pepin-Perreault)
|
8
|
+
- [d41fb0d](https://github.com/barcoo/redis_rds/commit/d41fb0d) *2016-07-25* __bust github image cache for coveralls badge__ (Sergio Medina)
|
9
|
+
- [a2145bc](https://github.com/barcoo/redis_rds/commit/a2145bc) *2016-07-25* __lint Gemfile__ (Sergio Medina)
|
10
|
+
- [3873b33](https://github.com/barcoo/redis_rds/commit/3873b33) *2016-07-25* __udpdate ROADMAP__ (Sergio Medina)
|
11
|
+
- [d1f9952](https://github.com/barcoo/redis_rds/commit/d1f9952) *2016-07-25* __add coveralls badge to README.md__ (Sergio Medina)
|
12
|
+
- [dd1d8a8](https://github.com/barcoo/redis_rds/commit/dd1d8a8) *2016-07-25* __update sublime project file__ (Sergio Medina)
|
13
|
+
- [34ba881](https://github.com/barcoo/redis_rds/commit/34ba881) *2016-07-25* __added SortedSet.empty? and improve SortedSet test coverage__ (Sergio Medina)
|
14
|
+
- [3ecdc69](https://github.com/barcoo/redis_rds/commit/3ecdc69) *2016-07-25* __try coveralls__ (Sergio Medina)
|
15
|
+
|
3
16
|
##0.1.1
|
4
17
|
|
5
18
|
- [6617250](https://github.com/barcoo/redis_rds/commit/6617250) *2016-07-24* __move tests to test/redis_rds__ (Sergio Medina)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# RedisRds
|
2
2
|
|
3
|
-
[![GitHub release](https://img.shields.io/badge/release-0.1.
|
3
|
+
[![GitHub release](https://img.shields.io/badge/release-0.1.2-blue.png)](https://github.com/barcoo/redis_rds/releases/tag/0.1.2)
|
4
4
|
[![Build Status](https://travis-ci.org/barcoo/redis_rds.svg?branch=master)](https://travis-ci.org/barcoo/redis_rds)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/github/barcoo/redis_rds/badge.svg?branch=master&update=now)](https://coveralls.io/github/barcoo/redis_rds?branch=master)
|
6
6
|
|
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ task default: :test
|
|
12
12
|
namespace :cim do
|
13
13
|
desc 'Tags, updates README, and CHANGELOG and pushes to Github. Requires ruby-git'
|
14
14
|
task :release do
|
15
|
-
tasks = ['cim:assert_clean_repo', 'cim:git_fetch', 'cim:
|
15
|
+
tasks = ['cim:assert_clean_repo', 'cim:git_fetch', 'cim:set_new_version', 'cim:update_readme', 'cim:update_changelog', 'cim:commit_changes', 'cim:tag']
|
16
16
|
begin
|
17
17
|
tasks.each { |task| Rake::Task[task].invoke }
|
18
18
|
`git push && git push origin '#{RedisRds::VERSION}'`
|
@@ -24,17 +24,17 @@ namespace :cim do
|
|
24
24
|
desc 'Fails if the current repository is not clean'
|
25
25
|
task :assert_clean_repo do
|
26
26
|
status = `git status -s`.chomp.strip
|
27
|
-
if status.empty?
|
27
|
+
if status.strip.empty?
|
28
28
|
status = `git log origin/master..HEAD`.chomp.strip # check if we have unpushed commits
|
29
|
-
if status.empty?
|
29
|
+
if status.strip.empty?
|
30
30
|
puts '>>> Repository is clean!'
|
31
31
|
else
|
32
32
|
puts '>>> Please push your committed changes before releasing!'
|
33
|
-
exit
|
33
|
+
exit(-1)
|
34
34
|
end
|
35
35
|
else
|
36
36
|
puts '>>> Please stash or commit your changes before releasing!'
|
37
|
-
exit
|
37
|
+
exit(-1)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -44,14 +44,35 @@ namespace :cim do
|
|
44
44
|
`git fetch --tags`
|
45
45
|
end
|
46
46
|
|
47
|
-
desc '
|
48
|
-
task :
|
49
|
-
|
50
|
-
|
47
|
+
desc 'Requests the new version number'
|
48
|
+
task :set_new_version do
|
49
|
+
STDOUT.print(">>> New version number (current: #{RedisRds::VERSION}; leave blank if already updated): ")
|
50
|
+
input = STDIN.gets.strip.tr("'", "\'")
|
51
|
+
|
52
|
+
current = if input.empty?
|
53
|
+
RedisRds::VERSION
|
54
|
+
else
|
55
|
+
unless input =~ /[0-9]+\.[0-9]+\.[0-9]+/
|
56
|
+
puts '>>> Please use semantic versioning!'
|
57
|
+
exit(-1)
|
58
|
+
end
|
51
59
|
|
60
|
+
input
|
61
|
+
end
|
62
|
+
|
63
|
+
latest = `git describe --abbrev=0`.chomp.strip
|
52
64
|
unless Gem::Version.new(current) > Gem::Version.new(latest)
|
53
65
|
puts ">>> Latest tagged version is #{latest}; make sure gem version (#{current}) is greater!"
|
54
|
-
exit
|
66
|
+
exit(-1)
|
67
|
+
end
|
68
|
+
|
69
|
+
if !input.empty?
|
70
|
+
`sed -i -u "s@VERSION = '#{RedisRds::VERSION}'@VERSION = '#{input}'@" #{File.expand_path('../lib/redis_rds/version.rb', __FILE__)}`
|
71
|
+
$VERBOSE = nil
|
72
|
+
RedisRds.const_set('VERSION', input)
|
73
|
+
$VERBOSE = false
|
74
|
+
|
75
|
+
`bundle check` # force updating version
|
55
76
|
end
|
56
77
|
end
|
57
78
|
|
@@ -72,10 +93,13 @@ namespace :cim do
|
|
72
93
|
changelog = File.open('.CHANGELOG.md', 'w')
|
73
94
|
changelog.write("# Changelog\n\n###{RedisRds::VERSION}\n\n#{log}\n\n")
|
74
95
|
File.open('CHANGELOG.md', 'r') do |file|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
96
|
+
begin
|
97
|
+
file.readline # skip first two lines
|
98
|
+
file.readline
|
99
|
+
while buffer = file.read(2048)
|
100
|
+
changelog.write(buffer)
|
101
|
+
end
|
102
|
+
rescue => error
|
79
103
|
end
|
80
104
|
end
|
81
105
|
|
@@ -92,7 +116,7 @@ namespace :cim do
|
|
92
116
|
desc 'Creates and pushes the tag to git'
|
93
117
|
task :tag do
|
94
118
|
puts '>>> Tagging'
|
95
|
-
|
119
|
+
STDOUT.print('>>> Please enter a tag message: ')
|
96
120
|
input = STDIN.gets.strip.tr("'", "\'")
|
97
121
|
`git tag -a '#{RedisRds::VERSION}' -m '#{input}'`
|
98
122
|
end
|
data/lib/redis_rds/version.rb
CHANGED