uri-tag 0.0.2 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: eba57a59e170fd532f754455311164af281eea70
4
- data.tar.gz: 1f05d8cdabab981a5bd9dcd7939d54a43b2ac69e
2
+ SHA256:
3
+ metadata.gz: e56e7cd82573a3fe6d35521507649201653a881c569f5da9643300a1b276d711
4
+ data.tar.gz: 75c07c5897072c7e81fa5a87f86ea877b80858bb239a314062b7cd52f0bc103e
5
5
  SHA512:
6
- metadata.gz: 49fe88df2f397fc66a7f69644f9104329a9c074157a18842e2478d1aad111736a96399c3cb901f61f1be7ae0eb553d6b7d2997f03fd55e1c5056b5c56dbcf5a8
7
- data.tar.gz: e3e52eb59c3293f144ab07a3f7e50539ba72b4f6fa8b91e1b64fc03fccb3d9fc345374bb18bbe50fd2e49e0e306b5365769a00d5916403119452987601e11d7d
6
+ metadata.gz: 0df68917b7223a7f7bd1d296eb6843eeddf44311c71808deda3b632c8757d2e6db4aa80e66d8f7bea148854dfc4f080e2bc57a1bdfdcb363f9dcbc84087df91f
7
+ data.tar.gz: e4d669866194edd81d8e4f8d9abd0a8e874e0117d4d822fc3c662c4ef52269d407275832a4167751f0db809418c54a34e4e10d4afe260813e23eb00fc929ef45
data/CHANGELOG.markdown CHANGED
@@ -1,6 +1,16 @@
1
1
  URI::Tag CHANGE LOG
2
2
  ===================
3
3
 
4
+ 0.0.4
5
+ -----
6
+
7
+ * Follow URI's API change
8
+
9
+ 0.0.3
10
+ -----
11
+
12
+ * Follow URI's API change
13
+
4
14
  0.0.2
5
15
  -----
6
16
 
data/lib/uri/tag.rb CHANGED
@@ -4,13 +4,13 @@ module URI
4
4
  class Tag < Generic
5
5
  COMPONENT = [:scheme, :authority, :date, :specific, :fragment].freeze
6
6
 
7
- DNSCOMP_PATTERN = "(?:[#{PATTERN::ALNUM}](?:[#{PATTERN::ALNUM}|\\-]*[#{PATTERN::ALNUM}])?)".freeze
7
+ DNSCOMP_PATTERN = "(?:[#{URI::PATTERN::ALNUM}](?:[#{URI::PATTERN::ALNUM}|\\-]*[#{URI::PATTERN::ALNUM}])?)".freeze
8
8
  DNSNAME_PATTERN = "(?:#{DNSCOMP_PATTERN}(?:\\.#{DNSCOMP_PATTERN})*)".freeze
9
- AUTHORITY_PATTERN = "(?:[#{PATTERN::ALNUM}|\\-\\._]+@)?#{DNSNAME_PATTERN}".freeze
9
+ AUTHORITY_PATTERN = "(?:[#{URI::PATTERN::ALNUM}|\\-\\._]+@)?#{DNSNAME_PATTERN}".freeze
10
10
  DATE_PATTERN = '\d{4}(?:\-\d{2}(?:\-\d{2})?)?'.freeze
11
- UNRESERVED_PATTERN = "#{PATTERN::ALNUM}\\-\\._~".freeze
11
+ UNRESERVED_PATTERN = "#{URI::PATTERN::ALNUM}\\-\\._~".freeze
12
12
  SUB_DELIMS_PATTERN = '!$&\'\(\)*+,;='.freeze
13
- PCHAR_PATTERN = "#{UNRESERVED_PATTERN}#{PATTERN::ESCAPED}#{SUB_DELIMS_PATTERN}:@".freeze
13
+ PCHAR_PATTERN = "#{UNRESERVED_PATTERN}#{URI::PATTERN::ESCAPED}#{SUB_DELIMS_PATTERN}:@".freeze
14
14
  SPECIFIC_PATTERN = "[#{PCHAR_PATTERN}/?]*".freeze
