rules_view 0.0.1 → 0.0.2

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.
Files changed (123) hide show
  1. data/README.textile +53 -26
  2. data/VERSION +1 -1
  3. data/app/views/layouts/rules_view.html.erb +15 -22
  4. data/generators/install_generator.rb +18 -2
  5. data/generators/layout_generator.rb +2 -2
  6. data/generators/manifests/rules_view_install.rb +50 -0
  7. data/generators/manifests/{application.yml → rules_view_install.yml} +0 -0
  8. data/generators/manifests/{layout.rb → rules_view_layout.rb} +1 -1
  9. data/generators/manifests/{layout.yml → rules_view_layout.yml} +0 -0
  10. data/generators/manifests/templates/app/views/layouts/rules_view_layout.html.erb +19 -27
  11. data/generators/manifests/templates/doc/README.rules_view +30 -0
  12. data/generators/manifests/templates/public/javascripts/rules_view/{re_view.js → rules_view.js} +0 -0
  13. data/lib/rules_view/defer.rb +7 -0
  14. data/spec/lib/rules_view/defer_spec.rb +19 -0
  15. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/Gemfile +3 -2
  16. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/README +0 -0
  17. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/Rakefile +1 -1
  18. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/app/controllers/application_controller.rb +0 -0
  19. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/app/helpers/application_helper.rb +0 -0
  20. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/app/views/layouts/application.html.erb +1 -1
  21. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/autotest/discover.rb +0 -0
  22. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/application.rb +1 -1
  23. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/boot.rb +0 -0
  24. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/database.yml +0 -0
  25. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/environment.rb +1 -1
  26. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/environments/development.rb +1 -1
  27. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/environments/production.rb +1 -1
  28. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/environments/test.rb +1 -1
  29. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/initializers/backtrace_silencers.rb +0 -0
  30. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/initializers/inflections.rb +0 -0
  31. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/initializers/mime_types.rb +0 -0
  32. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/initializers/secret_token.rb +1 -1
  33. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/initializers/session_store.rb +2 -2
  34. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/locales/en.yml +0 -0
  35. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config/routes.rb +1 -1
  36. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/config.ru +1 -1
  37. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/db/seeds.rb +0 -0
  38. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/doc/README_FOR_APP +0 -0
  39. data/spec/{rails_3_0_0_root/lib/tasks/.gitkeep → rails_3_0_1_root/log/development.log} +0 -0
  40. data/spec/{rails_3_0_0_root/public/favicon.ico → rails_3_0_1_root/log/production.log} +0 -0
  41. data/spec/{rails_3_0_0_root/public/stylesheets/.gitkeep → rails_3_0_1_root/log/server.log} +0 -0
  42. data/spec/rails_3_0_1_root/log/test.log +145 -0
  43. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/404.html +0 -0
  44. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/422.html +0 -0
  45. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/500.html +0 -0
  46. data/spec/{rails_3_0_0_root/vendor/plugins/.gitkeep → rails_3_0_1_root/public/favicon.ico} +0 -0
  47. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/images/rails.png +0 -0
  48. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/index.html +0 -0
  49. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/javascripts/application.js +0 -0
  50. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/javascripts/controls.js +0 -0
  51. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/javascripts/dragdrop.js +0 -0
  52. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/javascripts/effects.js +0 -0
  53. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/javascripts/prototype.js +0 -0
  54. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/javascripts/rails.js +0 -0
  55. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/public/robots.txt +0 -0
  56. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/script/rails +0 -0
  57. data/spec/{rails_3_0_0_root → rails_3_0_1_root}/spec/spec_helper.rb +0 -0
  58. data/spec/spec_helper.rb +1 -1
  59. data/tasks/rspec.rake +10 -10
  60. metadata +116 -135
  61. data/.document +0 -5
  62. data/.gitignore +0 -21
  63. data/Rakefile +0 -47
  64. data/generators/manifests/application.rb +0 -116
  65. data/generators/manifests/templates/public/javascripts/rules_view/jquery-1.4.2.min.js +0 -154
  66. data/generators/manifests/templates/public/javascripts/rules_view/jquery.autocomplete.pack.js +0 -13
  67. data/generators/manifests/templates/public/javascripts/rules_view/jquery.blockUI.js +0 -486
  68. data/generators/manifests/templates/public/javascripts/rules_view/jquery.fancybox-1.3.1.js +0 -1077
  69. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/ie.css +0 -35
  70. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/cross.png +0 -0
  71. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/key.png +0 -0
  72. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/tick.png +0 -0
  73. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/readme.txt +0 -32
  74. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/screen.css +0 -97
  75. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/fancy-type/readme.txt +0 -14
  76. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/fancy-type/screen.css +0 -71
  77. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/doc.png +0 -0
  78. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/email.png +0 -0
  79. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/external.png +0 -0
  80. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/feed.png +0 -0
  81. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/im.png +0 -0
  82. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  83. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/visited.png +0 -0
  84. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/xls.png +0 -0
  85. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/readme.txt +0 -18
  86. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/screen.css +0 -40
  87. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/rtl/readme.txt +0 -10
  88. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/rtl/screen.css +0 -110
  89. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/print.css +0 -29
  90. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/screen.css +0 -258
  91. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/forms.css +0 -65
  92. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/grid.css +0 -280
  93. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/grid.png +0 -0
  94. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/ie.css +0 -76
  95. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/print.css +0 -85
  96. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/reset.css +0 -45
  97. data/generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/typography.css +0 -106
  98. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/blank.gif +0 -0
  99. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_close.png +0 -0
  100. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_loading.png +0 -0
  101. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_nav_left.png +0 -0
  102. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_nav_right.png +0 -0
  103. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_e.png +0 -0
  104. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_n.png +0 -0
  105. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_ne.png +0 -0
  106. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_nw.png +0 -0
  107. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_s.png +0 -0
  108. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_se.png +0 -0
  109. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_sw.png +0 -0
  110. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_w.png +0 -0
  111. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_left.png +0 -0
  112. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_main.png +0 -0
  113. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_over.png +0 -0
  114. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_right.png +0 -0
  115. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox-x.png +0 -0
  116. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox-y.png +0 -0
  117. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox.png +0 -0
  118. data/generators/manifests/templates/public/stylesheets/rules_view/fancybox/jquery.fancybox-1.3.1.css +0 -363
  119. data/generators/manifests/templates/public/stylesheets/rules_view/jquery.autocomplete.css +0 -53
  120. data/rules_view.gemspec +0 -239
  121. data/spec/rails_3_0_0_root/.gitignore +0 -4
  122. data/spec/rails_3_0_0_root/.rspec +0 -1
  123. data/spec/rails_3_0_0_root/Gemfile.lock +0 -101
