prima-twig 0.2.26 → 0.2.27

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
  SHA1:
3
- metadata.gz: 6278b63cf06b6222d97d8361d6140f0b2d8c26c4
4
- data.tar.gz: d32044141830548df13275f4ddbd1d219260a5ea
3
+ metadata.gz: 8ae2b2439b1eea4e4aab608aec6dc9ead04561c7
4
+ data.tar.gz: 160d6f697d55a16b005eed9d10e7cbdb51554091
5
5
  SHA512:
6
- metadata.gz: bdb6e1319e2e2565a87b4f02d80b103927ea91f53c2df273446c1407bd1d231f830463a8aed8e7c9cd2e138da6cc5b4328a82a815883fd114cc87c13f024c780
7
- data.tar.gz: f386ea23696b1a9e4f3a5a72b2ddcae068b8471974cb5c5ae4b2a17afa52e72ff60fbd66bacd68851d06d4a56a98e0e76ed5572f7431d97ebc0e94dab63d8c51
6
+ metadata.gz: 09da201f05deca5428bca7546e0303ec002ecf3f9c4154d74ed5b833a09ed5acc0edceb8a9b3e0ac447e07cd46d8a0826f1bdef729e724f08c5eddc2205f20fe
7
+ data.tar.gz: 8d4b87e6d48cfb33df31cf21f41e265032cff01b34b2d2ebc6ee87cefed6eb2f8fbeff1c010249f98912df92145489ac3c9bfd398595417b9b491c3657e7a2d3
@@ -73,8 +73,8 @@ class Review
73
73
  artifact = artifacts.select {|v| v[:rev] == artifact_rev}.first
74
74
 
75
75
  mail = Mail.new do
76
- from 'developers@prima.it'
77
- to 'developers@prima.it'
76
+ from 'deploy@prima.it'
77
+ to 'deploy@prima.it'
78
78
  subject "#{user} ha effettuato il deploy della revision #{artifact[:rev]}"
79
79
  end
80
80
 
@@ -98,7 +98,7 @@ class Review
98
98
  mail.text_part = text_part
99
99
 
100
100
  opts = {address: 'smtp.mandrillapp.com', port: '587'}
101
- opts[:user_name] = 'developers@prima.it'
101
+ opts[:user_name] = 'deploy@prima.it'
102
102
  opts[:password] = @prima.config['mandrill']
103
103
 
104
104
  mail.delivery_method(:smtp, opts)
@@ -56,7 +56,7 @@ class Hotfix
56
56
  exec_step 'git fetch'
57
57
  exec_step 'git checkout dev'
58
58
  exec_step 'git merge origin/dev'
59
- exec_step "git merge #{current_branch_name}"
59
+ exec_step "git merge --no-ff #{current_branch_name}"
60
60
 
61
61
  exec_step 'git push origin dev' if @prima.yesno 'Vuoi effettuare il push di dev?'.blue
62
62
 
@@ -117,7 +117,8 @@ class OpenPR
117
117
  unless @prima.twig.get_branch_property(current_branch_name, 'issue').nil?
118
118
  body << " close ##{@prima.twig.get_branch_property(current_branch_name, 'issue')}"
119
119
  end
120
- @prima.gh.create_pull_request @prima.repo_name, base_branch, head, title, body
120
+ pr = @prima.create_pull_request base_branch, head, title, body
121
+ @prima.assign_pull_request_to_me(pr.number)
121
122
  end
122
123
  end
123
124
 
@@ -59,8 +59,8 @@ class Release
59
59
  @prima.update_pr pr.number, {:body => pr_body}
60
60
 
61
61
  mail = Mail.new do
62
- from 'developers@prima.it'
63
- to 'developers@prima.it'
62
+ from 'deploy@prima.it'
63
+ to 'deploy@prima.it'
64
64
  subject "#{`git config user.name`} ha iniziato la creazione della release #{branch_name}"
65
65
  end
66
66
 
@@ -78,7 +78,7 @@ class Release
78
78
  mail.text_part = text_part
79
79
 
80
80
  opts = {address: 'smtp.mandrillapp.com', port: '587'}
81
- opts[:user_name] = 'developers@prima.it'
81
+ opts[:user_name] = 'deploy@prima.it'
82
82
  opts[:password] = @prima.config['mandrill']
83
83
 
84
84
  mail.delivery_method(:smtp, opts)
@@ -196,6 +196,10 @@ class Prima
196
196
  @gh.update_issue(repo_name, issue, :assignee => user_login)
197
197
  end
198
198
 
199
+ def assign_pull_request_to_me(pr_number)
200
+ @gh.update_pull_request(repo_name, pr_number, :assignee => user_login)
201
+ end
202
+
199
203
  def list_issues
200
204
  results = @gh.list_issues repo_name, state: :open, :per_page => 20, :page => 1
201
205
  unless @gh.last_response.rels[:last].nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.26
4
+ version: 0.2.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-01-11 00:00:00.000000000 Z
14
+ date: 2016-02-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: twig