embedit_gem 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/VERSION +1 -1
- data/embedit_gem.gemspec +5 -4
- data/lib/embedit_gem.rb +1 -1
- data/spec/embedit_gem_spec.rb +3 -4
- metadata +2 -2
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/embedit_gem.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{embedit_gem}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["reddavis"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-05}
|
13
13
|
s.description = %q{Wrapper for http://embedit.me}
|
14
14
|
s.email = %q{reddavis@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -54,3 +54,4 @@ Gem::Specification.new do |s|
|
|
54
54
|
s.add_dependency(%q<httparty>, [">= 0"])
|
55
55
|
end
|
56
56
|
end
|
57
|
+
|
data/lib/embedit_gem.rb
CHANGED
data/spec/embedit_gem_spec.rb
CHANGED
@@ -27,21 +27,20 @@ describe "EmbeditGem" do
|
|
27
27
|
|
28
28
|
describe "Bad Params" do
|
29
29
|
before(:all) do
|
30
|
-
mock_request('valid' =>
|
30
|
+
mock_request('valid' => false)
|
31
31
|
@request = EmbeditGem.new('http://www.youtube.com/watch?v=qRuNxHqwazs')
|
32
32
|
end
|
33
33
|
|
34
|
-
it "should set valid to
|
34
|
+
it "should set valid to false" do
|
35
35
|
@request.valid?.should be_false
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
|
40
39
|
private
|
41
40
|
|
42
41
|
def mock_request(options={})
|
43
42
|
json = {'title' => 'title', 'format' => 'format', 'html' => 'html',
|
44
|
-
'valid' =>
|
43
|
+
'valid' => true, 'fbml' => 'fbml'}.merge!(options)
|
45
44
|
EmbeditGem.stub!(:get).and_return(json)
|
46
45
|
end
|
47
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embedit_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- reddavis
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-05 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|