require_relative 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +7 -0
- data/Rakefile +21 -0
- data/lib/require_relative/version.rb +1 -1
- data/require_relative.gemspec +2 -2
- metadata +7 -6
data/README.md
CHANGED
@@ -35,3 +35,10 @@ Please fork the project, make your commits, push them to GitHub, and
|
|
35
35
|
make a pull request. Patches should have documentation and/or tests.
|
36
36
|
Don't be afraid to make a pull request without them, if you don't know
|
37
37
|
how to test something we can work on it in the comments. :)
|
38
|
+
|
39
|
+
To run the tests, simply "rake test."
|
40
|
+
|
41
|
+
To install your development version of the gem, simply "rake install".
|
42
|
+
|
43
|
+
To generate the documentation, "rake read," and it'll open in your
|
44
|
+
browser.
|
data/Rakefile
CHANGED
@@ -39,6 +39,27 @@ begin
|
|
39
39
|
# Alias for docs task
|
40
40
|
task :doc => :docs
|
41
41
|
|
42
|
+
desc 'Update gh-pages branch'
|
43
|
+
task :pages => ['docs/.git', :docs] do
|
44
|
+
rev = `git rev-parse --short HEAD`.strip
|
45
|
+
Dir.chdir 'docs' do
|
46
|
+
sh "git add *.html"
|
47
|
+
sh "git add require_relative/*.html"
|
48
|
+
sh "git commit -m 'rebuild pages from #{rev}'" do |ok,res|
|
49
|
+
if ok
|
50
|
+
verbose { puts "gh-pages updated" }
|
51
|
+
sh "git push -q o HEAD:gh-pages"
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
file 'docs/.git' => ['docs/', '.git/refs/heads/gh-pages'] do |f|
|
58
|
+
sh "cd docs && git init -q && git remote add o ../.git" if !File.exist?(f.name)
|
59
|
+
sh "cd docs && git fetch -q o && git reset -q --hard o/gh-pages && touch ."
|
60
|
+
end
|
61
|
+
CLOBBER.include 'docs/.git'
|
62
|
+
|
42
63
|
rescue LoadError
|
43
64
|
warn "#$! -- rocco tasks not loaded."
|
44
65
|
end
|
data/require_relative.gemspec
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "require_relative"
|
7
7
|
s.version = RequireRelative::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ["Steve Klabnik
|
10
|
-
s.email = ["steve@steveklabnik.com"]
|
9
|
+
s.authors = ["Steve Klabnik", "Brendan Taylor"]
|
10
|
+
s.email = ["steve@steveklabnik.com", "whateley@gmail.com"]
|
11
11
|
s.homepage = "https://steveklabnik.github.com/require_relative"
|
12
12
|
s.summary = %q{This backports require_relative to Ruby 1.8.}
|
13
13
|
s.description = %q{In Ruby 1.9.2, "." was removed from $:. This is a good idea, for security reasons. This gem backports this to Ruby 1.8.}
|
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: require_relative
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
- Steve Klabnik
|
14
|
-
- Brendan Taylor
|
13
|
+
- Steve Klabnik
|
14
|
+
- Brendan Taylor
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-05-
|
19
|
+
date: 2011-05-16 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -50,6 +50,7 @@ dependencies:
|
|
50
50
|
description: In Ruby 1.9.2, "." was removed from $:. This is a good idea, for security reasons. This gem backports this to Ruby 1.8.
|
51
51
|
email:
|
52
52
|
- steve@steveklabnik.com
|
53
|
+
- whateley@gmail.com
|
53
54
|
executables: []
|
54
55
|
|
55
56
|
extensions: []
|