releasinator 0.3.3 → 0.4.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: f17df962bdc08717c4ba081cce340ce9d6ff046b
4
- data.tar.gz: 5db28c53d38bbf9c0c6e649a236c8864a9741e99
3
+ metadata.gz: 16d22b79347de442120d0265334c95b5733e8618
4
+ data.tar.gz: d10c35acd08786cb5051804896872ec9b11ae69c
5
5
  SHA512:
6
- metadata.gz: 701bb77eab8ddc93dba8dc83ce749e1c21b756bd4eb0e1a7eb264bc7a84f6dcc2861eb4a0544dd5e74d33168f068d220a190f1e891abac1e510ff1d14d241e74
7
- data.tar.gz: c71c1ac1554a5e4c4a8ccf766f5b64b72377e742657c2ec46eecccecf5943b264a62765e1c06c443b71772fee7cc64f42cca8778ad0e16ae2118969aec47f997
6
+ metadata.gz: 877206063b2c70b6ea450ccf2b5952599bf6ae99979deece46664f7383676f414665b13665c39a2f8446d4ddc971d379add10b795d867fdc60f376440d4147d5
7
+ data.tar.gz: f1ba1a850d323a704a90f018c52e3c4aae812171387da3adf99d554243903050b6668b49ea84761f627233e07a631fe30237fd3f5213a9e3bab849be538ad686
data/.releasinator.rb CHANGED
@@ -56,6 +56,14 @@ def publish_to_package_manager(version)
56
56
  end
57
57
  end
58
58
 
59
+ def say_hello(version)
60
+ puts "hello #{version}"
61
+ end
62
+
63
+ configatron.post_push_methods = [
64
+ method(:say_hello)
65
+ ]
66
+
59
67
  # The method that publishes the sdk to the package manager. Required.
60
68
  configatron.publish_to_package_manager_method = method(:publish_to_package_manager)
61
69
 
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Releasinator release notes
2
2
  ==========================
3
3
 
4
+
5
+ 0.4.0
6
+ -----
7
+ * Add new `configatron.post_push_methods` param.
8
+
9
+ 0.3.4
10
+ -----
11
+ * Validate paths in separate `validate:paths` task.
12
+ * Add a missing task description.
13
+
4
14
  0.3.3
5
15
  -----
6
16
  * Add a git cleanliness check.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- releasinator (0.3.3)
4
+ releasinator (0.4.0)
5
5
  colorize (~> 0.7)
6
6
  configatron (~> 4.5)
7
7
  json (~> 1.8)
@@ -22,7 +22,7 @@ GEM
22
22
  multipart-post (2.0.0)
23
23
  octokit (4.3.0)
24
24
  sawyer (~> 0.7.0, >= 0.5.3)
25
- power_assert (0.2.7)
25
+ power_assert (0.3.0)
26
26
  rake (11.1.2)
27
27
  redcarpet (3.3.4)
28
28
  sawyer (0.7.0)
data/README.md CHANGED
@@ -41,10 +41,9 @@ release
41
41
  --> config
42
42
 
43
43
  --> validate:all
44
+ --> validate:paths
44
45
  --> validate:git_version
45
46
  --> validate:gitignore
46
- --> validate:git
47
- --> validate:branch
48
47
  --> validate:submodules
49
48
  --> validate:readme
50
49
  --> validate:changelog
@@ -53,7 +52,10 @@ release
53
52
  --> validate:issue_template
54
53
  --> validate:github_permissions_local
55
54
  --> validate:github_permissions_downstream[downstream_repo_index]
55
+ --> validate:releasinator_version
56
56
  --> validate:custom
57
+ --> validate:git
58
+ --> validate:branch
57
59
 
58
60
  --> local:build
59
61
  --> local:checklist
@@ -149,12 +151,11 @@ The releasinator enforces certain conventions. If a filename doesn't exactly ma
149
151
  9. ✓ Push to external repo (once live in external package manager).
150
152
  10. ✓ Create PRs into any downstream dependencies, including the release notes in the PR. Examples:
151
153
 
152
- * Create a PR into Braintree when mSDK/OTC release.
153
- * Create a PR into Cordova when mSDK release.
154
+ * Create a PR into Cordova when there's an Android or iOS release.
154
155
  * Create a PR into any other framework that has a direct dependency on this repo.
155
156
 
156
- 11. TODO add those same release notes within the release notes of the downstream repo.
157
- 11. Assemble a draft of news, and publish (where possible, i.e. send email, tweet, whatever).
157
+ 11. Using the downstream methods, one can add those same release notes within the release notes of the downstream repo.
158
+ 12. TODO Assemble a draft of news, and publish (where possible, i.e. send email, tweet, whatever).
158
159
 
159
160
  #### Package manager credential management (TODO)
160
161
  1. Validate permissions to publish to package manager
@@ -1,3 +1,3 @@
1
1
  module Releasinator
2
- VERSION = "0.3.3"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -43,6 +43,13 @@ namespace :validate do
43
43
  @validator.validate_releasinator_version
44
44
  end
45
45
 
46
+ desc "validate your path has some useful tools"
47
+ task :paths => :config do
48
+ @validator.validate_in_path("wget")
49
+ @validator.validate_in_path("git")
50
+ end
51
+
52
+ desc "validate git version is acceptable"
46
53
  task :git_version => :config do
47
54
  @validator.validate_git_version
48
55
  end
@@ -119,6 +126,7 @@ namespace :validate do
119
126
  desc "validate all"
120
127
  task :all =>
121
128
  [
129
+ :paths,
122
130
  :git_version,
123
131
  :gitignore,
124
132
  :submodules,
@@ -200,6 +208,12 @@ namespace :local do
200
208
  if @releasinator_config[:release_to_github]
201
209
  Publisher.new(@releasinator_config).publish_draft(GitUtil.repo_url, @current_release)
202
210
  end
211
+
212
+ if @releasinator_config.has_key? :post_push_methods
213
+ @releasinator_config[:post_push_methods].each do |post_push_method|
214
+ post_push_method.call(@current_release.version)
215
+ end
216
+ end
203
217
  end
204
218
  end
205
219
 
data/lib/validator.rb CHANGED
@@ -41,7 +41,6 @@ module Releasinator
41
41
  end
42
42
 
43
43
  def validate_git_version
44
- validate_in_path("git")
45
44
  version_output = CommandProcessor.command("git version")
46
45
  # version where the parallel git fetch features were added
47
46
  expected_git_version = "2.8.0"
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.3
4
+ version: 0.4.0
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-12 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler