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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 97d28ba1835e73d94428582f572717934b311a17
4
- data.tar.gz: c4cbc38997e90b1ed60ac0bec5758fa9ff5756d2
2
+ SHA256:
3
+ metadata.gz: fe4d26537fb4acf2975aad26dd66ab7d5eba2c05176d3b896327c12ac4e18ad5
4
+ data.tar.gz: 4b5fee8bd03e0da66c63bc91af403017cc83fa0bd33b07d8c86fd075359452b3
5
5
  SHA512:
6
- metadata.gz: 10a19339cc4a8eedb79161c33c4415bcf13f82f0201a1d519f3a96868d2212039509256753b8c2b4461434c4a58879dc306a0c4ab4fb9d7238dce1356b3974ae
7
- data.tar.gz: e10e97c23897dd27bafaf35ecae29e598c7e4cdfb36fcfe55d0340ce173358d296a292b9f0904604feebc764653d4892294751e1775b15cdafcef5d09b5e0d10
6
+ metadata.gz: d6e74f58287315807d59d4b1f247c4de3f93a76466790401de284ac887e527a1415cfdacc402a8e9aed8dc9ae366e55438e7647c3d02d5447de56b8357ce8424
7
+ data.tar.gz: bb858d2eb65093e0dee3e7ce9be6699b7ca8470849ab63a09490fa84a1e9a494699b191d4328bb5f1fd50b72a7943d8d001bbff43e40adcfd2b1b36d52d27854
@@ -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.2
31
- gemfile: gemfiles/Gemfile-rails.5.0.x
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
@@ -9,7 +9,7 @@ Oldname: thinreports-handler
9
9
  ## Supported versions
10
10
 
11
11
  * Ruby 2.1.X, 2.2.X, 2.3.X
12
- * Rails 3.X, 4.X, 5.X
12
+ * Rails 3.X, 4.X, 5.X, 6.0
13
13
  * ThinReports 0.10.0 or later
14
14
 
15
15
  ## Installation
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+ gem 'rails', '~> 5.2.0'
3
+ gemspec :path => '../'
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+ gem 'rails', '~> 6.0.0'
3
+ gemspec :path => '../'
@@ -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
- #{template.source}
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
- #{template.source}
65
+ #{source}
64
66
 
65
67
  generate_options = report._generate_options
66
68
  end.generate(*([generate_options].compact))
@@ -1,4 +1,4 @@
1
1
  module ThinreportsRails
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
4
4
 
@@ -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.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: 2017-08-14 00:00:00.000000000 Z
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
- rubyforge_project:
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.