atlassian-stash 0.4.0 → 0.4.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: f542f9e4f0ec7a27fc9a7a24ba23946f1e498aec
4
- data.tar.gz: b842b2d4caaa4f6ccbe06174ab626d27521fbe4b
3
+ metadata.gz: 0be0d6772ce793494d20df00f95ce16587ff5a9e
4
+ data.tar.gz: 67ad7b07621a675f2992fdcf59fb52908b9eeba2
5
5
  SHA512:
6
- metadata.gz: 2dc56d9a2571ffd9fd5cb65cbccb741ac979f8fb29fa1dfbe408eb6591652e5d2334412a2ed1708b05edaa10a751c684ff82c1d4825090bb034c35e92cec7f7a
7
- data.tar.gz: dc1b2b8fc10e8d86c8a8137a303505487cce431be380a4d4f51d61e921a06b76742df541acb6260278cc6180b4ed541e0e137f63be6523dd530bd4bcf907d308
6
+ metadata.gz: aab230757aa8b89aa4276ef30efdc1e978f97ff385eaf9d085e12ad1286c959900124fa1dc6e4537975a93d973db1308890d649803ed17591bd143682cf0f7cf
7
+ data.tar.gz: 17ce45b32d675377acb3a01b8b628d0b06e142cdd26b7cb9a94614763245ef8cd3f2d827718d4fbf111c93601d437aba9d9cfca71863653bdd2b828213316042
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -62,6 +62,16 @@ module Atlassian
62
62
  @source = source
63
63
  @target = target
64
64
 
65
+ @source_ref = source
66
+ if options.src_remote and not options.src_remote.empty?
67
+ @source_ref = options.src_remote + "/" + @source_ref
68
+ end
69
+
70
+ @target_ref = target
71
+ if options.target_remote and not options.target_remote.empty?
72
+ @target_ref = options.target_remote + "/" + @target_ref
73
+ end
74
+
65
75
  srcRepoInfo = RepoInfo.create(@config, options.src_remote)
66
76
  targetRepoInfo = RepoInfo.create(@config, options.target_remote)
67
77
 
@@ -78,7 +88,7 @@ module Atlassian
78
88
 
79
89
  uri = URI.parse(@config["stash_url"])
80
90
  prPath = targetRepoInfo.repoPath + '/pull-requests'
81
-
91
+
82
92
  req = Net::HTTP::Post.new(uri.query.nil? ? "#{prPath}" : "#{prPath}?#{uri.query}", {'Content-Type' => 'application/json', 'Accept' => 'application/json'})
83
93
  req.basic_auth username, password
84
94
  req.body = resource.to_json
@@ -126,7 +136,7 @@ module Atlassian
126
136
  end
127
137
 
128
138
  def git_commit_messages
129
- @commit_messages ||= `git log --reverse --format=%s #{@target}..#{@source}`
139
+ @commit_messages ||= `git log --reverse --format=%s #{@target_ref}..#{@source_ref}`
130
140
  end
131
141
 
132
142
  def parse_proxy(conf)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlassian-stash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seb Ruiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-14 00:00:00.000000000 Z
11
+ date: 2014-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git