mercurial-ruby 0.7.10 → 0.7.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.10
1
+ 0.7.11
@@ -6,7 +6,7 @@ require 'time'
6
6
  #
7
7
  module Mercurial
8
8
 
9
- VERSION = '0.7.10'
9
+ VERSION = '0.7.11'
10
10
 
11
11
  class Error < RuntimeError; end
12
12
 
@@ -7,7 +7,7 @@ module Mercurial
7
7
 
8
8
  def initialize(opts={})
9
9
  @initial_name = opts[:initial_name]
10
- @name = opts[:name]
10
+ @name = enforce_unicode(opts[:name])
11
11
  @mode_letter = opts[:mode]
12
12
  end
13
13
 
@@ -45,7 +45,13 @@ module Mercurial
45
45
  :edit
46
46
  end
47
47
  end
48
-
48
+
49
+ private
50
+
51
+ def enforce_unicode(str)
52
+ str.encode('utf-8', {:invalid => :replace, :undef => :replace, :replace => '?'})
53
+ end
54
+
49
55
  end
50
56
 
51
57
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mercurial-ruby}
8
- s.version = "0.7.10"
8
+ s.version = "0.7.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilya Sabanin"]
12
- s.date = %q{2013-06-16}
12
+ s.date = %q{2013-08-08}
13
13
  s.description = %q{Ruby API for Mercurial DVCS.}
14
14
  s.email = %q{ilya.sabanin@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercurial-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 10
10
- version: 0.7.10
9
+ - 11
10
+ version: 0.7.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilya Sabanin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-16 00:00:00 +08:00
18
+ date: 2013-08-08 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency