fluentd-ui 0.3.20 → 0.3.21

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.

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2bd1ea18819e32b9455400f25a12171bbac521d
4
- data.tar.gz: b1bce06af9405bdaf2ec28da59633a09306bc4b2
3
+ metadata.gz: bfc5d71254ec159408b192782e55e4b53596a8bf
4
+ data.tar.gz: c1313a23cd01315dc7938b711ae5678872fab3ed
5
5
  SHA512:
6
- metadata.gz: 9f55f9200efb1ae1144ccce419169d3984e649526280928f4d1ab999494eed28078b33acbbac0a2680b542d4ca0dc95d4ff5f1a7b7a4eae664e03bf2066ab6f4
7
- data.tar.gz: aee4e40d091ac025b15bb6cecdfd3b9d323977c6b4cb605591930a03c2e1f3ead755a8708f43076f855bf847526379f02526348c71b20712d13990c765d50ec0
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
@@ -17,7 +17,6 @@ end
17
17
 
18
18
  group :test do
19
19
  gem "factory_girl_rails"
20
- gem "database_cleaner", "~> 1.2.0"
21
20
  gem "capybara", "~> 2.4.0"
22
21
  gem "capybara-screenshot"
23
22
  gem "simplecov", "~> 0.7.1", require: false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluentd-ui (0.3.20)
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)
@@ -1,3 +1,7 @@
1
+ .bottom-margin {
2
+ margin-bottom: 10px;
3
+ }
4
+
1
5
  table {
2
6
  // mainly for /misc/information page
3
7
  td {
@@ -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
- %span{"v-on" => "click: update", "v-if" => "!loading"}= icon('fa-refresh')
37
- %span{"v-if" => "loading"}= icon('fa-spin fa-refresh')
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
- <p>
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
- </p>
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" class="form-group"
14
+ <div id="in_tail_format"
15
15
  formatOptionsJson="<%= formats.to_json %>"
16
16
  initialSelected="<%= initialSelected %>"
17
17
  targetFile="<%= file %>"
@@ -1,3 +1,3 @@
1
1
  module FluentdUI
2
- VERSION = "0.3.20"
2
+ VERSION = "0.3.21"
3
3
  end
@@ -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.20
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-10 00:00:00.000000000 Z
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