@@ -0,0 +1,145 @@
1
+ SQL (0.3ms) select sqlite_version(*)
2
+ SQL (0.4ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
3
+ SQL (0.1ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer) 
4
+ SQL (0.1ms) SELECT name
5
+ FROM sqlite_master
6
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
8
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
9
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
+ SQL (0.1ms) SELECT name
11
+ FROM sqlite_master
12
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13
+ SQL (0.0ms) SELECT version FROM "schema_migrations"
14
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
15
+ SQL (0.2ms)  SELECT name
16
+ FROM sqlite_master
17
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
18
+ 
19
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
20
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
21
+ Processing by StubResourcesController#index as HTML
22
+ Parameters: {"id"=>1}
23
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 1.8ms)
24
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
25
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
26
+ Processing by StubResourcesController#index as HTML
27
+ Parameters: {"id"=>1}
28
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
29
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms)
30
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
31
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
32
+ Processing by StubResourcesController#index as HTML
33
+ Parameters: {"id"=>"unknown"}
34
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 0) LIMIT 1
35
+ Redirected to http://test.host/posts
36
+ Completed 302 Found in 1ms
37
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
38
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
39
+ Processing by StubResourcesController#index as HTML
40
+ Parameters: {"id"=>"unknown"}
41
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 0) LIMIT 1
42
+ Redirected to http://test.host/posts
43
+ Completed 302 Found in 1ms
44
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
45
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
46
+ Processing by StubResourcesController#index as HTML
47
+ Parameters: {"id"=>"unknown"}
48
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 0) LIMIT 1
49
+ Redirected to http://test.host/posts
50
+ Completed 302 Found in 1ms
51
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
52
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
53
+ Processing by StubResourcesController#index as JS
54
+ Parameters: {"id"=>"unknown"}
55
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 0) LIMIT 1
56
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 1.1ms)
57
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
58
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
59
+ Processing by StubResourcesController#index as HTML
60
+ Parameters: {"post_id"=>1, "id"=>1}
61
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
62
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)
63
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
64
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
65
+ Processing by StubResourcesController#index as HTML
66
+ Parameters: {"post_id"=>1, "validate"=>"validate_method", "id"=>1}
67
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
68
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)
69
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
70
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
71
+ Processing by StubResourcesController#index as HTML
72
+ Parameters: {"post_id"=>1, "validate"=>"validate_method", "id"=>1}
73
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
74
+ Redirected to http://test.host/comments
75
+ Completed 302 Found in 2ms
76
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
77
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
78
+ Processing by StubResourcesController#index as HTML
79
+ Parameters: {"post_id"=>1, "id"=>1}
80
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
81
+ Redirected to http://test.host/comments
82
+ Completed 302 Found in 2ms
83
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
84
+ SQL (0.4ms) INSERT INTO "comments" ("post_id") VALUES (1)
85
+ Processing by StubResourcesController#index as HTML
86
+ Parameters: {"post_id"=>1, "id"=>1}
87
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
88
+ Redirected to http://test.host/comments
89
+ Completed 302 Found in 3ms
90
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
91
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
92
+ Processing by StubResourcesController#index as HTML
93
+ Parameters: {"post_id"=>1, "id"=>1}
94
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
95
+ Redirected to http://test.host/comments
96
+ Completed 302 Found in 2ms
97
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
98
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
99
+ Processing by StubResourcesController#index as JS
100
+ Parameters: {"post_id"=>1, "id"=>1}
101
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
102
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 2.1ms)
103
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
104
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
105
+ Processing by StubResourcesController#index as HTML
106
+ Parameters: {"id"=>1}
107
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.2ms)
108
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
109
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
110
+ Processing by StubResourcesController#index as HTML
111
+ Parameters: {"find_by"=>:find_by_mock, "id"=>1}
112
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.2ms)
113
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
114
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
115
+ Processing by StubResourcesController#index as HTML
116
+ Parameters: {"param_id"=>:test_post_id, "test_post_id"=>1}
117
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.2ms)
118
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
119
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
120
+ Processing by StubResourcesController#index as HTML
121
+ Parameters: {"id"=>1}
122
+ Redirected to http://test.host/posts
123
+ Completed 302 Found in 1ms
124
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
125
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
126
+ Processing by StubResourcesController#index as HTML
127
+ Parameters: {"id"=>"unknown"}
128
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 0) LIMIT 1
129
+ Redirected to http://test.host/posts
130
+ Completed 302 Found in 1ms
131
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
132
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
133
+ Processing by StubResourcesController#index as HTML
134
+ Parameters: {"id"=>"unknown", "redirect_path"=>:mock_redirect_path}
135
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 0) LIMIT 1
136
+ Redirected to http://test.host/mock_redirect_path/
137
+ Completed 302 Found in 1ms
138
+ SQL (0.1ms) INSERT INTO "posts" VALUES(NULL)
139
+ SQL (0.1ms) INSERT INTO "comments" ("post_id") VALUES (1)
140
+ Processing by StubResourcesController#index as HTML
141
+ Parameters: {"post_id"=>1, "id"=>"unknown", "redirect_path"=>:mock_redirect_path}
142
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1) LIMIT 1
143
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE ("comments"."id" = 0) LIMIT 1
144
+ Redirected to http://test.host/mock_redirect_path/1
145
+ Completed 302 Found in 3ms
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # This file is copied to spec/ when you run 'rails generate rspec:install'
2
2
  ENV["RAILS_ENV"] ||= 'test'
