rack-xml_stylesheet 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/README.md +65 -0
  2. data/Rakefile +26 -0
  3. data/lib/rack/xml_stylesheet.rb +20 -0
  4. data/lib/rack/xml_stylesheet/strategy.rb +77 -0
  5. data/lib/rack/xml_stylesheet/strategy/rails23.rb +17 -0
  6. data/lib/rack/xml_stylesheet/version.rb +15 -0
  7. data/test/rails23_root/Gemfile +8 -0
  8. data/test/rails23_root/Gemfile.lock +45 -0
  9. data/test/rails23_root/README +243 -0
  10. data/test/rails23_root/Rakefile +10 -0
  11. data/test/rails23_root/app/controllers/application_controller.rb +10 -0
  12. data/test/rails23_root/app/controllers/tests_controller.rb +17 -0
  13. data/test/rails23_root/app/helpers/application_helper.rb +3 -0
  14. data/test/rails23_root/app/views/tests/_feed_member.tokamak +9 -0
  15. data/test/rails23_root/app/views/tests/feed.tokamak +24 -0
  16. data/test/rails23_root/app/views/tests/show.tokamak +31 -0
  17. data/test/rails23_root/config/boot.rb +119 -0
  18. data/test/rails23_root/config/environment.rb +34 -0
  19. data/test/rails23_root/config/environments/development.rb +17 -0
  20. data/test/rails23_root/config/environments/production.rb +28 -0
  21. data/test/rails23_root/config/environments/test.rb +28 -0
  22. data/test/rails23_root/config/initializers/backtrace_silencers.rb +7 -0
  23. data/test/rails23_root/config/initializers/cookie_verification_secret.rb +7 -0
  24. data/test/rails23_root/config/initializers/inflections.rb +10 -0
  25. data/test/rails23_root/config/initializers/mime_types.rb +5 -0
  26. data/test/rails23_root/config/initializers/new_rails_defaults.rb +21 -0
  27. data/test/rails23_root/config/initializers/session_store.rb +15 -0
  28. data/test/rails23_root/config/locales/en.yml +5 -0
  29. data/test/rails23_root/config/preinitializer.rb +20 -0
  30. data/test/rails23_root/config/routes.rb +43 -0
  31. data/test/rails23_root/db/seeds.rb +7 -0
  32. data/test/rails23_root/doc/README_FOR_APP +2 -0
  33. data/test/rails23_root/public/404.html +30 -0
  34. data/test/rails23_root/public/422.html +30 -0
  35. data/test/rails23_root/public/500.html +30 -0
  36. data/test/rails23_root/public/favicon.ico +0 -0
  37. data/test/rails23_root/public/images/rails.png +0 -0
  38. data/test/rails23_root/public/index.html +275 -0
  39. data/test/rails23_root/public/javascripts/application.js +2 -0
  40. data/test/rails23_root/public/robots.txt +5 -0
  41. data/test/rails23_root/public/xsl/layouts/default/tests/feed.xsl +0 -0
  42. data/test/rails23_root/script/about +4 -0
  43. data/test/rails23_root/script/console +3 -0
  44. data/test/rails23_root/script/dbconsole +3 -0
  45. data/test/rails23_root/script/destroy +3 -0
  46. data/test/rails23_root/script/generate +3 -0
  47. data/test/rails23_root/script/performance/benchmarker +3 -0
  48. data/test/rails23_root/script/performance/profiler +3 -0
  49. data/test/rails23_root/script/plugin +3 -0
  50. data/test/rails23_root/script/runner +3 -0
  51. data/test/rails23_root/script/server +3 -0
  52. data/test/rails23_root/test/performance/browsing_test.rb +9 -0
  53. data/test/rails23_root/test/test_helper.rb +38 -0
  54. data/test/test_helper.rb +15 -0
  55. metadata +198 -0
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../../config/boot', __FILE__)
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../../config/boot', __FILE__)
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/server'
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+ require 'performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionController::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -0,0 +1,38 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ #
19
+ # The only drawback to using transactional fixtures is when you actually
20
+ # need to test transactions. Since your test is bracketed by a transaction,
21
+ # any transactions started in your code will be automatically rolled back.
22
+ self.use_transactional_fixtures = true
23
+
24
+ # Instantiated fixtures are slow, but give you @david where otherwise you
25
+ # would need people(:david). If you don't want to migrate your existing
26
+ # test cases which use the @david style and don't mind the speed hit (each
27
+ # instantiated fixtures translates to a database query per test method),
28
+ # then set this back to true.
29
+ self.use_instantiated_fixtures = false
30
+
31
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
+ #
33
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
+ # -- they do not yet inherit this setting
35
+ fixtures :all
36
+
37
+ # Add more helper methods to be used by all tests here...
38
+ end
@@ -0,0 +1,15 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'rack/mock'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'rack/content_type_validator'
8
+
9
+ begin
10
+ require "redgreen"
11
+ require "ruby-debug"
12
+ rescue LoadError
13
+ # Not required gems.
14
+ end
15
+
metadata ADDED
@@ -0,0 +1,198 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rack-xml_stylesheet
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Marcelo Manzan
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-05-03 00:00:00 -03:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rack
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 15
30
+ segments:
31
+ - 1
32
+ - 0
33
+ version: "1.0"
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: step-up
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ type: :development
49
+ version_requirements: *id002
50
+ description: It's a rack middleware to add processing instructions on documents of response type XML.
51
+ email:
52
+ - manzan@gmail.com
53
+ executables: []
54
+
55
+ extensions: []
56
+
57
+ extra_rdoc_files: []
58
+
59
+ files:
60
+ - README.md
61
+ - Rakefile
62
+ - lib/rack/xml_stylesheet.rb
63
+ - lib/rack/xml_stylesheet/strategy.rb
64
+ - lib/rack/xml_stylesheet/strategy/rails23.rb
65
+ - lib/rack/xml_stylesheet/version.rb
66
+ - test/rails23_root/Gemfile
67
+ - test/rails23_root/Gemfile.lock
68
+ - test/rails23_root/README
69
+ - test/rails23_root/Rakefile
70
+ - test/rails23_root/app/controllers/application_controller.rb
71
+ - test/rails23_root/app/controllers/tests_controller.rb
72
+ - test/rails23_root/app/helpers/application_helper.rb
73
+ - test/rails23_root/app/views/tests/_feed_member.tokamak
74
+ - test/rails23_root/app/views/tests/feed.tokamak
75
+ - test/rails23_root/app/views/tests/show.tokamak
76
+ - test/rails23_root/config/boot.rb
77
+ - test/rails23_root/config/environment.rb
78
+ - test/rails23_root/config/environments/development.rb
79
+ - test/rails23_root/config/environments/production.rb
80
+ - test/rails23_root/config/environments/test.rb
81
+ - test/rails23_root/config/initializers/backtrace_silencers.rb
82
+ - test/rails23_root/config/initializers/cookie_verification_secret.rb
83
+ - test/rails23_root/config/initializers/inflections.rb
84
+ - test/rails23_root/config/initializers/mime_types.rb
85
+ - test/rails23_root/config/initializers/new_rails_defaults.rb
86
+ - test/rails23_root/config/initializers/session_store.rb
87
+ - test/rails23_root/config/locales/en.yml
88
+ - test/rails23_root/config/preinitializer.rb
89
+ - test/rails23_root/config/routes.rb
90
+ - test/rails23_root/db/seeds.rb
91
+ - test/rails23_root/doc/README_FOR_APP
92
+ - test/rails23_root/public/404.html
93
+ - test/rails23_root/public/422.html
94
+ - test/rails23_root/public/500.html
95
+ - test/rails23_root/public/favicon.ico
96
+ - test/rails23_root/public/images/rails.png
97
+ - test/rails23_root/public/index.html
98
+ - test/rails23_root/public/javascripts/application.js
99
+ - test/rails23_root/public/robots.txt
100
+ - test/rails23_root/public/xsl/layouts/default/tests/feed.xsl
101
+ - test/rails23_root/script/about
102
+ - test/rails23_root/script/console
103
+ - test/rails23_root/script/dbconsole
104
+ - test/rails23_root/script/destroy
105
+ - test/rails23_root/script/generate
106
+ - test/rails23_root/script/performance/benchmarker
107
+ - test/rails23_root/script/performance/profiler
108
+ - test/rails23_root/script/plugin
109
+ - test/rails23_root/script/runner
110
+ - test/rails23_root/script/server
111
+ - test/rails23_root/test/performance/browsing_test.rb
112
+ - test/rails23_root/test/test_helper.rb
113
+ - test/test_helper.rb
114
+ has_rdoc: true
115
+ homepage: http://github.com/kawamanza/rack-xml_stylesheet
116
+ licenses: []
117
+
118
+ post_install_message:
119
+ rdoc_options: []
120
+
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
130
+ - 0
131
+ version: "0"
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ hash: 23
138
+ segments:
139
+ - 1
140
+ - 3
141
+ - 6
142
+ version: 1.3.6
143
+ requirements: []
144
+
145
+ rubyforge_project: rack-xml_stylesheet
146
+ rubygems_version: 1.3.7
147
+ signing_key:
148
+ specification_version: 3
149
+ summary: Adds processing instructions to transform XML by clients
150
+ test_files:
151
+ - test/rails23_root/Gemfile
152
+ - test/rails23_root/Gemfile.lock
153
+ - test/rails23_root/README
154
+ - test/rails23_root/Rakefile
155
+ - test/rails23_root/app/controllers/application_controller.rb
156
+ - test/rails23_root/app/controllers/tests_controller.rb
157
+ - test/rails23_root/app/helpers/application_helper.rb
158
+ - test/rails23_root/app/views/tests/_feed_member.tokamak
159
+ - test/rails23_root/app/views/tests/feed.tokamak
160
+ - test/rails23_root/app/views/tests/show.tokamak
161
+ - test/rails23_root/config/boot.rb
162
+ - test/rails23_root/config/environment.rb
163
+ - test/rails23_root/config/environments/development.rb
164
+ - test/rails23_root/config/environments/production.rb
165
+ - test/rails23_root/config/environments/test.rb
166
+ - test/rails23_root/config/initializers/backtrace_silencers.rb
167
+ - test/rails23_root/config/initializers/cookie_verification_secret.rb
168
+ - test/rails23_root/config/initializers/inflections.rb
169
+ - test/rails23_root/config/initializers/mime_types.rb
170
+ - test/rails23_root/config/initializers/new_rails_defaults.rb
171
+ - test/rails23_root/config/initializers/session_store.rb
172
+ - test/rails23_root/config/locales/en.yml
173
+ - test/rails23_root/config/preinitializer.rb
174
+ - test/rails23_root/config/routes.rb
175
+ - test/rails23_root/db/seeds.rb
176
+ - test/rails23_root/doc/README_FOR_APP
177
+ - test/rails23_root/public/404.html
178
+ - test/rails23_root/public/422.html
179
+ - test/rails23_root/public/500.html
180
+ - test/rails23_root/public/favicon.ico
181
+ - test/rails23_root/public/images/rails.png
182
+ - test/rails23_root/public/index.html
183
+ - test/rails23_root/public/javascripts/application.js
184
+ - test/rails23_root/public/robots.txt
185
+ - test/rails23_root/public/xsl/layouts/default/tests/feed.xsl
186
+ - test/rails23_root/script/about
187
+ - test/rails23_root/script/console
188
+ - test/rails23_root/script/dbconsole
189
+ - test/rails23_root/script/destroy
190
+ - test/rails23_root/script/generate
191
+ - test/rails23_root/script/performance/benchmarker
192
+ - test/rails23_root/script/performance/profiler
193
+ - test/rails23_root/script/plugin
194
+ - test/rails23_root/script/runner
195
+ - test/rails23_root/script/server
196
+ - test/rails23_root/test/performance/browsing_test.rb
197
+ - test/rails23_root/test/test_helper.rb
198
+ - test/test_helper.rb