fakettp 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -23,18 +23,8 @@ It also depends on the <tt>sqlite3-ruby</tt>, <tt>activerecord</tt> and
23
23
 
24
24
  === Install the gem
25
25
 
26
- Add GemCutter as a gem source (you only need to do this once):
27
-
28
- gem sources -a http://gemcutter.org
29
-
30
- Then install FakeTTP:
31
-
32
26
  sudo gem install fakettp
33
27
 
34
- Alternatively, you can specify the source when you install the gem:
35
-
36
- sudo gem install fakettp --source http://gemcutter.org
37
-
38
28
  === Create a FakeTTP directory
39
29
 
40
30
  You can install FakeTTP anywhere that your web server user can see it:
@@ -252,4 +242,3 @@ expectation, and just put the return value on the last line of the _expect_ bloc
252
242
  * Provide Ruby API to set expectations etc
253
243
  * Return the expected content type even if expectation fails
254
244
  * Highlight failed lines in console
255
- * Remove require of rubygems from db.rb
data/Rakefile CHANGED
@@ -15,9 +15,10 @@ begin
15
15
  gem.email = "kerryjbuckley@gmail.com"
16
16
  gem.homepage = "http://github.com/kerryb/fakettp"
17
17
  gem.authors = ["Kerry Buckley"]
18
- gem.add_dependency 'sinatra', '>=0.9.4'
19
- gem.add_dependency 'sqlite3-ruby'
20
- gem.add_dependency 'activerecord'
18
+ gem.add_dependency 'sinatra', '0.9.4'
19
+ gem.add_dependency 'sqlite3-ruby', '1.2.5'
20
+ gem.add_dependency 'activerecord', '2.3.4'
21
+ gem.add_dependency 'activesupport', '2.3.4'
21
22
  gem.add_dependency 'rspec'
22
23
  gem.add_development_dependency 'jeweler'
23
24
  gem.add_development_dependency 'rcov'
@@ -28,7 +29,7 @@ begin
28
29
  end
29
30
  Jeweler::GemcutterTasks.new
30
31
  rescue LoadError
31
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
32
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
32
33
  end
33
34
 
34
35
  require 'spec/rake/spectask'
@@ -41,7 +42,7 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
41
42
  spec.libs << 'lib' << 'spec'
42
43
  spec.pattern = 'spec/**/*_spec.rb'
43
44
  spec.rcov = true
44
- spec.rcov_opts = ['--exclude', 'spec']
45
+ spec.rcov_opts = ['--exclude', 'spec', '--exclude', ENV['GEM_HOME']]
45
46
  end
46
47
 
47
48
  task :spec => :check_dependencies
@@ -70,7 +71,7 @@ begin
70
71
  task :cucumber => 'cucumber:ok'
71
72
  rescue LoadError
72
73
  task :cucumber do
73
- abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
74
+ abort "Cucumber is not available. In order to run features, you must: gem install cucumber"
74
75
  end
75
76
  end
76
77
 
@@ -94,7 +95,7 @@ task :clean do
94
95
  end
95
96
 
96
97
  task :local_install do
97
- system "sudo gem in -l pkg/fakettp-#{File.read('VERSION').chomp}.gem"
98
+ system "gem in -l pkg/fakettp-#{File.read('VERSION').chomp}.gem"
98
99
  end
99
100
 
100
101
  desc 'Install FakeTTP into local install directory'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
@@ -1,3 +1,6 @@
1
+ require 'fileutils'
2
+ require 'active_support'
3
+
1
4
  module Fakettp
2
5
  module Commands
3
6
  class FakettpCommand
data/lib/fakettp/db.rb CHANGED
@@ -1,7 +1,4 @@
1
- # TODO: this is evil, but I can't get it to work without.
2
- # http://gist.github.com/54177
3
- require 'rubygems'
4
- require 'activerecord'
1
+ require 'active_record'
5
2
 
6
3
  RAILS_ROOT = FAKETTP_BASE
7
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakettp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerry Buckley
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-20 00:00:00 +00:00
12
+ date: 2010-03-29 00:00:00 +01:00
13
13
  default_executable: fakettp
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -18,7 +18,7 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - "="
22
22
  - !ruby/object:Gem::Version
23
23
  version: 0.9.4
24
24
  version:
@@ -28,9 +28,9 @@ dependencies:
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "="
32
32
  - !ruby/object:Gem::Version
33
- version: "0"
33
+ version: 1.2.5
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: activerecord
@@ -38,9 +38,19 @@ dependencies:
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
41
+ - - "="
42
42
  - !ruby/object:Gem::Version
43
- version: "0"
43
+ version: 2.3.4
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: activesupport
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "="
52
+ - !ruby/object:Gem::Version
53
+ version: 2.3.4
44
54
  version:
45
55
  - !ruby/object:Gem::Dependency
46
56
  name: rspec