3
3
  # require File.expand_path("../../config/environment", __FILE__)
4
- require File.expand_path(File.dirname(__FILE__) + "/rails_3_0_0_root/config/environment", __FILE__)
4
+ require File.expand_path(File.dirname(__FILE__) + "/rails_3_0_1_root/config/environment", __FILE__)
5
5
  require 'rspec/rails'
6
6
 
7
7
  # Requires supporting ruby files with custom matchers and macros, etc,
data/tasks/rspec.rake CHANGED
@@ -1,4 +1,4 @@
1
- ENV['BUNDLE_GEMFILE'] = File.dirname(__FILE__) + '/../spec/rails_3_0_0_root/Gemfile'
1
+ ENV['BUNDLE_GEMFILE'] = File.dirname(__FILE__) + '/../spec/rails_3_0_1_root/Gemfile'
2
2
 
3
3
  require 'rake'
4
4
  require 'rake/testtask'
@@ -12,21 +12,21 @@ task :spec => ['spec:setup', 'spec:rules_view', 'spec:cleanup']
12
12
  namespace :spec do
13
13
  desc "Setup the test environment"
14
14
  task :setup do
15
- rules_view_rails_path = File.expand_path(File.dirname(__FILE__) + '/../spec/rails_3_0_0_root')
15
+ rails_path = File.expand_path(File.dirname(__FILE__) + '/../spec/rails_3_0_1_root')
16
16
 
