git_pr 0.0.14.beta11 → 0.0.14.beta12

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: 8fe915321c30b65e358c3a0c9f5d1b0d9fcfc2c3
4
- data.tar.gz: 79f39d8dc9a669fd8f37c878036f8b9045cea6b3
3
+ metadata.gz: 7426b71322589245f7c578dcce72fd039ee6728e
4
+ data.tar.gz: d797a06e652ec4e5d1c5f389db7281fff0c9d21b
5
5
  SHA512:
6
- metadata.gz: 14e8a3018ab527e473b6499198b0276f16d426ce3917a38ff3999cf7a570e2ef6f6b7f4f4de66330f9b9ba451ce3ec5dc00a69a65d5ef6a817115ebe09b98450
7
- data.tar.gz: 5ad4a43859f3c83f8b30642f95d7fbf69917036c3377d5ec772d221d9524cc2f92ef263a0deffb646a34718f5c96e7f810c37e09cd5973ee7ce7fc9f5baea5ef
6
+ metadata.gz: b9085e03ef76738b5495d58473582da0ea2aa42efabcf49d48690104b12fdeb5b3f5f69758741aea25c4d9bec6ed6b103f8c1d3a4f766b7dac0de6fc1b3d2c7e
7
+ data.tar.gz: e7be1f72dfd63f2bd837b8cbe586a76e09e55241609f0db117579180e3080bb3b637daa712ce3aecbfd3b054f6fe1c111ff050faafbe698ecb3cffbb5fde930d
@@ -133,7 +133,7 @@ module GitPr
133
133
  choose do |menu|
134
134
  menu.prompt = "Select PR to merge: "
135
135
  pulls.each do |pull|
136
- menu.choice(pull_summary(pull)) { pull_to_merge = GitPr::PullRequest.new(pull) }
136
+ menu.choice(pull.summary) { pull_to_merge = pull }
137
137
  end
138
138
  menu.choice(:Quit, "Exit program.") { exit }
139
139
  end
@@ -141,7 +141,7 @@ module GitPr
141
141
  end
142
142
 
143
143
  def self.find_or_prompt_for_pull_request github_project, pull_request
144
- pulls = Octokit.pulls "#{github_project}"
144
+ pulls = Octokit.pulls("#{github_project}").map { |p| GitPr::PullRequest.new(p) }
145
145
  unless pulls.length > 0
146
146
  puts "No open pull requests found for '#{github_project}'.".yellow
147
147
  exit
@@ -156,7 +156,7 @@ module GitPr
156
156
  else
157
157
  pull = self.query_for_pull_to_merge pulls
158
158
  end
159
- GitPr::PullRequest.new(pull)
159
+ pull
160
160
  end
161
161
 
162
162
  end
@@ -1,3 +1,3 @@
1
1
  module GitPr
2
- VERSION = "0.0.14.beta11"
2
+ VERSION = "0.0.14.beta12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_pr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14.beta11
4
+ version: 0.0.14.beta12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Sharon