pparams 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +22 -0
- data/LICENSE +20 -0
- data/README.rdoc +26 -0
- data/Rakefile +33 -0
- data/VERSION +1 -0
- data/lib/pparams.rb +14 -0
- data/pparams.gemspec +114 -0
- data/test/helper.rb +9 -0
- data/test/rails3x_root/.gitignore +4 -0
- data/test/rails3x_root/Gemfile +32 -0
- data/test/rails3x_root/Gemfile.lock +77 -0
- data/test/rails3x_root/README +256 -0
- data/test/rails3x_root/Rakefile +7 -0
- data/test/rails3x_root/app/controllers/application_controller.rb +3 -0
- data/test/rails3x_root/app/controllers/public_controller.rb +13 -0
- data/test/rails3x_root/app/helpers/application_helper.rb +2 -0
- data/test/rails3x_root/app/helpers/public_helper.rb +2 -0
- data/test/rails3x_root/app/views/layouts/application.html.erb +14 -0
- data/test/rails3x_root/app/views/public/test.html.erb +1 -0
- data/test/rails3x_root/config.ru +4 -0
- data/test/rails3x_root/config/application.rb +47 -0
- data/test/rails3x_root/config/boot.rb +13 -0
- data/test/rails3x_root/config/environment.rb +5 -0
- data/test/rails3x_root/config/environments/development.rb +26 -0
- data/test/rails3x_root/config/environments/production.rb +49 -0
- data/test/rails3x_root/config/environments/test.rb +35 -0
- data/test/rails3x_root/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails3x_root/config/initializers/inflections.rb +10 -0
- data/test/rails3x_root/config/initializers/mime_types.rb +5 -0
- data/test/rails3x_root/config/initializers/secret_token.rb +7 -0
- data/test/rails3x_root/config/initializers/session_store.rb +8 -0
- data/test/rails3x_root/config/locales/en.yml +5 -0
- data/test/rails3x_root/config/routes.rb +58 -0
- data/test/rails3x_root/db/seeds.rb +7 -0
- data/test/rails3x_root/lib/tasks/.gitkeep +0 -0
- data/test/rails3x_root/public/404.html +26 -0
- data/test/rails3x_root/public/422.html +26 -0
- data/test/rails3x_root/public/500.html +26 -0
- data/test/rails3x_root/public/favicon.ico +0 -0
- data/test/rails3x_root/public/images/rails.png +0 -0
- data/test/rails3x_root/public/javascripts/.gitkeep +0 -0
- data/test/rails3x_root/public/javascripts/application.js +0 -0
- data/test/rails3x_root/public/robots.txt +5 -0
- data/test/rails3x_root/public/stylesheets/.gitkeep +0 -0
- data/test/rails3x_root/script/rails +6 -0
- data/test/rails3x_root/test/functional/public_controller_test.rb +16 -0
- data/test/rails3x_root/test/performance/browsing_test.rb +9 -0
- data/test/rails3x_root/test/test_helper.rb +7 -0
- data/test/rails3x_root/test/unit/helpers/public_helper_test.rb +4 -0
- data/test/rails3x_root/vendor/plugins/.gitkeep +0 -0
- data/test/test_pparams.rb +7 -0
- metadata +138 -0
File without changes
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class PublicControllerTest < ActionController::TestCase
|
4
|
+
|
5
|
+
test "p should return id from both action and template" do
|
6
|
+
|
7
|
+
id = 'xyz'
|
8
|
+
get :test, 'id' => id
|
9
|
+
assert_equal "action:#{id}, template:#{id}", @response.body
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
end
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pparams
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 0.0.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Kevin Swope
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-10-06 00:00:00 -04:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: alias params to p in rails
|
22
|
+
email: git-kevdev@snkmail.com
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
28
|
+
- LICENSE
|
29
|
+
- README.rdoc
|
30
|
+
files:
|
31
|
+
- .document
|
32
|
+
- .gitignore
|
33
|
+
- LICENSE
|
34
|
+
- README.rdoc
|
35
|
+
- Rakefile
|
36
|
+
- VERSION
|
37
|
+
- lib/pparams.rb
|
38
|
+
- pparams.gemspec
|
39
|
+
- test/helper.rb
|
40
|
+
- test/rails3x_root/.gitignore
|
41
|
+
- test/rails3x_root/Gemfile
|
42
|
+
- test/rails3x_root/Gemfile.lock
|
43
|
+
- test/rails3x_root/README
|
44
|
+
- test/rails3x_root/Rakefile
|
45
|
+
- test/rails3x_root/app/controllers/application_controller.rb
|
46
|
+
- test/rails3x_root/app/controllers/public_controller.rb
|
47
|
+
- test/rails3x_root/app/helpers/application_helper.rb
|
48
|
+
- test/rails3x_root/app/helpers/public_helper.rb
|
49
|
+
- test/rails3x_root/app/views/layouts/application.html.erb
|
50
|
+
- test/rails3x_root/app/views/public/test.html.erb
|
51
|
+
- test/rails3x_root/config.ru
|
52
|
+
- test/rails3x_root/config/application.rb
|
53
|
+
- test/rails3x_root/config/boot.rb
|
54
|
+
- test/rails3x_root/config/environment.rb
|
55
|
+
- test/rails3x_root/config/environments/development.rb
|
56
|
+
- test/rails3x_root/config/environments/production.rb
|
57
|
+
- test/rails3x_root/config/environments/test.rb
|
58
|
+
- test/rails3x_root/config/initializers/backtrace_silencers.rb
|
59
|
+
- test/rails3x_root/config/initializers/inflections.rb
|
60
|
+
- test/rails3x_root/config/initializers/mime_types.rb
|
61
|
+
- test/rails3x_root/config/initializers/secret_token.rb
|
62
|
+
- test/rails3x_root/config/initializers/session_store.rb
|
63
|
+
- test/rails3x_root/config/locales/en.yml
|
64
|
+
- test/rails3x_root/config/routes.rb
|
65
|
+
- test/rails3x_root/db/seeds.rb
|
66
|
+
- test/rails3x_root/lib/tasks/.gitkeep
|
67
|
+
- test/rails3x_root/public/404.html
|
68
|
+
- test/rails3x_root/public/422.html
|
69
|
+
- test/rails3x_root/public/500.html
|
70
|
+
- test/rails3x_root/public/favicon.ico
|
71
|
+
- test/rails3x_root/public/images/rails.png
|
72
|
+
- test/rails3x_root/public/javascripts/.gitkeep
|
73
|
+
- test/rails3x_root/public/javascripts/application.js
|
74
|
+
- test/rails3x_root/public/robots.txt
|
75
|
+
- test/rails3x_root/public/stylesheets/.gitkeep
|
76
|
+
- test/rails3x_root/script/rails
|
77
|
+
- test/rails3x_root/test/functional/public_controller_test.rb
|
78
|
+
- test/rails3x_root/test/performance/browsing_test.rb
|
79
|
+
- test/rails3x_root/test/test_helper.rb
|
80
|
+
- test/rails3x_root/test/unit/helpers/public_helper_test.rb
|
81
|
+
- test/rails3x_root/vendor/plugins/.gitkeep
|
82
|
+
- test/test_pparams.rb
|
83
|
+
has_rdoc: true
|
84
|
+
homepage: http://github.com/kswope/pparams
|
85
|
+
licenses: []
|
86
|
+
|
87
|
+
post_install_message:
|
88
|
+
rdoc_options:
|
89
|
+
- --charset=UTF-8
|
90
|
+
require_paths:
|
91
|
+
- lib
|
92
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
version: "0"
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
none: false
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
version: "0"
|
108
|
+
requirements: []
|
109
|
+
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 1.3.7
|
112
|
+
signing_key:
|
113
|
+
specification_version: 3
|
114
|
+
summary: alias params to p in rails
|
115
|
+
test_files:
|
116
|
+
- test/helper.rb
|
117
|
+
- test/rails3x_root/app/controllers/application_controller.rb
|
118
|
+
- test/rails3x_root/app/controllers/public_controller.rb
|
119
|
+
- test/rails3x_root/app/helpers/application_helper.rb
|
120
|
+
- test/rails3x_root/app/helpers/public_helper.rb
|
121
|
+
- test/rails3x_root/config/application.rb
|
122
|
+
- test/rails3x_root/config/boot.rb
|
123
|
+
- test/rails3x_root/config/environment.rb
|
124
|
+
- test/rails3x_root/config/environments/development.rb
|
125
|
+
- test/rails3x_root/config/environments/production.rb
|
126
|
+
- test/rails3x_root/config/environments/test.rb
|
127
|
+
- test/rails3x_root/config/initializers/backtrace_silencers.rb
|
128
|
+
- test/rails3x_root/config/initializers/inflections.rb
|
129
|
+
- test/rails3x_root/config/initializers/mime_types.rb
|
130
|
+
- test/rails3x_root/config/initializers/secret_token.rb
|
131
|
+
- test/rails3x_root/config/initializers/session_store.rb
|
132
|
+
- test/rails3x_root/config/routes.rb
|
133
|
+
- test/rails3x_root/db/seeds.rb
|
134
|
+
- test/rails3x_root/test/functional/public_controller_test.rb
|
135
|
+
- test/rails3x_root/test/performance/browsing_test.rb
|
136
|
+
- test/rails3x_root/test/test_helper.rb
|
137
|
+
- test/rails3x_root/test/unit/helpers/public_helper_test.rb
|
138
|
+
- test/test_pparams.rb
|