From 81eb17d788f110d2396cd67b3526ace1604010b7 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Fri, 3 Jan 2020 21:25:22 +0100 Subject: [PATCH] Update RedMatic-HomeKit --- addon_files/redmatic/lib/package.json | 2 +- github_release.rb | 49 --------------------------- package.json | 4 +-- 3 files changed, 3 insertions(+), 52 deletions(-) delete mode 100755 github_release.rb diff --git a/addon_files/redmatic/lib/package.json b/addon_files/redmatic/lib/package.json index def5f933..e17dce53 100644 --- a/addon_files/redmatic/lib/package.json +++ b/addon_files/redmatic/lib/package.json @@ -14,7 +14,7 @@ "node-red-contrib-zigbee": "0.17.0", "node-red-contrib-johnny-five": "1.0.0-beta.1", "node-red-contrib-enocean": "0.7.9", - "redmatic-homekit": "3.0.0", + "redmatic-homekit": "3.0.1", "node-red-contrib-theme-midnight-red": "1.0.24", "node-red-contrib-doorbird": "0.2.6", "redmatic-canbus": "1.0.1", diff --git a/github_release.rb b/github_release.rb deleted file mode 100755 index 91a49df1..00000000 --- a/github_release.rb +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env ruby - -# Copied from https://gist.github.com/valeriomazzeo/5491aee76f758f7352e2e6611ce87ec1 - -require 'optparse' -require 'octokit' - -options = {} -OptionParser.new do |opt| - opt.on('-s', '--secret SECRET', 'GitHub access token') { |o| options[:secret] = o } - opt.on('-r', '--repo-slug REPO_SLUG', 'Repo slug. i.e.: apple/swift') { |o| options[:repo_slug] = o } - opt.on('-c', '--changelog-file CHANGELOG_FILE', 'Changelog path') { |o| options[:changelog_file] = o } - opt.on('-t', '--tag TAG', 'Tag name') { |o| options[:tag_name] = o } -end.parse! - -raise OptionParser::MissingArgument if options[:secret].nil? -raise OptionParser::MissingArgument if options[:repo_slug].nil? -raise OptionParser::MissingArgument if options[:changelog_file].nil? -raise OptionParser::MissingArgument if options[:tag_name].nil? - -client = Octokit::Client.new(:access_token => options[:secret]) -user = client.user -user.login - -unless client.scopes.include? 'public_repo' or client.scopes.include? 'repo' - raise Error, "Insufficient permissions. Make sure your token contains the repo or public_repo scope." -end - -puts "Logged in as #{user.name}" -puts "Deploying to repo: #{options[:repo_slug]}" - -tag_matched = false -release_url = nil -releases = client.releases(options[:repo_slug]) -body = File.open(options[:changelog_file], "rb").read - -releases.each do |release| - if release.tag_name == options[:tag_name] - release_url = release.rels[:self].href - tag_matched = true - end -end - -# if tag has been pushed directly to git, create a github release -if tag_matched == false - client.create_release(options[:repo_slug], options[:tag_name], { :name => options[:tag_name], :body => body }) -else - client.update_release(release_url, { :name => options[:tag_name], :body => body }) -end diff --git a/package.json b/package.json index c4375a4b..e87a1f0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redmatic", - "version": "5.3.4", + "version": "5.3.5", "description": "Node-RED packaged as Homematic CCU addon", "repository": "github:rdmtc/redmatic", "private": true, @@ -22,7 +22,7 @@ "node-red-node-sqlite": "0.0.0 - 0.4.1", "redmatic-led": "0.0.0 - 1.1.0", "redmatic-webapp": "0.0.0 - 0.3.1", - "redmatic-homekit": "0.0.0 - 3.0.0", + "redmatic-homekit": "0.0.0 - 3.0.1", "node-red-node-email": "0.0.0 - 1.7.3", "node-red-node-rbe": "0.0.0 - 0.2.6", "node-red-node-serialport": "0.0.0 - 0.10.0",