uri_pathname 0.1.0.0 → 0.1.1.0

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.
@@ -23,7 +23,7 @@ MY_URIS = [
23
23
 
24
24
  # some convenient defs
25
25
  def prepare_example
26
- File.makedirs(MY_DIR) unless (File.exist?(MY_DIR) and File.directory?(MY_DIR))
26
+ FileUtils.mkdir_p(MY_DIR) unless (File.exist?(MY_DIR) and File.directory?(MY_DIR))
27
27
  end
28
28
 
29
29
  # preparation (comment this if you've already got your test dir)
@@ -74,6 +74,7 @@ class UriPathname
74
74
  else
75
75
  ""
76
76
  end
77
+ extension='' unless extension
77
78
  extension.insert(0,'.') unless extension.empty? or extension.start_with? '.'
78
79
  pathname = host << @host_sep << path << query << scheme << extension
79
80
  basedirpath = @base_dir unless basedirpath
@@ -6,7 +6,7 @@ class UriPathname
6
6
 
7
7
  MAJOR = 0
8
8
  MINOR = 1
9
- PATCH = 0
9
+ PATCH = 1
10
10
  BUILD = 0
11
11
 
12
12
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "uri_pathname"
8
- s.version = "0.1.0.0"
8
+ s.version = "0.1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marcel Massana"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri_pathname
3
3
  version: !ruby/object:Gem::Version
4
- hash: 71
4
+ hash: 67
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
+ - 1
9
10
  - 0
10
- - 0
11
- version: 0.1.0.0
11
+ version: 0.1.1.0
12
12
  platform: ruby
13
13
  authors:
14
14
  - Marcel Massana