utf8_validator 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,12 +1,4 @@
1
1
  require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
2
  require 'rake'
11
3
 
12
4
  require 'jeweler'
@@ -24,8 +16,8 @@ Validation algorithm.}
24
16
  # Runtime Dependencies - None at present
25
17
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
26
18
  #
27
- # Bundler/Jeweler takes care of this via the Gemfile.lock process
28
- # gem.add_development_dependency 'bundler', '>= 2.1.2'
19
+ # Development dependencies:
20
+ gem.add_development_dependency 'jeweler', '>= 1.8.0'
29
21
  end
30
22
  Jeweler::RubygemsDotOrgTasks.new
31
23
 
@@ -36,13 +28,6 @@ Rake::TestTask.new(:test) do |test|
36
28
  test.verbose = true
37
29
  end
38
30
 
39
- require 'rcov/rcovtask'
40
- Rcov::RcovTask.new do |test|
41
- test.libs << 'test'
42
- test.pattern = 'test/**/test_*.rb'
43
- test.verbose = true
44
- end
45
-
46
31
  task :default => :test
47
32
 
48
33
  # require 'rake/rdoctask'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.5
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011 Guy Allard
2
+ # Copyright (c) 2011-2013 Guy Allard
3
3
  #--
4
4
  require 'validation/validator'
5
5
  require 'validation/errors'
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011 Guy Allard
2
+ # Copyright (c) 2011-2013 Guy Allard
3
3
  #--
4
4
  module UTF8
5
5
  #
@@ -63,7 +63,7 @@ module UTF8
63
63
  # The value of #{DEBUG} must not be changed by any thread.
64
64
  #
65
65
  #--
66
- # Copyright (c) 2011 Guy Allard
66
+ # Copyright (c) 2011-2013 Guy Allard
67
67
  #--
68
68
  class Validator
69
69
  #
data/test/helper.rb CHANGED
@@ -1,17 +1,13 @@
1
1
  require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
2
  require 'test/unit'
11
3
 
12
- $LOAD_PATH.unshift(File.dirname(__FILE__))
13
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
- require 'utf8_validator'
4
+ if Kernel.respond_to?(:require_relative)
5
+ require_relative("../lib/utf8_validator")
6
+ else
7
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
8
+ require 'utf8_validator'
9
+ end
10
+
15
11
 
16
12
  class Test::Unit::TestCase
17
13
  end
@@ -1,6 +1,11 @@
1
1
  # encoding: utf-8
2
2
  #
3
- require 'helper'
3
+ if Kernel.respond_to?(:require_relative)
4
+ require_relative("./helper")
5
+ else
6
+ $:.unshift(File.dirname(__FILE__))
7
+ require 'helper'
8
+ end
4
9
 
5
10
  #
6
11
  # == Purpose
@@ -1,6 +1,11 @@
1
1
  # encoding: utf-8
2
2
  #
3
- require 'helper'
3
+ if Kernel.respond_to?(:require_relative)
4
+ require_relative("./helper")
5
+ else
6
+ $:.unshift(File.dirname(__FILE__))
7
+ require 'helper'
8
+ end
4
9
 
5
10
  #
6
11
  # == Purpose
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{utf8_validator}
8
- s.version = "1.0.4"
8
+ s.version = "1.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Guy Allard"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utf8_validator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guy Allard