fluentd-ui 0.3.20 → 0.3.21
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.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +1 -3
- data/app/assets/stylesheets/common.css.scss +4 -0
- data/app/controllers/fluentd/settings_controller.rb +1 -1
- data/app/views/fluentd/settings/in_tail/_form.html.haml +1 -1
- data/app/views/fluentd/settings/source_and_output.html.haml +3 -2
- data/app/views/shared/vue/_fluent_log.html.erb +3 -3
- data/app/views/shared/vue/_in_tail_format.html.erb +7 -7
- data/lib/fluentd-ui/version.rb +1 -1
- data/lib/tasks/release.rake +52 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfc5d71254ec159408b192782e55e4b53596a8bf
|
4
|
+
data.tar.gz: c1313a23cd01315dc7938b711ae5678872fab3ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4bd9cb12a0b8cdc5758a3d12b55bdf8bfcae191c562ef7b95fa9347a47d93d4de3a207f1053063cad90b49c9dadbda51a7ee482371a306b0be316c9f44bad64
|
7
|
+
data.tar.gz: 44c51caff4d975031de2eb28c3d73eed6c5702bdde623697b5eccbcbef5ce2abb847da8d8bcebe0dddb3238691ddf230adad5fb5d4db8fb8c5ff33963789f78c
|
data/ChangeLog
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
Release 0.3.21 - 2015/04/15
|
2
|
+
* [maintenance] #187 Remove needless gem
|
3
|
+
* [fixed] #186 Fix the bug when server restart while logged in and "Config File" page is visited
|
4
|
+
* [fixed] #184 Focus some inputboxes when its label is clicked
|
5
|
+
* [improve] #180 #181 #183 #185 Tweak design
|
6
|
+
|
1
7
|
Release 0.3.20 - 2015/04/10
|
2
8
|
* [fixed] #175 Fix the bug password can be changed without match between new password and password confirmation.
|
3
9
|
* [fixed] #177 Use '0.0.0.0' as host not 'localhost' (If you want to change host, you can use `--host` option with `start` command)
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluentd-ui (0.3.
|
4
|
+
fluentd-ui (0.3.21)
|
5
5
|
addressable
|
6
6
|
bundler
|
7
7
|
diff-lcs
|
@@ -79,7 +79,6 @@ GEM
|
|
79
79
|
cool.io (1.3.0)
|
80
80
|
crack (0.4.2)
|
81
81
|
safe_yaml (~> 1.0.0)
|
82
|
-
database_cleaner (1.2.0)
|
83
82
|
diff-lcs (1.2.5)
|
84
83
|
domain_name (0.5.23)
|
85
84
|
unf (>= 0.0.5, < 1.0.0)
|
@@ -275,7 +274,6 @@ PLATFORMS
|
|
275
274
|
DEPENDENCIES
|
276
275
|
capybara (~> 2.4.0)
|
277
276
|
capybara-screenshot
|
278
|
-
database_cleaner (~> 1.2.0)
|
279
277
|
factory_girl_rails
|
280
278
|
fluentd-ui!
|
281
279
|
i18n_generators (= 1.2.1)
|
@@ -6,7 +6,7 @@ class Fluentd::SettingsController < ApplicationController
|
|
6
6
|
before_action :set_config, only: [:show, :edit, :update]
|
7
7
|
|
8
8
|
def show
|
9
|
-
@backup_files = @fluentd.agent.backup_files_in_new_order.first(Settings.histories_count_in_preview).map do |file_path|
|
9
|
+
@backup_files = @fluentd.agent.backup_files_in_new_order.first(::Settings.histories_count_in_preview).map do |file_path|
|
10
10
|
Fluentd::SettingArchive::BackupFile.new(file_path)
|
11
11
|
end
|
12
12
|
|
@@ -34,8 +34,8 @@
|
|
34
34
|
= f.label :rotate_wait
|
35
35
|
= f.text_field :rotate_wait, class: "form-control"
|
36
36
|
.form-group
|
37
|
+
= f.check_box :read_from_head
|
37
38
|
= f.label :read_from_head
|
38
|
-
= f.check_box :read_from_head, class: "form-control"
|
39
39
|
.form-group
|
40
40
|
= f.label :refresh_interval
|
41
41
|
= f.text_field :refresh_interval, class: "form-control"
|
@@ -33,8 +33,9 @@
|
|
33
33
|
#vue-setting.current-settings
|
34
34
|
%h2
|
35
35
|
= t('.current')
|
36
|
-
|
37
|
-
|
36
|
+
.pull-right
|
37
|
+
%button.btn.btn-default.btn-sm{"v-on" => "click: update", "v-if" => "!loading"}= icon('fa-refresh')
|
38
|
+
%button.btn.btn-default.btn-sm{"v-if" => "loading"}= icon('fa-spin fa-refresh')
|
38
39
|
.row
|
39
40
|
.col-xs-6.input
|
40
41
|
%h3= t('.in')
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<!-- vue.js -->
|
2
2
|
<% auto_reload ||= true %>
|
3
3
|
<div id="fluent-log" logUrl="<%= log_tail_daemon_agent_path(fluentd) %>" initialAutoReload="<%= auto_reload ? "true" : "" %>">
|
4
|
-
<
|
4
|
+
<div class="bottom-margin form-inline">
|
5
5
|
<button class="btn btn-primary" v-on="click: fetchLogs">
|
6
6
|
<%= t "terms.reload_log" %>
|
7
7
|
</button>
|
8
|
-
<input type="text" v-model="limit" size="4" v-on="keyup: fetchLogs | key enter" />
|
8
|
+
<input type="text" v-model="limit" size="4" v-on="keyup: fetchLogs | key enter" class="form-control"/>
|
9
9
|
<%= t('terms.lines') %>
|
10
10
|
<label>
|
11
11
|
<input type="checkbox" v-model="autoFetch" /> <%= t "terms.auto_reload", seconds: 1 %>
|
12
12
|
</label>
|
13
13
|
<span v-if="processing"><%= icon('fa-spin fa-refresh') %></span>
|
14
|
-
</
|
14
|
+
</div>
|
15
15
|
|
16
16
|
<pre v-if="isPresentedLogs"><!-- be careful indent -->
|
17
17
|
<div class="log"><span v-repeat="logs">{{ $value }}
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<script type="text/template" id="format-bundle">
|
2
|
-
<div class="form-group">
|
3
|
-
<label>format</label>
|
4
|
-
<select name="setting[format]" v-model="format">
|
2
|
+
<div class="form-inline form-group">
|
3
|
+
<label for="in_tail_setting_format">format</label>
|
4
|
+
<select id="in_tail_setting_format" name="setting[format]" v-model="format" class="form-control">
|
5
5
|
<option v-repeat="selectableFormats" value="{{ $value }}" v-attr="selected: format==$value">{{ $value }}</option>
|
6
6
|
</select>
|
7
7
|
</div>
|
8
|
-
<div class="form-group" v-repeat="options">
|
9
|
-
<label>{{ $value }} </label>
|
10
|
-
<input type="text" name="setting[{{ $value }}]" v-model="params.setting[$value]" size="100%" />
|
8
|
+
<div class="form-inline form-group" v-repeat="options">
|
9
|
+
<label for="in_tail_setting_{{ $value }}">{{ $value }} </label>
|
10
|
+
<input id="in_tail_setting_{{ $value }}" type="text" name="setting[{{ $value }}]" v-model="params.setting[$value]" size="100%" class="form-control" />
|
11
11
|
</div>
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<div id="in_tail_format"
|
14
|
+
<div id="in_tail_format"
|
15
15
|
formatOptionsJson="<%= formats.to_json %>"
|
16
16
|
initialSelected="<%= initialSelected %>"
|
17
17
|
targetFile="<%= file %>"
|
data/lib/fluentd-ui/version.rb
CHANGED
@@ -0,0 +1,52 @@
|
|
1
|
+
namespace :release do
|
2
|
+
desc "Add header of now version release to ChangeLog and bump up version"
|
3
|
+
task :prepare do
|
4
|
+
raise "Use this task in development only" unless Rails.env.development?
|
5
|
+
|
6
|
+
# Fetch remote
|
7
|
+
system("git fetch origin")
|
8
|
+
|
9
|
+
# detect merged PR
|
10
|
+
old_version = FluentdUI::VERSION
|
11
|
+
pr_numbers = `git log v#{old_version}..origin/master --oneline`.scan(/#[0-9]+/)
|
12
|
+
|
13
|
+
if !$?.success? || pr_numbers.empty?
|
14
|
+
puts "Detecting PR failed. Please confirm if any PR were merged after the latest release."
|
15
|
+
exit(false)
|
16
|
+
end
|
17
|
+
|
18
|
+
# Generate new version
|
19
|
+
/\.([0-9]+)\z/.match(old_version)
|
20
|
+
old_revision = $1
|
21
|
+
new_version = old_version.gsub(/\.#{old_revision}\z/, ".#{old_revision.to_i + 1}")
|
22
|
+
|
23
|
+
# Update ChangeLog
|
24
|
+
changelog_filename = Rails.root.join('ChangeLog')
|
25
|
+
changelog = File.read(changelog_filename)
|
26
|
+
|
27
|
+
pr_descriptions = pr_numbers.map do |number|
|
28
|
+
"* [] #{number} https://github.com/fluent/fluentd-ui/pull/#{number.gsub('#', '')}"
|
29
|
+
end.join("\n")
|
30
|
+
|
31
|
+
new_changelog = <<-HEADER
|
32
|
+
Release #{new_version} - #{Time.now.strftime("%Y/%m/%d")}
|
33
|
+
#{pr_descriptions}
|
34
|
+
|
35
|
+
#{changelog.chomp}
|
36
|
+
HEADER
|
37
|
+
|
38
|
+
File.open(changelog_filename, "w") {|f| f.write(new_changelog)}
|
39
|
+
|
40
|
+
# Update version.rb
|
41
|
+
version_filename = Rails.root.join("lib", "fluentd-ui", "version.rb")
|
42
|
+
version_class = File.read(version_filename)
|
43
|
+
new_version_class = version_class.gsub(/VERSION = \"#{old_version}\"/, "VERSION = \"#{new_version}\"")
|
44
|
+
|
45
|
+
File.open(version_filename, 'w') {|f| f.write(new_version_class)}
|
46
|
+
|
47
|
+
# Update Gemfile.lock
|
48
|
+
system("bundle install")
|
49
|
+
|
50
|
+
puts "ChangeLog, version and Gemfile.lock were updated. New version is #{new_version}."
|
51
|
+
end
|
52
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluentd-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro Nakagawa
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -499,6 +499,7 @@ files:
|
|
499
499
|
- lib/tasks/.keep
|
500
500
|
- lib/tasks/clean.rake
|
501
501
|
- lib/tasks/dep.rake
|
502
|
+
- lib/tasks/release.rake
|
502
503
|
- lib/treeview.rb
|
503
504
|
- log/.keep
|
504
505
|
- public/404.html
|