gambas 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +8 -0
  3. data/Rakefile +38 -0
  4. data/lib/gambas.rb +26 -0
  5. data/lib/gambas/version.rb +3 -0
  6. data/lib/tasks/gambas_tasks.rake +4 -0
  7. data/test/dummy/README.rdoc +261 -0
  8. data/test/dummy/Rakefile +7 -0
  9. data/test/dummy/app/assets/javascripts/application.js +15 -0
  10. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  11. data/test/dummy/app/controllers/application_controller.rb +3 -0
  12. data/test/dummy/app/controllers/home_controller.rb +29 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/views/home/index.pdf.prawn +3 -0
  15. data/test/dummy/app/views/home/table_column_widths.pdf.prawn +10 -0
  16. data/test/dummy/app/views/home/table_content_and_subtables.pdf.prawn +21 -0
  17. data/test/dummy/app/views/home/table_flow_and_header.pdf.prawn +3 -0
  18. data/test/dummy/app/views/home/table_position.pdf.prawn +14 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  20. data/test/dummy/config.ru +4 -0
  21. data/test/dummy/config/application.rb +56 -0
  22. data/test/dummy/config/boot.rb +10 -0
  23. data/test/dummy/config/database.yml +25 -0
  24. data/test/dummy/config/environment.rb +5 -0
  25. data/test/dummy/config/environments/development.rb +37 -0
  26. data/test/dummy/config/environments/production.rb +67 -0
  27. data/test/dummy/config/environments/test.rb +37 -0
  28. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  29. data/test/dummy/config/initializers/inflections.rb +15 -0
  30. data/test/dummy/config/initializers/mime_types.rb +5 -0
  31. data/test/dummy/config/initializers/secret_token.rb +7 -0
  32. data/test/dummy/config/initializers/session_store.rb +8 -0
  33. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  34. data/test/dummy/config/locales/en.yml +5 -0
  35. data/test/dummy/config/routes.rb +60 -0
  36. data/test/dummy/db/development.sqlite3 +0 -0
  37. data/test/dummy/db/test.sqlite3 +0 -0
  38. data/test/dummy/log/development.log +541 -0
  39. data/test/dummy/log/test.log +367 -0
  40. data/test/dummy/public/404.html +26 -0
  41. data/test/dummy/public/422.html +26 -0
  42. data/test/dummy/public/500.html +25 -0
  43. data/test/dummy/public/favicon.ico +0 -0
  44. data/test/dummy/script/rails +6 -0
  45. data/test/gambas_test.rb +15 -0
  46. data/test/test_helper.rb +15 -0
  47. metadata +175 -0
