fakefs-require 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem "fakefs", :require => "fakefs/safe"
6
+
7
+ group :development do
8
+ gem "awesome_print"
9
+ end
@@ -1,5 +1,5 @@
1
- Faked #require and #autoload
2
- ============================
1
+ Faked #require, #load and #autoload
2
+ ===================================
3
3
 
4
4
  Testing a library that loads ruby source files by configuration, I noticed that
5
5
  defunkt's great FakeFS was lacking support for faking #require, #autoload, etc.
data/Rakefile CHANGED
@@ -1,32 +1,10 @@
1
- require "rake/testtask"
1
+ require "bundler"
2
+ Bundler::GemHelper.install_tasks
2
3
 
3
- task :default => [:test]
4
+ task :default => :test
4
5
 
5
- Rake::TestTask.new :test do |t|
6
+ require "rake/testtask"
7
+ Rake::TestTask.new do |t|
6
8
  t.libs = ["lib"]
7
9
  t.test_files = FileList["test/*_test.rb"]
8
- t.ruby_opts << "-rubygems"
9
- t.ruby_opts << "-rtest/unit"
10
- t.ruby_opts << "-rtest/helper"
11
- end
12
-
13
- begin
14
- require 'jeweler'
15
-
16
- Jeweler::Tasks.new do |gemspec|
17
- gemspec.name = "fakefs-require"
18
- gemspec.summary = "Faked #require and #autoload for defunkt's FakeFS"
19
- gemspec.email = "lars.gierth@altefeuerwachekoeln.de"
20
- gemspec.homepage = "http://github.com/lgierth/fakefs-require"
21
- gemspec.authors = ["Lars Gierth"]
22
-
23
- gemspec.has_rdoc = true
24
- gemspec.extra_rdoc_files = ["README.markdown"]
25
- gemspec.rdoc_options << "--main" << "README.markdown"
26
-
27
- gemspec.add_dependency "fakefs"
28
- end
29
- Jeweler::GemcutterTasks.new
30
- rescue LoadError
31
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
32
10
  end