15
15
  TAG_REGEXP = Regexp.new("
16
16
  \\A
@@ -132,5 +132,9 @@ module URI
132
132
  end
133
133
  end
134
134
 
135
- @@schemes['TAG'] = Tag
135
+ if respond_to? :register_scheme
136
+ register_scheme "TAG", Tag
137
+ else
138
+ @@schemes['TAG'] = Tag
139
+ end
136
140
  end
@@ -112,9 +112,8 @@ class TestTag < Test::Unit::TestCase
112
112
  end
113
113
 
114
114
  def test_fragment
115
- assert_raise InvalidComponentError do
116
- @uri.fragment = 'sp ce'
117
- end
115
+ @uri.fragment = 'sp ce'
116
+ assert_equal 'sp%20ce', @uri.fragment
118
117
  end
119
118
 
120
119
  def test_port
data/uri-tag.gemspec CHANGED
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "uri-tag"
3
- spec.version = '0.0.2'
3
+ spec.version = '0.0.4'
4
4
  spec.authors = ["KITAITI Makoto"]
5
5
  spec.email = ["KitaitiMakoto@gmail.com"]
6
6
  spec.summary = %q{This library extends standard bundled URI library to parse and build tag scheme URI defined in RFC 4151.}
7
7
  spec.homepage = "https://gitorious.org/uri-ext"
8
8
  spec.license = "Ruby"
9
9
 
10
- spec.test_files = ['test/uri/test_uri-tag.rb']
10
+ spec.test_files = ['test/uri/test_tag.rb']
11
11
  spec.require_paths = ["lib"]
12
12
  spec.extra_rdoc_files = %w[README.markdown CHANGELOG.markdown COPYING BSDL]
13
13
  spec.files = spec.require_paths.inject([]) {|files, dir|
@@ -17,7 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.extra_rdoc_files +
18
18
  %w[uri-tag.gemspec Rakefile]
19
19
 
20
- spec.add_development_dependency "bundler", "~> 1.6"
20
+ spec.add_development_dependency "bundler"
21
21
  spec.add_development_dependency "rake"
22
22
  spec.add_development_dependency "rubygems-tasks"
23
+ spec.add_development_dependency "test-unit"
23
24
  end
metadata CHANGED
@@ -1,29 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri-tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - KITAITI Makoto
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2014-06-07 00:00:00.000000000 Z
10
+ date: 2025-03-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '1.6'
18
+ version: '0'
20
19
  type: :development
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - "~>"
23
+ - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '1.6'
25
+ version: '0'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rake
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +51,20 @@ dependencies:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
- description:
54
+ - !ruby/object:Gem::Dependency
55
+ name: test-unit
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
56
68
  email:
57
69
  - KitaitiMakoto@gmail.com
58
70
  executables: []
@@ -69,13 +81,12 @@ files:
69
81
  - README.markdown
70
82
  - Rakefile
71
83
  - lib/uri/tag.rb
72
- - test/uri/test_uri-tag.rb
84
+ - test/uri/test_tag.rb
73
85
  - uri-tag.gemspec
74
86
  homepage: https://gitorious.org/uri-ext
75
87
  licenses:
76
88
  - Ruby
77
89
  metadata: {}
78
- post_install_message:
79
90
  rdoc_options: []
80
91
  require_paths:
81
92
  - lib
@@ -90,11 +101,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
101
  - !ruby/object:Gem::Version
91
102
  version: '0'
92
103
  requirements: []
93
- rubyforge_project:
94
- rubygems_version: 2.2.2
95
- signing_key:
104
+ rubygems_version: 3.6.6
96
105
  specification_version: 4
97
106
  summary: This library extends standard bundled URI library to parse and build tag
98
107
  scheme URI defined in RFC 4151.
99
108
  test_files:
100
- - test/uri/test_uri-tag.rb
109
+ - test/uri/test_tag.rb