@@ -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,15 @@
1
+ require 'test_helper'
2
+
3
+ class GambasTest < ActiveSupport::TestCase
4
+ include Capybara::DSL
5
+
6
+ test "prawn template handler" do
7
+ visit '/home.pdf'
8
+
9
+ assert_match 'application/pdf', headers['Content-Type']
10
+ end
11
+
12
+ def headers
13
+ page.response_headers
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Configure capybara for integration testing
13
+ require "capybara/rails"
14
+ Capybara.default_driver = :rack_test
15
+ Capybara.default_selector = :css
metadata ADDED
@@ -0,0 +1,175 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gambas
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - rtsinani
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70187906886980 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.2
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70187906886980
25
+ - !ruby/object:Gem::Dependency
26
+ name: prawn
27
+ requirement: &70187906885320 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70187906885320
36
+ - !ruby/object:Gem::Dependency
37
+ name: capybara
38
+ requirement: &70187906884000 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70187906884000
47
+ - !ruby/object:Gem::Dependency
48
+ name: sqlite3
49
+ requirement: &70187906883260 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70187906883260
58
+ description: ''
59
+ email:
60
+ - artisinani@gmail.com
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - lib/gambas/version.rb
66
+ - lib/gambas.rb
67
+ - lib/tasks/gambas_tasks.rake
68
+ - MIT-LICENSE
69
+ - Rakefile
70
+ - README.rdoc
71
+ - test/dummy/app/assets/javascripts/application.js
72
+ - test/dummy/app/assets/stylesheets/application.css
73
+ - test/dummy/app/controllers/application_controller.rb
74
+ - test/dummy/app/controllers/home_controller.rb
75
+ - test/dummy/app/helpers/application_helper.rb
76
+ - test/dummy/app/views/home/index.pdf.prawn
77
+ - test/dummy/app/views/home/table_column_widths.pdf.prawn
78
+ - test/dummy/app/views/home/table_content_and_subtables.pdf.prawn
79
+ - test/dummy/app/views/home/table_flow_and_header.pdf.prawn
80
+ - test/dummy/app/views/home/table_position.pdf.prawn
81
+ - test/dummy/app/views/layouts/application.html.erb
82
+ - test/dummy/config/application.rb
83
+ - test/dummy/config/boot.rb
84
+ - test/dummy/config/database.yml
85
+ - test/dummy/config/environment.rb
86
+ - test/dummy/config/environments/development.rb
87
+ - test/dummy/config/environments/production.rb
88
+ - test/dummy/config/environments/test.rb
89
+ - test/dummy/config/initializers/backtrace_silencers.rb
90
+ - test/dummy/config/initializers/inflections.rb
91
+ - test/dummy/config/initializers/mime_types.rb
92
+ - test/dummy/config/initializers/secret_token.rb
93
+ - test/dummy/config/initializers/session_store.rb
94
+ - test/dummy/config/initializers/wrap_parameters.rb
95
+ - test/dummy/config/locales/en.yml
96
+ - test/dummy/config/routes.rb
97
+ - test/dummy/config.ru
98
+ - test/dummy/db/development.sqlite3
99
+ - test/dummy/db/test.sqlite3
100
+ - test/dummy/log/development.log
101
+ - test/dummy/log/test.log
102
+ - test/dummy/public/404.html
103
+ - test/dummy/public/422.html
104
+ - test/dummy/public/500.html
105
+ - test/dummy/public/favicon.ico
106
+ - test/dummy/Rakefile
107
+ - test/dummy/README.rdoc
108
+ - test/dummy/script/rails
109
+ - test/gambas_test.rb
110
+ - test/test_helper.rb
111
+ homepage: https://github.com/rtsinani/gambas
112
+ licenses: []
113
+ post_install_message:
114
+ rdoc_options: []
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ requirements: []
130
+ rubyforge_project:
131
+ rubygems_version: 1.8.17
132
+ signing_key:
133
+ specification_version: 3
134
+ summary: Inline PDF templates that use prawn.
135
+ test_files:
136
+ - test/dummy/app/assets/javascripts/application.js
137
+ - test/dummy/app/assets/stylesheets/application.css
138
+ - test/dummy/app/controllers/application_controller.rb
139
+ - test/dummy/app/controllers/home_controller.rb
140
+ - test/dummy/app/helpers/application_helper.rb
141
+ - test/dummy/app/views/home/index.pdf.prawn
142
+ - test/dummy/app/views/home/table_column_widths.pdf.prawn
143
+ - test/dummy/app/views/home/table_content_and_subtables.pdf.prawn
144
+ - test/dummy/app/views/home/table_flow_and_header.pdf.prawn
145
+ - test/dummy/app/views/home/table_position.pdf.prawn
146
+ - test/dummy/app/views/layouts/application.html.erb
147
+ - test/dummy/config/application.rb
148
+ - test/dummy/config/boot.rb
149
+ - test/dummy/config/database.yml
150
+ - test/dummy/config/environment.rb
151
+ - test/dummy/config/environments/development.rb
152
+ - test/dummy/config/environments/production.rb
153
+ - test/dummy/config/environments/test.rb
154
+ - test/dummy/config/initializers/backtrace_silencers.rb
155
+ - test/dummy/config/initializers/inflections.rb
156
+ - test/dummy/config/initializers/mime_types.rb
157
+ - test/dummy/config/initializers/secret_token.rb
158
+ - test/dummy/config/initializers/session_store.rb
159
+ - test/dummy/config/initializers/wrap_parameters.rb
160
+ - test/dummy/config/locales/en.yml
161
+ - test/dummy/config/routes.rb
162
+ - test/dummy/config.ru
163
+ - test/dummy/db/development.sqlite3
164
+ - test/dummy/db/test.sqlite3
165
+ - test/dummy/log/development.log
166
+ - test/dummy/log/test.log
167
+ - test/dummy/public/404.html
168
+ - test/dummy/public/422.html
169
+ - test/dummy/public/500.html
170
+ - test/dummy/public/favicon.ico
171
+ - test/dummy/Rakefile
172
+ - test/dummy/README.rdoc
173
+ - test/dummy/script/rails
174
+ - test/gambas_test.rb
175
+ - test/test_helper.rb