17
- system "cd #{rules_view_rails_path} && bundle install"
18
- system "cd #{rules_view_rails_path} && ./script/rails generate rules_view:install"
17
+ system "cd #{rails_path} && bundle install"
18
+ system "cd #{rails_path} && ./script/rails generate rules_engine:install"
19
19
  end
20
20
 
21
21
  desc "Cleanup the test environment"
22
22
  task :cleanup do
23
- rules_view_rails_path = File.expand_path(File.dirname(__FILE__) + '/../spec/rails_3_0_0_root')
23
+ rails_path = File.expand_path(File.dirname(__FILE__) + '/../spec/rails_3_0_1_root')
24
24
 
25
- FileUtils.rm_rf("#{rules_view_rails_path}/public/stylesheets/rules_view")
26
- FileUtils.rm_rf("#{rules_view_rails_path}/public/javascripts/rules_view")
27
- FileUtils.rm_rf("#{rules_view_rails_path}/config/initializers/rules_view.rb")
28
- FileUtils.rm_rf("#{rules_view_rails_path}/doc/README.rules_view")
29
- FileUtils.rm_rf("#{rules_view_rails_path}/Gemfile.lock")
25
+ FileUtils.rm_rf("#{rails_path}/public/stylesheets/rules_view")
26
+ FileUtils.rm_rf("#{rails_path}/public/javascripts/rules_view")
27
+ FileUtils.rm_rf("#{rails_path}/config/initializers/rules_view.rb")
28
+ FileUtils.rm_rf("#{rails_path}/doc/README.rules_view")
29
+ FileUtils.rm_rf("#{rails_path}/Gemfile.lock")
30
30
  end
31
31
 
32
32
  desc "Test the rules_view"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rules_view
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Douglas
@@ -15,11 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-21 00:00:00 +11:00
18
+ date: 2010-10-22 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: rspec
22
+ name: rspec-rails
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
@@ -28,12 +28,54 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  hash: 13
30
30
  segments:
31
- - 1
32
31
  - 2
33
- - 9
34
- version: 1.2.9
32
+ - 0
33
+ - 1
34
+ version: 2.0.1
35
35
  type: :development
36
36
  version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: webrat
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: faker
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ type: :development
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: machinist
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ type: :development
78
+ version_requirements: *id004
37
79
  description: Ruby Rails Rules Engine Framework Views
38
80
  email: dougo.chris@gmail.com
39
81
  executables: []
@@ -44,79 +86,22 @@ extra_rdoc_files:
44
86
  - LICENSE
45
87
  - README.textile
46
88
  files:
47
- - .document
48
- - .gitignore
49
89
  - LICENSE
50
90
  - README.textile
51
- - Rakefile
52
91
  - VERSION
53
92
  - app/views/layouts/rules_view.html.erb
54
93
  - app/views/re_view/template.html.erb
55
94
  - autotest/discover.rb
56
95
  - generators/install_generator.rb
57
96
  - generators/layout_generator.rb
58
- - generators/manifests/application.rb
59
- - generators/manifests/application.yml
60
- - generators/manifests/layout.rb
61
- - generators/manifests/layout.yml
97
+ - generators/manifests/rules_view_install.rb
98
+ - generators/manifests/rules_view_install.yml
99
+ - generators/manifests/rules_view_layout.rb
100
+ - generators/manifests/rules_view_layout.yml
62
101
  - generators/manifests/templates/app/views/layouts/rules_view_layout.html.erb
63
102
  - generators/manifests/templates/config/initializers/rules_view.rb
64
103
  - generators/manifests/templates/doc/README.rules_view
