rack_clicky 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack_clicky (0.0.1)
4
+ rack_clicky (1.0.3)
5
5
  rack
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- rack (1.3.3)
11
- thoughtbot-shoulda (2.11.1)
10
+ minitest (2.11.1)
11
+ rack (1.4.1)
12
12
 
13
13
  PLATFORMS
14
14
  ruby
15
15
 
16
16
  DEPENDENCIES
17
+ minitest
17
18
  rack_clicky!
18
- thoughtbot-shoulda
@@ -1,3 +1,3 @@
1
1
  module RackClicky
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
data/rack_clicky.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_development_dependency "thoughtbot-shoulda"
21
+ s.add_development_dependency "minitest"
22
22
 
23
23
  s.add_dependency "rack"
24
24
  end
data/test/helper.rb CHANGED
@@ -1,11 +1,8 @@
1
1
  require 'rubygems'
2
- require 'test/unit'
3
- require 'shoulda'
2
+ require 'minitest/autorun'
3
+ require 'minitest/pride'
4
4
  require 'rack/mock'
5
5
 
6
6
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
7
7
  $LOAD_PATH.unshift(File.dirname(__FILE__))
8
8
  require 'rack_clicky'
9
-
10
- class Test::Unit::TestCase
11
- end
@@ -1,23 +1,22 @@
1
1
  require 'helper'
2
2
 
3
- class TestRackClicky < Test::Unit::TestCase
4
- context "Embedding clicky" do
5
- should "place the tracking code at the end of an HTML request" do
3
+ describe RackClicky do
4
+ describe "Embedding clicky" do
5
+ it "place the tracking code at the end of an HTML request" do
6
6
  assert_match EXPECTED_CODE, request.body
7
7
  end
8
8
 
9
- should "place the tracking code at the end of an XHTML request" do
9
+ it "place the tracking code at the end of an XHTML request" do
10
10
  assert_match EXPECTED_CODE, request(:content_type => 'application/xhtml+xml').body
11
11
  end
12
12
 
13
- should "not place the tracking code in a non HTML request" do
14
- assert_no_match EXPECTED_CODE, request(:content_type => 'application/xml', :body => [XML]).body
13
+ it "not place the tracking code in a non HTML request" do
14
+ refute_match EXPECTED_CODE, request(:content_type => 'application/xml', :body => [XML]).body
15
15
  end
16
16
 
17
- should "insert the site id" do
17
+ it "insert the site id" do
18
18
  assert_match /clicky\.init\(000000\)/, request.body
19
19
  end
20
-
21
20
  end
22
21
 
23
22
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_clicky
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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: 2011-09-22 00:00:00.000000000Z
12
+ date: 2012-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: thoughtbot-shoulda
16
- requirement: &70139124813360 !ruby/object:Gem::Requirement
15
+ name: minitest
16
+ requirement: &70332207633160 !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: :development
23
23
  prerelease: false
24
- version_requirements: *70139124813360
24
+ version_requirements: *70332207633160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rack
27
- requirement: &70139124842620 !ruby/object:Gem::Requirement
27
+ requirement: &70332207632620 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70139124842620
35
+ version_requirements: *70332207632620
36
36
  description: Embeds the Clicky tracking code at the end of your HTML
37
37
  email:
38
38
  - mark@amerine.net
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  requirements: []
74
74
  rubyforge_project: rack_clicky
75
- rubygems_version: 1.8.6
75
+ rubygems_version: 1.8.10
76
76
  signing_key:
77
77
  specification_version: 3
78
78
  summary: Clicky Analytics for your Rack Apps