simple_bitlify 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
- gem "simple_cache"
6
+ gem "simple_cache_rs"
7
7
 
8
8
  # Add dependencies to develop your gem here.
9
9
  # Include everything needed to run rake, tests, features, etc.
data/Gemfile.lock CHANGED
@@ -29,7 +29,7 @@ GEM
29
29
  ruby-debug-base19 (>= 0.11.19)
30
30
  ruby_core_source (0.1.5)
31
31
  archive-tar-minitar (>= 0.5.2)
32
- simple_cache (0.8.1)
32
+ simple_cache_rs (0.9.1)
33
33
  sqlite3
34
34
  simplecov (0.6.1)
35
35
  multi_json (~> 1.0)
@@ -49,7 +49,7 @@ DEPENDENCIES
49
49
  jeweler
50
50
  psych
51
51
  ruby-debug19
52
- simple_cache
52
+ simple_cache_rs
53
53
  simplecov
54
54
  vcr
55
55
  webmock
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -0,0 +1,73 @@
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 = "simple_bitlify"
8
+ s.version = "0.5.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["radiospiel"]
12
+ s.date = "2012-04-09"
13
+ s.description = "A simple, yet caching bitlifier."
14
+ s.email = "eno@open-lab.org"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/simple_bitlify.rb",
28
+ "simple_bitlify.gemspec",
29
+ "test/bitlify_test.rb",
30
+ "test/test_helper.rb",
31
+ "test/vcr/bitly_limit_exceeded.yml",
32
+ "test/vcr/bitly_ok.yml"
33
+ ]
34
+ s.homepage = "http://github.com/radiospiel/simple_bitlify"
35
+ s.licenses = ["MIT"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = "1.8.10"
38
+ s.summary = "A simple bitlifier"
39
+
40
+ if s.respond_to? :specification_version then
41
+ s.specification_version = 3
42
+
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<simple_cache_rs>, [">= 0"])
45
+ s.add_development_dependency(%q<bundler>, [">= 0"])
46
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
47
+ s.add_development_dependency(%q<vcr>, [">= 0"])
48
+ s.add_development_dependency(%q<webmock>, [">= 0"])
49
+ s.add_development_dependency(%q<psych>, [">= 0"])
50
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
51
+ s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
52
+ else
53
+ s.add_dependency(%q<simple_cache_rs>, [">= 0"])
54
+ s.add_dependency(%q<bundler>, [">= 0"])
55
+ s.add_dependency(%q<jeweler>, [">= 0"])
56
+ s.add_dependency(%q<vcr>, [">= 0"])
57
+ s.add_dependency(%q<webmock>, [">= 0"])
58
+ s.add_dependency(%q<psych>, [">= 0"])
59
+ s.add_dependency(%q<simplecov>, [">= 0"])
60
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
61
+ end
62
+ else
63
+ s.add_dependency(%q<simple_cache_rs>, [">= 0"])
64
+ s.add_dependency(%q<bundler>, [">= 0"])
65
+ s.add_dependency(%q<jeweler>, [">= 0"])
66
+ s.add_dependency(%q<vcr>, [">= 0"])
67
+ s.add_dependency(%q<webmock>, [">= 0"])
68
+ s.add_dependency(%q<psych>, [">= 0"])
69
+ s.add_dependency(%q<simplecov>, [">= 0"])
70
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
71
+ end
72
+ end
73
+
data/test/bitlify_test.rb CHANGED
@@ -17,12 +17,16 @@ class BitlifyTest < Test::Unit::TestCase
17
17
  VCR.use_cassette('bitly_limit_exceeded') do
18
18
  assert_equal("http://radiospiel.org/foo", Bitly.shorten("http://radiospiel.org/foo"))
19
19
  end
20
+
21
+ assert_equal("http://radiospiel.org/foo", Bitly.shorten("http://radiospiel.org/foo"))
20
22
  end
21
23
 
22
24
  def test_ok
23
25
  VCR.use_cassette('bitly_ok') do
24
26
  assert_equal("http://bit.ly/HV7woD", Bitly.shorten("http://radiospiel.org/a=1&b=2"))
25
27
  end
28
+
29
+ assert_equal("http://bit.ly/HV7woD", Bitly.shorten("http://radiospiel.org/a=1&b=2"))
26
30
  end
27
31
 
28
32
  def test_url_base
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_bitlify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-05 00:00:00.000000000 Z
12
+ date: 2012-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: simple_cache
16
- requirement: &70311652195180 !ruby/object:Gem::Requirement
15
+ name: simple_cache_rs
16
+ requirement: &70250851761000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70311652195180
24
+ version_requirements: *70250851761000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70311652194260 !ruby/object:Gem::Requirement
27
+ requirement: &70250851760520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70311652194260
35
+ version_requirements: *70250851760520
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70311652193500 !ruby/object:Gem::Requirement
38
+ requirement: &70250851760040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70311652193500
46
+ version_requirements: *70250851760040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: vcr
49
- requirement: &70311652192560 !ruby/object:Gem::Requirement
49
+ requirement: &70250851759560 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70311652192560
57
+ version_requirements: *70250851759560
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: webmock
60
- requirement: &70311652191860 !ruby/object:Gem::Requirement
60
+ requirement: &70250851759080 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70311652191860
68
+ version_requirements: *70250851759080
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: psych
71
- requirement: &70311652191040 !ruby/object:Gem::Requirement
71
+ requirement: &70250851758600 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70311652191040
79
+ version_requirements: *70250851758600
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: simplecov
82
- requirement: &70311652190360 !ruby/object:Gem::Requirement
82
+ requirement: &70250851758120 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70311652190360
90
+ version_requirements: *70250851758120
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: ruby-debug19
93
- requirement: &70311652189520 !ruby/object:Gem::Requirement
93
+ requirement: &70250851757640 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70311652189520
101
+ version_requirements: *70250851757640
102
102
  description: A simple, yet caching bitlifier.
103
103
  email: eno@open-lab.org
104
104
  executables: []
@@ -115,6 +115,7 @@ files:
115
115
  - Rakefile
116
116
  - VERSION
117
117
  - lib/simple_bitlify.rb
118
+ - simple_bitlify.gemspec
118
119
  - test/bitlify_test.rb
119
120
  - test/test_helper.rb
120
121
  - test/vcr/bitly_limit_exceeded.yml
@@ -134,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
135
  version: '0'
135
136
  segments:
136
137
  - 0
137
- hash: -2260416520007165785
138
+ hash: 523765045738006951
138
139
  required_rubygems_version: !ruby/object:Gem::Requirement
139
140
  none: false
140
141
  requirements:
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  version: '0'
144
145
  requirements: []
145
146
  rubyforge_project:
146
- rubygems_version: 1.8.17
147
+ rubygems_version: 1.8.10
147
148
  signing_key:
148
149
  specification_version: 3
149
150
  summary: A simple bitlifier