railscheck 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -5,9 +5,7 @@ README.txt
5
5
  Rakefile
6
6
  TODO.txt
7
7
  bin/jrailscheck
8
- bin/jrailscheck.bat
9
8
  bin/railscheck
10
- bin/railscheck.bat
11
9
  config/hoe.rb
12
10
  config/requirements.rb
13
11
  lib/railscheck.rb
data/README.txt CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  == DESCRIPTION
4
4
 
5
- This project is a best effort semi-static verifier for your Ruby on Rails projects. Delivered as a Ruby gem it
6
- provides a shell command task "railscheck" that you can run against your Rails projects to test for a number of
7
- typical bugs and inconsistencies.
5
+ This projects is (or will be) a best effort semi-static verifier for your Ruby on Rails projects. Delivered as
6
+ a Ruby gem it provides a shell command task "railscheck" that you can run against your Rails projects to test
7
+ for a number of typical bugs and inconsistencies.
8
8
 
9
9
  It is a law of software development that the earlier you identify a problem the cheaper it is to fix. This project
10
10
  aims to help you quickly identify many bugs and inconsistencies as early as possible (thus avoiding unnecessary
@@ -19,94 +19,108 @@ run the application.
19
19
  Furthermore because of the opinionated nature of Rails, there are many conventions that can be broken and that we can
20
20
  check for. Finally rails projects depends on much more than just ruby code - i.e. migrations, database schemas, erb, html,
21
21
  css, yaml etc... All of which needs to work for an application to fully function and which is therefore in the scope of this
22
- this plugin.
22
+ this gem.
23
23
 
24
24
  However, this project can not - and does not attempt to - find all logical/programming errors. As such the gem
25
25
  supplements and does not replace existing testing practices such as automated rails tests.
26
26
 
27
- == Installation
27
+ == STATUS
28
+
29
+ This project is a working beta. It works and is useful but has a very limited feature set. Much more to come. Use the rubyforge tracker function on the railscheck website to suggest features that you would like to be added (or bugs to fix)
30
+
31
+ == INSTALLATION
28
32
 
29
33
  This project is hosted on rubyforge. Install latest version using:
30
34
 
31
35
  "sudo gem install railscheck"
32
36
 
33
- == Running
37
+ == RUNNING
38
+
39
+ First make sure this gem is installed, your project is configured and that all your migrations are run for the project(s) you want to check.
34
40
 
35
- The installation will place railscheck executables on path. Invoke the following command for more information.
41
+ The gem contain "railscheck" executables for unix/linux/mac and windows. An alternative "jrailscheck" command is available for jruby users. The gem installation will place these executables on your PATH. Invoke the following command for more information.
36
42
 
37
43
  "railscheck -h"
38
44
 
39
- The gem contain executables for unix/linux/mac and windows. An alternative "jrailscheck" command is available for jruby
40
- users.
45
+ Usage examples:
46
+ "railscheck -h" - to get detailed information about command options etc.
47
+ "railscheck" - to check rails project in current directory.
48
+ "railscheck path-to-your-rails-project" - to check the rails project at the specified path.
49
+ "railscheck -i database path-to-your-rails-project" - to run database checks for the rails project at the specified path.
50
+ "railscheck -x html" - to run every test but html related ones against rails project in current directory.
41
51
 
42
- == Features
52
+ == FEATURE SUMMARY
43
53
 
44
- Project:
54
+ Project (in test tc_project.rb):
45
55
  * Check validity of Ruby On Rails project structure and existence of key files necessary to
46
56
  develop, test and deploy rails projects successfully.
47
57
 
48
- Configuration files:
58
+ Configuration files (in test tc_config.rb):
49
59
  * Syntax check of all YAML configuration files in project
50
60
 
51
- Views:
61
+ Views (in test tc_views.rb):
52
62
  * Syntax check of all ERB configuration files in project
53
63
 
54
- (X)HTML/CSS:
64
+ (X)HTML/CSS (in test tc_htl_and_css.rb):
55
65
  * Validation check of all static XHTML/HTML files in project (currently using W3C web services).
56
66
  * Validation check of all static CSS files in project (currently using W3C web services).
57
67
 
58
- Database:
68
+ Database (in test tc_database_models.rb):
59
69
  * Validates that database is configured correct in project / ability to connect to database.
60
70
  * Validates that database migration version corresponds to latest code migration version number in project.
61
71
  * Validates that tables with correct names exist for all ActiveRecord model classes in project.
62
72
 
63
- == Documentation
73
+ == PROJECT SITE AND DOCUMENTATION
64
74
 
75
+ See "http://rubyforge.org/projects/railscheck/" for sourceforge project site.
76
+ See "http://railscheck.rubyforge.org/" for project intro page.
65
77
  See "http://railscheck.rubyforge.org/rdoc/" for project RDOC.
66
78
 
67
- == Warnings and limitations
79
+ + visit "http://techblog.41concepts.com/" for blog postings about railscheck as well as other software R&D subjects.
68
80
 
69
- This plugin assumes that normally safe code in rails projects such as enviroment.rb, intializers, yaml,
81
+ == WARNINGS AND LIMITATIONS
82
+
83
+ This project assumes that normally safe code in rails projects such as enviroment.rb, intializers, yaml,
70
84
  views, models etc. do NOT have dangerous (insane) side-effects that happen just by Ruby loading the
71
85
  source file or Ruby retrieving state of objects. If you ever encounter such a bizarre rails project, which
72
86
  is extremely unlikely, do NOT run railscheck on the project (and be very, very careful in general about
73
87
  what you are doing with the project).
74
88
 
75
- This plugin does generally not check dynamic behavior of the application and can as such not replace good testing
76
- practices, unit-testing etc. Nor does this plugin (currently) test documentation and plugins. The gem is
77
- targeted for Rails v1.0+ running on Ruby 1.8.6+ compliant implementations (no work will be done to ensure
78
- compatibility with older rails/ruby versions).
89
+ This project does generally not check dynamic behavior of the application and can as such not replace good testing
90
+ practices, unit-testing etc. Nor does this project (currently) test documentation and vendor plugins. The gem is
91
+ targeted for Rails v1.0+ running on Ruby 1.8.6+ / RubyGems 1.1 compliant implementations (no work will be done to ensure
92
+ compatibility with older Rails/ruby/gem versions). Some tests may require later versions of rails such as Rails v2.0+
79
93
 
80
- == Contributing
94
+ == KNOWN BUGS
81
95
 
82
- Any contributions to checks that can be added are welcomed. Please contact undersigned for details.
96
+ - The jrailscheck.bat file generated by rubygems on windows invoke ruby instead of jruby. Users have to manually change the bat file installed in the ruby bin directory until I find out how to make rubygem behave correctly here.
83
97
 
84
- Any added checks that you contribute will be given due credit. However make sure that you assign undersigned
85
- shared copyright so that I am allowed to release and license your work together with this plugin.
98
+ == CONTRIBUTING
86
99
 
87
- == Support
100
+ Any contributions to tests etc. that can be added are welcomed. Please contact undersigned for details.
88
101
 
89
- There is no formal support for this plugin. Please use railscheck.rubyforge.org to report problems/suggestions and I will look at them in time.
102
+ Any added code that you contribute will be given due credit. However make sure that you assign undersigned
103
+ shared copyright so that I am allowed to release and license your work together with this project.
90
104
 
91
- == Examples
105
+ == SUPPORT
92
106
 
93
- Make sure this plugin is installed and that all your migrations are run. T
107
+ There is no formal support for this project. Please use railscheck.rubyforge.org to report problems/suggestions and I will look at them in time.
94
108
 
95
- "railscheck" - to check rails project in current directory.
96
- "railscheck path-to-your-rails-project" - to check the rails project at the specified path.
97
-
98
- == Copyrights, Attributions and Author information
109
+ == COPYRIGHT, ATTRIBUTIONS AND AUTHOR INFORMATION
99
110
 
100
111
  Copyright (c) 2008 Morten Christensen, 41concepts (www.41concepts.com), Denmark
101
112
 
102
- Authors:
113
+ AUTHORS:
103
114
  * Morten Christensen, am a software developer from the Danish software company 41concepts (www.41concepts.com). We do
104
115
  Ruby/Rails/Java/.NET software development consultancy. Contact me at mmc[AT/NOSPAM]41concepts[dot]com for more
105
- information.
116
+ information. See also my blog postings at "http://techblog.41concepts.com/" about Railscheck as well as other software R&D subjects.
117
+
118
+ * ----> Submit your code additions and get your name added here!! <----
106
119
 
107
- Inspirations and attributions:
120
+ INSPIRATION AND ATTRIBUTIONS:
108
121
  * Fail Early Task written by Mike Naberezny for Advanced Rail Recipes.
109
122
  * DZone Snippet Rails task to find code typos in rhtml templates by "dseverin"
110
123
 
124
+ LICENSE INFORMATION:
111
125
  This software is FREE for both public and commercial use - with the possible exception of commercial
112
- software development tool makers that require a license (see license file for details).
126
+ software development tool makers that require a license (see License.txt file for details).
@@ -2,7 +2,7 @@ module Railscheck #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -7,8 +7,8 @@ task :deploy => [:check_version, :website, :release] do
7
7
  puts "Tagging release #{CHANGES}"
8
8
  end
9
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]
10
+ desc 'Runs tasks install_gem as a local deployment of the gem'
11
+ task :local_deploy => [:install_gem]
12
12
 
13
13
  task :check_version do
14
14
  unless ENV['VERSION']
data/website/index.html CHANGED
@@ -2,17 +2,24 @@
2
2
  <body>
3
3
  <h1>Railscheck - The semi-static Q/A verification tool for your Ruby on Rails projects</h1>
4
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>
5
+ <p>This project is (or will be) 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. See <a href="http://railscheck.rubyforge.org/svn/trunk/README.txt"><b>here</b></a> for more information.</p>
6
+
7
+ <h2>Installation</h2>
8
+ <p>Install latest version using: "<b>sudo gem install railscheck</b>"</p>
9
+
10
+ <h2>Running</h2>
11
+ <p>The installation will place railscheck executables on your PATH. Invoke the following command for usage help: "<b>railscheck -h</b>" </p>
12
+ <p><i>Note: First do make sure this gem is installed, your project is configured and that all your migrations are run for the project(s) you want to check. See <a href="http://railscheck.rubyforge.org/svn/trunk/README.txt"><b>here</b></a> for more information.</i></p>
6
13
 
7
14
  <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>
15
+ <p>This project is hosted on <a href="http://rubyforge.org/projects/railscheck/">http://rubyforge.org/projects/railscheck/</a>. Refer to the latest <a href="http://railscheck.rubyforge.org/svn/trunk/README.txt"><b>README</b></a> for up-to-date information on the plugin.</p>
9
16
  <p/>