65
- - generators/manifests/templates/public/javascripts/rules_view/jquery-1.4.2.min.js
66
- - generators/manifests/templates/public/javascripts/rules_view/jquery.autocomplete.pack.js
67
- - generators/manifests/templates/public/javascripts/rules_view/jquery.blockUI.js
68
- - generators/manifests/templates/public/javascripts/rules_view/jquery.fancybox-1.3.1.js
69
- - generators/manifests/templates/public/javascripts/rules_view/re_view.js
70
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/ie.css
71
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/cross.png
72
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/key.png
73
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/icons/tick.png
74
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/readme.txt
75
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/buttons/screen.css
76
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/fancy-type/readme.txt
77
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/fancy-type/screen.css
78
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/doc.png
79
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/email.png
80
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/external.png
81
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/feed.png
82
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/im.png
83
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/pdf.png
84
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/visited.png
85
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/icons/xls.png
86
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/readme.txt
87
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/link-icons/screen.css
88
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/rtl/readme.txt
89
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/plugins/rtl/screen.css
90
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/print.css
91
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/screen.css
92
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/forms.css
93
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/grid.css
94
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/grid.png
95
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/ie.css
96
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/print.css
97
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/reset.css
98
- - generators/manifests/templates/public/stylesheets/rules_view/blueprint/src/typography.css
99
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/blank.gif
100
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_close.png
101
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_loading.png
102
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_nav_left.png
103
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_nav_right.png
104
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_e.png
105
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_n.png
106
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_ne.png
107
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_nw.png
108
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_s.png
109
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_se.png
110
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_sw.png
111
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_shadow_w.png
112
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_left.png
113
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_main.png
114
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_over.png
115
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancy_title_right.png
116
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox-x.png
117
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox-y.png
118
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/fancybox.png
119
- - generators/manifests/templates/public/stylesheets/rules_view/fancybox/jquery.fancybox-1.3.1.css
104
+ - generators/manifests/templates/public/javascripts/rules_view/rules_view.js
120
105
  - generators/manifests/templates/public/stylesheets/rules_view/images/re_view_box/shadowbox.png
121
106
  - generators/manifests/templates/public/stylesheets/rules_view/images/re_view_box/whitebox.jpg
122
107
  - generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/checked-off.gif
@@ -138,7 +123,6 @@ files:
138
123
  - generators/manifests/templates/public/stylesheets/rules_view/images/re_view_button/oval-red-right.gif
139
124
  - generators/manifests/templates/public/stylesheets/rules_view/images/re_view_error/re-alert-close.png
140
125
  - generators/manifests/templates/public/stylesheets/rules_view/images/re_view_navigate/breadcrumb.png
141
- - generators/manifests/templates/public/stylesheets/rules_view/jquery.autocomplete.css
142
126
  - generators/manifests/templates/public/stylesheets/rules_view/rules_view.css
143
127
  - init.rb
144
128
  - lib/rules_view.rb
@@ -153,7 +137,6 @@ files:
153
137
  - lib/rules_view/form_styles.rb
154
138
  - lib/rules_view/model_loader.rb
155
139
  - lib/rules_view/navigate.rb
156
- - rules_view.gemspec
157
140
  - spec/lib/rules_view/alerts_spec.rb
158
141
  - spec/lib/rules_view/boxes_spec.rb
159
142
  - spec/lib/rules_view/buttons_spec.rb
@@ -164,51 +147,49 @@ files:
164
147
  - spec/lib/rules_view/form_styles_spec.rb
165
148
  - spec/lib/rules_view/model_loader_spec.rb
166
149
  - spec/lib/rules_view/navigate_spec.rb
