rails_dt 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/Rakefile +68 -0
- data/VERSION.yml +1 -2
- data/generators/rails_dt/rails_dt_generator.rb +2 -2
- data/rails_dt.gemspec +4 -2
- metadata +4 -2
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Alex Fortuna
|
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/Rakefile
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
require "rake/rdoctask"
|
2
|
+
|
3
|
+
GEM_NAME = "rails_dt"
|
4
|
+
|
5
|
+
begin
|
6
|
+
require "jeweler"
|
7
|
+
Jeweler::Tasks.new do |gem|
|
8
|
+
gem.name = GEM_NAME
|
9
|
+
gem.summary = "Rails Debug Toolkit"
|
10
|
+
gem.description = "Rails Debug Toolkit"
|
11
|
+
gem.email = "alex.r@askit.org"
|
12
|
+
gem.homepage = "http://github.com/dadooda/rails_dt"
|
13
|
+
gem.authors = ["Alex Fortuna"]
|
14
|
+
gem.files = FileList[
|
15
|
+
"[A-Z]*",
|
16
|
+
"*.gemspec",
|
17
|
+
"generators/**/*",
|
18
|
+
"init.rb",
|
19
|
+
"lib/generators/**/*",
|
20
|
+
"lib/**/*.rb",
|
21
|
+
]
|
22
|
+
end
|
23
|
+
rescue LoadError
|
24
|
+
STDERR.puts "This gem requires Jeweler to be built"
|
25
|
+
end
|
26
|
+
|
27
|
+
desc "Rebuild gemspec and package"
|
28
|
+
task :rebuild => [:update_generator2, :gemspec, :build]
|
29
|
+
|
30
|
+
desc "Push (publish) gem to RubyGems (aka Gemcutter)"
|
31
|
+
task :push => :rebuild do
|
32
|
+
# NOTE: Yet found no way to ask Jeweler forge a complete version string for us.
|
33
|
+
vh = YAML.load(File.read("VERSION.yml"))
|
34
|
+
version = [vh[:major], vh[:minor], vh[:patch], vh[:build]].compact.join(".")
|
35
|
+
pkgfile = File.join("pkg", "#{GEM_NAME}-#{version}.gem")
|
36
|
+
system("gem", "push", pkgfile)
|
37
|
+
end
|
38
|
+
|
39
|
+
desc "Generate RDoc documentation"
|
40
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
41
|
+
rdoc.rdoc_dir = "doc"
|
42
|
+
rdoc.title = "DT"
|
43
|
+
#rdoc.options << "--line-numbers"
|
44
|
+
#rdoc.options << "--inline-source"
|
45
|
+
rdoc.rdoc_files.include("lib/**/*.rb")
|
46
|
+
end
|
47
|
+
|
48
|
+
desc "Update Rails 2 generator files with Rails 3 generator files"
|
49
|
+
task :update_generator2 do
|
50
|
+
puts "Updating Rails 2 generator files..."
|
51
|
+
fns = FileUtils.cp_r Dir["lib/generators/rails_dt/{USAGE,templates}"], "generators/rails_dt"
|
52
|
+
puts ": ok (fns:#{fns.inspect})"
|
53
|
+
end
|
54
|
+
|
55
|
+
desc "Compile README preview"
|
56
|
+
task :readme do
|
57
|
+
require "kramdown"
|
58
|
+
|
59
|
+
doc = Kramdown::Document.new(File.read "README.md")
|
60
|
+
|
61
|
+
fn = "README.html"
|
62
|
+
puts "Writing '#{fn}'..."
|
63
|
+
File.open(fn, "w") do |f|
|
64
|
+
f.write(File.read "dev/head.html")
|
65
|
+
f.write(doc.to_html)
|
66
|
+
end
|
67
|
+
puts ": ok"
|
68
|
+
end
|
data/VERSION.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
class RailsDtGenerator < Rails::Generator::Base #:nodoc:
|
2
2
|
def manifest
|
3
3
|
record do |m|
|
4
|
-
m.file "
|
5
|
-
m.file "
|
4
|
+
m.file (fn = "dt.css"), "public/stylesheets/#{fn}"
|
5
|
+
m.file (fn = "dt.rb"), "config/initializers/#{fn}"
|
6
6
|
m.readme "INSTALL"
|
7
7
|
end
|
8
8
|
end
|
data/rails_dt.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rails_dt}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alex Fortuna"]
|
12
|
-
s.date = %q{2011-07-
|
12
|
+
s.date = %q{2011-07-13}
|
13
13
|
s.description = %q{Rails Debug Toolkit}
|
14
14
|
s.email = %q{alex.r@askit.org}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -17,8 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
+
"MIT-LICENSE",
|
20
21
|
"README.html",
|
21
22
|
"README.md",
|
23
|
+
"Rakefile",
|
22
24
|
"VERSION.yml",
|
23
25
|
"generators/rails_dt/USAGE",
|
24
26
|
"generators/rails_dt/WARNING",
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rails_dt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Alex Fortuna
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-13 00:00:00 +04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -24,8 +24,10 @@ extra_rdoc_files:
|
|
24
24
|
- README.html
|
25
25
|
- README.md
|
26
26
|
files:
|
27
|
+
- MIT-LICENSE
|
27
28
|
- README.html
|
28
29
|
- README.md
|
30
|
+
- Rakefile
|
29
31
|
- VERSION.yml
|
30
32
|
- generators/rails_dt/USAGE
|
31
33
|
- generators/rails_dt/WARNING
|