excel_rails 0.3.1 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/VERSION +1 -1
- data/excel_rails.gemspec +12 -20
- data/lib/excel_rails.rb +3 -2
- metadata +8 -11
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 568cec8e8c5db610cafe6f3d205692c46fd6ba08c834e190f9b684264182aab2
|
4
|
+
data.tar.gz: 9a375e775abd0ce1aa181bf0aa87133e10b29ce2002a49429613851cf45f5164
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ccf43ae13be050b070bd8da40628b207d11d4bede261e85c1a0d68af8ed6d7b6f53625a71f227363bea3ca62200b473057a4ee6b356147ee388a56e790c37209
|
7
|
+
data.tar.gz: 68c79d0c9b0e1f1b51384a8a6ed090b3399a8d2e71605146b7eefd6648dd2c22fc6e47590655f51c4b4c6de6d6d1727b49454b2631385d39aa7a618ccfc0559c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.1
|
data/excel_rails.gemspec
CHANGED
@@ -2,16 +2,18 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: excel_rails 0.4.1 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
|
-
s.name = "excel_rails"
|
8
|
-
s.version = "0.
|
8
|
+
s.name = "excel_rails".freeze
|
9
|
+
s.version = "0.4.1"
|
9
10
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["Aditya Sanghi".freeze]
|
14
|
+
s.date = "2023-03-01"
|
15
|
+
s.description = "Allows you to program spreadsheets using .rxls views".freeze
|
16
|
+
s.email = "asanghi@me.com".freeze
|
15
17
|
s.extra_rdoc_files = [
|
16
18
|
"LICENSE",
|
17
19
|
"README"
|
@@ -29,18 +31,8 @@ Gem::Specification.new do |s|
|
|
29
31
|
"test/helper.rb",
|
30
32
|
"test/test_excel_rails.rb"
|
31
33
|
]
|
32
|
-
s.homepage = "http://github.com/asanghi/excel_rails"
|
33
|
-
s.
|
34
|
-
s.
|
35
|
-
s.summary = "Hook rxls to generate Excel documents in Rails 3"
|
36
|
-
|
37
|
-
if s.respond_to? :specification_version then
|
38
|
-
s.specification_version = 3
|
39
|
-
|
40
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
41
|
-
else
|
42
|
-
end
|
43
|
-
else
|
44
|
-
end
|
34
|
+
s.homepage = "http://github.com/asanghi/excel_rails".freeze
|
35
|
+
s.rubygems_version = "3.0.3.1".freeze
|
36
|
+
s.summary = "Hook rxls to generate Excel documents in Rails 3".freeze
|
45
37
|
end
|
46
38
|
|
data/lib/excel_rails.rb
CHANGED
@@ -26,8 +26,9 @@ module Spreadsheet
|
|
26
26
|
class TemplateHandler
|
27
27
|
class_attribute :default_format
|
28
28
|
self.default_format = :xls
|
29
|
-
def self.call(template)
|
30
|
-
|
29
|
+
def self.call(template, source = nil)
|
30
|
+
text = source || template.source
|
31
|
+
"sio = StringIO.new; #{text.strip}.write(sio); sio.string"
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excel_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.3.1
|
4
|
+
version: 0.4.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Aditya Sanghi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Allows you to program spreadsheets using .rxls views
|
15
14
|
email: asanghi@me.com
|
@@ -19,7 +18,7 @@ extra_rdoc_files:
|
|
19
18
|
- LICENSE
|
20
19
|
- README
|
21
20
|
files:
|
22
|
-
- .document
|
21
|
+
- ".document"
|
23
22
|
- LICENSE
|
24
23
|
- README
|
25
24
|
- Rakefile
|
@@ -32,26 +31,24 @@ files:
|
|
32
31
|
- test/test_excel_rails.rb
|
33
32
|
homepage: http://github.com/asanghi/excel_rails
|
34
33
|
licenses: []
|
34
|
+
metadata: {}
|
35
35
|
post_install_message:
|
36
36
|
rdoc_options: []
|
37
37
|
require_paths:
|
38
38
|
- lib
|
39
39
|
required_ruby_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
|
-
none: false
|
45
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
45
|
requirements:
|
47
|
-
- -
|
46
|
+
- - ">="
|
48
47
|
- !ruby/object:Gem::Version
|
49
48
|
version: '0'
|
50
|
-
none: false
|
51
49
|
requirements: []
|
52
|
-
|
53
|
-
rubygems_version: 1.8.24
|
50
|
+
rubygems_version: 3.0.3.1
|
54
51
|
signing_key:
|
55
|
-
specification_version:
|
52
|
+
specification_version: 4
|
56
53
|
summary: Hook rxls to generate Excel documents in Rails 3
|
57
54
|
test_files: []
|