releasinator 0.3.2 → 0.3.3

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: f7c6619c3e1a237aa82cf036cad08ef7f61fb72f
4
- data.tar.gz: d8afceba87f1a3d423b481ed1b800c114b54c197
3
+ metadata.gz: f17df962bdc08717c4ba081cce340ce9d6ff046b
4
+ data.tar.gz: 5db28c53d38bbf9c0c6e649a236c8864a9741e99
5
5
  SHA512:
6
- metadata.gz: dfe64ad0dad81a0d683ee3f0f4d3c682ad46fd17dbb9d37fe3c5c21747df042d6ec46c8258814e03b0c36b08e1c10a130ba6550d6c0101b55b66872f795da89c
7
- data.tar.gz: 84442239ac7d7553bb43b88364b5a911b402f8dac47a0e2d4dff64341cb8f8e40924aebb1a4f8cc601abfc9d6be148d928c20fad1958c43744cb0327a019dadd
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- releasinator (0.3.2)
4
+ releasinator (0.3.3)
5
5
  colorize (~> 0.7)
6
6
  configatron (~> 4.5)
7
7
  json (~> 1.8)
@@ -8,15 +8,14 @@ configatron.prerelease_checklist_items = [
8
8
  # configatron.base_docs_dir = '.'
9
9
 
10
10
  def build_method
11
- CommandProcessor.command("ls -al")
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
- sleep 1
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.
@@ -1,3 +1,3 @@
1
1
  module Releasinator
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -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
- CommandProcessor.command("git add . && git commit -m \"#{@releasinator_config[:releasinator_name]}: rename #{old_name} to #{new_name}\"")
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.2
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-10 00:00:00.000000000 Z
11
+ date: 2016-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler