railscheck 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,34 @@
1
+ desc 'Release the website and new gem version'
2
+ task :deploy => [:check_version, :website, :release] do
3
+ puts "Remember to create SVN tag:"
4
+ puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
5
+ "svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
6
+ puts "Suggested comment:"
7
+ puts "Tagging release #{CHANGES}"
8
+ end
9
+
10
+ desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
11
+ task :local_deploy => [:website_generate, :install_gem]
12
+
13
+ task :check_version do
14
+ unless ENV['VERSION']
15
+ puts 'Must pass a VERSION=x.y.z release version'
16
+ exit
17
+ end
18
+ unless ENV['VERSION'] == VERS
19
+ puts "Please update your version.rb to match the release version, currently #{VERS}"
20
+ exit
21
+ end
22
+ end
23
+
24
+ desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
25
+ task :install_gem_no_doc => [:clean, :package] do
26
+ sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
27
+ end
28
+
29
+ namespace :manifest do
30
+ desc 'Recreate Manifest.txt to include ALL files'
31
+ task :refresh do
32
+ `rake check_manifest | patch -p0 > Manifest.txt`
33
+ end
34
+ end
@@ -0,0 +1,7 @@
1
+ task :ruby_env do
2
+ RUBY_APP = if RUBY_PLATFORM =~ /java/
3
+ "jruby"
4
+ else
5
+ "ruby"
6
+ end unless defined? RUBY_APP
7
+ end
@@ -0,0 +1,10 @@
1
+ desc 'Upload website files to rubyforge'
2
+ task :website_upload do
3
+ host = "#{rubyforge_username}@rubyforge.org"
4
+ remote_dir = "/var/www/gforge-projects/#{PATH}/"
5
+ local_dir = 'website'
6
+ sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
7
+ end
8
+
9
+ desc 'Generate and upload website files'
10
+ task :website => [:website_upload, :publish_docs]
@@ -0,0 +1,2 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../lib/railscheck'
@@ -0,0 +1,11 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class TestRailscheck < Test::Unit::TestCase
4
+
5
+ def setup
6
+ end
7
+
8
+ def test_truth
9
+ assert true
10
+ end
11
+ end
@@ -0,0 +1,18 @@
1
+ <html><head><title>Railscheck project home page</title></head>
2
+ <body>
3
+ <h1>Railscheck - The semi-static Q/A verification tool for your Ruby on Rails projects</h1>
4
+
5
+ <p>This project is a best effort semi-static verifier for your <a href="http://www.rubyonrails.com/">Ruby on Rails</a> projects. Delivered as a Ruby gem it provides a shell command task "railscheck" that you can run against your Rails projects to test for a number of typical bugs and inconsistencies.</p>
6
+
7
+ <h2>Project site and more information</h2>
8
+ <p>This project is hosted on <a href="http://rubyforge.org/projects/railscheck/">rubyforge.org</a>. Refer to the latest <a href="http://railscheck.rubyforge.org/svn/trunk/README.txt">README</a> for up-to-date information on the plugin including how to use and install it.</p>
9
+ <p/>
10
+ <h2>About the author(s):</h2>
11
+ <ol>
12
+ <li><a href="http://workingwithrails.com/person/4802-morten-m-christensen">Morten Christensen</a>, senior consultant, software developer from Danish software development/consultancy company <a href="http://www.41concepts.com">41concepts</a></li>
13
+ </ol>
14
+ <h2>License:</h2>
15
+ This software is FREE for both public and commercial use - with the possible exception of commercial
16
+ software development tool makers that require a license (see project <a href="http://railscheck.rubyforge.org/svn/trunk/License.txt">license file</a> for details).
17
+ </body>
18
+ </html>
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: railscheck
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Morten M. Christensen / 41concepts
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-04-15 00:00:00 +02:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Static verifier for rails 2.0+ projects
17
+ email:
18
+ - mmc@41concepts.com
19
+ executables:
20
+ - jrailscheck
21
+ - jrailscheck.bat
22
+ - railscheck
23
+ - railscheck.bat
24
+ extensions: []
25
+
26
+ extra_rdoc_files:
27
+ - History.txt
28
+ - License.txt
29
+ - Manifest.txt
30
+ - README.txt
31
+ - TODO.txt
32
+ files:
33
+ - History.txt
34
+ - License.txt
35
+ - Manifest.txt
36
+ - README.txt
37
+ - Rakefile
38
+ - TODO.txt
39
+ - bin/jrailscheck
40
+ - bin/jrailscheck.bat
41
+ - bin/railscheck
42
+ - bin/railscheck.bat
43
+ - config/hoe.rb
44
+ - config/requirements.rb
45
+ - lib/railscheck.rb
46
+ - lib/railscheck/testcase.rb
47
+ - lib/railscheck/version.rb
48
+ - lib/test/tc_config.rb
49
+ - lib/test/tc_database_models.rb
50
+ - lib/test/tc_html_and_css.rb
51
+ - lib/test/tc_project.rb
52
+ - lib/test/tc_views.rb
53
+ - log/debug.log
54
+ - script/console
55
+ - script/destroy
56
+ - script/generate
57
+ - script/txt2html
58
+ - setup.rb
59
+ - tasks/deployment.rake
60
+ - tasks/environment.rake
61
+ - tasks/website.rake
62
+ - test/test_helper.rb
63
+ - test/test_railscheck.rb
64
+ - website/index.html
65
+ has_rdoc: true
66
+ homepage: http://railscheck.rubyforge.org
67
+ post_install_message:
68
+ rdoc_options:
69
+ - --main
70
+ - README.txt
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0"
78
+ version:
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
84
+ version:
85
+ requirements: []
86
+
87
+ rubyforge_project: railscheck
88
+ rubygems_version: 1.1.0
89
+ signing_key:
90
+ specification_version: 2
91
+ summary: Static verifier for rails 2.0+ projects
92
+ test_files:
93
+ - test/test_helper.rb
94
+ - test/test_railscheck.rb