shift-railroad 0.5.8

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/lib/version.rb ADDED
@@ -0,0 +1,13 @@
1
+ module RailRoad
2
+ module VERSION #:nodoc:
3
+ if File.exist?('../VERSION.yml')
4
+ config = YAML.load(File.read('../VERSION.yml'))
5
+ MAJOR = config[:major]
6
+ MINOR = config[:minor]
7
+ PATCH = config[:patch]
8
+ else
9
+ MAJOR = MINOR = PATCH = 0
10
+ end
11
+ STRING = [MAJOR, MINOR, PATCH].join('.')
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe AppDiagram do
4
+ describe 'extracting filenames' do
5
+ describe 'without namespaces' do
6
+ it 'should work with a simple name' do
7
+ ad = AppDiagram.new
8
+ ad.extract_class_name('app/models/test_this.rb').should == 'TestThis'
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "Railroad" do
4
+ # it "fails" do
5
+ # fail "hey buddy, you should probably rename this file and start specing for real"
6
+ # end
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec'
2
+
3
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
4
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
5
+ require 'railroad'
6
+
7
+ Spec::Runner.configure do |config|
8
+
9
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shift-railroad
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.8
5
+ platform: ruby
6
+ authors:
7
+ - Peter Hoeg
8
+ - Javier Smaldone
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-05-16 00:00:00 +01:00
14
+ default_executable: railroad
15
+ dependencies: []
16
+
17
+ description: A DOT diagram generator for Ruby on Rail applications
18
+ email:
19
+ - peter@hoeg.com
20
+ - p.hoeg@northwind.sg
21
+ - javier@smaldone.com.ar
22
+ executables:
23
+ - railroad
24
+ extensions: []
25
+
26
+ extra_rdoc_files:
27
+ - AUTHORS.rdoc
28
+ - CHANGELOG.rdoc
29
+ - LICENSE.rdoc
30
+ - README.rdoc
31
+ files:
32
+ - .document
33
+ - AUTHORS.rdoc
34
+ - CHANGELOG.rdoc
35
+ - LICENSE.rdoc
36
+ - README.rdoc
37
+ - Rakefile
38
+ - VERSION.yml
39
+ - bin/railroad
40
+ - lib/aasm_diagram.rb
41
+ - lib/app_diagram.rb
42
+ - lib/controllers_diagram.rb
43
+ - lib/diagram_graph.rb
44
+ - lib/models_diagram.rb
45
+ - lib/options_struct.rb
46
+ - lib/version.rb
47
+ - spec/app_diagram_spec.rb
48
+ - spec/railroad_spec.rb
49
+ - spec/spec_helper.rb
50
+ has_rdoc: true
51
+ homepage: http://github.com/peterhoeg/RailRoad
52
+ licenses: []
53
+
54
+ post_install_message:
55
+ rdoc_options:
56
+ - --charset=UTF-8
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ version:
71
+ requirements: []
72
+
73
+ rubyforge_project:
74
+ rubygems_version: 1.3.5
75
+ signing_key:
76
+ specification_version: 2
77
+ summary: A DOT diagram generator for Ruby on Rail applications
78
+ test_files:
79
+ - spec/spec_helper.rb
80
+ - spec/app_diagram_spec.rb
81
+ - spec/railroad_spec.rb