url 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
+ include Rake::DSL
3
4
 
4
5
  begin
5
6
  require 'jeweler'
@@ -1,4 +1,5 @@
1
1
  ---
2
+ :build:
2
3
  :minor: 2
3
- :patch: 0
4
+ :patch: 1
4
5
  :major: 0
@@ -51,5 +51,18 @@ class URL
51
51
  ret
52
52
  end.join('&')
53
53
  end
54
+
55
+ class << self
56
+ def from_string str
57
+ params = URL::ParamsHash.new
58
+ str.split('&').each do |myp|
59
+ key,value = myp.split('=')
60
+ value = CGI.unescape(value) if value
61
+ params[key.to_sym] = value if key
62
+ end
63
+ params
64
+ end
65
+ end
66
+
54
67
  end
55
68
  end
@@ -0,0 +1,60 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{url}
8
+ s.version = "0.2.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Tal Atlas"]
12
+ s.date = %q{2011-05-29}
13
+ s.description = %q{A simple url object to allow for OO based manipulation and usage of a url}
14
+ s.email = %q{me@tal.by}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION.yml",
25
+ "lib/url.rb",
26
+ "lib/url/classer.rb",
27
+ "lib/url/handlers.rb",
28
+ "lib/url/handlers/as_json_handler.rb",
29
+ "lib/url/handlers/base_json_handler.rb",
30
+ "lib/url/handlers/net_handler.rb",
31
+ "lib/url/handlers/ty_handler.rb",
32
+ "lib/url/handlers/yajl_handler.rb",
33
+ "lib/url/helper_classes.rb",
34
+ "lib/url/response.rb",
35
+ "spec/classer_spec.rb",
36
+ "spec/handler_spec.rb",
37
+ "spec/json_spec.rb",
38
+ "spec/spec.opts",
39
+ "spec/spec_helper.rb",
40
+ "spec/url_spec.rb",
41
+ "url.gemspec"
42
+ ]
43
+ s.homepage = %q{http://github.com/talby/url}
44
+ s.require_paths = ["lib"]
45
+ s.rubygems_version = %q{1.5.0}
46
+ s.summary = %q{A URL object}
47
+
48
+ if s.respond_to? :specification_version then
49
+ s.specification_version = 3
50
+
51
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
+ s.add_development_dependency(%q<rspec>, ["~> 2.0"])
53
+ else
54
+ s.add_dependency(%q<rspec>, ["~> 2.0"])
55
+ end
56
+ else
57
+ s.add_dependency(%q<rspec>, ["~> 2.0"])
58
+ end
59
+ end
60
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tal Atlas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-31 00:00:00 -05:00
18
+ date: 2011-05-29 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -64,6 +64,7 @@ files:
64
64
  - spec/spec.opts
65
65
  - spec/spec_helper.rb
66
66
  - spec/url_spec.rb
67
+ - url.gemspec
67
68
  has_rdoc: true
68
69
  homepage: http://github.com/talby/url
69
70
  licenses: []
@@ -94,13 +95,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  requirements: []
95
96
 
96
97
  rubyforge_project:
97
- rubygems_version: 1.3.7
98
+ rubygems_version: 1.5.0
98
99
  signing_key:
99
100
  specification_version: 3
100
101
  summary: A URL object
101
- test_files:
102
- - spec/classer_spec.rb
103
- - spec/handler_spec.rb
104
- - spec/json_spec.rb
105
- - spec/spec_helper.rb
106
- - spec/url_spec.rb
102
+ test_files: []
103
+