disclaimer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +54 -16
- data/config/routes.rb +24 -10
- data/lib/disclaimer/version.rb +1 -1
- data/lib/disclaimer.rb +9 -1
- data/test/dummy/config/initializers/disclaimer.rb +2 -0
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1072 -0
- data/test/dummy/log/test.log +9700 -0
- data/test/functional/disclaimer/documents_controller_test.rb +1 -1
- data/test/test_helper.rb +8 -3
- metadata +4 -4
- data/test/dummy/tmp/pids/server.pid +0 -1
data/test/test_helper.rb
CHANGED
@@ -6,9 +6,6 @@ require "rails/test_help"
|
|
6
6
|
|
7
7
|
Rails.backtrace_cleaner.remove_silencers!
|
8
8
|
|
9
|
-
require 'minitest/reporters'
|
10
|
-
MiniTest::Reporters.use!
|
11
|
-
|
12
9
|
# Load support files
|
13
10
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
11
|
|
@@ -30,6 +27,14 @@ class ActionController::TestCase
|
|
30
27
|
super
|
31
28
|
end
|
32
29
|
|
30
|
+
def actions_and_controllers
|
31
|
+
Disclaimer::Engine.routes.routes.collect{|r| r.defaults}
|
32
|
+
end
|
33
|
+
|
34
|
+
def actions_for_controller(controller = 'disclaimer/documents')
|
35
|
+
actions_and_controllers.select{|p| p[:controller] == controller}.collect{|ac| ac[:action]}
|
36
|
+
end
|
37
|
+
|
33
38
|
end
|
34
39
|
|
35
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disclaimer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -190,7 +190,6 @@ files:
|
|
190
190
|
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
191
191
|
- test/dummy/tmp/cache/assets/DFB/DF0/sprockets%2Fa1fb1cc09fd766dcc9e2b9d4a9421db4
|
192
192
|
- test/dummy/tmp/cache/assets/C65/6C0/sprockets%2F6411c0191302133114dd7b9452abec58
|
193
|
-
- test/dummy/tmp/pids/server.pid
|
194
193
|
- test/dummy/config/locales/en.yml
|
195
194
|
- test/dummy/config/environment.rb
|
196
195
|
- test/dummy/config/routes.rb
|
@@ -200,6 +199,7 @@ files:
|
|
200
199
|
- test/dummy/config/environments/test.rb
|
201
200
|
- test/dummy/config/database.yml
|
202
201
|
- test/dummy/config/initializers/inflections.rb
|
202
|
+
- test/dummy/config/initializers/disclaimer.rb
|
203
203
|
- test/dummy/config/initializers/session_store.rb
|
204
204
|
- test/dummy/config/initializers/wrap_parameters.rb
|
205
205
|
- test/dummy/config/initializers/secret_token.rb
|
@@ -299,7 +299,6 @@ test_files:
|
|
299
299
|
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
300
300
|
- test/dummy/tmp/cache/assets/DFB/DF0/sprockets%2Fa1fb1cc09fd766dcc9e2b9d4a9421db4
|
301
301
|
- test/dummy/tmp/cache/assets/C65/6C0/sprockets%2F6411c0191302133114dd7b9452abec58
|
302
|
-
- test/dummy/tmp/pids/server.pid
|
303
302
|
- test/dummy/config/locales/en.yml
|
304
303
|
- test/dummy/config/environment.rb
|
305
304
|
- test/dummy/config/routes.rb
|
@@ -309,6 +308,7 @@ test_files:
|
|
309
308
|
- test/dummy/config/environments/test.rb
|
310
309
|
- test/dummy/config/database.yml
|
311
310
|
- test/dummy/config/initializers/inflections.rb
|
311
|
+
- test/dummy/config/initializers/disclaimer.rb
|
312
312
|
- test/dummy/config/initializers/session_store.rb
|
313
313
|
- test/dummy/config/initializers/wrap_parameters.rb
|
314
314
|
- test/dummy/config/initializers/secret_token.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
8925
|