kontagent 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -0,0 +1,4 @@
1
+ Manifest
2
+ Rakefile
3
+ lib/kontagent.rb
4
+ spec/kontagent_spec.rb
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('kontagent', '0.0.3') do |p|
5
+ Echoe.new('kontagent', '0.0.5') do |p|
6
6
  p.description = "A gem that provides basic integration with Kontagent's REST API"
7
7
  p.url = "http://github.com/gamesthatgive/kontagent"
8
8
  p.author = "Kristofer Goss"
data/kontagent.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{kontagent}
5
- s.version = "0.0.3"
5
+ s.version = "0.0.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Kristofer Goss"]
9
- s.date = %q{2010-08-17}
9
+ s.date = %q{2010-09-08}
10
10
  s.description = %q{A gem that provides basic integration with Kontagent's REST API}
11
11
  s.email = %q{goss@gamesthatgive.net}
12
12
  s.extra_rdoc_files = ["lib/kontagent.rb"]
13
- s.files = ["Manifest", "Rakefile", "kontagent.gemspec", "lib/kontagent.rb", "spec/kontagent_spec.rb"]
13
+ s.files = ["Manifest", "Rakefile", "lib/kontagent.rb", "spec/kontagent_spec.rb", "kontagent.gemspec"]
14
14
  s.homepage = %q{http://github.com/gamesthatgive/kontagent}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Kontagent"]
16
16
  s.require_paths = ["lib"]
data/lib/kontagent.rb CHANGED
@@ -49,8 +49,11 @@ module Kontagent
49
49
 
50
50
  def self.create_tracking_tag
51
51
  tag = UUIDTools::UUID.random_create.to_s.gsub("-", "")
52
- yield tag if block_given?
53
- tag
52
+ if block_given?
53
+ yield tag
54
+ else
55
+ tag
56
+ end
54
57
  end
55
58
 
56
59
  def self.create_short_tag
@@ -233,13 +233,15 @@ describe Kontagent do
233
233
  it "should yield when creating a tracking tag" do
234
234
  yielded = false
235
235
 
236
- Kontagent.create_tracking_tag do |tag|
236
+ result = Kontagent.create_tracking_tag do |tag|
237
237
  tag.should_not be_nil
238
238
  tag.should_not be_empty
239
239
  yielded = true
240
+ "output"
240
241
  end
241
242
 
242
243
  yielded.should be_true
244
+ result.should == "output"
243
245
  end
244
246
  end
245
247
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontagent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kristofer Goss
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-17 00:00:00 -04:00
18
+ date: 2010-09-08 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -61,9 +61,9 @@ extra_rdoc_files:
61
61
  files:
62
62
  - Manifest
63
63
  - Rakefile
64
- - kontagent.gemspec
65
64
  - lib/kontagent.rb
66
65
  - spec/kontagent_spec.rb
66
+ - kontagent.gemspec
67
67
  has_rdoc: true
68
68
  homepage: http://github.com/gamesthatgive/kontagent
69
69
  licenses: []