libdolt 0.33.5 → 0.33.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  coverage
2
2
  test/reports
3
3
  /Gemfile.lock
4
+ pkg
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
  gem "ci_reporter"
6
6
  gem "rcov", :platforms => :ruby_18
7
7
  gem "simplecov", :platforms => :ruby_19
8
+ gem "simplecov-rcov", :platforms => :ruby_19
data/Rakefile CHANGED
@@ -1,6 +1,15 @@
1
1
  require "rake/testtask"
2
2
  require "ci/reporter/rake/minitest"
3
- require "bundler/gem_tasks"
3
+ begin
4
+ require "bundler/gem_tasks"
5
+ rescue LoadError => e
6
+ # The bundler package in RHEL 6's ruby193 SCL will break when attempting to
7
+ # load vendored thor. Tested on ruby193-rubygem-bundler-1.1.4-3.el6.noarch.
8
+ if e.message != 'cannot load such file -- thor'
9
+ raise
10
+ end
11
+ end
12
+
4
13
 
5
14
  Rake::TestTask.new("test") do |test|
6
15
  test.libs << "test"
@@ -109,6 +109,7 @@ module Dolt
109
109
  end
110
110
 
111
111
  def expand_refs(repository, names, type)
112
+ names = names.map { |n| ForceUtf8::Encode.encode(n) }
112
113
  names.select { |n| n =~ /#{type}/ }.map do |n|
113
114
  [n.sub(/^refs\/#{type}\//, ""), repository.rev_parse_oid(n)]
114
115
  end
@@ -17,5 +17,5 @@
17
17
  #++
18
18
 
19
19
  module Dolt
20
- VERSION = "0.33.5"
20
+ VERSION = "0.33.6"
21
21
  end
data/lib/libdolt.rb CHANGED
@@ -20,6 +20,7 @@ require "libdolt/disk_repo_resolver"
20
20
  require "libdolt/repository_lookup"
21
21
  require "libdolt/controller_actions"
22
22
  require "libdolt/view"
23
+ require "force_utf8/encode"
23
24
 
24
25
  module Dolt
25
26
  def self.template_dir
data/libdolt.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency "htmlentities", "~> 4.3"
20
20
  s.add_dependency "json", "~> 1.7"
21
21
  s.add_dependency "mime-types", "~> 1.19"
22
+ s.add_dependency "force_utf8"
22
23
 
23
24
  s.add_development_dependency "minitest", "~> 2.0"
24
25
  s.add_development_dependency "rake", "~> 0.9"
data/test/test_helper.rb CHANGED
@@ -17,6 +17,8 @@
17
17
  #++
18
18
  if RUBY_VERSION > "1.9"
19
19
  require "simplecov"
20
+ require "simplecov-rcov"
21
+ SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
20
22
  SimpleCov.start
21
23
  end
22
24
  require "bundler/setup"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libdolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.5
4
+ version: 0.33.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-11 00:00:00.000000000 Z
12
+ date: 2013-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rugged
@@ -107,6 +107,22 @@ dependencies:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
109
  version: '1.19'
110
+ - !ruby/object:Gem::Dependency
111
+ name: force_utf8
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
110
126
  - !ruby/object:Gem::Dependency
111
127
  name: minitest
112
128
  requirement: !ruby/object:Gem::Requirement