167
- - spec/rails_3_0_0_root/.gitignore
168
- - spec/rails_3_0_0_root/.rspec
169
- - spec/rails_3_0_0_root/Gemfile
170
- - spec/rails_3_0_0_root/Gemfile.lock
171
- - spec/rails_3_0_0_root/README
172
- - spec/rails_3_0_0_root/Rakefile
173
- - spec/rails_3_0_0_root/app/controllers/application_controller.rb
174
- - spec/rails_3_0_0_root/app/helpers/application_helper.rb
175
- - spec/rails_3_0_0_root/app/views/layouts/application.html.erb
176
- - spec/rails_3_0_0_root/autotest/discover.rb
177
- - spec/rails_3_0_0_root/config.ru
178
- - spec/rails_3_0_0_root/config/application.rb
179
- - spec/rails_3_0_0_root/config/boot.rb
180
- - spec/rails_3_0_0_root/config/database.yml
181
- - spec/rails_3_0_0_root/config/environment.rb
182
- - spec/rails_3_0_0_root/config/environments/development.rb
183
- - spec/rails_3_0_0_root/config/environments/production.rb
184
- - spec/rails_3_0_0_root/config/environments/test.rb
185
- - spec/rails_3_0_0_root/config/initializers/backtrace_silencers.rb
186
- - spec/rails_3_0_0_root/config/initializers/inflections.rb
187
- - spec/rails_3_0_0_root/config/initializers/mime_types.rb
188
- - spec/rails_3_0_0_root/config/initializers/secret_token.rb
189
- - spec/rails_3_0_0_root/config/initializers/session_store.rb
190
- - spec/rails_3_0_0_root/config/locales/en.yml
191
- - spec/rails_3_0_0_root/config/routes.rb
192
- - spec/rails_3_0_0_root/db/seeds.rb
193
- - spec/rails_3_0_0_root/doc/README_FOR_APP
194
- - spec/rails_3_0_0_root/lib/tasks/.gitkeep
195
- - spec/rails_3_0_0_root/public/404.html
196
- - spec/rails_3_0_0_root/public/422.html
197
- - spec/rails_3_0_0_root/public/500.html
198
- - spec/rails_3_0_0_root/public/favicon.ico
199
- - spec/rails_3_0_0_root/public/images/rails.png
200
- - spec/rails_3_0_0_root/public/index.html
201
- - spec/rails_3_0_0_root/public/javascripts/application.js
202
- - spec/rails_3_0_0_root/public/javascripts/controls.js
203
- - spec/rails_3_0_0_root/public/javascripts/dragdrop.js
204
- - spec/rails_3_0_0_root/public/javascripts/effects.js
205
- - spec/rails_3_0_0_root/public/javascripts/prototype.js
206
- - spec/rails_3_0_0_root/public/javascripts/rails.js
207
- - spec/rails_3_0_0_root/public/robots.txt
208
- - spec/rails_3_0_0_root/public/stylesheets/.gitkeep
209
- - spec/rails_3_0_0_root/script/rails
210
- - spec/rails_3_0_0_root/spec/spec_helper.rb
211
- - spec/rails_3_0_0_root/vendor/plugins/.gitkeep
150
+ - spec/rails_3_0_1_root/Gemfile
151
+ - spec/rails_3_0_1_root/README
152
+ - spec/rails_3_0_1_root/Rakefile
153
+ - spec/rails_3_0_1_root/app/controllers/application_controller.rb
154
+ - spec/rails_3_0_1_root/app/helpers/application_helper.rb
155
+ - spec/rails_3_0_1_root/app/views/layouts/application.html.erb
156
+ - spec/rails_3_0_1_root/autotest/discover.rb
157
+ - spec/rails_3_0_1_root/config.ru
158
+ - spec/rails_3_0_1_root/config/application.rb
159
+ - spec/rails_3_0_1_root/config/boot.rb
160
+ - spec/rails_3_0_1_root/config/database.yml
161
+ - spec/rails_3_0_1_root/config/environment.rb
162
+ - spec/rails_3_0_1_root/config/environments/development.rb
163
+ - spec/rails_3_0_1_root/config/environments/production.rb
164
+ - spec/rails_3_0_1_root/config/environments/test.rb
165
+ - spec/rails_3_0_1_root/config/initializers/backtrace_silencers.rb
166
+ - spec/rails_3_0_1_root/config/initializers/inflections.rb
167
+ - spec/rails_3_0_1_root/config/initializers/mime_types.rb
168
+ - spec/rails_3_0_1_root/config/initializers/secret_token.rb
169
+ - spec/rails_3_0_1_root/config/initializers/session_store.rb
170
+ - spec/rails_3_0_1_root/config/locales/en.yml
171
+ - spec/rails_3_0_1_root/config/routes.rb
172
+ - spec/rails_3_0_1_root/db/seeds.rb
173
+ - spec/rails_3_0_1_root/doc/README_FOR_APP
174
+ - spec/rails_3_0_1_root/log/development.log
175
+ - spec/rails_3_0_1_root/log/production.log
176
+ - spec/rails_3_0_1_root/log/server.log
177
+ - spec/rails_3_0_1_root/log/test.log
178
+ - spec/rails_3_0_1_root/public/404.html
179
+ - spec/rails_3_0_1_root/public/422.html
180
+ - spec/rails_3_0_1_root/public/500.html
181
+ - spec/rails_3_0_1_root/public/favicon.ico
182
+ - spec/rails_3_0_1_root/public/images/rails.png
183
+ - spec/rails_3_0_1_root/public/index.html
184
+ - spec/rails_3_0_1_root/public/javascripts/application.js
185
+ - spec/rails_3_0_1_root/public/javascripts/controls.js
186
+ - spec/rails_3_0_1_root/public/javascripts/dragdrop.js
187
+ - spec/rails_3_0_1_root/public/javascripts/effects.js
188
+ - spec/rails_3_0_1_root/public/javascripts/prototype.js
189
+ - spec/rails_3_0_1_root/public/javascripts/rails.js
190
+ - spec/rails_3_0_1_root/public/robots.txt
191
+ - spec/rails_3_0_1_root/script/rails
192
+ - spec/rails_3_0_1_root/spec/spec_helper.rb
212
193
  - spec/spec_helper.rb
