semmy 0.1.0 → 0.2.0

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: ea4c24f886e54232fcab730802a1856eea3dc465
4
- data.tar.gz: f188adf4a9d562ff9ab8554d5c1c1e71e3b25454
3
+ metadata.gz: 1b3f7405b45d85b2fbad72f6bf800de454f6c079
4
+ data.tar.gz: 3d79221017ce08e3aa5fb6dcbf9d0b5db3bf11f8
5
5
  SHA512:
6
- metadata.gz: cad40bf070fe5fb65a8cc060ee34d0144935ea405d82828d5befc7f58b2ca9009ee9529575d92d671fc8426587b2d34741303e5900235c4724c888f70b8b1c1d
7
- data.tar.gz: edd2e7e8c779b77ba615c6e7d50b1ef80bea8cd99989d9914a34caff12e0dc87af67c0f733aee6a38ced1a6c5469c1fdfb4cdf09cc30d27f24a5006de7ff897d
6
+ metadata.gz: 670ce446aaa00a4b44e11411b5a474e091679a77a49b5ebc8b512490565b84527e83366c51440ff30eb2c01499a80150e0c804bd8d81ce7290ac9f41e0007e0e
7
+ data.tar.gz: 86f4c2005019a02441117b931f0eb4064321158f17d9ec589671df01d1739d34bc531f06b78759b7d80ac18da8e9d6674a3f333d3befe922171c7beb032565c4
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- before_install: gem install bundler -v 1.10.5
3
+ - 2.3.0
4
+ before_install: gem install bundler -v 1.12.5
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 0.2.0
4
+
5
+ 2016-06-09
6
+
7
+ [Compare changes](https://github.com/tf/semmy/compare/v0.1.0..v0.2.0)
8
+
9
+ - Fine tune default commit messages.
10
+
3
11
  ### Version 0.1.0
4
12
 
5
13
  2016-06-09
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in semmy.gemspec
4
4
  gemspec
5
+
6
+ gem 'coveralls', require: false
data/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Semmy
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/semmy.svg)](http://badge.fury.io/rb/semmy)
4
+ [![Dependency Status](https://gemnasium.com/badges/github.com/tf/semmy.svg)](https://gemnasium.com/github.com/tf/semmy)
5
+ [![Build Status](https://travis-ci.org/tf/semmy.svg?branch=master)](https://travis-ci.org/tf/semmy)
6
+ [![Coverage Status](https://coveralls.io/repos/github/tf/semmy/badge.svg?branch=master)](https://coveralls.io/github/tf/semmy?branch=master)
7
+ [![Code Climate](https://codeclimate.com/github/tf/semmy/badges/gpa.svg)](https://codeclimate.com/github/tf/semmy)
8
+
3
9
  An opinionated set of rake tasks to maintain gems following semantic
4
10
  versioning principles.
5
11
 
@@ -8,7 +14,7 @@ versioning principles.
8
14
  Add development dependency to your gemspec:
9
15
 
10
16
  # your.gemspec
11
- s.add_development_dependency "semmy", "~> 1.0"
17
+ s.add_development_dependency 'semmy', '~> 0.2'
12
18
 
13
19
  Install gems:
14
20
 
@@ -23,8 +23,8 @@ module Semmy
23
23
 
24
24
  @stable_branch_name = '%{major}-%{minor}-stable'
25
25
 
26
- @prepare_commit_message = 'Prepare %{version} Release'
27
- @bump_commit_message = 'Bump Version to %{version}'
26
+ @prepare_commit_message = 'Prepare %{version} release'
27
+ @bump_commit_message = 'Bump version to %{version}'
28
28
 
29
29
  @changelog_path = 'CHANGELOG.md'
30
30
  @changelog_version_section_heading = '### Version %{version}'
@@ -13,7 +13,7 @@ module Semmy
13
13
  private
14
14
 
15
15
  def stable_branch_matcher(stable_branch_name)
16
- Regexp.new(p(stable_branch_name.gsub(/%\{\w+\}/, '[0-9]+')))
16
+ Regexp.new(stable_branch_name.gsub(/%\{\w+\}/, '[0-9]+'))
17
17
  end
18
18
 
19
19
  def git
@@ -10,14 +10,6 @@ module Semmy
10
10
  say(text, :green)
11
11
  end
12
12
 
13
- def warn(text)
14
- say(text, :yellow)
15
- end
16
-
17
- def error(text)
18
- say(text, :red)
19
- end
20
-
21
13
  private
22
14
 
23
15
  def say(text, color)
@@ -9,7 +9,7 @@ module Semmy
9
9
  name = config.stable_branch_name %
10
10
  VersionString.components(Project.version)
11
11
 
12
- Shell.info("Creating stable branch #{name}...")
12
+ Shell.info("Creating stable branch #{name}.")
13
13
 
14
14
  git.branch(name).create
15
15
  end
@@ -9,7 +9,7 @@ module Semmy
9
9
  homepage = Gemspec.homepage
10
10
 
11
11
  Shell.info("Inserting #{new_version} section " \
12
- "in #{config.changelog_path}...")
12
+ "in #{config.changelog_path}.")
13
13
 
14
14
  Files.rewrite(config.changelog_path,
15
15
  Changelog::CloseSection.new(config,
@@ -21,7 +21,7 @@ module Semmy
21
21
 
22
22
  task 'add_unreleased_section' do
23
23
  Shell.info('Inserting unreleased section ' \
24
- "in #{config.changelog_path}...")
24
+ "in #{config.changelog_path}.")
25
25
 
26
26
  Files.rewrite(config.changelog_path,
27
27
  Changelog::InsertUnreleasedSection.new(config,
@@ -6,7 +6,7 @@ module Semmy
6
6
  def define
7
7
  namespace 'commit' do
8
8
  task 'prepare' do
9
- Shell.info('Creating prepare commit...')
9
+ Shell.info('Creating prepare commit.')
10
10
 
11
11
  git.commit_all(config.prepare_commit_message % {
12
12
  version: Project.version
@@ -14,7 +14,7 @@ module Semmy
14
14
  end
15
15
 
16
16
  task 'bump' do
17
- Shell.info('Creating bump commit...')
17
+ Shell.info('Creating bump commit.')
18
18
 
19
19
  git.commit_all(config.bump_commit_message % {
20
20
  version: Project.version
@@ -7,7 +7,7 @@ module Semmy
7
7
  namespace 'docs' do
8
8
  task 'rewrite_since_tags' do
9
9
  Shell.info("Rewriting @since #{config.rewritten_since_doc_tag} " \
10
- "doc tags in #{config.source_files_with_docs_tags}...")
10
+ "doc tags in #{config.source_files_with_docs_tags}.")
11
11
 
12
12
  Files.rewrite_all(config.source_files_with_docs_tags,
13
13
  DocTags::UpdateSinceTags.new(config.rewritten_since_doc_tag,
@@ -1,3 +1,3 @@
1
1
  module Semmy
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency 'unindent', '~> 1.0'
23
23
  spec.add_dependency 'rainbow', '~> 2.1'
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.10"
26
- spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency 'bundler', '~> 1.10'
26
+ spec.add_development_dependency 'rake', '~> 11.0'
27
27
  spec.add_development_dependency 'rspec', '~> 3.0'
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semmy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Fischbach
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: '11.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: '11.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement