spreadsheet_architect 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -26
- data/README.md +15 -15
- data/Rakefile +5 -3
- data/lib/spreadsheet_architect/class_methods/ods.rb +16 -2
- data/lib/spreadsheet_architect/monkey_patches/axlsx_column_width.rb +33 -3
- data/lib/spreadsheet_architect/utils/xlsx.rb +36 -18
- data/lib/spreadsheet_architect/version.rb +1 -1
- data/test/custom_assertions.rb +21 -0
- data/test/{rails_app → dummy_app}/Rakefile +3 -2
- data/test/{rails_app/public/apple-touch-icon-precomposed.png → dummy_app/app/assets/javascripts/application.js} +0 -0
- data/test/dummy_app/app/assets/stylesheets/application.css +3 -0
- data/test/{rails_app → dummy_app}/app/controllers/application_controller.rb +1 -1
- data/test/{rails_app → dummy_app}/app/controllers/spreadsheets_controller.rb +0 -0
- data/test/{rails_app → dummy_app}/app/models/active_model_object.rb +0 -0
- data/test/{rails_app → dummy_app}/app/models/application_record.rb +0 -0
- data/test/{rails_app → dummy_app}/app/models/bad_plain_ruby_object.rb +0 -0
- data/test/{rails_app → dummy_app}/app/models/custom_post.rb +2 -2
- data/test/{rails_app → dummy_app}/app/models/plain_ruby_object.rb +0 -0
- data/test/{rails_app → dummy_app}/app/models/post.rb +0 -0
- data/test/dummy_app/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_app/app/views/reports/sample.html.erb +1 -0
- data/test/dummy_app/config.ru +4 -0
- data/test/dummy_app/config/application.rb +69 -0
- data/test/dummy_app/config/boot.rb +10 -0
- data/test/dummy_app/config/database.yml +25 -0
- data/test/dummy_app/config/environment.rb +5 -0
- data/test/dummy_app/config/environments/development.rb +30 -0
- data/test/dummy_app/config/environments/production.rb +60 -0
- data/test/dummy_app/config/environments/test.rb +41 -0
- data/test/{rails_app → dummy_app}/config/initializers/backtrace_silencers.rb +0 -0
- data/test/dummy_app/config/initializers/inflections.rb +10 -0
- data/test/{rails_app → dummy_app}/config/initializers/mime_types.rb +1 -0
- data/test/dummy_app/config/initializers/secret_token.rb +11 -0
- data/test/dummy_app/config/initializers/session_store.rb +8 -0
- data/test/dummy_app/config/initializers/spreadsheet_architect.rb +11 -0
- data/test/{rails_app → dummy_app}/config/initializers/wrap_parameters.rb +5 -5
- data/test/dummy_app/config/locales/en.yml +5 -0
- data/test/{rails_app → dummy_app}/config/routes.rb +1 -1
- data/test/{rails_app → dummy_app}/config/secrets.yml +4 -4
- data/test/{rails_app → dummy_app}/db/migrate/20170103234524_add_posts.rb +0 -0
- data/test/{rails_app → dummy_app}/db/schema.rb +4 -4
- data/test/{rails_app → dummy_app}/db/test.sqlite3 +0 -0
- data/test/dummy_app/log/development.log +28 -0
- data/test/dummy_app/log/test.log +24564 -0
- data/test/dummy_app/tmp/active_model_object/csv.csv +21 -0
- data/test/dummy_app/tmp/active_model_object/ods.ods +0 -0
- data/test/dummy_app/tmp/active_model_object/xlsx.xlsx +0 -0
- data/test/dummy_app/tmp/custom_posts/csv.csv +6 -0
- data/test/dummy_app/tmp/custom_posts/empty.xlsx +0 -0
- data/test/dummy_app/tmp/custom_posts/ods.ods +0 -0
- data/test/dummy_app/tmp/custom_posts/xlsx.xlsx +0 -0
- data/test/{rails_app → dummy_app}/tmp/empty_model.csv +0 -0
- data/test/dummy_app/tmp/empty_model.xlsx +0 -0
- data/test/{rails_app → dummy_app}/tmp/empty_sa.csv +0 -0
- data/test/dummy_app/tmp/empty_sa.xlsx +0 -0
- data/test/dummy_app/tmp/extreme.xlsx +0 -0
- data/test/dummy_app/tmp/integration_tests/alt_xlsx.xlsx +0 -0
- data/test/dummy_app/tmp/integration_tests/csv.csv +6 -0
- data/test/dummy_app/tmp/integration_tests/ods.ods +0 -0
- data/test/dummy_app/tmp/integration_tests/xlsx.xlsx +0 -0
- data/test/dummy_app/tmp/model.csv +6 -0
- data/test/dummy_app/tmp/model.xlsx +0 -0
- data/test/dummy_app/tmp/ods/empty_model.ods +0 -0
- data/test/{rails_app → dummy_app}/tmp/ods/empty_sa.ods +0 -0
- data/test/dummy_app/tmp/ods/model.ods +0 -0
- data/test/dummy_app/tmp/ods/model_options.ods +0 -0
- data/test/dummy_app/tmp/ods/sa.ods +0 -0
- data/test/dummy_app/tmp/options.csv +6 -0
- data/test/dummy_app/tmp/plain_ruby_object/csv.csv +4 -0
- data/test/dummy_app/tmp/plain_ruby_object/ods.ods +0 -0
- data/test/dummy_app/tmp/plain_ruby_object/xlsx.xlsx +0 -0
- data/test/dummy_app/tmp/posts/csv.csv +6 -0
- data/test/dummy_app/tmp/posts/empty.xlsx +0 -0
- data/test/dummy_app/tmp/posts/ods.ods +0 -0
- data/test/dummy_app/tmp/posts/xlsx.xlsx +0 -0
- data/test/{rails_app → dummy_app}/tmp/sa.csv +0 -0
- data/test/dummy_app/tmp/sa.xlsx +0 -0
- data/test/integration/application_test.rb +49 -0
- data/test/{rails_app/test/models → models}/active_model_object_test.rb +1 -4
- data/test/{rails_app/test/models → models}/bad_plain_ruby_object_test.rb +0 -2
- data/test/{rails_app/test/models → models}/csv_test.rb +5 -6
- data/test/{rails_app/test/models → models}/custom_post_test.rb +0 -3
- data/test/{rails_app/test/models → models}/ods_test.rb +6 -9
- data/test/{rails_app/test/models → models}/plain_ruby_object_test.rb +1 -4
- data/test/{rails_app/test/models → models}/post_test.rb +1 -4
- data/test/{rails_app/test/models → models}/spreadsheet_architect_utils_test.rb +0 -1
- data/test/{rails_app/test/models → models}/xlsx_test.rb +6 -7
- data/test/spreadsheet_architect_test.rb +11 -0
- data/test/test_helper.rb +35 -0
- metadata +186 -228
- data/test/rails_app/Gemfile +0 -17
- data/test/rails_app/Gemfile.lock +0 -176
- data/test/rails_app/README.md +0 -24
- data/test/rails_app/app/assets/config/manifest.js +0 -3
- data/test/rails_app/app/assets/javascripts/application.js +0 -16
- data/test/rails_app/app/assets/javascripts/cable.js +0 -13
- data/test/rails_app/app/assets/stylesheets/application.css +0 -15
- data/test/rails_app/app/channels/application_cable/channel.rb +0 -4
- data/test/rails_app/app/channels/application_cable/connection.rb +0 -4
- data/test/rails_app/app/helpers/application_helper.rb +0 -2
- data/test/rails_app/app/jobs/application_job.rb +0 -2
- data/test/rails_app/app/mailers/application_mailer.rb +0 -4
- data/test/rails_app/app/views/layouts/application.html.erb +0 -14
- data/test/rails_app/app/views/layouts/mailer.html.erb +0 -13
- data/test/rails_app/app/views/layouts/mailer.text.erb +0 -1
- data/test/rails_app/bin/bundle +0 -3
- data/test/rails_app/bin/rails +0 -9
- data/test/rails_app/bin/rake +0 -9
- data/test/rails_app/bin/setup +0 -34
- data/test/rails_app/bin/spring +0 -16
- data/test/rails_app/bin/update +0 -29
- data/test/rails_app/config.ru +0 -5
- data/test/rails_app/config/application.rb +0 -15
- data/test/rails_app/config/boot.rb +0 -3
- data/test/rails_app/config/cable.yml +0 -9
- data/test/rails_app/config/database.yml +0 -16
- data/test/rails_app/config/environment.rb +0 -5
- data/test/rails_app/config/environments/development.rb +0 -54
- data/test/rails_app/config/environments/production.rb +0 -86
- data/test/rails_app/config/environments/test.rb +0 -42
- data/test/rails_app/config/initializers/application_controller_renderer.rb +0 -6
- data/test/rails_app/config/initializers/assets.rb +0 -11
- data/test/rails_app/config/initializers/cookies_serializer.rb +0 -5
- data/test/rails_app/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/rails_app/config/initializers/inflections.rb +0 -16
- data/test/rails_app/config/initializers/new_framework_defaults.rb +0 -24
- data/test/rails_app/config/initializers/session_store.rb +0 -3
- data/test/rails_app/config/locales/en.yml +0 -23
- data/test/rails_app/db/development.sqlite3 +0 -0
- data/test/rails_app/db/seeds.rb +0 -7
- data/test/rails_app/log/development.log +0 -1195
- data/test/rails_app/log/test.log +0 -55339
- data/test/rails_app/public/404.html +0 -67
- data/test/rails_app/public/422.html +0 -67
- data/test/rails_app/public/500.html +0 -66
- data/test/rails_app/public/apple-touch-icon.png +0 -0
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_app/public/robots.txt +0 -5
- data/test/rails_app/test/controllers/spreadsheets_controller_test.rb +0 -46
- data/test/rails_app/test/test_helper.rb +0 -21
- data/test/rails_app/tmp/active_model_object/csv.csv +0 -21
- data/test/rails_app/tmp/active_model_object/ods.ods +0 -0
- data/test/rails_app/tmp/active_model_object/xlsx.xlsx +0 -0
- data/test/rails_app/tmp/controller_tests/alt_xlsx.xlsx +0 -0
- data/test/rails_app/tmp/controller_tests/csv.csv +0 -1
- data/test/rails_app/tmp/controller_tests/ods.ods +0 -0
- data/test/rails_app/tmp/controller_tests/xlsx.xlsx +0 -0
- data/test/rails_app/tmp/custom_posts/csv.csv +0 -1
- data/test/rails_app/tmp/custom_posts/empty.xlsx +0 -0
- data/test/rails_app/tmp/custom_posts/ods.ods +0 -0
- data/test/rails_app/tmp/custom_posts/xlsx.xlsx +0 -0
- data/test/rails_app/tmp/empty_model.xlsx +0 -0
- data/test/rails_app/tmp/empty_sa.xlsx +0 -0
- data/test/rails_app/tmp/extreme.xlsx +0 -0
- data/test/rails_app/tmp/model.csv +0 -1
- data/test/rails_app/tmp/model.xlsx +0 -0
- data/test/rails_app/tmp/ods/empty_model.ods +0 -0
- data/test/rails_app/tmp/ods/model.ods +0 -0
- data/test/rails_app/tmp/ods/model_options.ods +0 -0
- data/test/rails_app/tmp/ods/sa.ods +0 -0
- data/test/rails_app/tmp/options.csv +0 -1
- data/test/rails_app/tmp/plain_ruby_object/csv.csv +0 -4
- data/test/rails_app/tmp/plain_ruby_object/ods.ods +0 -0
- data/test/rails_app/tmp/plain_ruby_object/xlsx.xlsx +0 -0
- data/test/rails_app/tmp/posts/csv.csv +0 -1
- data/test/rails_app/tmp/posts/empty.xlsx +0 -0
- data/test/rails_app/tmp/posts/ods.ods +0 -0
- data/test/rails_app/tmp/posts/xlsx.xlsx +0 -0
- data/test/rails_app/tmp/sa.xlsx +0 -0
data/test/rails_app/Gemfile
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
gem 'rails', '~> 5'
|
|
5
|
-
gem 'sqlite3'
|
|
6
|
-
|
|
7
|
-
gem 'spreadsheet_architect', path: '../../'
|
|
8
|
-
gem 'responders'
|
|
9
|
-
|
|
10
|
-
gem 'listen'
|
|
11
|
-
|
|
12
|
-
gem 'database_cleaner'
|
|
13
|
-
gem 'minitest-reporters'
|
|
14
|
-
gem 'minitest-rails'
|
|
15
|
-
gem 'rails-controller-testing'
|
|
16
|
-
gem 'better_errors'
|
|
17
|
-
gem 'binding_of_caller'
|
data/test/rails_app/Gemfile.lock
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: ../../
|
|
3
|
-
specs:
|
|
4
|
-
spreadsheet_architect (2.0.1)
|
|
5
|
-
axlsx (>= 2.0)
|
|
6
|
-
axlsx_styler (>= 0.1.7)
|
|
7
|
-
rodf (>= 1.0.0)
|
|
8
|
-
|
|
9
|
-
GEM
|
|
10
|
-
remote: https://rubygems.org/
|
|
11
|
-
specs:
|
|
12
|
-
actioncable (5.0.1)
|
|
13
|
-
actionpack (= 5.0.1)
|
|
14
|
-
nio4r (~> 1.2)
|
|
15
|
-
websocket-driver (~> 0.6.1)
|
|
16
|
-
actionmailer (5.0.1)
|
|
17
|
-
actionpack (= 5.0.1)
|
|
18
|
-
actionview (= 5.0.1)
|
|
19
|
-
activejob (= 5.0.1)
|
|
20
|
-
mail (~> 2.5, >= 2.5.4)
|
|
21
|
-
rails-dom-testing (~> 2.0)
|
|
22
|
-
actionpack (5.0.1)
|
|
23
|
-
actionview (= 5.0.1)
|
|
24
|
-
activesupport (= 5.0.1)
|
|
25
|
-
rack (~> 2.0)
|
|
26
|
-
rack-test (~> 0.6.3)
|
|
27
|
-
rails-dom-testing (~> 2.0)
|
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
29
|
-
actionview (5.0.1)
|
|
30
|
-
activesupport (= 5.0.1)
|
|
31
|
-
builder (~> 3.1)
|
|
32
|
-
erubis (~> 2.7.0)
|
|
33
|
-
rails-dom-testing (~> 2.0)
|
|
34
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
35
|
-
activejob (5.0.1)
|
|
36
|
-
activesupport (= 5.0.1)
|
|
37
|
-
globalid (>= 0.3.6)
|
|
38
|
-
activemodel (5.0.1)
|
|
39
|
-
activesupport (= 5.0.1)
|
|
40
|
-
activerecord (5.0.1)
|
|
41
|
-
activemodel (= 5.0.1)
|
|
42
|
-
activesupport (= 5.0.1)
|
|
43
|
-
arel (~> 7.0)
|
|
44
|
-
activesupport (5.0.1)
|
|
45
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
46
|
-
i18n (~> 0.7)
|
|
47
|
-
minitest (~> 5.1)
|
|
48
|
-
tzinfo (~> 1.1)
|
|
49
|
-
ansi (1.5.0)
|
|
50
|
-
arel (7.1.4)
|
|
51
|
-
axlsx (2.0.1)
|
|
52
|
-
htmlentities (~> 4.3.1)
|
|
53
|
-
nokogiri (>= 1.4.1)
|
|
54
|
-
rubyzip (~> 1.0.0)
|
|
55
|
-
axlsx_styler (0.1.7)
|
|
56
|
-
activesupport (>= 3.1)
|
|
57
|
-
axlsx (~> 2.0)
|
|
58
|
-
better_errors (2.1.1)
|
|
59
|
-
coderay (>= 1.0.0)
|
|
60
|
-
erubis (>= 2.6.6)
|
|
61
|
-
rack (>= 0.9.0)
|
|
62
|
-
binding_of_caller (0.7.2)
|
|
63
|
-
debug_inspector (>= 0.0.1)
|
|
64
|
-
builder (3.2.2)
|
|
65
|
-
coderay (1.1.1)
|
|
66
|
-
concurrent-ruby (1.0.4)
|
|
67
|
-
database_cleaner (1.5.3)
|
|
68
|
-
debug_inspector (0.0.2)
|
|
69
|
-
erubis (2.7.0)
|
|
70
|
-
ffi (1.9.14)
|
|
71
|
-
globalid (0.3.7)
|
|
72
|
-
activesupport (>= 4.1.0)
|
|
73
|
-
htmlentities (4.3.4)
|
|
74
|
-
i18n (0.7.0)
|
|
75
|
-
listen (3.1.5)
|
|
76
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
77
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
|
78
|
-
ruby_dep (~> 1.2)
|
|
79
|
-
loofah (2.0.3)
|
|
80
|
-
nokogiri (>= 1.5.9)
|
|
81
|
-
mail (2.6.4)
|
|
82
|
-
mime-types (>= 1.16, < 4)
|
|
83
|
-
method_source (0.8.2)
|
|
84
|
-
mime-types (3.1)
|
|
85
|
-
mime-types-data (~> 3.2015)
|
|
86
|
-
mime-types-data (3.2016.0521)
|
|
87
|
-
mini_portile2 (2.1.0)
|
|
88
|
-
minitest (5.10.1)
|
|
89
|
-
minitest-rails (3.0.0)
|
|
90
|
-
minitest (~> 5.8)
|
|
91
|
-
railties (~> 5.0)
|
|
92
|
-
minitest-reporters (1.1.13)
|
|
93
|
-
ansi
|
|
94
|
-
builder
|
|
95
|
-
minitest (>= 5.0)
|
|
96
|
-
ruby-progressbar
|
|
97
|
-
nio4r (1.2.1)
|
|
98
|
-
nokogiri (1.7.0)
|
|
99
|
-
mini_portile2 (~> 2.1.0)
|
|
100
|
-
rack (2.0.1)
|
|
101
|
-
rack-test (0.6.3)
|
|
102
|
-
rack (>= 1.0)
|
|
103
|
-
rails (5.0.1)
|
|
104
|
-
actioncable (= 5.0.1)
|
|
105
|
-
actionmailer (= 5.0.1)
|
|
106
|
-
actionpack (= 5.0.1)
|
|
107
|
-
actionview (= 5.0.1)
|
|
108
|
-
activejob (= 5.0.1)
|
|
109
|
-
activemodel (= 5.0.1)
|
|
110
|
-
activerecord (= 5.0.1)
|
|
111
|
-
activesupport (= 5.0.1)
|
|
112
|
-
bundler (>= 1.3.0, < 2.0)
|
|
113
|
-
railties (= 5.0.1)
|
|
114
|
-
sprockets-rails (>= 2.0.0)
|
|
115
|
-
rails-controller-testing (1.0.1)
|
|
116
|
-
actionpack (~> 5.x)
|
|
117
|
-
actionview (~> 5.x)
|
|
118
|
-
activesupport (~> 5.x)
|
|
119
|
-
rails-dom-testing (2.0.2)
|
|
120
|
-
activesupport (>= 4.2.0, < 6.0)
|
|
121
|
-
nokogiri (~> 1.6)
|
|
122
|
-
rails-html-sanitizer (1.0.3)
|
|
123
|
-
loofah (~> 2.0)
|
|
124
|
-
railties (5.0.1)
|
|
125
|
-
actionpack (= 5.0.1)
|
|
126
|
-
activesupport (= 5.0.1)
|
|
127
|
-
method_source
|
|
128
|
-
rake (>= 0.8.7)
|
|
129
|
-
thor (>= 0.18.1, < 2.0)
|
|
130
|
-
rake (12.0.0)
|
|
131
|
-
rb-fsevent (0.9.8)
|
|
132
|
-
rb-inotify (0.9.7)
|
|
133
|
-
ffi (>= 0.5.0)
|
|
134
|
-
responders (2.3.0)
|
|
135
|
-
railties (>= 4.2.0, < 5.1)
|
|
136
|
-
rodf (1.0.0)
|
|
137
|
-
activesupport (>= 3.0)
|
|
138
|
-
builder (>= 3.0)
|
|
139
|
-
rubyzip (>= 1.0)
|
|
140
|
-
ruby-progressbar (1.8.1)
|
|
141
|
-
ruby_dep (1.5.0)
|
|
142
|
-
rubyzip (1.0.0)
|
|
143
|
-
sprockets (3.7.1)
|
|
144
|
-
concurrent-ruby (~> 1.0)
|
|
145
|
-
rack (> 1, < 3)
|
|
146
|
-
sprockets-rails (3.2.0)
|
|
147
|
-
actionpack (>= 4.0)
|
|
148
|
-
activesupport (>= 4.0)
|
|
149
|
-
sprockets (>= 3.0.0)
|
|
150
|
-
sqlite3 (1.3.12)
|
|
151
|
-
thor (0.19.4)
|
|
152
|
-
thread_safe (0.3.5)
|
|
153
|
-
tzinfo (1.2.2)
|
|
154
|
-
thread_safe (~> 0.1)
|
|
155
|
-
websocket-driver (0.6.4)
|
|
156
|
-
websocket-extensions (>= 0.1.0)
|
|
157
|
-
websocket-extensions (0.1.2)
|
|
158
|
-
|
|
159
|
-
PLATFORMS
|
|
160
|
-
ruby
|
|
161
|
-
|
|
162
|
-
DEPENDENCIES
|
|
163
|
-
better_errors
|
|
164
|
-
binding_of_caller
|
|
165
|
-
database_cleaner
|
|
166
|
-
listen
|
|
167
|
-
minitest-rails
|
|
168
|
-
minitest-reporters
|
|
169
|
-
rails (~> 5)
|
|
170
|
-
rails-controller-testing
|
|
171
|
-
responders
|
|
172
|
-
spreadsheet_architect!
|
|
173
|
-
sqlite3
|
|
174
|
-
|
|
175
|
-
BUNDLED WITH
|
|
176
|
-
1.13.7
|
data/test/rails_app/README.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# README
|
|
2
|
-
|
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
|
4
|
-
application up and running.
|
|
5
|
-
|
|
6
|
-
Things you may want to cover:
|
|
7
|
-
|
|
8
|
-
* Ruby version
|
|
9
|
-
|
|
10
|
-
* System dependencies
|
|
11
|
-
|
|
12
|
-
* Configuration
|
|
13
|
-
|
|
14
|
-
* Database creation
|
|
15
|
-
|
|
16
|
-
* Database initialization
|
|
17
|
-
|
|
18
|
-
* How to run the test suite
|
|
19
|
-
|
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
|
21
|
-
|
|
22
|
-
* Deployment instructions
|
|
23
|
-
|
|
24
|
-
* ...
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
-
// listed below.
|
|
3
|
-
//
|
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
6
|
-
//
|
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
|
9
|
-
//
|
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
11
|
-
// about supported directives.
|
|
12
|
-
//
|
|
13
|
-
//= require jquery
|
|
14
|
-
//= require jquery_ujs
|
|
15
|
-
//= require turbolinks
|
|
16
|
-
//= require_tree .
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Action Cable provides the framework to deal with WebSockets in Rails.
|
|
2
|
-
// You can generate new channels where WebSocket features live using the rails generate channel command.
|
|
3
|
-
//
|
|
4
|
-
//= require action_cable
|
|
5
|
-
//= require_self
|
|
6
|
-
//= require_tree ./channels
|
|
7
|
-
|
|
8
|
-
(function() {
|
|
9
|
-
this.App || (this.App = {});
|
|
10
|
-
|
|
11
|
-
App.cable = ActionCable.createConsumer();
|
|
12
|
-
|
|
13
|
-
}).call(this);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
|
11
|
-
* It is generally better to create a new file per style scope.
|
|
12
|
-
*
|
|
13
|
-
*= require_tree .
|
|
14
|
-
*= require_self
|
|
15
|
-
*/
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>RailsApp</title>
|
|
5
|
-
<%= csrf_meta_tags %>
|
|
6
|
-
|
|
7
|
-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
|
8
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<%= yield %>
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<%= yield %>
|
data/test/rails_app/bin/bundle
DELETED
data/test/rails_app/bin/rails
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
begin
|
|
3
|
-
load File.expand_path('../spring', __FILE__)
|
|
4
|
-
rescue LoadError => e
|
|
5
|
-
raise unless e.message.include?('spring')
|
|
6
|
-
end
|
|
7
|
-
APP_PATH = File.expand_path('../config/application', __dir__)
|
|
8
|
-
require_relative '../config/boot'
|
|
9
|
-
require 'rails/commands'
|
data/test/rails_app/bin/rake
DELETED
data/test/rails_app/bin/setup
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
require 'pathname'
|
|
3
|
-
require 'fileutils'
|
|
4
|
-
include FileUtils
|
|
5
|
-
|
|
6
|
-
# path to your application root.
|
|
7
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
|
8
|
-
|
|
9
|
-
def system!(*args)
|
|
10
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
chdir APP_ROOT do
|
|
14
|
-
# This script is a starting point to setup your application.
|
|
15
|
-
# Add necessary setup steps to this file.
|
|
16
|
-
|
|
17
|
-
puts '== Installing dependencies =='
|
|
18
|
-
system! 'gem install bundler --conservative'
|
|
19
|
-
system('bundle check') || system!('bundle install')
|
|
20
|
-
|
|
21
|
-
# puts "\n== Copying sample files =="
|
|
22
|
-
# unless File.exist?('config/database.yml')
|
|
23
|
-
# cp 'config/database.yml.sample', 'config/database.yml'
|
|
24
|
-
# end
|
|
25
|
-
|
|
26
|
-
puts "\n== Preparing database =="
|
|
27
|
-
system! 'bin/rails db:setup'
|
|
28
|
-
|
|
29
|
-
puts "\n== Removing old logs and tempfiles =="
|
|
30
|
-
system! 'bin/rails log:clear tmp:clear'
|
|
31
|
-
|
|
32
|
-
puts "\n== Restarting application server =="
|
|
33
|
-
system! 'bin/rails restart'
|
|
34
|
-
end
|
data/test/rails_app/bin/spring
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
# This file loads spring without using Bundler, in order to be fast.
|
|
4
|
-
# It gets overwritten when you run the `spring binstub` command.
|
|
5
|
-
|
|
6
|
-
unless defined?(Spring)
|
|
7
|
-
require 'rubygems'
|
|
8
|
-
require 'bundler'
|
|
9
|
-
|
|
10
|
-
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
|
11
|
-
if spring = lockfile.specs.detect { |spec| spec.name == "spring" }
|
|
12
|
-
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
|
13
|
-
gem 'spring', spring.version
|
|
14
|
-
require 'spring/binstub'
|
|
15
|
-
end
|
|
16
|
-
end
|
data/test/rails_app/bin/update
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
require 'pathname'
|
|
3
|
-
require 'fileutils'
|
|
4
|
-
include FileUtils
|
|
5
|
-
|
|
6
|
-
# path to your application root.
|
|
7
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
|
8
|
-
|
|
9
|
-
def system!(*args)
|
|
10
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
chdir APP_ROOT do
|
|
14
|
-
# This script is a way to update your development environment automatically.
|
|
15
|
-
# Add necessary update steps to this file.
|
|
16
|
-
|
|
17
|
-
puts '== Installing dependencies =='
|
|
18
|
-
system! 'gem install bundler --conservative'
|
|
19
|
-
system('bundle check') || system!('bundle install')
|
|
20
|
-
|
|
21
|
-
puts "\n== Updating database =="
|
|
22
|
-
system! 'bin/rails db:migrate'
|
|
23
|
-
|
|
24
|
-
puts "\n== Removing old logs and tempfiles =="
|
|
25
|
-
system! 'bin/rails log:clear tmp:clear'
|
|
26
|
-
|
|
27
|
-
puts "\n== Restarting application server =="
|
|
28
|
-
system! 'bin/rails restart'
|
|
29
|
-
end
|