urlybird 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +60 -0
  2. data/lib/urlybird/version.rb +1 -1
  3. metadata +10 -4
data/README.rdoc ADDED
@@ -0,0 +1,60 @@
1
+ = UrlyBird
2
+
3
+ UrlyBird fetches all your URIs in one fell swoop.
4
+
5
+ Send UrlyBird off into the intricate canopies of your URI-inhabited content,
6
+ and watch him bring you back a beakful of Addressable::URI objects
7
+ to do with what you will.
8
+
9
+ == Installation
10
+
11
+ $ gem install urlybird
12
+
13
+ == Quick Example
14
+
15
+ Add new or additional query string parameters:
16
+
17
+ content = <<-EOL
18
+ <a href="http://urlybird.com/">Worms</a>
19
+ Worms: http://urlybird.com/search?q=worms
20
+ EOL
21
+
22
+ puts UrlyBird.seek(content) do |url|
23
+ url.query_values = (url.query_values || {}).merge(:q1 => 'one')
24
+ end
25
+
26
+ The above example will print:
27
+
28
+ <a href="http://urlybird.com/?q1=one">Worms</a>
29
+ Worms: http://urlybird.com/search?q=worms&q1=one"
30
+
31
+ == Details
32
+
33
+ `UrlyBird.seek` parses the string you provide extracting all URLs and yielding
34
+ each one to the block you specify as an {Addressable::URI}[link:https://github.com/sporkmonger/addressable]
35
+ instance. You can modify the yielded URI instance in place to change the URL
36
+ to your needs.
37
+
38
+ == Licence
39
+
40
+ (The MIT License)
41
+
42
+ Copyright (c) 2012 Global Personals, Ltd.
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining a copy
45
+ of this software and associated documentation files (the "Software"), to deal
46
+ in the Software without restriction, including without limitation the rights
47
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
48
+ copies of the Software, and to permit persons to whom the Software is
49
+ furnished to do so, subject to the following conditions:
50
+
51
+ The above copyright notice and this permission notice shall be included in
52
+ all copies or substantial portions of the Software.
53
+
54
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
60
+ THE SOFTWARE.
@@ -1,3 +1,3 @@
1
1
  module UrlyBird
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urlybird
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -68,16 +68,22 @@ email:
68
68
  - contact@jimeh.me
69
69
  executables: []
70
70
  extensions: []
71
- extra_rdoc_files: []
71
+ extra_rdoc_files:
72
+ - README.rdoc
72
73
  files:
73
74
  - lib/urlybird/version.rb
74
75
  - lib/urlybird.rb
76
+ - README.rdoc
75
77
  - spec/spec_helper.rb
76
78
  - spec/urlybird_spec.rb
77
- homepage: http://rubygems.org/gems/urlybird
79
+ homepage: http://github.com/globaldev/urlybird
78
80
  licenses: []
79
81
  post_install_message:
80
- rdoc_options: []
82
+ rdoc_options:
83
+ - --main
84
+ - README.rdoc
85
+ - --charset
86
+ - utf-8
81
87
  require_paths:
82
88
  - lib
83
89
  required_ruby_version: !ruby/object:Gem::Requirement