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 CHANGED
@@ -6,6 +6,10 @@ This is a wrapper that interacts with http://embedit.me
6
6
 
7
7
  gem sources -a http://gemcutter.org
8
8
  gem install embedit_gem
9
+
10
+ == CI Server
11
+
12
+ http://runcoderun.com/reddavis/Embedit-Gem
9
13
 
10
14
  == Example
11
15
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
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 `rake gemspec`
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.1"
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{2009-10-28}
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
@@ -28,7 +28,7 @@ class EmbeditGem
28
28
  end
29
29
 
30
30
  def valid?
31
- @data['valid'] == 'true' ? true : false
31
+ @data['valid']
32
32
  end
33
33
 
34
34
  def format
@@ -27,21 +27,20 @@ describe "EmbeditGem" do
27
27
 
28
28
  describe "Bad Params" do
29
29
  before(:all) do
30
- mock_request('valid' => 'false')
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 true" do
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' => 'true', 'fbml' => 'fbml'}.merge(options)
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.1
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: 2009-10-28 00:00:00 +00:00
12
+ date: 2010-01-05 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency