thinreports-rails 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +8 -5
- data/README.md +1 -1
- data/gemfiles/Gemfile-rails.5.2.x +3 -0
- data/gemfiles/Gemfile-rails.6.0.x +3 -0
- data/lib/thinreports-rails/template_handler.rb +5 -3
- data/lib/thinreports-rails/version.rb +1 -1
- data/test/test_app/app/views/orders/no_set_layout.tlf +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fe4d26537fb4acf2975aad26dd66ab7d5eba2c05176d3b896327c12ac4e18ad5
|
4
|
+
data.tar.gz: 4b5fee8bd03e0da66c63bc91af403017cc83fa0bd33b07d8c86fd075359452b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e74f58287315807d59d4b1f247c4de3f93a76466790401de284ac887e527a1415cfdacc402a8e9aed8dc9ae366e55438e7647c3d02d5447de56b8357ce8424
|
7
|
+
data.tar.gz: bb858d2eb65093e0dee3e7ce9be6699b7ca8470849ab63a09490fa84a1e9a494699b191d4328bb5f1fd50b72a7943d8d001bbff43e40adcfd2b1b36d52d27854
|
data/.travis.yml
CHANGED
@@ -8,7 +8,6 @@ rvm:
|
|
8
8
|
- 2.4.1
|
9
9
|
- 2.3.1
|
10
10
|
- 2.2.4
|
11
|
-
- 2.2
|
12
11
|
- 2.1
|
13
12
|
|
14
13
|
gemfile:
|
@@ -20,17 +19,21 @@ gemfile:
|
|
20
19
|
- gemfiles/Gemfile-rails.4.2.x
|
21
20
|
- gemfiles/Gemfile-rails.5.0.x
|
22
21
|
- gemfiles/Gemfile-rails.5.1.x
|
22
|
+
- gemfiles/Gemfile-rails.5.2.x
|
23
23
|
|
24
24
|
matrix:
|
25
|
+
include:
|
26
|
+
- rvm: 2.5.6
|
27
|
+
gemfile: gemfiles/Gemfile-rails.6.0.x
|
28
|
+
- rvm: 2.6.4
|
29
|
+
gemfile: gemfiles/Gemfile-rails.6.0.x
|
25
30
|
exclude:
|
26
31
|
- rvm: 2.1
|
27
32
|
gemfile: gemfiles/Gemfile-rails.5.0.x
|
28
33
|
- rvm: 2.1
|
29
34
|
gemfile: gemfiles/Gemfile-rails.5.1.x
|
30
|
-
- rvm: 2.
|
31
|
-
gemfile: gemfiles/Gemfile-rails.5.
|
32
|
-
- rvm: 2.2
|
33
|
-
gemfile: gemfiles/Gemfile-rails.5.1.x
|
35
|
+
- rvm: 2.1
|
36
|
+
gemfile: gemfiles/Gemfile-rails.5.2.x
|
34
37
|
- rvm: 2.4.1
|
35
38
|
gemfile: gemfiles/Gemfile-rails.3.0.x
|
36
39
|
- rvm: 2.4.1
|
data/README.md
CHANGED
@@ -50,17 +50,19 @@ module ThinreportsRails
|
|
50
50
|
cattr_accessor :default_format
|
51
51
|
self.default_format = 'application/pdf'
|
52
52
|
|
53
|
-
def self.call(template)
|
53
|
+
def self.call(template, source = nil)
|
54
|
+
source ||= template.source
|
55
|
+
|
54
56
|
%{
|
55
57
|
if defined?(report)
|
56
|
-
#{
|
58
|
+
#{source}
|
57
59
|
else
|
58
60
|
generate_options = nil
|
59
61
|
Thinreports::Report.create do |__report__|
|
60
62
|
report = ThinreportsRails::ThinreportsTemplate.new(__report__, self, '#{template.virtual_path}')
|
61
63
|
report.set_layout :allow_no_layout => true
|
62
64
|
|
63
|
-
#{
|
65
|
+
#{source}
|
64
66
|
|
65
67
|
generate_options = report._generate_options
|
66
68
|
end.generate(*([generate_options].compact))
|
@@ -1 +1 @@
|
|
1
|
-
index.tlf
|
1
|
+
test/test_app/app/views/orders/index.tlf
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thinreports-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takeshi Shinoda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thinreports
|
@@ -58,6 +58,8 @@ files:
|
|
58
58
|
- gemfiles/Gemfile-rails.4.2.x
|
59
59
|
- gemfiles/Gemfile-rails.5.0.x
|
60
60
|
- gemfiles/Gemfile-rails.5.1.x
|
61
|
+
- gemfiles/Gemfile-rails.5.2.x
|
62
|
+
- gemfiles/Gemfile-rails.6.0.x
|
61
63
|
- lib/thinreports-rails.rb
|
62
64
|
- lib/thinreports-rails/railtie.rb
|
63
65
|
- lib/thinreports-rails/template_handler.rb
|
@@ -92,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
94
|
- !ruby/object:Gem::Version
|
93
95
|
version: '0'
|
94
96
|
requirements: []
|
95
|
-
|
96
|
-
rubygems_version: 2.5.1
|
97
|
+
rubygems_version: 3.0.3
|
97
98
|
signing_key:
|
98
99
|
specification_version: 4
|
99
100
|
summary: Rails plugin for ThinReports DSL.
|