module-import 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{rakefile → Rakefile} +9 -7
- data/coverage/-var-lib-gems-1_8-gems-rcov-0_8_0_2-lib-rcov_rb.html +1 -1
- data/coverage/index.html +2 -2
- data/coverage/{lib-import_rb.html → lib-module-import_rb.html} +3 -3
- data/doc/created.rid +1 -1
- data/lib/{import.rb → module-import.rb} +0 -0
- data/module-import.rb +0 -0
- data/spec/import_spec.rb +1 -1
- metadata +6 -8
- data/pkg/module-import-0.1.0.gem +0 -0
- data/pkg/module-import-0.2.1.gem +0 -0
data/{rakefile → Rakefile}
RENAMED
@@ -40,7 +40,7 @@ namespace :test do
|
|
40
40
|
example_file = "#{__DIR__}/example.rb"
|
41
41
|
|
42
42
|
File.write(example_file, (
|
43
|
-
File.read("#{__DIR__}/lib/import.rb") <<
|
43
|
+
File.read("#{__DIR__}/lib/module-import.rb") <<
|
44
44
|
File.readlines('../README').grep(/^ / ).
|
45
45
|
reject {|l| l =~ /^\s*require/ or l.include?('Error')}.
|
46
46
|
join ))
|
@@ -77,12 +77,12 @@ namespace :rcov do
|
|
77
77
|
# rcov is wrong- I am actually at 100%
|
78
78
|
RCov::VerifyTask.new(:verify => :rcov) do |t|
|
79
79
|
t.threshold = 100 # Make sure you have rcov 0.7 or higher!
|
80
|
-
t.index_html = 'coverage/lib-import_rb.html'
|
80
|
+
t.index_html = 'coverage/lib-module-import_rb.html'
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
84
|
desc "release a new gem to rubyforge"
|
85
|
-
task :release => [:test,:
|
85
|
+
task :release => [:test,:rdoc,:website,:package] do
|
86
86
|
Dir.chdir('pkg') do
|
87
87
|
release = Dir['*.gem'].sort_by {|file| File.mtime(file)}.last
|
88
88
|
release =~ /^[^-]+-([.0-9]+).gem$/
|
@@ -91,7 +91,7 @@ task :release => [:test,:record,:rdoc,:website,:package] do
|
|
91
91
|
end
|
92
92
|
|
93
93
|
desc "update website"
|
94
|
-
file :website => ['README','
|
94
|
+
file :website => ['README','Rakefile'] do
|
95
95
|
Dir.chdir '/home/greg/sites/projects/' do
|
96
96
|
(puts (run 'rake projects:update'))
|
97
97
|
(puts (run 'rake deploy:rsync'))
|
@@ -125,7 +125,7 @@ task :record do
|
|
125
125
|
unless `git diff`.chomp.empty?
|
126
126
|
ARGV.clear
|
127
127
|
puts "enter commit message"
|
128
|
-
(puts (run "git commit -a -m #{Kernel.gets}"))
|
128
|
+
(puts (run "git commit -a -m '#{Kernel.gets}'"))
|
129
129
|
puts "committed! now pushing.. "
|
130
130
|
(puts (run 'git push origin master'))
|
131
131
|
end
|
@@ -137,13 +137,15 @@ require 'rake/gempackagetask'
|
|
137
137
|
spec = Gem::Specification.new do |s|
|
138
138
|
s.name = project
|
139
139
|
s.rubyforge_project = project
|
140
|
-
s.version = "0.
|
140
|
+
s.version = "0.3.0"
|
141
141
|
s.author = "Greg Weber"
|
142
142
|
s.email = "greg@gregweber.info"
|
143
143
|
s.homepage = "http://projects.gregweber.info/#{project}"
|
144
144
|
s.platform = Gem::Platform::RUBY
|
145
145
|
s.summary = "selectively import methods from modules"
|
146
|
-
s.files =
|
146
|
+
s.files = FileList.new('./**', '*/**') do |fl|
|
147
|
+
fl.exclude('pkg','pkg/*','tmp','tmp/*')
|
148
|
+
end
|
147
149
|
s.require_path = "lib"
|
148
150
|
s.has_rdoc = true
|
149
151
|
s.extra_rdoc_files = ["README"]
|
@@ -556,7 +556,7 @@ span.run100 {
|
|
556
556
|
</head>
|
557
557
|
<body>
|
558
558
|
<h3>C0 code coverage information</h3>
|
559
|
-
<p>Generated on
|
559
|
+
<p>Generated on Wed Mar 12 17:24:18 -0500 2008 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
|
560
560
|
</p>
|
561
561
|
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
|
562
562
|
</span><span class='marked1'>and this: this line is also marked as covered.
|
data/coverage/index.html
CHANGED
@@ -151,7 +151,7 @@ table.report tr.dark {
|
|
151
151
|
</head>
|
152
152
|
<body>
|
153
153
|
<h3>C0 code coverage information</h3>
|
154
|
-
<p>Generated on
|
154
|
+
<p>Generated on Wed Mar 12 17:24:18 -0500 2008 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
|
155
155
|
</p>
|
156
156
|
<hr /> <table class='report'>
|
157
157
|
<thead>
|
@@ -250,7 +250,7 @@ table.report tr.dark {
|
|
250
250
|
</tr>
|
251
251
|
<tr class='light'>
|
252
252
|
<td>
|
253
|
-
<a href='lib-import_rb.html'>lib/import.rb</a>
|
253
|
+
<a href='lib-module-import_rb.html'>lib/module-import.rb</a>
|
254
254
|
</td>
|
255
255
|
<td class='lines_total'>
|
256
256
|
<tt>27</tt>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
2
|
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
3
3
|
<head>
|
4
|
-
<title>lib/import.rb - C0 code coverage information</title>
|
4
|
+
<title>lib/module-import.rb - C0 code coverage information</title>
|
5
5
|
<style type='text/css'>body { background-color: rgb(240, 240, 245); }</style>
|
6
6
|
<style type='text/css'>span.cross-ref-title {
|
7
7
|
font-size: 140%;
|
@@ -556,7 +556,7 @@ span.run100 {
|
|
556
556
|
</head>
|
557
557
|
<body>
|
558
558
|
<h3>C0 code coverage information</h3>
|
559
|
-
<p>Generated on
|
559
|
+
<p>Generated on Wed Mar 12 17:24:18 -0500 2008 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
|
560
560
|
</p>
|
561
561
|
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
|
562
562
|
</span><span class='marked1'>and this: this line is also marked as covered.
|
@@ -577,7 +577,7 @@ span.run100 {
|
|
577
577
|
<tbody>
|
578
578
|
<tr class='light'>
|
579
579
|
<td>
|
580
|
-
<a href='lib-import_rb.html'>lib/import.rb</a>
|
580
|
+
<a href='lib-module-import_rb.html'>lib/module-import.rb</a>
|
581
581
|
</td>
|
582
582
|
<td class='lines_total'>
|
583
583
|
<tt>27</tt>
|
data/doc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Wed, 12 Mar 2008 17:24:20 -0500
|
File without changes
|
data/module-import.rb
ADDED
File without changes
|
data/spec/import_spec.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: module-import
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2008-03-
|
6
|
+
version: 0.3.0
|
7
|
+
date: 2008-03-12 00:00:00 -05:00
|
8
8
|
summary: selectively import methods from modules
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -31,13 +31,13 @@ authors:
|
|
31
31
|
files:
|
32
32
|
- ./doc
|
33
33
|
- ./lib
|
34
|
-
- ./pkg
|
35
34
|
- ./spec
|
35
|
+
- ./Rakefile
|
36
36
|
- ./README
|
37
|
-
- ./rakefile
|
38
37
|
- ./example.rb
|
39
38
|
- ./coverage
|
40
39
|
- ./delete.html
|
40
|
+
- ./module-import.rb
|
41
41
|
- doc/files
|
42
42
|
- doc/index.html
|
43
43
|
- doc/rdoc-style.css
|
@@ -46,13 +46,11 @@ files:
|
|
46
46
|
- doc/fr_file_index.html
|
47
47
|
- doc/created.rid
|
48
48
|
- doc/classes
|
49
|
-
- lib/import.rb
|
50
|
-
- pkg/module-import-0.1.0.gem
|
51
|
-
- pkg/module-import-0.2.1.gem
|
49
|
+
- lib/module-import.rb
|
52
50
|
- spec/import_spec.rb
|
51
|
+
- coverage/lib-module-import_rb.html
|
53
52
|
- coverage/index.html
|
54
53
|
- coverage/-var-lib-gems-1_8-gems-rcov-0_8_0_2-lib-rcov_rb.html
|
55
|
-
- coverage/lib-import_rb.html
|
56
54
|
- README
|
57
55
|
test_files: []
|
58
56
|
|
data/pkg/module-import-0.1.0.gem
DELETED
Binary file
|
data/pkg/module-import-0.2.1.gem
DELETED
Binary file
|