activestorage-office-previewer 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +151 -0
  5. data/LICENSE.md +20 -0
  6. data/README.md +24 -0
  7. data/Rakefile +10 -0
  8. data/activestorage-office-previewer.gemspec +25 -0
  9. data/lib/active_storage/previewer/office_previewer.rb +57 -0
  10. data/lib/activestorage-office-previewer.rb +7 -0
  11. data/test/database/setup.rb +6 -0
  12. data/test/dummy/.browserslistrc +1 -0
  13. data/test/dummy/.gitignore +36 -0
  14. data/test/dummy/.ruby-version +1 -0
  15. data/test/dummy/README.md +24 -0
  16. data/test/dummy/Rakefile +6 -0
  17. data/test/dummy/app/assets/config/manifest.js +2 -0
  18. data/test/dummy/app/assets/images/.keep +0 -0
  19. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  20. data/test/dummy/app/channels/application_cable/channel.rb +4 -0
  21. data/test/dummy/app/channels/application_cable/connection.rb +4 -0
  22. data/test/dummy/app/controllers/application_controller.rb +2 -0
  23. data/test/dummy/app/controllers/concerns/.keep +0 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/javascript/channels/consumer.js +6 -0
  26. data/test/dummy/app/javascript/channels/index.js +5 -0
  27. data/test/dummy/app/javascript/packs/application.js +17 -0
  28. data/test/dummy/app/jobs/application_job.rb +7 -0
  29. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  30. data/test/dummy/app/models/application_record.rb +3 -0
  31. data/test/dummy/app/models/concerns/.keep +0 -0
  32. data/test/dummy/app/views/layouts/application.html.erb +15 -0
  33. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  34. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  35. data/test/dummy/babel.config.js +72 -0
  36. data/test/dummy/config.ru +5 -0
  37. data/test/dummy/config/application.rb +13 -0
  38. data/test/dummy/config/cable.yml +10 -0
  39. data/test/dummy/config/credentials.yml.enc +1 -0
  40. data/test/dummy/config/database.yml +25 -0
  41. data/test/dummy/config/environment.rb +5 -0
  42. data/test/dummy/config/environments/development.rb +62 -0
  43. data/test/dummy/config/environments/production.rb +112 -0
  44. data/test/dummy/config/environments/test.rb +48 -0
  45. data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  46. data/test/dummy/config/initializers/assets.rb +14 -0
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/test/dummy/config/initializers/content_security_policy.rb +30 -0
  49. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  50. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  51. data/test/dummy/config/initializers/inflections.rb +16 -0
  52. data/test/dummy/config/initializers/mime_types.rb +4 -0
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  54. data/test/dummy/config/locales/en.yml +33 -0
  55. data/test/dummy/config/puma.rb +38 -0
  56. data/test/dummy/config/routes.rb +3 -0
  57. data/test/dummy/config/spring.rb +6 -0
  58. data/test/dummy/config/storage.yml +34 -0
  59. data/test/dummy/config/webpack/development.js +5 -0
  60. data/test/dummy/config/webpack/environment.js +3 -0
  61. data/test/dummy/config/webpack/production.js +5 -0
  62. data/test/dummy/config/webpack/test.js +5 -0
  63. data/test/dummy/config/webpacker.yml +96 -0
  64. data/test/dummy/db/migrate/20191204133417_create_active_storage_tables.active_storage.rb +27 -0
  65. data/test/dummy/db/seeds.rb +7 -0
  66. data/test/dummy/lib/assets/.keep +0 -0
  67. data/test/dummy/lib/tasks/.keep +0 -0
  68. data/test/dummy/log/.keep +0 -0
  69. data/test/dummy/postcss.config.js +12 -0
  70. data/test/dummy/public/404.html +67 -0
  71. data/test/dummy/public/422.html +67 -0
  72. data/test/dummy/public/500.html +66 -0
  73. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  74. data/test/dummy/public/apple-touch-icon.png +0 -0
  75. data/test/dummy/public/favicon.ico +0 -0
  76. data/test/dummy/public/robots.txt +1 -0
  77. data/test/dummy/storage/.keep +0 -0
  78. data/test/dummy/test/application_system_test_case.rb +5 -0
  79. data/test/dummy/test/channels/application_cable/connection_test.rb +11 -0
  80. data/test/dummy/test/controllers/.keep +0 -0
  81. data/test/dummy/test/fixtures/.keep +0 -0
  82. data/test/dummy/test/fixtures/files/.keep +0 -0
  83. data/test/dummy/test/helpers/.keep +0 -0
  84. data/test/dummy/test/integration/.keep +0 -0
  85. data/test/dummy/test/mailers/.keep +0 -0
  86. data/test/dummy/test/models/.keep +0 -0
  87. data/test/dummy/test/system/.keep +0 -0
  88. data/test/dummy/test/test_helper.rb +13 -0
  89. data/test/dummy/tmp/.keep +0 -0
  90. data/test/dummy/vendor/.keep +0 -0
  91. data/test/fixtures/files/hello.docx +0 -0
  92. data/test/fixtures/files/hello.pptx +0 -0
  93. data/test/fixtures/files/hello.xlsx +0 -0
  94. data/test/office_previewer_test.rb +54 -0
  95. data/test/test_helper.rb +16 -0
  96. metadata +333 -0
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
@@ -0,0 +1 @@
1
+ # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
File without changes
@@ -0,0 +1,5 @@
1
+ require "test_helper"
2
+
3
+ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
4
+ driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
5
+ end
@@ -0,0 +1,11 @@
1
+ require "test_helper"
2
+
3
+ class ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase
4
+ # test "connects with cookies" do
5
+ # cookies.signed[:user_id] = 42
6
+ #
7
+ # connect
8
+ #
9
+ # assert_equal connection.user_id, "42"
10
+ # end
11
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,13 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+ require_relative '../config/environment'
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Run tests in parallel with specified workers
7
+ parallelize(workers: :number_of_processors)
8
+
9
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
File without changes
File without changes
@@ -0,0 +1,54 @@
1
+ require "test_helper"
2
+ require "database/setup"
3
+
4
+ require "mini_magick"
5
+
6
+ class ActiveStorage::Previewer::OfficePreviewerTest < ActiveSupport::TestCase
7
+ test "previewing a Word document" do
8
+ blob = create_file_blob \
9
+ filename: "hello.docx",
10
+ content_type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
11
+
12
+ ActiveStorage::Previewer::OfficePreviewer.new(blob).preview do |attachable|
13
+ assert_equal "image/png", attachable[:content_type]
14
+ assert_equal "hello.png", attachable[:filename]
15
+
16
+ image = MiniMagick::Image.read(attachable[:io])
17
+ assert_equal 1088, image.width
18
+ assert_equal 1408, image.height
19
+ assert_equal "image/png", image.mime_type
20
+ end
21
+ end
22
+
23
+ test "previewing a PowerPoint presentation" do
24
+ blob = create_file_blob \
25
+ filename: "hello.pptx",
26
+ content_type: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
27
+
28
+ ActiveStorage::Previewer::OfficePreviewer.new(blob).preview do |attachable|
29
+ assert_equal "image/png", attachable[:content_type]
30
+ assert_equal "hello.png", attachable[:filename]
31
+
32
+ image = MiniMagick::Image.read(attachable[:io])
33
+ assert_equal 1820, image.width
34
+ assert_equal 1365, image.height
35
+ assert_equal "image/png", image.mime_type
36
+ end
37
+ end
38
+
39
+ test "previewing an Excel spreadsheet" do
40
+ blob = create_file_blob \
41
+ filename: "hello.xlsx",
42
+ content_type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
43
+
44
+ ActiveStorage::Previewer::OfficePreviewer.new(blob).preview do |attachable|
45
+ assert_equal "image/png", attachable[:content_type]
46
+ assert_equal "hello.png", attachable[:filename]
47
+
48
+ image = MiniMagick::Image.read(attachable[:io])
49
+ assert_equal 1088, image.width
50
+ assert_equal 1408, image.height
51
+ assert_equal "image/png", image.mime_type
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,16 @@
1
+ ENV["RAILS_ENV"] ||= "test"
2
+ require_relative "dummy/config/environment.rb"
3
+
4
+ require "active_support/testing/autorun"
5
+
6
+ require "activestorage-office-previewer"
7
+
8
+ class ActiveSupport::TestCase
9
+ self.file_fixture_path = File.expand_path("fixtures/files", __dir__)
10
+
11
+ private
12
+ def create_file_blob(key: nil, filename: "racecar.jpg", content_type: "image/jpeg", metadata: nil, record: nil)
13
+ ActiveStorage::Blob.create_and_upload! io: file_fixture(filename).open,
14
+ filename: filename, content_type: content_type, metadata: metadata, record: record
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,333 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activestorage-office-previewer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - George Claghorn
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activestorage
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 6.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 6.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.17'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 13.0.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 13.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 5.13.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 5.13.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: mini_magick
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 4.9.5
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 4.9.5
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.4.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.4.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: byebug
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 6.0.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 6.0.0
125
+ description:
126
+ email: george@basecamp.com
127
+ executables: []
128
+ extensions: []
129
+ extra_rdoc_files: []
130
+ files:
131
+ - ".gitignore"
132
+ - Gemfile
133
+ - Gemfile.lock
134
+ - LICENSE.md
135
+ - README.md
136
+ - Rakefile
137
+ - activestorage-office-previewer.gemspec
138
+ - lib/active_storage/previewer/office_previewer.rb
139
+ - lib/activestorage-office-previewer.rb
140
+ - test/database/setup.rb
141
+ - test/dummy/.browserslistrc
142
+ - test/dummy/.gitignore
143
+ - test/dummy/.ruby-version
144
+ - test/dummy/README.md
145
+ - test/dummy/Rakefile
146
+ - test/dummy/app/assets/config/manifest.js
147
+ - test/dummy/app/assets/images/.keep
148
+ - test/dummy/app/assets/stylesheets/application.css
149
+ - test/dummy/app/channels/application_cable/channel.rb
150
+ - test/dummy/app/channels/application_cable/connection.rb
151
+ - test/dummy/app/controllers/application_controller.rb
152
+ - test/dummy/app/controllers/concerns/.keep
153
+ - test/dummy/app/helpers/application_helper.rb
154
+ - test/dummy/app/javascript/channels/consumer.js
155
+ - test/dummy/app/javascript/channels/index.js
156
+ - test/dummy/app/javascript/packs/application.js
157
+ - test/dummy/app/jobs/application_job.rb
158
+ - test/dummy/app/mailers/application_mailer.rb
159
+ - test/dummy/app/models/application_record.rb
160
+ - test/dummy/app/models/concerns/.keep
161
+ - test/dummy/app/views/layouts/application.html.erb
162
+ - test/dummy/app/views/layouts/mailer.html.erb
163
+ - test/dummy/app/views/layouts/mailer.text.erb
164
+ - test/dummy/babel.config.js
165
+ - test/dummy/config.ru
166
+ - test/dummy/config/application.rb
167
+ - test/dummy/config/cable.yml
168
+ - test/dummy/config/credentials.yml.enc
169
+ - test/dummy/config/database.yml
170
+ - test/dummy/config/environment.rb
171
+ - test/dummy/config/environments/development.rb
172
+ - test/dummy/config/environments/production.rb
173
+ - test/dummy/config/environments/test.rb
174
+ - test/dummy/config/initializers/application_controller_renderer.rb
175
+ - test/dummy/config/initializers/assets.rb
176
+ - test/dummy/config/initializers/backtrace_silencers.rb
177
+ - test/dummy/config/initializers/content_security_policy.rb
178
+ - test/dummy/config/initializers/cookies_serializer.rb
179
+ - test/dummy/config/initializers/filter_parameter_logging.rb
180
+ - test/dummy/config/initializers/inflections.rb
181
+ - test/dummy/config/initializers/mime_types.rb
182
+ - test/dummy/config/initializers/wrap_parameters.rb
183
+ - test/dummy/config/locales/en.yml
184
+ - test/dummy/config/puma.rb
185
+ - test/dummy/config/routes.rb
186
+ - test/dummy/config/spring.rb
187
+ - test/dummy/config/storage.yml
188
+ - test/dummy/config/webpack/development.js
189
+ - test/dummy/config/webpack/environment.js
190
+ - test/dummy/config/webpack/production.js
191
+ - test/dummy/config/webpack/test.js
192
+ - test/dummy/config/webpacker.yml
193
+ - test/dummy/db/migrate/20191204133417_create_active_storage_tables.active_storage.rb
194
+ - test/dummy/db/seeds.rb
195
+ - test/dummy/lib/assets/.keep
196
+ - test/dummy/lib/tasks/.keep
197
+ - test/dummy/log/.keep
198
+ - test/dummy/postcss.config.js
199
+ - test/dummy/public/404.html
200
+ - test/dummy/public/422.html
201
+ - test/dummy/public/500.html
202
+ - test/dummy/public/apple-touch-icon-precomposed.png
203
+ - test/dummy/public/apple-touch-icon.png
204
+ - test/dummy/public/favicon.ico
205
+ - test/dummy/public/robots.txt
206
+ - test/dummy/storage/.keep
207
+ - test/dummy/test/application_system_test_case.rb
208
+ - test/dummy/test/channels/application_cable/connection_test.rb
209
+ - test/dummy/test/controllers/.keep
210
+ - test/dummy/test/fixtures/.keep
211
+ - test/dummy/test/fixtures/files/.keep
212
+ - test/dummy/test/helpers/.keep
213
+ - test/dummy/test/integration/.keep
214
+ - test/dummy/test/mailers/.keep
215
+ - test/dummy/test/models/.keep
216
+ - test/dummy/test/system/.keep
217
+ - test/dummy/test/test_helper.rb
218
+ - test/dummy/tmp/.keep
219
+ - test/dummy/vendor/.keep
220
+ - test/fixtures/files/hello.docx
221
+ - test/fixtures/files/hello.pptx
222
+ - test/fixtures/files/hello.xlsx
223
+ - test/office_previewer_test.rb
224
+ - test/test_helper.rb
225
+ homepage: https://github.com/basecamp/activestorage-office-previewer
226
+ licenses:
227
+ - MIT
228
+ metadata: {}
229
+ post_install_message:
230
+ rdoc_options: []
231
+ require_paths:
232
+ - lib
233
+ required_ruby_version: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: 2.6.0
238
+ required_rubygems_version: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
243
+ requirements: []
244
+ rubygems_version: 3.0.3
245
+ signing_key:
246
+ specification_version: 4
247
+ summary: Active Storage previewer for Microsoft Office files based on LibreOffice
248
+ test_files:
249
+ - test/database/setup.rb
250
+ - test/dummy/.browserslistrc
251
+ - test/dummy/.gitignore
252
+ - test/dummy/.ruby-version
253
+ - test/dummy/README.md
254
+ - test/dummy/Rakefile
255
+ - test/dummy/app/assets/config/manifest.js
256
+ - test/dummy/app/assets/images/.keep
257
+ - test/dummy/app/assets/stylesheets/application.css
258
+ - test/dummy/app/channels/application_cable/channel.rb
259
+ - test/dummy/app/channels/application_cable/connection.rb
260
+ - test/dummy/app/controllers/application_controller.rb
261
+ - test/dummy/app/controllers/concerns/.keep
262
+ - test/dummy/app/helpers/application_helper.rb
263
+ - test/dummy/app/javascript/channels/consumer.js
264
+ - test/dummy/app/javascript/channels/index.js
265
+ - test/dummy/app/javascript/packs/application.js
266
+ - test/dummy/app/jobs/application_job.rb
267
+ - test/dummy/app/mailers/application_mailer.rb
268
+ - test/dummy/app/models/application_record.rb
269
+ - test/dummy/app/models/concerns/.keep
270
+ - test/dummy/app/views/layouts/application.html.erb
271
+ - test/dummy/app/views/layouts/mailer.html.erb
272
+ - test/dummy/app/views/layouts/mailer.text.erb
273
+ - test/dummy/babel.config.js
274
+ - test/dummy/config.ru
275
+ - test/dummy/config/application.rb
276
+ - test/dummy/config/cable.yml
277
+ - test/dummy/config/credentials.yml.enc
278
+ - test/dummy/config/database.yml
279
+ - test/dummy/config/environment.rb
280
+ - test/dummy/config/environments/development.rb
281
+ - test/dummy/config/environments/production.rb
282
+ - test/dummy/config/environments/test.rb
283
+ - test/dummy/config/initializers/application_controller_renderer.rb
284
+ - test/dummy/config/initializers/assets.rb
285
+ - test/dummy/config/initializers/backtrace_silencers.rb
286
+ - test/dummy/config/initializers/content_security_policy.rb
287
+ - test/dummy/config/initializers/cookies_serializer.rb
288
+ - test/dummy/config/initializers/filter_parameter_logging.rb
289
+ - test/dummy/config/initializers/inflections.rb
290
+ - test/dummy/config/initializers/mime_types.rb
291
+ - test/dummy/config/initializers/wrap_parameters.rb
292
+ - test/dummy/config/locales/en.yml
293
+ - test/dummy/config/puma.rb
294
+ - test/dummy/config/routes.rb
295
+ - test/dummy/config/spring.rb
296
+ - test/dummy/config/storage.yml
297
+ - test/dummy/config/webpack/development.js
298
+ - test/dummy/config/webpack/environment.js
299
+ - test/dummy/config/webpack/production.js
300
+ - test/dummy/config/webpack/test.js
301
+ - test/dummy/config/webpacker.yml
302
+ - test/dummy/db/migrate/20191204133417_create_active_storage_tables.active_storage.rb
303
+ - test/dummy/db/seeds.rb
304
+ - test/dummy/lib/assets/.keep
305
+ - test/dummy/lib/tasks/.keep
306
+ - test/dummy/log/.keep
307
+ - test/dummy/postcss.config.js
308
+ - test/dummy/public/404.html
309
+ - test/dummy/public/422.html
310
+ - test/dummy/public/500.html
311
+ - test/dummy/public/apple-touch-icon-precomposed.png
312
+ - test/dummy/public/apple-touch-icon.png
313
+ - test/dummy/public/favicon.ico
314
+ - test/dummy/public/robots.txt
315
+ - test/dummy/storage/.keep
316
+ - test/dummy/test/application_system_test_case.rb
317
+ - test/dummy/test/channels/application_cable/connection_test.rb
318
+ - test/dummy/test/controllers/.keep
319
+ - test/dummy/test/fixtures/.keep
320
+ - test/dummy/test/fixtures/files/.keep
321
+ - test/dummy/test/helpers/.keep
322
+ - test/dummy/test/integration/.keep
323
+ - test/dummy/test/mailers/.keep
324
+ - test/dummy/test/models/.keep
325
+ - test/dummy/test/system/.keep
326
+ - test/dummy/test/test_helper.rb
327
+ - test/dummy/tmp/.keep
328
+ - test/dummy/vendor/.keep
329
+ - test/fixtures/files/hello.docx
330
+ - test/fixtures/files/hello.pptx
331
+ - test/fixtures/files/hello.xlsx
332
+ - test/office_previewer_test.rb
333
+ - test/test_helper.rb