minitest-metadata 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/Gemfile.lock +1 -1
  3. data/VERSION +1 -1
  4. data/script/make_tag +25 -4
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzJjNWVlYTdiYjk1NTM1MmM2OWJmMmQ3MGNmNmExYTQ3MGNlNzk2Mg==
4
+ YzI4MTExNGFmZTMwOTMxMGQyYWQ4ZmVjNDZmMjk0NzhhOGUzZjA1YQ==
5
5
  data.tar.gz: !binary |-
6
- YWNjYjI5NjUwNjk5ZTc3N2M3ZGJmYmE0Y2QzNGNmZDgzMzE3Y2Q5Mw==
6
+ NjU2NGZjOTgzYWVlNGI3Yjk4NWU2OGQzNGZmOGQ4ZDBmNjcwYWIwNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjgxZWViOWQzZDMyYjYxY2VmZDZkNjdjMmVhMmJkZjIyOTk4ODRjMzc4Mjhl
10
- OWYyNjJlODgwZDI3YzE3MWEzN2MxZTFlOTcyYTRhNjE2NDE1Y2Q0NzE2MjIy
11
- MjY5ZjI0NDNjM2UzMGQ5ZDdmNzQ4OWYwMDU4NWQ3NmFjMDY1ZGI=
9
+ YjgxNWJlOTE1YjZmODhjNDIzYWQwMmVlOTA4OTY1NmVlMDRiODQxYjU4YTA4
10
+ MmVmMjMwMDRhMmJmZTliZjc2MzM2NGU3YTljNDFiMWIzN2JkZGUwYmIwNGVk
11
+ YmVhZWFjZGFiOTQ0NDkwOGQwZmFmNTkxNjU2MWZmNDg3Y2U3OTU=
12
12
  data.tar.gz: !binary |-
13
- NmU4OWYwMzUzM2I1NjU0Mzc0ODMzMWExZDA2NTBjNmE4M2E1MmZiY2FkZTM0
14
- ODNjNmRmMmFjYWY1YWJjMzY3MmZhY2I0NGRjMzZhMzNkZGI4Y2UzMjVkOTY1
15
- NGU0MzY4ZGNjNTBlMmI0ZjUzOTZlZjAzZTkzY2Y0ZTUyODViZGQ=
13
+ MDQ4NzExMmI0OTM2YjJjNmZlZTMzOWJmMjY2ZDgzNjM3NDYxYjA3OGQwODM0
14
+ NzZlN2NlNGZjYjliZDcxOTkzZGVmODgyZTllNTNkM2Q5Y2JlMzYzZjljYmQy
15
+ YjRmYTRlMjJiOWY3NjAxNTJlMWFlOGM1NTgxY2MxOWI2NDM5N2U=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minitest-metadata (0.5.1)
4
+ minitest-metadata (0.5.2)
5
5
  minitest (>= 4.7, < 6.0)
6
6
 
7
7
  GEM
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -2,9 +2,30 @@
2
2
  require 'json'
3
3
  require 'time'
4
4
 
5
+ ENV['GITHUB_TOKEN'] = 'cebfd9d48eb57bee07660aea1eb166e4ac00d44a'
6
+ ENV['TRAVIS_REPO_SLUG'] = 'wojtekmach/minitest-metadata'
7
+
8
+ sha = `git rev-parse HEAD`.strip
9
+ tag = "v%s" % File.read(File.expand_path('../../VERSION', __FILE__)).strip
10
+ token = ENV.fetch('GITHUB_TOKEN')
11
+ repo = ENV.fetch('TRAVIS_REPO_SLUG')
12
+
13
+ cmd = "curl -H \"Authorization: token %{token}\" -XPOST https://api.github.com/repos/%{repo}/git/refs -d '%{json}'" % {
14
+ token: token,
15
+ repo: repo,
16
+ json: JSON(
17
+ ref: "refs/tags/#{tag}",
18
+ sha: sha,
19
+ )
20
+ }
21
+ unless system cmd
22
+ puts "Failed"
23
+ exit 1
24
+ end
25
+
5
26
  json = JSON(
6
- tag: "v%s" % File.read(File.expand_path('../../VERSION', __FILE__)).strip,
7
- object: `git rev-parse HEAD`.strip,
27
+ tag: tag,
28
+ object: sha,
8
29
  type: "commit",
9
30
  tagger: {
10
31
  name: `git config user.name`.strip,
@@ -14,8 +35,8 @@ json = JSON(
14
35
  )
15
36
 
16
37
  cmd = "curl -H \"Authorization: token %{token}\" -XPOST https://api.github.com/repos/%{repo}/git/tags -d '%{json}'" % {
17
- token: ENV.fetch('GITHUB_TOKEN'),
18
- repo: ENV.fetch('TRAVIS_REPO_SLUG'),
38
+ token: token,
39
+ repo: repo,
19
40
  json: json,
20
41
  }
21
42
  system cmd
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Mach