10
- <h2>About the author(s):</h2>
17
+ <h2>Authors</h2>
11
18
  <ol>
12
19
  <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
20
  </ol>
14
21
  <h2>License:</h2>
15
22
  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).
23
+ software development tool makers that require a license (see project <a href="http://railscheck.rubyforge.org/svn/trunk/License.txt"><b>license file</b></a> for details).
17
24
  </body>
18
25
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railscheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morten M. Christensen / 41concepts
@@ -18,9 +18,7 @@ email:
18
18
  - mmc@41concepts.com
19
19
  executables:
20
20
  - jrailscheck
21
- - jrailscheck.bat
22
21
  - railscheck
23
- - railscheck.bat
24
22
  extensions: []
25
23
 
26
24
  extra_rdoc_files:
@@ -37,9 +35,7 @@ files:
37
35
  - Rakefile
38
36
  - TODO.txt
39
37
  - bin/jrailscheck
40
- - bin/jrailscheck.bat
41
38
  - bin/railscheck
42
- - bin/railscheck.bat
43
39
  - config/hoe.rb
44
40
  - config/requirements.rb
45
41
  - lib/railscheck.rb
@@ -85,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
81
  requirements: []
86
82
 
87
83
  rubyforge_project: railscheck
88
- rubygems_version: 1.1.0
84
+ rubygems_version: 1.1.1
89
85
  signing_key:
90
86
  specification_version: 2
91
87
  summary: Static verifier for rails 2.0+ projects
data/bin/jrailscheck.bat DELETED
@@ -1,3 +0,0 @@
1
- @ECHO OFF
2
- REM # Copyright (c) 2008. Morten M. Christensen, 41concepts Aps. All rights reserved.
3
- jruby.exe ../lib/railscheck.rb %1 %2 %3 %4 %5 %6 %7 %8 %9
data/bin/railscheck.bat DELETED
@@ -1,3 +0,0 @@
1
- @ECHO OFF
2
- REM # Copyright (c) 2008. Morten M. Christensen, 41concepts Aps. All rights reserved.
3
- ruby.exe ../lib/railscheck.rb %1 %2 %3 %4 %5 %6 %7 %8 %9