gambas 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,23 @@ class GambasTest < ActiveSupport::TestCase
9
9
  assert_match 'application/pdf', headers['Content-Type']
10
10
  end
11
11
 
12
+ test "gambas options" do
13
+ options = {
14
+ :format => 'A4'
15
+ }
16
+ Gambas.configure options
17
+ expected = Gambas.options
18
+ assert_equal expected, options
19
+ end
20
+
21
+ test "pdf creation with options" do
22
+ Gambas.configure ({
23
+ :page_layout => :landscape
24
+ })
25
+ output = Gambas::PdfCreator.pdf_document
26
+ assert_equal :landscape, output.page.layout
27
+ end
28
+
12
29
  def headers
13
30
  page.response_headers
14
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gambas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-23 00:00:00.000000000 Z
12
+ date: 2012-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70187906886980 !ruby/object:Gem::Requirement
16
+ requirement: &70321370073860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.2
21
+ version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70187906886980
24
+ version_requirements: *70321370073860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: prawn
27
- requirement: &70187906885320 !ruby/object:Gem::Requirement
27
+ requirement: &70321370072800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70187906885320
35
+ version_requirements: *70321370072800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: capybara
38
- requirement: &70187906884000 !ruby/object:Gem::Requirement
38
+ requirement: &70321370071780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70187906884000
46
+ version_requirements: *70321370071780
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
- requirement: &70187906883260 !ruby/object:Gem::Requirement
49
+ requirement: &70321370070160 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70187906883260
57
+ version_requirements: *70321370070160
58
58
  description: ''
59
59
  email:
60
60
  - artisinani@gmail.com
@@ -74,6 +74,7 @@ files:
74
74
  - test/dummy/app/controllers/home_controller.rb
75
75
  - test/dummy/app/helpers/application_helper.rb
76
76
  - test/dummy/app/views/home/index.pdf.prawn
77
+ - test/dummy/app/views/home/page_size.pdf.prawn
77
78
  - test/dummy/app/views/home/table_column_widths.pdf.prawn
78
79
  - test/dummy/app/views/home/table_content_and_subtables.pdf.prawn
79
80
  - test/dummy/app/views/home/table_flow_and_header.pdf.prawn
@@ -96,7 +97,6 @@ files:
96
97
  - test/dummy/config/routes.rb
97
98
  - test/dummy/config.ru
98
99
  - test/dummy/db/development.sqlite3
99
- - test/dummy/db/test.sqlite3
100
100
  - test/dummy/log/development.log
101
101
  - test/dummy/log/test.log
102
102
  - test/dummy/public/404.html
@@ -139,6 +139,7 @@ test_files:
139
139
  - test/dummy/app/controllers/home_controller.rb
140
140
  - test/dummy/app/helpers/application_helper.rb
141
141
  - test/dummy/app/views/home/index.pdf.prawn
142
+ - test/dummy/app/views/home/page_size.pdf.prawn
142
143
  - test/dummy/app/views/home/table_column_widths.pdf.prawn
143
144
  - test/dummy/app/views/home/table_content_and_subtables.pdf.prawn
144
145
  - test/dummy/app/views/home/table_flow_and_header.pdf.prawn
@@ -161,7 +162,6 @@ test_files:
161
162
  - test/dummy/config/routes.rb
162
163
  - test/dummy/config.ru
163
164
  - test/dummy/db/development.sqlite3
164
- - test/dummy/db/test.sqlite3
165
165
  - test/dummy/log/development.log
166
166
  - test/dummy/log/test.log
167
167
  - test/dummy/public/404.html
File without changes