github-safegem 0.2.6 → 0.2.7
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/Rakefile +47 -0
- data/VERSION.yml +1 -1
- data/bin/safegem +7 -1
- metadata +8 -7
data/Rakefile
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rake/rdoctask'
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'jeweler'
|
7
|
+
Jeweler::Tasks.new do |s|
|
8
|
+
s.name = "safegem"
|
9
|
+
s.summary = %Q{GitHub's safe gem eval web service}
|
10
|
+
s.email = "tom@mojombo.com"
|
11
|
+
s.homepage = "http://github.com/github/safegem"
|
12
|
+
s.description = "GitHub's safe gem eval web service"
|
13
|
+
s.authors = ["PJ Hyett", "Tom Preston-Werner"]
|
14
|
+
s.add_dependency('json', '>= 1.1.3')
|
15
|
+
s.add_dependency('sinatra', '>= 0.9.1.1')
|
16
|
+
s.add_dependency('thin', '>= 1.0.0')
|
17
|
+
end
|
18
|
+
rescue LoadError
|
19
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
20
|
+
end
|
21
|
+
|
22
|
+
Rake::RDocTask.new do |rdoc|
|
23
|
+
rdoc.rdoc_dir = 'rdoc'
|
24
|
+
rdoc.title = 'safegem'
|
25
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
26
|
+
rdoc.rdoc_files.include('README*')
|
27
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
28
|
+
end
|
29
|
+
|
30
|
+
begin
|
31
|
+
require 'rcov/rcovtask'
|
32
|
+
Rcov::RcovTask.new do |t|
|
33
|
+
t.libs << 'test'
|
34
|
+
t.test_files = FileList['test/**/*_test.rb']
|
35
|
+
t.verbose = true
|
36
|
+
end
|
37
|
+
rescue LoadError
|
38
|
+
end
|
39
|
+
|
40
|
+
task :test do
|
41
|
+
# the test files must be run in isolation because they mess with security
|
42
|
+
Dir['test/**/*_test.rb'].each do |file|
|
43
|
+
sh "ruby #{file}"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
task :default => :test
|
data/VERSION.yml
CHANGED
data/bin/safegem
CHANGED
@@ -34,7 +34,13 @@ post '/' do
|
|
34
34
|
spec = nil
|
35
35
|
|
36
36
|
Timeout::timeout(300) do
|
37
|
-
t = time
|
37
|
+
t = time do
|
38
|
+
`git clone --depth 1 git://github.com/#{repo} #{tmpdir}`
|
39
|
+
Dir.chdir(tmpdir) do
|
40
|
+
`git submodule init`
|
41
|
+
`git submodule update`
|
42
|
+
end
|
43
|
+
end
|
38
44
|
puts "-- cloned #{repo} in #{t}s"
|
39
45
|
|
40
46
|
t1 = Time.now
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-safegem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PJ Hyett
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-04-
|
13
|
+
date: 2009-04-08 00:00:00 -07:00
|
14
14
|
default_executable: safegem
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -52,13 +52,13 @@ extensions: []
|
|
52
52
|
extra_rdoc_files:
|
53
53
|
- README
|
54
54
|
files:
|
55
|
+
- Rakefile
|
55
56
|
- VERSION.yml
|
56
57
|
- bin/safegem
|
57
|
-
- lib/safegem
|
58
|
+
- lib/safegem.rb
|
58
59
|
- lib/safegem/exception.rb
|
59
60
|
- lib/safegem/lazy_dir.rb
|
60
61
|
- lib/safegem/security.rb
|
61
|
-
- lib/safegem.rb
|
62
62
|
- test/git_mock
|
63
63
|
- test/lazy_dir_test.rb
|
64
64
|
- test/safegem_test.rb
|
@@ -68,7 +68,6 @@ has_rdoc: true
|
|
68
68
|
homepage: http://github.com/github/safegem
|
69
69
|
post_install_message:
|
70
70
|
rdoc_options:
|
71
|
-
- --inline-source
|
72
71
|
- --charset=UTF-8
|
73
72
|
require_paths:
|
74
73
|
- lib
|
@@ -91,5 +90,7 @@ rubygems_version: 1.2.0
|
|
91
90
|
signing_key:
|
92
91
|
specification_version: 2
|
93
92
|
summary: GitHub's safe gem eval web service
|
94
|
-
test_files:
|
95
|
-
|
93
|
+
test_files:
|
94
|
+
- test/lazy_dir_test.rb
|
95
|
+
- test/safegem_test.rb
|
96
|
+
- test/security_test.rb
|