fa-harness-tools 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1b207b44df9e158267806f2ccf6b25555a249e383944746e52f9bd903e4a558
4
- data.tar.gz: c32ceb59e143a777d467f03dbd8a78d31e9e0d27c7b2f9728f637db0db16a9ac
3
+ metadata.gz: a8b62816b52a8c8cbb615df53ded387c2af166da2f3d986973d7649514ee17de
4
+ data.tar.gz: 3274cc9cd5dfad6ee8a10fb2e8dc79856e83b42d16d368aa8466bddc150a3d46
5
5
  SHA512:
6
- metadata.gz: 172862bdd3f894dcd900f69cf45f80c9ea7aa6ddcaebe62d32a5d29145bd37579aa58d318067d69e1dcaa792cbc28ffaede1427bac78af69b95bcb2029bde817
7
- data.tar.gz: ba9ea3fcf3261c1014e050cbbac04df1255f9c1dade1a66f840447ccef23fbe94f65b21f755ba680a690b0848564a4425c3e41541e399a2c2b5b41c45e487975
6
+ metadata.gz: 5c0e753eab7662c459df2940436b57fbb2131710d4b572e3e87fc18f27315420c1e73635e9164ef20b7fb5e4486e871508e932fac69f1a013c988e1b77753ada
7
+ data.tar.gz: 8fe5898455f1cf835978ea810aeb1924fa75318a547590670f982d1d0e624ec04a877eca96287ef2d7536e58553083f6e5bffd35ee0bc39cd6f864f4b057d2a7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fa-harness-tools (1.0.1)
4
+ fa-harness-tools (1.0.2)
5
5
  octokit (~> 4.0)
6
6
  tzinfo (~> 2.0)
7
7
  tzinfo-data (~> 1.0)
data/README.md CHANGED
@@ -78,7 +78,9 @@ bundle exec exe/create-deployment-tag -r ${artifact.source.repositoryName} -e ${
78
78
 
79
79
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
80
80
 
81
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
81
+ To install this gem onto your local machine, run `bundle exec rake install`.
82
+
83
+ To release a new version, update the version number in `version.rb`, run `bundle` and commit the version bump. Then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
82
84
 
83
85
  The Ruby version used matches the one from the `harness/delegate` Docker image.
84
86
 
@@ -68,8 +68,9 @@ module FaHarnessTools
68
68
  #
69
69
  # Arguments match Octokit::Client::Objects#create_tag, minus first repo argument
70
70
  # (http://octokit.github.io/octokit.rb/Octokit/Client/Objects.html#create_tag-instance_method)
71
- def create_tag(*args)
72
- @octokit.create_tag(owner_repo, *args)
71
+ def create_tag(tag, message, commit_sha, *args)
72
+ @octokit.create_ref(owner_repo, "tags/#{tag}", commit_sha)
73
+ @octokit.create_tag(owner_repo, tag, message, commit_sha, *args)
73
74
  end
74
75
  end
75
76
  end
@@ -1,3 +1,3 @@
1
1
  module FaHarnessTools
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fa-harness-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - FreeAgent