213
194
  - spec/support/create_memory_db.rb
214
195
  - tasks/rspec.rake
@@ -216,7 +197,7 @@ has_rdoc: true
216
197
  homepage: http://github.com/dougochris/rules_view
217
198
  licenses: []
218
199
 
219
- post_install_message:
200
+ post_install_message: "\n *** RUN script/rails generate rules_view:install --help\n "
220
201
  rdoc_options:
221
202
  - --charset=UTF-8
222
203
  require_paths:
@@ -257,22 +238,22 @@ test_files:
257
238
  - spec/lib/rules_view/form_styles_spec.rb
258
239
  - spec/lib/rules_view/model_loader_spec.rb
259
240
  - spec/lib/rules_view/navigate_spec.rb
260
- - spec/rails_3_0_0_root/app/controllers/application_controller.rb
261
- - spec/rails_3_0_0_root/app/helpers/application_helper.rb
262
- - spec/rails_3_0_0_root/autotest/discover.rb
263
- - spec/rails_3_0_0_root/config/application.rb
264
- - spec/rails_3_0_0_root/config/boot.rb
265
- - spec/rails_3_0_0_root/config/environment.rb
266
- - spec/rails_3_0_0_root/config/environments/development.rb
267
- - spec/rails_3_0_0_root/config/environments/production.rb
268
- - spec/rails_3_0_0_root/config/environments/test.rb
269
- - spec/rails_3_0_0_root/config/initializers/backtrace_silencers.rb
270
- - spec/rails_3_0_0_root/config/initializers/inflections.rb
271
- - spec/rails_3_0_0_root/config/initializers/mime_types.rb
272
- - spec/rails_3_0_0_root/config/initializers/secret_token.rb
273
- - spec/rails_3_0_0_root/config/initializers/session_store.rb
274
- - spec/rails_3_0_0_root/config/routes.rb
275
- - spec/rails_3_0_0_root/db/seeds.rb
276
- - spec/rails_3_0_0_root/spec/spec_helper.rb
241
+ - spec/rails_3_0_1_root/app/controllers/application_controller.rb
242
+ - spec/rails_3_0_1_root/app/helpers/application_helper.rb
243
+ - spec/rails_3_0_1_root/autotest/discover.rb
244
+ - spec/rails_3_0_1_root/config/application.rb
245
+ - spec/rails_3_0_1_root/config/boot.rb
246
+ - spec/rails_3_0_1_root/config/environment.rb
247
+ - spec/rails_3_0_1_root/config/environments/development.rb
248
+ - spec/rails_3_0_1_root/config/environments/production.rb
249
+ - spec/rails_3_0_1_root/config/environments/test.rb
250
+ - spec/rails_3_0_1_root/config/initializers/backtrace_silencers.rb
251
+ - spec/rails_3_0_1_root/config/initializers/inflections.rb
252
+ - spec/rails_3_0_1_root/config/initializers/mime_types.rb
253
+ - spec/rails_3_0_1_root/config/initializers/secret_token.rb
254
+ - spec/rails_3_0_1_root/config/initializers/session_store.rb
255
+ - spec/rails_3_0_1_root/config/routes.rb
256
+ - spec/rails_3_0_1_root/db/seeds.rb
257
+ - spec/rails_3_0_1_root/spec/spec_helper.rb
277
258
  - spec/spec_helper.rb
278
259
  - spec/support/create_memory_db.rb
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC