capistrano-github-releases 0.1.0 → 0.1.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: b99ef94f18f7f29ffa32bd6e7185c1430e0e9f13
4
- data.tar.gz: a2d39e1eaa10283d3966d2b69a43e7901e990c5f
3
+ metadata.gz: fdfdbbaff66c661aab63db1a10214eb9d980c4f1
4
+ data.tar.gz: 0da7a3da1b46da99ff4d8b2d08eb8632215f40ad
5
5
  SHA512:
6
- metadata.gz: 6459d3c0006701494e17823d5ed54a00fc9201f374649de1f46f88dbe782bfd05301e5528c3a428f482891774899515bed3ce7a5f891d4b044412ef015396cd6
7
- data.tar.gz: edfc97f6516ac0c220e0b6244dd1f612876a273d9370f9a1b5e3f80a4427b6ad0523b85129c26473e3f33275dddd17e9fcd547a102139a32d29b45c160e4d50d
6
+ metadata.gz: b1537e033fe1c31f36557b0c2e69a403db158618d1688c1e2f0f70c3b027cd013cb89fccd4c440f6dffb09e3aca98bd39cc580efbab8b1513273f4ba95c9c809
7
+ data.tar.gz: 951ced757101300eaf29b8b2a08cb6b9cd88d2bfd7abf2f78e8e62b051e05a1d467a6d3ccf786a158c043031cc7aa60331f514bd3137fde1a628cfe4ebadfb5f
data/README.md CHANGED
@@ -52,10 +52,10 @@ after 'deploy:finishing', 'github:releases:add_comment'
52
52
 
53
53
  Set capistrano variables with `set name, value`.
54
54
 
55
- Name | Default | Description
56
- ---- | ------- | -----------
57
- release_tag | `Time.now.strftime('release-%Y%m%d-%H%M')` | Create releases when git-tag name
58
- release_comment | This pull-request deployed to production and ... | Pull requests to deploy report comment
55
+ Name | Default | Description
56
+ ---- | ------- | -----------
57
+ release_tag | `Time.now.strftime('release-%Y%m%d-%H%M')` | Create releases when git-tag name
58
+ release_comment | This change was deployed to production :octocat: ... | Pull requests to deploy report comment
59
59
 
60
60
  ### GitHub Enterprise
61
61
 
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Github
3
3
  module Releases
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
6
6
  end
7
7
  end
@@ -26,15 +26,6 @@ namespace :github do
26
26
  Time.now.strftime('release-%Y%m%d-%H%M')
27
27
  }
28
28
 
29
- set :github_username, -> {
30
- if ENV['GITHUB_USERNAME'].nil?
31
- username = HighLine.new.ask("GitHub Username? [default: #{fetch(:username)}]")
32
- Dotenv.add "GITHUB_USERNAME=#{username}"
33
- else
34
- ENV['GITHUB_USERNAME']
35
- end
36
- }
37
-
38
29
  set :release_title, -> {
39
30
  default_title = nil
40
31
 
@@ -74,7 +65,7 @@ namespace :github do
74
65
  url = "#{fetch(:github_releases_path)}/#{fetch(:release_tag)}"
75
66
 
76
67
  <<-MD.gsub(/^ {6}/, '').strip
77
- I deployed this with production environment and created a release tag. :octocat:
68
+ This change was deployed to production :octocat:
78
69
  #{fetch(:release_title)}: [#{fetch(:release_tag)}](#{url})
79
70
  MD
80
71
  }
@@ -102,7 +93,6 @@ namespace :github do
102
93
  run_locally do
103
94
  begin
104
95
  Octokit.configure do |c|
105
- c.login = fetch(:github_username)
106
96
  c.access_token = fetch(:github_token)
107
97
  end
108
98
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-github-releases
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-24 00:00:00.000000000 Z
11
+ date: 2014-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano