fluentd-ui 1.0.0.beta.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fluentd-ui might be problematic. Click here for more details.

Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog.md +24 -0
  3. data/Gemfile +5 -3
  4. data/Gemfile.lock +88 -75
  5. data/README.md +11 -0
  6. data/Rakefile +1 -1
  7. data/app/javascript/packs/aws_credential.js +1 -1
  8. data/app/javascript/packs/in_tail_parse.js +1 -1
  9. data/app/javascript/packs/owned_plugin_form.js +1 -1
  10. data/app/javascript/packs/settings.js +20 -9
  11. data/app/javascript/packs/transport_config.js +1 -1
  12. data/app/javascript/packs/transport_section.js +1 -1
  13. data/app/javascript/packs/treeview.js +2 -2
  14. data/app/models/plugin.rb +2 -2
  15. data/app/views/fluentd/settings/source_and_output.html.haml +12 -10
  16. data/app/views/layouts/application.html.erb +3 -0
  17. data/app/views/plugins/recommended.html.haml +3 -0
  18. data/app/views/plugins/updated.html.haml +5 -6
  19. data/config.ru +3 -1
  20. data/config/application.rb +1 -1
  21. data/config/application.yml +104 -31
  22. data/config/locales/translation_en.yml +1 -0
  23. data/config/locales/translation_ja.yml +1 -0
  24. data/gemfiles/ruby2.2.gemfile +2 -1
  25. data/lib/fluentd-ui/version.rb +1 -1
  26. data/test/application_system_test_case.rb +8 -0
  27. data/test/controllers/application_controller_test.rb +42 -0
  28. data/test/controllers/fluentd/agents_controller_test.rb +39 -0
  29. data/test/controllers/misc_controller_test.rb +70 -0
  30. data/test/controllers/polling_controller_test.rb +29 -0
  31. data/test/decorators/plugin_decorator_test.rb +26 -0
  32. data/{spec → test}/factories/fluentd.rb +0 -0
  33. data/{spec → test}/factories/plugins.rb +0 -0
  34. data/{spec → test}/factories/user.rb +0 -0
  35. data/{spec/support → test}/fixtures/error0.log +0 -0
  36. data/{spec/support → test}/fixtures/error2.log +0 -0
  37. data/{spec/support → test}/fixtures/error3.log +0 -0
  38. data/{spec/support → test}/fixtures/error4.log +0 -0
  39. data/{spec/support → test}/fixtures/multiline_example.log +0 -0
  40. data/test/integration/dashboard_test.rb +57 -0
  41. data/test/integration/fluentd/setting/histories_test.rb +139 -0
  42. data/test/integration/fluentd/setting/notes_test.rb +27 -0
  43. data/test/integration/fluentd/setting/running_backup_test.rb +65 -0
  44. data/test/integration/fluentd_ui_update_checking_test.rb +27 -0
  45. data/test/integration/sesstions_test.rb +56 -0
  46. data/test/integration/setting_test.rb +126 -0
  47. data/test/integration/users_test.rb +43 -0
  48. data/test/lib/filte_reverse_reader_test.rb +63 -0
  49. data/test/lib/fluentd_ui_test.rb +36 -0
  50. data/test/lib/regexp_preview/multi_line_test.rb +86 -0
  51. data/test/lib/regexp_preview/single_line_test.rb +87 -0
  52. data/test/models/fluent_gem_test.rb +76 -0
  53. data/test/models/fluentd/agent_test.rb +331 -0
  54. data/{spec/models/fluentd/setting/in_forward_spec.rb → test/models/fluentd/setting/in_forward_test.rb} +32 -44
  55. data/test/models/fluentd/setting/in_http_test.rb +30 -0
  56. data/test/models/fluentd/setting/in_monitor_agent_test.rb +30 -0
  57. data/test/models/fluentd/setting/in_syslog_test.rb +88 -0
  58. data/test/models/fluentd/setting/in_tail_test.rb +52 -0
  59. data/test/models/fluentd/setting/out_elasticsearch_test.rb +32 -0
  60. data/test/models/fluentd/setting/out_mongo_test.rb +61 -0
  61. data/test/models/fluentd/setting/out_s3_test.rb +112 -0
  62. data/test/models/fluentd/setting/out_stdout_test.rb +32 -0
  63. data/test/models/fluentd/setting/out_tdlog_test.rb +60 -0
  64. data/test/models/fluentd_log_test.rb +140 -0
  65. data/test/models/fluentd_test.rb +185 -0
  66. data/test/models/plugin_test.rb +144 -0
  67. data/test/models/user_test.rb +48 -0
  68. data/test/support/config_histories.rb +72 -0
  69. data/test/support/configurable_daemon_settings.rb +26 -0
  70. data/test/support/login_macro.rb +12 -0
  71. data/test/support/login_required.rb +8 -0
  72. data/test/support/stub_daemon.rb +14 -0
  73. data/test/system/fluentd/setting/in_forward_test.rb +13 -0
  74. data/test/system/fluentd/setting/in_http_test.rb +13 -0
  75. data/test/system/fluentd/setting/in_monitor_agent.rb +13 -0
  76. data/test/system/fluentd/setting/out_elasticsearch_test.rb +32 -0
  77. data/test/system/fluentd/setting/out_forward_test.rb +41 -0
  78. data/test/system/fluentd/setting/out_stdout_test.rb +15 -0
  79. data/test/system/fluentd/setting/out_tdlog_test.rb +15 -0
  80. data/test/system/source_and_output_test.rb +184 -0
  81. data/test/test_helper.rb +34 -0
  82. metadata +147 -161
  83. data/spec/controllers/application_controller_spec.rb +0 -84
  84. data/spec/controllers/fluentd/agents_controller_spec.rb +0 -61
  85. data/spec/controllers/misc_controller_spec.rb +0 -68
  86. data/spec/controllers/polling_controller_spec.rb +0 -39
  87. data/spec/controllers/sessions_controller_spec.rb +0 -5
  88. data/spec/decorators/plugin_decorator_spec.rb +0 -37
  89. data/spec/features/dashboard_spec.rb +0 -42
  90. data/spec/features/fluentd/setting/histories_spec.rb +0 -110
  91. data/spec/features/fluentd/setting/in_forward_spec.rb +0 -6
  92. data/spec/features/fluentd/setting/in_http_spec.rb +0 -6
  93. data/spec/features/fluentd/setting/in_monitor_agent_spec.rb +0 -6
  94. data/spec/features/fluentd/setting/notes_spec.rb +0 -27
  95. data/spec/features/fluentd/setting/out_forward_spec.rb +0 -38
  96. data/spec/features/fluentd/setting/out_stdout_spec.rb +0 -6
  97. data/spec/features/fluentd/setting/running_backup_spec.rb +0 -106
  98. data/spec/features/fluentd_status_spec.rb +0 -36
  99. data/spec/features/fluentd_ui_update_available_spec.rb +0 -33
  100. data/spec/features/out_elasticsearch_spec.rb +0 -28
  101. data/spec/features/out_forward_spec.rb +0 -36
  102. data/spec/features/out_tdlog_spec.rb +0 -26
  103. data/spec/features/sessions_spec.rb +0 -79
  104. data/spec/features/setting_spec.rb +0 -95
  105. data/spec/features/shared_examples/configurable_daemon_settings.rb +0 -17
  106. data/spec/features/shared_examples/login_required.rb +0 -4
  107. data/spec/features/source_and_output_spec.rb +0 -158
  108. data/spec/features/users_spec.rb +0 -53
  109. data/spec/grok_converter_spec.rb +0 -50
  110. data/spec/lib/file_reverse_reader_spec.rb +0 -93
  111. data/spec/lib/fluentd-ui_spec.rb +0 -35
  112. data/spec/lib/regexp_preview/multi_line_spec.rb +0 -111
  113. data/spec/lib/regexp_preview/single_line_spec.rb +0 -185
  114. data/spec/models/fluent_gem_spec.rb +0 -104
  115. data/spec/models/fluentd/agent/common_spec.rb +0 -82
  116. data/spec/models/fluentd/agent_spec.rb +0 -134
  117. data/spec/models/fluentd/setting/in_http_spec.rb +0 -31
  118. data/spec/models/fluentd/setting/in_monitor_agent_spec.rb +0 -31
  119. data/spec/models/fluentd/setting/in_syslog_spec.rb +0 -98
  120. data/spec/models/fluentd/setting/in_tail_spec.rb +0 -53
  121. data/spec/models/fluentd/setting/out_elasticsearch_spec.rb +0 -31
  122. data/spec/models/fluentd/setting/out_mongo_spec.rb +0 -62
  123. data/spec/models/fluentd/setting/out_s3_spec.rb +0 -128
  124. data/spec/models/fluentd/setting/out_stdout_spec.rb +0 -31
  125. data/spec/models/fluentd/setting/out_tdlog_spec.rb +0 -46
  126. data/spec/models/fluentd_log_spec.rb +0 -171
  127. data/spec/models/fluentd_spec.rb +0 -164
  128. data/spec/models/plugin_spec.rb +0 -191
  129. data/spec/models/user_spec.rb +0 -59
  130. data/spec/spec_helper.rb +0 -85
  131. data/spec/support/config_histories.rb +0 -57
  132. data/spec/support/fluentd_agent_common_behavior.rb +0 -181
  133. data/spec/support/fluentd_agent_restart_strategy.rb +0 -94
  134. data/spec/support/javascript_macro.rb +0 -21
  135. data/spec/support/login_macro.rb +0 -10
  136. data/spec/support/stub_daemon.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 794ea2baa6fe49cd78dd3feb08d53b274ec5170e540c608cfb43884763b01d75
4
- data.tar.gz: b6acf734d3d4a58ac825dcb4c573feb26673fc9675665ed38549634502345e47
3
+ metadata.gz: 7e4f40390e9ffbca20df06168b4d5591e478641699ed9169df54c2bbf8dd0dec
4
+ data.tar.gz: 2a3a5aed7e28f5cd816ac8f680a849ba0288749aa89f1a3f004b40890731f9e7
5
5
  SHA512:
6
- metadata.gz: 47d4631642d6a1f2ed3767ba849d6eb32bf0f50e6efda00d29ff2cc93567e53f177fa32134c7786b99f7be5bea9f60c67f7d154913b23b3b7ba6e29899a7b76f
7
- data.tar.gz: 85691402c89fac3710a69c735f0ee8c54e1130740141499e3d676dec49fc8f9e924a66446bac19d6d4580ec55b0503c3ca5424dc765ea03d3c5486ad5314b0de
6
+ metadata.gz: '079b369d1b60180012516e425a933fc4a6730f86268066d9fb172198ce57468099b3ec4bdece068c2417cf70cbfe87b43da25bf1ada3ec847e0300de1a14830c'
7
+ data.tar.gz: 6ddddd16fe8a61df18008eefc8c932e2a9cceffae0888ebdefe9ca1ce8352f4f6d2bf44e211c11a7a88a0bb5cf1bbe2f51c52b257e9b61b68d475eb9439a86a9
@@ -1,3 +1,27 @@
1
+ ## Release 1.0.0 - 2018/08/17
2
+
3
+ * [maintenance] Update recommended plugins [#226](https://github.com/fluent/fluentd-ui/pull/226)
4
+ * [improvement] Support relative path [#255](https://github.com/fluent/fluentd-ui/pull/255)
5
+ * [maintenance] Use test-unit-rails [#254](https://github.com/fluent/fluentd-ui/pull/254)
6
+
7
+ ## Release 1.0.0.beta.1 - 2018/07/19
8
+
9
+ * [maintenance] Introduce ESLint [#249](https://github.com/fluent/fluentd-ui/pull/249)
10
+ * [improvement] Support AWS credentials for out_s3 [#248](https://github.com/fluent/fluentd-ui/pull/248)
11
+ * [maintenance] Bundle update
12
+ * [#246](https://github.com/fluent/fluentd-ui/pull/246)
13
+ * [#247](https://github.com/fluent/fluentd-ui/pull/247)
14
+ * [maintenance] Organize specs and CI configurations
15
+ * [#245](https://github.com/fluent/fluentd-ui/pull/245)
16
+ * [#250](https://github.com/fluent/fluentd-ui/pull/250)
17
+ * [#251](https://github.com/fluent/fluentd-ui/pull/251)
18
+ * [#252](https://github.com/fluent/fluentd-ui/pull/252)
19
+ * [improvement] Support transport section [#244](https://github.com/fluent/fluentd-ui/pull/244)
20
+ * [improvement] Save owned plugin config properly [#243](https://github.com/fluent/fluentd-ui/pull/243)
21
+ * [improvement] Make log level selectable [#242](https://github.com/fluent/fluentd-ui/pull/242)
22
+ * [maintenance] Remove unused partial templates [#241](https://github.com/fluent/fluentd-ui/pull/241)
23
+ * [maintenance] Remove unused helper methods [#240](https://github.com/fluent/fluentd-ui/pull/240)
24
+
1
25
  ## Release 1.0.0.alpha.3 - 2018/06/18
2
26
 
3
27
  * [improvement] Support Fluentd v1 [#238](https://github.com/fluent/fluentd-ui/pull/238)
data/Gemfile CHANGED
@@ -8,7 +8,8 @@ group :development, :test do
8
8
  gem "rake"
9
9
  gem "pry"
10
10
  gem "pry-rails"
11
- gem "rspec-rails", "~> 3.0"
11
+ gem "test-unit-rails"
12
+ gem "test-unit-notify"
12
13
  end
13
14
 
14
15
  group :development do
@@ -21,10 +22,11 @@ end
21
22
 
22
23
  group :test do
23
24
  gem "factory_bot_rails"
24
- gem "capybara", "~> 3.3.1"
25
+ gem "capybara", "~> 3.4.2"
25
26
  gem "capybara-screenshot"
27
+ gem "chromedriver-helper"
26
28
  gem "simplecov", "~> 0.16.1", require: false
27
29
  gem "webmock", "~> 3.3.0"
28
30
  gem "timecop"
29
- gem "selenium-webdriver", "~> 3.12.0"
31
+ gem "selenium-webdriver", "~> 3.13.1"
30
32
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluentd-ui (1.0.0.beta.1)
4
+ fluentd-ui (1.0.0)
5
5
  addressable
6
6
  bootsnap (>= 1.1.0)
7
7
  bundler
@@ -31,62 +31,64 @@ PATH
31
31
  GEM
32
32
  remote: https://rubygems.org/
33
33
  specs:
34
- actioncable (5.2.0)
35
- actionpack (= 5.2.0)
34
+ actioncable (5.2.1)
35
+ actionpack (= 5.2.1)
36
36
  nio4r (~> 2.0)
37
37
  websocket-driver (>= 0.6.1)
38
- actionmailer (5.2.0)
39
- actionpack (= 5.2.0)
40
- actionview (= 5.2.0)
41
- activejob (= 5.2.0)
38
+ actionmailer (5.2.1)
39
+ actionpack (= 5.2.1)
40
+ actionview (= 5.2.1)
41
+ activejob (= 5.2.1)
42
42
  mail (~> 2.5, >= 2.5.4)
43
43
  rails-dom-testing (~> 2.0)
44
- actionpack (5.2.0)
45
- actionview (= 5.2.0)
46
- activesupport (= 5.2.0)
44
+ actionpack (5.2.1)
45
+ actionview (= 5.2.1)
46
+ activesupport (= 5.2.1)
47
47
  rack (~> 2.0)
48
48
  rack-test (>= 0.6.3)
49
49
  rails-dom-testing (~> 2.0)
50
50
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
51
- actionview (5.2.0)
52
- activesupport (= 5.2.0)
51
+ actionview (5.2.1)
52
+ activesupport (= 5.2.1)
53
53
  builder (~> 3.1)
54
54
  erubi (~> 1.4)
55
55
  rails-dom-testing (~> 2.0)
56
56
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
57
- activejob (5.2.0)
58
- activesupport (= 5.2.0)
57
+ activejob (5.2.1)
58
+ activesupport (= 5.2.1)
59
59
  globalid (>= 0.3.6)
60
- activemodel (5.2.0)
61
- activesupport (= 5.2.0)
60
+ activemodel (5.2.1)
61
+ activesupport (= 5.2.1)
62
62
  activemodel-serializers-xml (1.0.2)
63
63
  activemodel (> 5.x)
64
64
  activesupport (> 5.x)
65
65
  builder (~> 3.1)
66
- activerecord (5.2.0)
67
- activemodel (= 5.2.0)
68
- activesupport (= 5.2.0)
66
+ activerecord (5.2.1)
67
+ activemodel (= 5.2.1)
68
+ activesupport (= 5.2.1)
69
69
  arel (>= 9.0)
70
- activestorage (5.2.0)
71
- actionpack (= 5.2.0)
72
- activerecord (= 5.2.0)
70
+ activestorage (5.2.1)
71
+ actionpack (= 5.2.1)
72
+ activerecord (= 5.2.1)
73
73
  marcel (~> 0.3.1)
74
- activesupport (5.2.0)
74
+ activesupport (5.2.1)
75
75
  concurrent-ruby (~> 1.0, >= 1.0.2)
76
76
  i18n (>= 0.7, < 2)
77
77
  minitest (~> 5.1)
78
78
  tzinfo (~> 1.1)
79
79
  addressable (2.5.2)
80
80
  public_suffix (>= 2.0.2, < 4.0)
81
+ archive-zip (0.11.0)
82
+ io-like (~> 0.3.0)
81
83
  arel (9.0.0)
82
84
  aws-eventstream (1.0.1)
83
- aws-partitions (1.96.0)
84
- aws-sdk-core (3.22.1)
85
+ aws-partitions (1.100.0)
86
+ aws-sdk-core (3.24.1)
85
87
  aws-eventstream (~> 1.0)
86
88
  aws-partitions (~> 1.0)
87
89
  aws-sigv4 (~> 1.0)
88
90
  jmespath (~> 1.0)
89
- aws-sdk-kms (1.6.0)
91
+ aws-sdk-kms (1.7.0)
90
92
  aws-sdk-core (~> 3)
91
93
  aws-sigv4 (~> 1.0)
92
94
  aws-sdk-s3 (1.17.0)
@@ -108,7 +110,7 @@ GEM
108
110
  msgpack (~> 1.0)
109
111
  bson (4.3.0)
110
112
  builder (3.2.3)
111
- capybara (3.3.1)
113
+ capybara (3.4.2)
112
114
  addressable
113
115
  mini_mime (>= 0.1.3)
114
116
  nokogiri (~> 1.8)
@@ -120,6 +122,9 @@ GEM
120
122
  launchy
121
123
  childprocess (0.9.0)
122
124
  ffi (~> 1.0, >= 1.0.11)
125
+ chromedriver-helper (1.2.0)
126
+ archive-zip (~> 0.10)
127
+ nokogiri (~> 1.8)
123
128
  coderay (1.1.2)
124
129
  concurrent-ruby (1.0.5)
125
130
  cool.io (1.5.3)
@@ -147,29 +152,29 @@ GEM
147
152
  erubi (1.7.1)
148
153
  erubis (2.7.0)
149
154
  excon (0.62.0)
150
- factory_bot (4.10.0)
155
+ factory_bot (4.11.0)
151
156
  activesupport (>= 3.0.0)
152
- factory_bot_rails (4.10.0)
153
- factory_bot (~> 4.10.0)
157
+ factory_bot_rails (4.11.0)
158
+ factory_bot (~> 4.11.0)
154
159
  railties (>= 3.0.0)
155
160
  faraday (0.15.2)
156
161
  multipart-post (>= 1.2, < 3)
157
162
  ffi (1.9.25)
158
- fluent-plugin-elasticsearch (2.11.1)
163
+ fluent-plugin-elasticsearch (2.11.5)
159
164
  elasticsearch
160
165
  excon
161
166
  fluentd (>= 0.14.20)
162
167
  fluent-plugin-mongo (1.1.2)
163
168
  fluentd (>= 0.14.12, < 2)
164
169
  mongo (~> 2.6.0)
165
- fluent-plugin-s3 (1.1.3)
170
+ fluent-plugin-s3 (1.1.4)
166
171
  aws-sdk-s3 (~> 1.0)
167
172
  aws-sdk-sqs (~> 1.0)
168
173
  fluentd (>= 0.14.2, < 2)
169
174
  fluent-plugin-td (1.0.0)
170
175
  fluentd (>= 0.14.13, < 2)
171
176
  td-client (~> 1.0)
172
- fluentd (1.2.3)
177
+ fluentd (1.2.4)
173
178
  cool.io (>= 1.4.5, < 2.0.0)
174
179
  dig_rb (~> 1.0.0)
175
180
  http_parser.rb (>= 0.5.1, < 0.7.0)
@@ -201,10 +206,11 @@ GEM
201
206
  ruby_parser (~> 3.5)
202
207
  http_parser.rb (0.6.0)
203
208
  httpclient (2.8.3)
204
- i18n (1.0.1)
209
+ i18n (1.1.0)
205
210
  concurrent-ruby (~> 1.0)
206
211
  i18n_generators (2.1.1)
207
212
  rails (>= 3.0.0)
213
+ io-like (0.3.0)
208
214
  jbuilder (2.7.0)
209
215
  activesupport (>= 4.2.0)
210
216
  multi_json (>= 1.2)
@@ -228,10 +234,10 @@ GEM
228
234
  mimemagic (~> 0.3.2)
229
235
  method_source (0.9.0)
230
236
  mimemagic (0.3.2)
231
- mini_mime (1.0.0)
237
+ mini_mime (1.0.1)
232
238
  mini_portile2 (2.3.0)
233
239
  minitest (5.11.3)
234
- mongo (2.6.1)
240
+ mongo (2.6.2)
235
241
  bson (>= 4.3.0, < 5.0.0)
236
242
  msgpack (1.2.4)
237
243
  multi_json (1.13.1)
@@ -239,65 +245,50 @@ GEM
239
245
  nio4r (2.3.1)
240
246
  nokogiri (1.8.4)
241
247
  mini_portile2 (~> 2.3.0)
248
+ power_assert (1.1.3)
242
249
  pry (0.11.3)
243
250
  coderay (~> 1.1.0)
244
251
  method_source (~> 0.9.0)
245
252
  pry-rails (0.3.6)
246
253
  pry (>= 0.10.4)
247
- public_suffix (3.0.2)
254
+ public_suffix (3.0.3)
248
255
  puma (3.12.0)
249
256
  rack (2.0.5)
250
257
  rack-proxy (0.6.4)
251
258
  rack
252
- rack-test (1.0.0)
259
+ rack-test (1.1.0)
253
260
  rack (>= 1.0, < 3)
254
- rails (5.2.0)
255
- actioncable (= 5.2.0)
256
- actionmailer (= 5.2.0)
257
- actionpack (= 5.2.0)
258
- actionview (= 5.2.0)
259
- activejob (= 5.2.0)
260
- activemodel (= 5.2.0)
261
- activerecord (= 5.2.0)
262
- activestorage (= 5.2.0)
263
- activesupport (= 5.2.0)
261
+ rails (5.2.1)
262
+ actioncable (= 5.2.1)
263
+ actionmailer (= 5.2.1)
264
+ actionpack (= 5.2.1)
265
+ actionview (= 5.2.1)
266
+ activejob (= 5.2.1)
267
+ activemodel (= 5.2.1)
268
+ activerecord (= 5.2.1)
269
+ activestorage (= 5.2.1)
270
+ activesupport (= 5.2.1)
264
271
  bundler (>= 1.3.0)
265
- railties (= 5.2.0)
272
+ railties (= 5.2.1)
266
273
  sprockets-rails (>= 2.0.0)
267
274
  rails-dom-testing (2.0.3)
268
275
  activesupport (>= 4.2.0)
269
276
  nokogiri (>= 1.6)
270
277
  rails-html-sanitizer (1.0.4)
271
278
  loofah (~> 2.2, >= 2.2.2)
272
- railties (5.2.0)
273
- actionpack (= 5.2.0)
274
- activesupport (= 5.2.0)
279
+ railties (5.2.1)
280
+ actionpack (= 5.2.1)
281
+ activesupport (= 5.2.1)
275
282
  method_source
276
283
  rake (>= 0.8.7)
277
- thor (>= 0.18.1, < 2.0)
284
+ thor (>= 0.19.0, < 2.0)
278
285
  rake (12.3.1)
279
286
  rb-fsevent (0.10.3)
280
287
  rb-inotify (0.9.10)
281
288
  ffi (>= 0.5.0, < 2)
282
289
  request_store (1.4.1)
283
290
  rack (>= 1.4)
284
- rspec-core (3.7.1)
285
- rspec-support (~> 3.7.0)
286
- rspec-expectations (3.7.0)
287
- diff-lcs (>= 1.2.0, < 2.0)
288
- rspec-support (~> 3.7.0)
289
- rspec-mocks (3.7.0)
290
- diff-lcs (>= 1.2.0, < 2.0)
291
- rspec-support (~> 3.7.0)
292
- rspec-rails (3.7.2)
293
- actionpack (>= 3.0)
294
- activesupport (>= 3.0)
295
- railties (>= 3.0)
296
- rspec-core (~> 3.7.0)
297
- rspec-expectations (~> 3.7.0)
298
- rspec-mocks (~> 3.7.0)
299
- rspec-support (~> 3.7.0)
300
- rspec-support (3.7.1)
291
+ rr (1.2.1)
301
292
  ruby_dep (1.5.0)
302
293
  ruby_parser (3.11.0)
303
294
  sexp_processor (~> 4.9)
@@ -314,7 +305,7 @@ GEM
314
305
  sprockets (>= 2.8, < 4.0)
315
306
  sprockets-rails (>= 2.0, < 4.0)
316
307
  tilt (>= 1.1, < 3)
317
- selenium-webdriver (3.12.0)
308
+ selenium-webdriver (3.13.1)
318
309
  childprocess (~> 0.5)
319
310
  rubyzip (~> 1.2)
320
311
  serverengine (2.0.7)
@@ -341,6 +332,26 @@ GEM
341
332
  httpclient (>= 2.7)
342
333
  msgpack (>= 0.5.6, < 2)
343
334
  temple (0.8.0)
335
+ test-unit (3.2.8)
336
+ power_assert
337
+ test-unit-activesupport (1.0.9)
338
+ activesupport
339
+ test-unit
340
+ test-unit-capybara (1.0.6)
341
+ capybara (>= 2.1.0)
342
+ json
343
+ test-unit (>= 2.5.3)
344
+ test-unit-notify (1.0.4)
345
+ test-unit (>= 2.4.9)
346
+ test-unit-rails (5.2.1)
347
+ rails (>= 5.1.2)
348
+ test-unit (>= 3.1.7)
349
+ test-unit-activesupport (>= 1.0.8)
350
+ test-unit-capybara (>= 1.0.5)
351
+ test-unit-rr (>= 1.0.4)
352
+ test-unit-rr (1.0.5)
353
+ rr (>= 1.1.1)
354
+ test-unit (>= 2.5.2)
344
355
  thor (0.20.0)
345
356
  thread_safe (0.3.6)
346
357
  tilt (2.0.8)
@@ -367,7 +378,7 @@ GEM
367
378
  websocket-extensions (0.1.3)
368
379
  xpath (3.1.0)
369
380
  nokogiri (~> 1.8)
370
- yajl-ruby (1.4.0)
381
+ yajl-ruby (1.4.1)
371
382
 
372
383
  PLATFORMS
373
384
  ruby
@@ -375,8 +386,9 @@ PLATFORMS
375
386
  DEPENDENCIES
376
387
  better_errors
377
388
  binding_of_caller
378
- capybara (~> 3.3.1)
389
+ capybara (~> 3.4.2)
379
390
  capybara-screenshot
391
+ chromedriver-helper
380
392
  factory_bot_rails
381
393
  fluentd-ui!
382
394
  i18n_generators (= 2.1.1)
@@ -384,9 +396,10 @@ DEPENDENCIES
384
396
  pry
385
397
  pry-rails
386
398
  rake
387
- rspec-rails (~> 3.0)
388
- selenium-webdriver (~> 3.12.0)
399
+ selenium-webdriver (~> 3.13.1)
389
400
  simplecov (~> 0.16.1)
401
+ test-unit-notify
402
+ test-unit-rails
390
403
  timecop
391
404
  web-console (~> 3.6)
392
405
  webmock (~> 3.3.0)
data/README.md CHANGED
@@ -36,6 +36,14 @@ And some additional packages (Debian / Ubuntu)
36
36
 
37
37
  Access http://localhost:9292 by web browser.
38
38
 
39
+ ### Run under sub path
40
+
41
+ Use `RAILS_RELATIVE_URL_ROOT` environment variable.
42
+
43
+ $ RAILS_RELATIVE_URL_ROOT=/prefix fluentd-ui start --daemonize
44
+
45
+ Access http://localhost:9292/prefix by web browser.
46
+
39
47
  ## Development
40
48
 
41
49
  $ git clone https://github.com/fluent/fluentd-ui
@@ -55,6 +63,9 @@ NOTE: `chromedriver` executable binary should be located under your `$PATH`.
55
63
 
56
64
  ## Building fluentd-ui.gem
57
65
 
66
+ # Generate ChangeLog.md and increment version
67
+ $ bin/rails release:prepare
68
+
58
69
  # Clear tmp/, public/assets and public/packs
59
70
  $ bin/rails tmp:clear assets:clobber && touch tmp/.gitkeep
60
71
 
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # Add your own tasks in files placed in lib/tasks ending in .rake,
2
2
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
3
 
4
- require File.expand_path('../config/application', __FILE__)
4
+ require_relative 'config/application'
5
5
 
6
6
  Rails.application.load_tasks
7
7
 
@@ -43,7 +43,7 @@ const AwsCredential = {
43
43
  updateSection: function() {
44
44
  $.ajax({
45
45
  method: "GET",
46
- url: "/api/config_definitions",
46
+ url: `${relativeUrlRoot}/api/config_definitions`,
47
47
  headers: {
48
48
  "X-CSRF-Token": this.token
49
49
  },
@@ -129,7 +129,7 @@ $(document).ready(() => {
129
129
 
130
130
  this.previewAjax = $.ajax({
131
131
  method: "POST",
132
- url: "/api/regexp_preview",
132
+ url: `${relativeUrlRoot}/api/regexp_preview`,
133
133
  headers: {
134
134
  "X-CSRF-Token": this.token
135
135
  },
@@ -78,7 +78,7 @@ const OwnedPluginForm = {
78
78
  updateSection: function() {
79
79
  $.ajax({
80
80
  method: "GET",
81
- url: "/api/config_definitions",
81
+ url: `${relativeUrlRoot}/api/config_definitions`,
82
82
  headers: {
83
83
  "X-CSRF-Token": this.token
84
84
  },