qrcx 0.1.2 → 0.2.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.
Files changed (4) hide show
  1. data/README.rst +23 -0
  2. data/lib/qrcx/version.rb +1 -1
  3. data/qrcx.gemspec +4 -1
  4. metadata +10 -9
data/README.rst ADDED
@@ -0,0 +1,23 @@
1
+ This is a small library to use the URL shortener http://qr.cx.
2
+
3
+ Licensed under the MIT License.
4
+
5
+ Example usage:
6
+
7
+ ::
8
+
9
+ >> require 'qr.cx'
10
+ >> QRCX.shorten("http://example.com")
11
+ => "http://qr.cx/1r8"
12
+ >> QRCX.makelong("http://qr.cx/1r8")
13
+ => "http://example.com"
14
+
15
+ May throw the following errors
16
+
17
+ ::
18
+
19
+ QRCX::Error
20
+ QRCX::Timeout < QRCX::Error
21
+ QRCX::InvalidOrUnsupportedURL < QRCX::Error
22
+ QRCX::RedirectURLUnsupported < QRCX::InvalidOrUnsupportedURL
23
+
data/lib/qrcx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qrcx
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
data/qrcx.gemspec CHANGED
@@ -7,13 +7,16 @@ Gem::Specification.new do |s|
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Hartwig Brandl"]
9
9
  s.email = ["mail@hartwigbrandl.at"]
10
- s.homepage = "http://rubygems.org/gems/qrcx"
10
+ s.homepage = "http://hartwigbrandl.com/dev/qrcx"
11
11
  s.summary = "A small ruby library to use the url shortener http://qr.cx"
12
12
  s.description = "A small ruby library to use the url shortener http://qr.cx"
13
13
 
14
14
  s.required_rubygems_version = ">= 1.3.6"
15
15
  # s.rubyforge_project = "qrcx"
16
16
 
17
+ s.license = "MIT"
18
+ s.test_files = Dir.glob('test/test_*.rb')
19
+
17
20
  s.add_development_dependency "bundler", ">= 1.0.0"
18
21
 
19
22
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qrcx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
8
  - 2
10
- version: 0.1.2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hartwig Brandl
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-07 00:00:00 +02:00
18
+ date: 2011-09-13 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -46,15 +46,16 @@ extra_rdoc_files: []
46
46
  files:
47
47
  - .gitignore
48
48
  - Gemfile
49
+ - README.rst
49
50
  - Rakefile
50
51
  - lib/qrcx.rb
51
52
  - lib/qrcx/version.rb
52
53
  - qrcx.gemspec
53
54
  - test/test_qrcx.rb
54
55
  has_rdoc: true
55
- homepage: http://rubygems.org/gems/qrcx
56
- licenses: []
57
-
56
+ homepage: http://hartwigbrandl.com/dev/qrcx
57
+ licenses:
58
+ - MIT
58
59
  post_install_message:
59
60
  rdoc_options: []
60
61
 
@@ -87,5 +88,5 @@ rubygems_version: 1.3.7
87
88
  signing_key:
88
89
  specification_version: 3
89
90
  summary: A small ruby library to use the url shortener http://qr.cx
90
- test_files: []
91
-
91
+ test_files:
92
+ - test/test_qrcx.rb