pparams 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.document +5 -0
  2. data/.gitignore +22 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +26 -0
  5. data/Rakefile +33 -0
  6. data/VERSION +1 -0
  7. data/lib/pparams.rb +14 -0
  8. data/pparams.gemspec +114 -0
  9. data/test/helper.rb +9 -0
  10. data/test/rails3x_root/.gitignore +4 -0
  11. data/test/rails3x_root/Gemfile +32 -0
  12. data/test/rails3x_root/Gemfile.lock +77 -0
  13. data/test/rails3x_root/README +256 -0
  14. data/test/rails3x_root/Rakefile +7 -0
  15. data/test/rails3x_root/app/controllers/application_controller.rb +3 -0
  16. data/test/rails3x_root/app/controllers/public_controller.rb +13 -0
  17. data/test/rails3x_root/app/helpers/application_helper.rb +2 -0
  18. data/test/rails3x_root/app/helpers/public_helper.rb +2 -0
  19. data/test/rails3x_root/app/views/layouts/application.html.erb +14 -0
  20. data/test/rails3x_root/app/views/public/test.html.erb +1 -0
  21. data/test/rails3x_root/config.ru +4 -0
  22. data/test/rails3x_root/config/application.rb +47 -0
  23. data/test/rails3x_root/config/boot.rb +13 -0
  24. data/test/rails3x_root/config/environment.rb +5 -0
  25. data/test/rails3x_root/config/environments/development.rb +26 -0
  26. data/test/rails3x_root/config/environments/production.rb +49 -0
  27. data/test/rails3x_root/config/environments/test.rb +35 -0
  28. data/test/rails3x_root/config/initializers/backtrace_silencers.rb +7 -0
  29. data/test/rails3x_root/config/initializers/inflections.rb +10 -0
  30. data/test/rails3x_root/config/initializers/mime_types.rb +5 -0
  31. data/test/rails3x_root/config/initializers/secret_token.rb +7 -0
  32. data/test/rails3x_root/config/initializers/session_store.rb +8 -0
  33. data/test/rails3x_root/config/locales/en.yml +5 -0
  34. data/test/rails3x_root/config/routes.rb +58 -0
  35. data/test/rails3x_root/db/seeds.rb +7 -0
  36. data/test/rails3x_root/lib/tasks/.gitkeep +0 -0
  37. data/test/rails3x_root/public/404.html +26 -0
  38. data/test/rails3x_root/public/422.html +26 -0
  39. data/test/rails3x_root/public/500.html +26 -0
  40. data/test/rails3x_root/public/favicon.ico +0 -0
  41. data/test/rails3x_root/public/images/rails.png +0 -0
  42. data/test/rails3x_root/public/javascripts/.gitkeep +0 -0
  43. data/test/rails3x_root/public/javascripts/application.js +0 -0
  44. data/test/rails3x_root/public/robots.txt +5 -0
  45. data/test/rails3x_root/public/stylesheets/.gitkeep +0 -0
  46. data/test/rails3x_root/script/rails +6 -0
  47. data/test/rails3x_root/test/functional/public_controller_test.rb +16 -0
  48. data/test/rails3x_root/test/performance/browsing_test.rb +9 -0
  49. data/test/rails3x_root/test/test_helper.rb +7 -0
  50. data/test/rails3x_root/test/unit/helpers/public_helper_test.rb +4 -0
  51. data/test/rails3x_root/vendor/plugins/.gitkeep +0 -0
  52. data/test/test_pparams.rb +7 -0
  53. metadata +138 -0
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
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
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionDispatch::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Add more helper methods to be used by all tests here...
7
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class PublicHelperTest < ActionView::TestCase
4
+ end
File without changes
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestPparams < Test::Unit::TestCase
4
+ def test_something_for_real
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
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