redis_rds 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe5fdbd19701e3212b3dd6f36b9ccb7717ab60d9
4
- data.tar.gz: fbe1a8aa69abecd838a8659a3175114135c67afb
3
+ metadata.gz: e7d35d14c390d18c576381847c2fc2fde2afa84e
4
+ data.tar.gz: 7ff88f9b3d9714d24d1ba2d92bea81380ad9b597
5
5
  SHA512:
6
- metadata.gz: 6fab513e4524e3ef4375540a52fac2f7efac0a77b2bd7fc7c9a0a12e0cfacc0a8fcb2adbd0921ccb27a67d07a69de9d07261ec566551bc29218597544be3a8f1
7
- data.tar.gz: 72cae17306552b4f7807f4163caee1950d73eac99d99be99ff61abbf096d3178eed31ac0479120ab3ca69b5802ef1435b952119749e2c9f93a3088709db483a2
6
+ metadata.gz: ee92775152853502d6d04fa4547466533b2295b4535411977565cd8c2d37e2aaef5b17fdc0c54b548848220bb310971ce8d4b4e8a10af1cb6bdea82753e1a2f7
7
+ data.tar.gz: 40e7b5ceec154bd0d33fbd3880146407446f120661de5f1fe624edff36758fde4d57d0923e9654d215e1226307fc18101dffcb2486009219699594affaa5ee83
data/.gitignore CHANGED
@@ -16,3 +16,4 @@
16
16
  .rubocop-*
17
17
  redis_rds.sublime-workspace
18
18
  README.md-u
19
+ *.gem
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.1-blue.png)](https://github.com/barcoo/redis_rds/releases/tag/0.1.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:assert_version', 'cim:update_readme', 'cim:update_changelog', 'cim:commit_changes', 'cim:tag']
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 -1
33
+ exit(-1)
34
34
  end
35
35
  else
36
36
  puts '>>> Please stash or commit your changes before releasing!'
37
- exit -1
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 'Fails if the current gem version is not greater than the last tag'
48
- task :assert_version do
49
- latest = `git describe --abbrev=0`.chomp.strip
50
- current = RedisRds::VERSION
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 -1
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
- file.readline # skip first two lines
76
- file.readline
77
- while buffer = file.read(2048)
78
- changelog.write(buffer)
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
- message = STDOUT.print '>>> Please enter a tag message: '
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
@@ -1,3 +1,3 @@
1
1
  module RedisRds
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_rds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Checkitmobile GmbH