@@ -1,52 +1,25 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "fakefs/require/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{fakefs-require}
8
- s.version = "0.2.1"
6
+ s.name = "fakefs-require"
7
+ s.version = FakeFS::Require::VERSION
8
+ s.date = Date.today.to_s
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = ["Lars Gierth"]
11
+ s.email = ["lars.gierth@gmail.com"]
12
+ s.homepage = "http://rubygems.org/gems/fakefs-require"
13
+ s.summary = %q{Faked #require, #load and #autoload for defunkt's FakeFS}
14
+
15
+ s.add_dependency "fakefs"
9
16
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Lars Gierth"]
12
- s.date = %q{2010-04-20}
13
- s.email = %q{lars.gierth@altefeuerwachekoeln.de}
14
- s.extra_rdoc_files = [
15
- "README.markdown"
16
- ]
17
- s.files = [
18
- ".gitignore",
19
- "LICENSE",
20
- "README.markdown",
21
- "Rakefile",
22
- "VERSION",
23
- "fakefs-require.gemspec",
24
- "lib/fakefs-require.rb",
25
- "lib/fakefs/require.rb",
26
- "test/helper.rb",
27
- "test/require_test.rb"
28
- ]
29
- s.homepage = %q{http://github.com/lgierth/fakefs-require}
30
- s.rdoc_options = ["--charset=UTF-8", "--main", "README.markdown"]
31
- s.require_paths = ["lib"]
32
- s.rubygems_version = %q{1.3.6}
33
- s.summary = %q{Faked #require and #autoload for defunkt's FakeFS}
34
- s.test_files = [
35
- "test/require_test.rb",
36
- "test/helper.rb"
37
- ]
38
-
39
- if s.respond_to? :specification_version then
40
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
41
- s.specification_version = 3
17
+ s.add_development_dependency "test-unit"
18
+ s.add_development_dependency "mocha"
19
+ s.add_development_dependency "rack"
42
20
 
43
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
44
- s.add_runtime_dependency(%q<fakefs>, [">= 0"])
45
- else
46
- s.add_dependency(%q<fakefs>, [">= 0"])
47
- end
48
- else
49
- s.add_dependency(%q<fakefs>, [">= 0"])
50
- end
21
+ s.files = `git ls-files`.split("\n") - [".gitignore", ".rvmrc"]
22
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
23
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
24
+ s.require_paths = ["lib"]
51
25
  end
52
-
@@ -0,0 +1,5 @@
1
+ module FakeFS
2
+ module Require
3
+ VERSION = "0.2.2"
4
+ end
5
+ end
@@ -1,4 +1,13 @@
1
+ require "rubygems"
2
+ require "bundler"
3
+ Bundler.setup(:default, :development)
4
+
1
5
  require "fakefs/safe"
2
6
  require "fakefs/require"
7
+
8
+ require "test/unit"
3
9
  require "mocha"
10
+
4
11
  require "tmpdir"
12
+
13
+ require "awesome_print"
@@ -1,3 +1,5 @@
1
+ require File.dirname(__FILE__) + "/helper"
2
+
1
3
  class RequireTest < Test::Unit::TestCase
2
4
 
3
5
  def setup
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakefs-require
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 1
9
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Lars Gierth
@@ -14,72 +15,118 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-20 00:00:00 +02:00
18
+ date: 2010-11-23 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: fakefs
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 0
29
32
  version: "0"
30
33
  type: :runtime
31
34
  version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: test-unit
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :development
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: mocha
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ type: :development
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: rack
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ type: :development
76
+ version_requirements: *id004
32
77
  description:
33
- email: lars.gierth@altefeuerwachekoeln.de
78
+ email:
79
+ - lars.gierth@gmail.com
34
80
  executables: []
35
81
 
36
82
  extensions: []
37
83
 
38
- extra_rdoc_files:
39
- - README.markdown
84
+ extra_rdoc_files: []
85
+
40
86
  files:
41
- - .gitignore
87
+ - Gemfile
42
88
  - LICENSE
43
89
  - README.markdown
44
90
  - Rakefile
45
- - VERSION
46
91
  - fakefs-require.gemspec
47
92
  - lib/fakefs-require.rb
48
93
  - lib/fakefs/require.rb
94
+ - lib/fakefs/require/version.rb
49
95
  - test/helper.rb
50
96
  - test/require_test.rb
51
97
  has_rdoc: true
52
- homepage: http://github.com/lgierth/fakefs-require
98
+ homepage: http://rubygems.org/gems/fakefs-require
53
99
  licenses: []
54
100
 
55
101
  post_install_message:
56
- rdoc_options:
57
- - --charset=UTF-8
58
- - --main
59
- - README.markdown
102
+ rdoc_options: []
103
+
60
104
  require_paths:
61
105
  - lib
62
106
  required_ruby_version: !ruby/object:Gem::Requirement
107
+ none: false
63
108
  requirements:
64
109
  - - ">="
65
110
  - !ruby/object:Gem::Version
111
+ hash: 3
66
112
  segments:
67
113
  - 0
68
114
  version: "0"
69
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
+ none: false
70
117
  requirements:
71
118
  - - ">="
72
119
  - !ruby/object:Gem::Version
120
+ hash: 3
73
121
  segments:
74
122
  - 0
75
123
  version: "0"
76
124
  requirements: []
77
125
 
78
126
  rubyforge_project:
79
- rubygems_version: 1.3.6
127
+ rubygems_version: 1.3.7
80
128
  signing_key:
81
129
  specification_version: 3
82
- summary: "Faked #require and #autoload for defunkt's FakeFS"
83
- test_files:
84
- - test/require_test.rb
85
- - test/helper.rb
130
+ summary: "Faked #require, #load and #autoload for defunkt's FakeFS"
131
+ test_files: []
132
+
data/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- /.loadpath
2
- /.project
3
- /test.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.1