eyrubygems 0.0.2
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/LICENSE +20 -0
- data/README +14 -0
- data/Rakefile +52 -0
- data/TODO +4 -0
- data/lib/eyrubygems.rb +12 -0
- metadata +59 -0
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2008 YOUR NAME
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
eyrubygems
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
A workaround for gems still using the deprecated require_gem method.
|
|
5
|
+
|
|
6
|
+
Usage
|
|
7
|
+
=====
|
|
8
|
+
|
|
9
|
+
In your application, use:
|
|
10
|
+
|
|
11
|
+
require 'eyrubygems'
|
|
12
|
+
|
|
13
|
+
Make sure to use it AFTER rubygems is required, but before require_gem is called. Rails automatically loads rubygems, so
|
|
14
|
+
require this gem before the rest.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'rake/gempackagetask'
|
|
3
|
+
require 'rubygems/specification'
|
|
4
|
+
require 'date'
|
|
5
|
+
|
|
6
|
+
GEM = "eyrubygems"
|
|
7
|
+
GEM_VERSION = "0.0.2"
|
|
8
|
+
AUTHOR = "Joshua Sierles"
|
|
9
|
+
EMAIL = "jsierles@engineyard.com"
|
|
10
|
+
HOMEPAGE = "http://github.com/engineyard/eyrubygems"
|
|
11
|
+
SUMMARY = "A workaround for gems still using the deprecated require_gem method"
|
|
12
|
+
|
|
13
|
+
spec = Gem::Specification.new do |s|
|
|
14
|
+
s.name = GEM
|
|
15
|
+
s.version = GEM_VERSION
|
|
16
|
+
s.platform = Gem::Platform::RUBY
|
|
17
|
+
s.has_rdoc = true
|
|
18
|
+
s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
|
|
19
|
+
s.summary = SUMMARY
|
|
20
|
+
s.description = s.summary
|
|
21
|
+
s.author = AUTHOR
|
|
22
|
+
s.email = EMAIL
|
|
23
|
+
s.homepage = HOMEPAGE
|
|
24
|
+
|
|
25
|
+
# Uncomment this to add a dependency
|
|
26
|
+
# s.add_dependency "foo"
|
|
27
|
+
|
|
28
|
+
s.require_path = 'lib'
|
|
29
|
+
s.autorequire = GEM
|
|
30
|
+
s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
Rake::GemPackageTask.new(spec) do |pkg|
|
|
34
|
+
pkg.gem_spec = spec
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
desc "install the gem locally"
|
|
38
|
+
task :install => [:package] do
|
|
39
|
+
sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
desc "create a gemspec file"
|
|
43
|
+
task :make_spec do
|
|
44
|
+
File.open("#{GEM}.gemspec", "w") do |file|
|
|
45
|
+
file.puts spec.to_ruby
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
task :deploy => [:repackage] do
|
|
50
|
+
`eyscp pkg/#{GEM}-#{GEM_VERSION}.gem ey01-s00235:/data/gems/gems`
|
|
51
|
+
`eyssh ey01-s00235 gem generate_index /data/gems`
|
|
52
|
+
end
|
data/TODO
ADDED
data/lib/eyrubygems.rb
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module Kernel
|
|
2
|
+
# Same as the +gem+ command, but will also require a file if the gem
|
|
3
|
+
# provides an auto-required file name.
|
|
4
|
+
#
|
|
5
|
+
# DEPRECATED! Use +gem+ instead.
|
|
6
|
+
#
|
|
7
|
+
def require_gem(gem_name, *version_requirements)
|
|
8
|
+
file, lineno = Gem.send(:location_of_caller)
|
|
9
|
+
warn "#{file}:#{lineno}:Warning: require_gem is obsolete. Use the 'gem' method instead, and contact the gem author about updating this gem."
|
|
10
|
+
gem(gem_name, *version_requirements)
|
|
11
|
+
end
|
|
12
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: eyrubygems
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Joshua Sierles
|
|
8
|
+
autorequire: eyrubygems
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2008-07-02 00:00:00 +02:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description: A workaround for gems still using the deprecated require_gem method
|
|
17
|
+
email: jsierles@engineyard.com
|
|
18
|
+
executables: []
|
|
19
|
+
|
|
20
|
+
extensions: []
|
|
21
|
+
|
|
22
|
+
extra_rdoc_files:
|
|
23
|
+
- README
|
|
24
|
+
- LICENSE
|
|
25
|
+
- TODO
|
|
26
|
+
files:
|
|
27
|
+
- LICENSE
|
|
28
|
+
- README
|
|
29
|
+
- Rakefile
|
|
30
|
+
- TODO
|
|
31
|
+
- lib/eyrubygems.rb
|
|
32
|
+
has_rdoc: true
|
|
33
|
+
homepage: http://github.com/engineyard/eyrubygems
|
|
34
|
+
post_install_message:
|
|
35
|
+
rdoc_options: []
|
|
36
|
+
|
|
37
|
+
require_paths:
|
|
38
|
+
- lib
|
|
39
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "0"
|
|
44
|
+
version:
|
|
45
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: "0"
|
|
50
|
+
version:
|
|
51
|
+
requirements: []
|
|
52
|
+
|
|
53
|
+
rubyforge_project:
|
|
54
|
+
rubygems_version: 1.2.0
|
|
55
|
+
signing_key:
|
|
56
|
+
specification_version: 2
|
|
57
|
+
summary: A workaround for gems still using the deprecated require_gem method
|
|
58
|
+
test_files: []
|
|
59
|
+
|