shadows 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +2 -2
  2. data/VERSION +1 -1
  3. data/lib/shadows.rb +1 -0
  4. data/shadows.gemspec +66 -0
  5. metadata +5 -4
data/Rakefile CHANGED
@@ -5,8 +5,8 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "shadows"
8
- gem.summary = %Q{Recursively require files.}
9
- gem.description = %Q{Like #include and #extend but for ruby source files.}
8
+ gem.summary = %Q{Require shadowed files in Ruby. Or how extending code can be made better.}
9
+ gem.description = %Q{Require shadowed files in Ruby. Or how extending code can be made better!}
10
10
  gem.email = "simon.menke@gmail.com"
11
11
  gem.homepage = "http://github.com/fd/shadows"
12
12
  gem.authors = ["Simon Menke"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/shadows.rb CHANGED
@@ -5,6 +5,7 @@ module Shadows
5
5
 
6
6
  # find the path of the caller
7
7
  caller_list = caller
8
+ caller_list.shift while caller_list.first.include?('active_support/dependencies')
8
9
  caller_path = caller_list.first.split(':', 2).first
9
10
  relative_caller_path = nil
10
11
 
data/shadows.gemspec ADDED
@@ -0,0 +1,66 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{shadows}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Simon Menke"]
12
+ s.date = %q{2010-04-15}
13
+ s.description = %q{Require shadowed files in Ruby. Or how extending code can be made better!}
14
+ s.email = %q{simon.menke@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/shadows.rb",
27
+ "shadows.gemspec",
28
+ "test/fixtures/a/four.rb",
29
+ "test/fixtures/a/one.rb",
30
+ "test/fixtures/b/four.rb",
31
+ "test/fixtures/b/one.rb",
32
+ "test/fixtures/b/three.rb",
33
+ "test/fixtures/b/two.rb",
34
+ "test/shadows_test.rb",
35
+ "test/test_helper.rb"
36
+ ]
37
+ s.homepage = %q{http://github.com/fd/shadows}
38
+ s.rdoc_options = ["--charset=UTF-8"]
39
+ s.require_paths = ["lib"]
40
+ s.rubygems_version = %q{1.3.6}
41
+ s.summary = %q{Require shadowed files in Ruby. Or how extending code can be made better.}
42
+ s.test_files = [
43
+ "test/fixtures/a/four.rb",
44
+ "test/fixtures/a/one.rb",
45
+ "test/fixtures/b/four.rb",
46
+ "test/fixtures/b/one.rb",
47
+ "test/fixtures/b/three.rb",
48
+ "test/fixtures/b/two.rb",
49
+ "test/shadows_test.rb",
50
+ "test/test_helper.rb"
51
+ ]
52
+
53
+ if s.respond_to? :specification_version then
54
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
55
+ s.specification_version = 3
56
+
57
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
58
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
59
+ else
60
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
61
+ end
62
+ else
63
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
64
+ end
65
+ end
66
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Simon Menke
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: "0"
30
30
  type: :development
31
31
  version_requirements: *id001
32
- description: "Like #include and #extend but for ruby source files."
32
+ description: Require shadowed files in Ruby. Or how extending code can be made better!
33
33
  email: simon.menke@gmail.com
34
34
  executables: []
35
35
 
@@ -46,6 +46,7 @@ files:
46
46
  - Rakefile
47
47
  - VERSION
48
48
  - lib/shadows.rb
49
+ - shadows.gemspec
49
50
  - test/fixtures/a/four.rb
50
51
  - test/fixtures/a/one.rb
51
52
  - test/fixtures/b/four.rb
@@ -83,7 +84,7 @@ rubyforge_project:
83
84
  rubygems_version: 1.3.6
84
85
  signing_key:
85
86
  specification_version: 3
86
- summary: Recursively require files.
87
+ summary: Require shadowed files in Ruby. Or how extending code can be made better.
87
88
  test_files:
88
89
  - test/fixtures/a/four.rb
89
90
  - test/fixtures/a/one.rb