plunger 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module Plunger
29
29
  [changeset_class.final_revision, :final ]
30
30
  ].map do |default, type|
31
31
  revision = options[type] || Command.ui.ask("Specify #{type} revision or reference (#{default}):")
32
- revision.empty? ? default : revision
32
+ shorter_revision(revision.empty? ? default : revision)
33
33
  end
34
34
 
35
35
  changeset = changeset_class.new(*revisions)
@@ -100,6 +100,10 @@ module Plunger
100
100
  def reviewers_to_list(reviewers)
101
101
  reviewers.uniq.join(',')
102
102
  end
103
+
104
+ def shorter_revision(revision)
105
+ revision =~ /^[0-9a-f]{40}$/ ? revision[0..20] : revision
106
+ end
103
107
  end
104
108
  end
105
109
  end
@@ -1,3 +1,3 @@
1
1
  module Plunger
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,34 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: plunger
3
- version: !ruby/object:Gem::Version
4
- hash: 17
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.8
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 7
10
- version: 0.0.7
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Andriy Yanko
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-19 00:00:00 +03:00
19
- default_executable:
12
+ date: 2011-10-25 00:00:00.000000000Z
20
13
  dependencies: []
21
-
22
14
  description: Ruby Wrapper for Rietveld Code Review, hosted on Google App Engine
23
- email:
15
+ email:
24
16
  - andriy.yanko@gmail.com
25
- executables:
17
+ executables:
26
18
  - plunger
27
19
  extensions: []
28
-
29
20
  extra_rdoc_files: []
30
-
31
- files:
21
+ files:
32
22
  - .gitignore
33
23
  - .rvmrc
34
24
  - Gemfile
@@ -52,39 +42,28 @@ files:
52
42
  - plunger.jpg
53
43
  - python/upload.py
54
44
  - script/update-python-upload.sh
55
- has_rdoc: true
56
45
  homepage: https://github.com/railsware/plunger
57
46
  licenses: []
58
-
59
47
  post_install_message:
60
48
  rdoc_options: []
61
-
62
- require_paths:
49
+ require_paths:
63
50
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
51
+ required_ruby_version: !ruby/object:Gem::Requirement
65
52
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
- version: "0"
73
- required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
58
  none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- version: "0"
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
82
63
  requirements: []
83
-
84
64
  rubyforge_project: plunger
85
- rubygems_version: 1.4.2
65
+ rubygems_version: 1.8.11
86
66
  signing_key:
87
67
  specification_version: 3
88
68
  summary: Code Review Tool
89
69
  test_files: []
90
-