releasinator 0.3.2 → 0.3.3
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/default_config.rb +2 -3
- data/lib/releasinator/version.rb +1 -1
- data/lib/tasks/releasinator.rake +3 -3
- data/lib/validator.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f17df962bdc08717c4ba081cce340ce9d6ff046b
|
4
|
+
data.tar.gz: 5db28c53d38bbf9c0c6e649a236c8864a9741e99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 701bb77eab8ddc93dba8dc83ce749e1c21b756bd4eb0e1a7eb264bc7a84f6dcc2861eb4a0544dd5e74d33168f068d220a190f1e891abac1e510ff1d14d241e74
|
7
|
+
data.tar.gz: c71c1ac1554a5e4c4a8ccf766f5b64b72377e742657c2ec46eecccecf5943b264a62765e1c06c443b71772fee7cc64f42cca8778ad0e16ae2118969aec47f997
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
Releasinator release notes
|
2
2
|
==========================
|
3
3
|
|
4
|
+
0.3.3
|
5
|
+
-----
|
6
|
+
* Add a git cleanliness check.
|
7
|
+
* Change default config to abort until filled in.
|
8
|
+
* Reorder validations so that git/branch checks are last. This was done to give the developer opportunity to fix other validations without having to push a bunch of times.
|
9
|
+
|
4
10
|
0.3.2
|
5
11
|
-----
|
6
12
|
* Fix issue where dot in changelog header turns a title into a release.
|
data/Gemfile.lock
CHANGED
data/lib/default_config.rb
CHANGED
@@ -8,15 +8,14 @@ configatron.prerelease_checklist_items = [
|
|
8
8
|
# configatron.base_docs_dir = '.'
|
9
9
|
|
10
10
|
def build_method
|
11
|
-
|
11
|
+
abort("please implement build_method method")
|
12
12
|
end
|
13
13
|
|
14
14
|
# The command that builds the sdk. Required.
|
15
15
|
configatron.build_method = method(:build_method)
|
16
16
|
|
17
17
|
def publish_to_package_manager(version)
|
18
|
-
|
19
|
-
puts "done publishing yay!"
|
18
|
+
abort("please implement publish_to_package_manager method")
|
20
19
|
end
|
21
20
|
|
22
21
|
# The method that publishes the sdk to the package manager. Required.
|
data/lib/releasinator/version.rb
CHANGED
data/lib/tasks/releasinator.rake
CHANGED
@@ -121,8 +121,6 @@ namespace :validate do
|
|
121
121
|
[
|
122
122
|
:git_version,
|
123
123
|
:gitignore,
|
124
|
-
:git,
|
125
|
-
:branch,
|
126
124
|
:submodules,
|
127
125
|
:readme,
|
128
126
|
:changelog,
|
@@ -132,7 +130,9 @@ namespace :validate do
|
|
132
130
|
:github_permissions_local,
|
133
131
|
:github_permissions_downstream,
|
134
132
|
:releasinator_version,
|
135
|
-
:custom
|
133
|
+
:custom,
|
134
|
+
:git,
|
135
|
+
:branch
|
136
136
|
] do
|
137
137
|
Printer.success("All validations passed.")
|
138
138
|
end
|
data/lib/validator.rb
CHANGED
@@ -350,11 +350,15 @@ module Releasinator
|
|
350
350
|
end
|
351
351
|
|
352
352
|
def rename_file(old_name, new_name)
|
353
|
+
is_git_already_clean = GitUtil.is_clean_git?
|
354
|
+
|
353
355
|
puts "Renaming #{old_name} to expected filename: #{new_name}".yellow
|
354
356
|
CommandProcessor.command("mv #{old_name} #{new_name}")
|
355
357
|
# fix any references to file in readme
|
356
358
|
replace_string("README.md", "(#{old_name})", "(#{new_name})")
|
357
|
-
|
359
|
+
if is_git_already_clean
|
360
|
+
CommandProcessor.command("git add . && git commit -m \"#{@releasinator_config[:releasinator_name]}: rename #{old_name} to #{new_name}\"")
|
361
|
+
end
|
358
362
|
end
|
359
363
|
|
360
364
|
def rename_alternate_name(expected_file_name, alternate_names)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: releasinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|