ruboty-replica 1.0.0 → 1.0.1

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: 1585ba5dfaa5b4e9773af0a1cf29d3a5a14d4f42
4
- data.tar.gz: ab758f236f975ac94f7b4ccfe88c13def47df0ef
3
+ metadata.gz: 2e2687e9c5e83cc650e2361ff5bb4f6317001d0e
4
+ data.tar.gz: 46f2cfc083ec2dab2dab20339d07a7c45a7704d6
5
5
  SHA512:
6
- metadata.gz: 40d76c41628c146cf714c1fda9b8b03c13c322934dd975a5035e9c7fc9a0e6e4a3dc573c560d23332d9d08604d9e88a74ffbd014f78bc0208161102364299f2a
7
- data.tar.gz: 81d5e20adfa6014ff9d9ff234982e1680bb76d5af87084ea33eb1a8a479046138de2861d8e9a06889ebd9afe1c9d284c42ca1b7f327a4599953459c977ac0b94
6
+ metadata.gz: e7e51a413c41184a72df1ddffae86acf6d03503624b4d906f5812de2fbcc701888d7838007c96019d9f4b6590d184537c259ae4a259c328ac29fa9e2177c2669
7
+ data.tar.gz: 68c58b0e3242d8892c8c4c4b2e55a0c1f9abdbf8877a633c1bfbf9505e5603a1e556ea7b6eda8d4494ede40c5970df385e197c01edc7a9cc803538793b710fba
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ruboty plugin for replicate itself.
4
4
 
5
+ ![screenshot](screenshot.png)
6
+
5
7
  ## Support
6
8
  heroku
7
9
 
@@ -27,7 +29,7 @@ Or install it yourself as:
27
29
 
28
30
  or
29
31
 
30
- @ruboty
32
+ @ruboty replica to ruboty@example.com
31
33
 
32
34
  ## Contributing
33
35
 
@@ -4,7 +4,7 @@ module Ruboty
4
4
  env :HEROKU_API_KEY, 'heroku api key'
5
5
  env :HEROKU_APP_NAME, 'heroku app name'
6
6
 
7
- on /replica(?: to(?<new_owner>.*@.*))?/, name: 'replica', description: 'replicate itself'
7
+ on /replica(?: to (?<new_owner>.*@.*))?/, name: 'replica', description: 'replicate itself'
8
8
 
9
9
  def replica(message)
10
10
  Ruboty::Replica::Actions::Replica.new(message).call
@@ -8,8 +8,10 @@ module Ruboty
8
8
  message.reply("replica: #{replica['git_url']}")
9
9
 
10
10
  if message[:new_owner]
11
- transfer!(replica, to: message[:new_owner])
11
+ transfer!(replica, message[:new_owner])
12
12
  end
13
+ rescue => e
14
+ message.reply("replica: failed, #{e.message}")
13
15
  end
14
16
 
15
17
  private
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Replica
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-replica
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - block_given?
@@ -83,6 +83,7 @@ files:
83
83
  - lib/ruboty/replica/actions/replica.rb
84
84
  - lib/ruboty/replica/version.rb
85
85
  - ruboty-replica.gemspec
86
+ - screenshot.png
86
87
  homepage: https://github.com/blockgiven/ruboty-replica
87
88
  licenses:
88
89
  - MIT