fluentd-ui 0.3.18 → 0.3.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d5210ae2603368a390f09da9318c5a81f2eeacf
4
- data.tar.gz: 5193b86a5f75effaec831a90a911ab0231378e0e
3
+ metadata.gz: 8b0f1b68a4e226bf802f55f575819573167d0a07
4
+ data.tar.gz: 2dc75b1106dc8043fd4e6f90ca2e464265fecdff
5
5
  SHA512:
6
- metadata.gz: 0979f30e382c16a0519e2b3f556b92ff0c8df67208fd556d05e766b1c74d5e0f79a0f3c6ea84a733bba9f4538db65a20d84c7e5d6df8b235cb77a0454bb42e57
7
- data.tar.gz: 502e7a129252caf39c4f73423d5ffa4080477844578ead61113b9c8d7aaf28d2622c762ef0cd7111e6516d661e2639c545a6fc20ab0cc0aa01326f3e1a24f0d2
6
+ metadata.gz: b3a5a339fbed830c5ece5f51c624673dac914cb7989769ba717a55b8695efec0acb59411746be05f78c4fe18d4e5861cb7e86d8dc822b94f0cf40f75c2e85a7c
7
+ data.tar.gz: 20799f4df412c8e75568a727ebdbe5fd6c3ee410f9ee896ea1b311ea3d3b3c3bcbcb657a5b2f57d5e27d3fd17e1ec410b0f3023b3cb5cac72758b95c5dcc44ee
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.3.19 - 2015/04/08
2
+ * [maintenance] #170 Update some gems
3
+ * [maintenance] #171 Update Rails to 4.2.1
4
+ * [maintenance] #173 Add Rake task to clean files under tmp/ directory (for packaging)
5
+
1
6
  Release 0.3.18 - 2015/04/02
2
7
  * [fixed] #167 Apply bootstrap css to inputboxes in signin form
3
8
  * [fixed] #168 Fix the behavor mismatch between configtest and update (update failed but configtest is OK)
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ group :development, :test do
8
8
  gem "rake"
9
9
  gem "pry"
10
10
  gem "pry-rails"
11
- gem "rspec-rails", "~> 2.99"
11
+ gem "rspec-rails", "~> 3.0"
12
12
  end
13
13
 
14
14
  group :development do
@@ -16,10 +16,9 @@ group :development do
16
16
  end
17
17
 
18
18
  group :test do
19
- gem "rspec-its"
20
19
  gem "factory_girl_rails"
21
20
  gem "database_cleaner", "~> 1.2.0"
22
- gem "capybara", "~> 2.2.1"
21
+ gem "capybara", "~> 2.4.0"
23
22
  gem "capybara-screenshot"
24
23
  gem "simplecov", "~> 0.7.1", require: false
25
24
  gem "webmock", "~> 1.18.0"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluentd-ui (0.3.18)
4
+ fluentd-ui (0.3.19)
5
5
  addressable
6
6
  bundler
7
7
  diff-lcs
@@ -15,7 +15,7 @@ PATH
15
15
  kramdown (> 1.0.0)
16
16
  kramdown-haml
17
17
  puma
18
- rails (~> 4.1.7)
18
+ rails (~> 4.2.0)
19
19
  rubyzip (~> 1.1)
20
20
  sass-rails (~> 4.0.3)
21
21
  settingslogic
@@ -25,50 +25,57 @@ PATH
25
25
  GEM
26
26
  remote: https://rubygems.org/
27
27
  specs:
28
- actionmailer (4.1.9)
29
- actionpack (= 4.1.9)
30
- actionview (= 4.1.9)
28
+ actionmailer (4.2.1)
29
+ actionpack (= 4.2.1)
30
+ actionview (= 4.2.1)
31
+ activejob (= 4.2.1)
31
32
  mail (~> 2.5, >= 2.5.4)
32
- actionpack (4.1.9)
33
- actionview (= 4.1.9)
34
- activesupport (= 4.1.9)
35
- rack (~> 1.5.2)
33
+ rails-dom-testing (~> 1.0, >= 1.0.5)
34
+ actionpack (4.2.1)
35
+ actionview (= 4.2.1)
36
+ activesupport (= 4.2.1)
37
+ rack (~> 1.6)
36
38
  rack-test (~> 0.6.2)
37
- actionview (4.1.9)
38
- activesupport (= 4.1.9)
39
+ rails-dom-testing (~> 1.0, >= 1.0.5)
40
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
41
+ actionview (4.2.1)
42
+ activesupport (= 4.2.1)
39
43
  builder (~> 3.1)
40
44
  erubis (~> 2.7.0)
41
- activemodel (4.1.9)
42
- activesupport (= 4.1.9)
45
+ rails-dom-testing (~> 1.0, >= 1.0.5)
46
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
47
+ activejob (4.2.1)
48
+ activesupport (= 4.2.1)
49
+ globalid (>= 0.3.0)
50
+ activemodel (4.2.1)
51
+ activesupport (= 4.2.1)
43
52
  builder (~> 3.1)
44
- activerecord (4.1.9)
45
- activemodel (= 4.1.9)
46
- activesupport (= 4.1.9)
47
- arel (~> 5.0.0)
48
- activesupport (4.1.9)
49
- i18n (~> 0.6, >= 0.6.9)
53
+ activerecord (4.2.1)
54
+ activemodel (= 4.2.1)
55
+ activesupport (= 4.2.1)
56
+ arel (~> 6.0)
57
+ activesupport (4.2.1)
58
+ i18n (~> 0.7)
50
59
  json (~> 1.7, >= 1.7.7)
51
60
  minitest (~> 5.1)
52
- thread_safe (~> 0.1)
61
+ thread_safe (~> 0.3, >= 0.3.4)
53
62
  tzinfo (~> 1.1)
54
- addressable (2.3.6)
55
- arel (5.0.1.20140414130214)
63
+ addressable (2.3.8)
64
+ arel (6.0.0)
56
65
  builder (3.2.2)
57
- capybara (2.2.1)
66
+ capybara (2.4.4)
58
67
  mime-types (>= 1.16)
59
68
  nokogiri (>= 1.3.3)
60
69
  rack (>= 1.0.0)
61
70
  rack-test (>= 0.5.4)
62
71
  xpath (~> 2.0)
63
- capybara-screenshot (1.0.4)
72
+ capybara-screenshot (1.0.7)
64
73
  capybara (>= 1.0, < 3)
65
- colored
66
74
  launchy
67
75
  celluloid (0.15.2)
68
76
  timers (~> 1.1.0)
69
77
  cliver (0.3.2)
70
78
  coderay (1.1.0)
71
- colored (1.2)
72
79
  cool.io (1.3.0)
73
80
  crack (0.4.2)
74
81
  safe_yaml (~> 1.0.0)
@@ -99,6 +106,8 @@ GEM
99
106
  yajl-ruby (~> 1.0)
100
107
  font-awesome-rails (4.3.0.0)
101
108
  railties (>= 3.2, < 5.0)
109
+ globalid (0.3.3)
110
+ activesupport (>= 4.1.0)
102
111
  haml (4.0.6)
103
112
  tilt
104
113
  haml-rails (0.5.3)
@@ -127,6 +136,8 @@ GEM
127
136
  haml
128
137
  launchy (2.4.3)
129
138
  addressable (~> 2.3)
139
+ loofah (2.0.1)
140
+ nokogiri (>= 1.5.9)
130
141
  mail (2.6.3)
131
142
  mime-types (>= 1.16, < 3)
132
143
  mechanize (2.7.3)
@@ -143,13 +154,13 @@ GEM
143
154
  mini_portile (0.6.2)
144
155
  minitest (5.5.1)
145
156
  msgpack (0.5.11)
146
- multi_json (1.10.1)
157
+ multi_json (1.11.0)
147
158
  net-http-digest_auth (1.4)
148
159
  net-http-persistent (2.9.4)
149
160
  nokogiri (1.6.6.2)
150
161
  mini_portile (~> 0.6.0)
151
162
  ntlm-http (0.1.1)
152
- poltergeist (1.5.1)
163
+ poltergeist (1.6.0)
153
164
  capybara (~> 2.1)
154
165
  cliver (~> 0.3.1)
155
166
  multi_json (~> 1.0)
@@ -158,48 +169,56 @@ GEM
158
169
  coderay (~> 1.1.0)
159
170
  method_source (~> 0.8.1)
160
171
  slop (~> 3.4)
161
- pry-rails (0.3.2)
172
+ pry-rails (0.3.4)
162
173
  pry (>= 0.9.10)
163
174
  puma (2.11.1)
164
175
  rack (>= 1.1, < 2.0)
165
- rack (1.5.2)
176
+ rack (1.6.0)
166
177
  rack-test (0.6.3)
167
178
  rack (>= 1.0)
168
- rails (4.1.9)
169
- actionmailer (= 4.1.9)
170
- actionpack (= 4.1.9)
171
- actionview (= 4.1.9)
172
- activemodel (= 4.1.9)
173
- activerecord (= 4.1.9)
174
- activesupport (= 4.1.9)
179
+ rails (4.2.1)
180
+ actionmailer (= 4.2.1)
181
+ actionpack (= 4.2.1)
182
+ actionview (= 4.2.1)
183
+ activejob (= 4.2.1)
184
+ activemodel (= 4.2.1)
185
+ activerecord (= 4.2.1)
186
+ activesupport (= 4.2.1)
175
187
  bundler (>= 1.3.0, < 2.0)
176
- railties (= 4.1.9)
177
- sprockets-rails (~> 2.0)
178
- railties (4.1.9)
179
- actionpack (= 4.1.9)
180
- activesupport (= 4.1.9)
188
+ railties (= 4.2.1)
189
+ sprockets-rails
190
+ rails-deprecated_sanitizer (1.0.3)
191
+ activesupport (>= 4.2.0.alpha)
192
+ rails-dom-testing (1.0.6)
193
+ activesupport (>= 4.2.0.beta, < 5.0)
194
+ nokogiri (~> 1.6.0)
195
+ rails-deprecated_sanitizer (>= 1.0.1)
196
+ rails-html-sanitizer (1.0.2)
197
+ loofah (~> 2.0)
198
+ railties (4.2.1)
199
+ actionpack (= 4.2.1)
200
+ activesupport (= 4.2.1)
181
201
  rake (>= 0.8.7)
182
202
  thor (>= 0.18.1, < 2.0)
183
203
  rake (10.4.2)
184
204
  request_store (1.1.0)
185
- rspec-collection_matchers (1.1.2)
186
- rspec-expectations (>= 2.99.0.beta1)
187
- rspec-core (2.99.2)
188
- rspec-expectations (2.99.2)
189
- diff-lcs (>= 1.1.3, < 2.0)
190
- rspec-its (1.0.1)
191
- rspec-core (>= 2.99.0.beta1)
192
- rspec-expectations (>= 2.99.0.beta1)
193
- rspec-mocks (2.99.3)
194
- rspec-rails (2.99.0)
195
- actionpack (>= 3.0)
196
- activemodel (>= 3.0)
197
- activesupport (>= 3.0)
198
- railties (>= 3.0)
199
- rspec-collection_matchers
200
- rspec-core (~> 2.99.0)
201
- rspec-expectations (~> 2.99.0)
202
- rspec-mocks (~> 2.99.0)
205
+ rspec-core (3.2.2)
206
+ rspec-support (~> 3.2.0)
207
+ rspec-expectations (3.2.0)
208
+ diff-lcs (>= 1.2.0, < 2.0)
209
+ rspec-support (~> 3.2.0)
210
+ rspec-mocks (3.2.1)
211
+ diff-lcs (>= 1.2.0, < 2.0)
212
+ rspec-support (~> 3.2.0)
213
+ rspec-rails (3.2.1)
214
+ actionpack (>= 3.0, < 4.3)
215
+ activesupport (>= 3.0, < 4.3)
216
+ railties (>= 3.0, < 4.3)
217
+ rspec-core (~> 3.2.0)
218
+ rspec-expectations (~> 3.2.0)
219
+ rspec-mocks (~> 3.2.0)
220
+ rspec-support (~> 3.2.0)
221
+ rspec-support (3.2.2)
203
222
  rubyzip (1.1.7)
204
223
  safe_yaml (1.0.4)
205
224
  sass (3.2.19)
@@ -228,9 +247,9 @@ GEM
228
247
  sucker_punch (1.0.5)
229
248
  celluloid (~> 0.15.2)
230
249
  thor (0.19.1)
231
- thread_safe (0.3.4)
250
+ thread_safe (0.3.5)
232
251
  tilt (1.4.1)
233
- timecop (0.7.1)
252
+ timecop (0.7.3)
234
253
  timers (1.1.0)
235
254
  tzinfo (1.2.2)
236
255
  thread_safe (~> 0.1)
@@ -243,9 +262,9 @@ GEM
243
262
  addressable (>= 2.3.6)
244
263
  crack (>= 0.3.2)
245
264
  webrobots (0.1.1)
246
- websocket-driver (0.5.1)
265
+ websocket-driver (0.5.4)
247
266
  websocket-extensions (>= 0.1.0)
248
- websocket-extensions (0.1.1)
267
+ websocket-extensions (0.1.2)
249
268
  xpath (2.0.0)
250
269
  nokogiri (~> 1.3)
251
270
  yajl-ruby (1.2.1)
@@ -254,7 +273,7 @@ PLATFORMS
254
273
  ruby
255
274
 
256
275
  DEPENDENCIES
257
- capybara (~> 2.2.1)
276
+ capybara (~> 2.4.0)
258
277
  capybara-screenshot
259
278
  database_cleaner (~> 1.2.0)
260
279
  factory_girl_rails
@@ -264,8 +283,7 @@ DEPENDENCIES
264
283
  pry
265
284
  pry-rails
266
285
  rake
267
- rspec-its
268
- rspec-rails (~> 2.99)
286
+ rspec-rails (~> 3.0)
269
287
  simplecov (~> 0.7.1)
270
288
  timecop
271
289
  webmock (~> 1.18.0)
@@ -4,9 +4,11 @@ class Api::SettingsController < ApplicationController
4
4
  before_action :set_config
5
5
  before_action :set_section, only: [:show, :update, :destroy]
6
6
  helper_method :element_id
7
- respond_to :json
8
7
 
9
8
  def index
9
+ respond_to do |format|
10
+ format.json
11
+ end
10
12
  end
11
13
 
12
14
  def update
data/bin/rails CHANGED
@@ -1,8 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path("../spring", __FILE__)
4
- rescue LoadError
5
- end
6
- APP_PATH = File.expand_path('../../config/application', __FILE__)
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
7
3
  require_relative '../config/boot'
8
4
  require 'rails/commands'
data/bin/rake CHANGED
@@ -1,8 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path("../spring", __FILE__)
4
- rescue LoadError
5
- end
6
2
  require_relative '../config/boot'
7
3
  require 'rake'
8
4
  Rake.application.run
data/bin/setup ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
data/config/boot.rb CHANGED
@@ -1,4 +1,3 @@
1
- # Set up gems listed in the Gemfile.
2
1
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
2
 
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
3
+ require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -16,13 +16,18 @@ Rails.application.configure do
16
16
 
17
17
  # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
18
  # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
19
+ # For large-scale production use, consider using a caching reverse proxy like
20
+ # NGINX, varnish or squid.
20
21
  # config.action_dispatch.rack_cache = true
21
22
 
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.serve_static_files = true
26
+
22
27
 
23
28
  # Specifies the header that your server uses for sending files.
24
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
25
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
30
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
26
31
 
27
32
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
28
33
  # config.force_ssl = true
@@ -12,8 +12,8 @@ Rails.application.configure do
12
12
  # preloads Rails for running tests, you may have to set it to true.
13
13
  config.eager_load = false
14
14
 
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = true
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
17
  config.static_cache_control = 'public, max-age=3600'
18
18
 
19
19
  # Show full error reports and disable caching.
@@ -32,6 +32,9 @@ Rails.application.configure do
32
32
  # ActionMailer::Base.deliveries array.
33
33
  config.action_mailer.delivery_method = :test
34
34
 
35
+ # Randomize the order test cases are executed.
36
+ config.active_support.test_order = :random
37
+
35
38
  # Print deprecation notices to the stderr.
36
39
  config.active_support.deprecation = :stderr
37
40
 
@@ -1,3 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,3 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Rails.application.config.session_store :cookie_store, key: '_fluentd-ui_session'
3
+ Rails.application.config.session_store :cookie_store, key: '_fluentd_ui_session'
data/fluentd-ui.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.require_paths = ["lib"]
26
26
 
27
27
  spec.add_dependency "fluentd", [">= 0.10.56", "< 2"]
28
- spec.add_dependency 'rails', '~> 4.1.7'
28
+ spec.add_dependency 'rails', '~> 4.2.0'
29
29
  spec.add_dependency 'sucker_punch', "~> 1.0.5"
30
30
  spec.add_dependency 'addressable'
31
31
  spec.add_dependency "font-awesome-rails"
@@ -1,3 +1,3 @@
1
1
  module FluentdUI
2
- VERSION = "0.3.18"
2
+ VERSION = "0.3.19"
3
3
  end
@@ -0,0 +1,6 @@
1
+ desc "clean all files/directories in tmp/ directory (use carefully)"
2
+ task :clean do
3
+ tmp_directory = Rails.root.join("tmp")
4
+ tmp_directory.rmtree
5
+ tmp_directory.mkdir
6
+ end
@@ -13,21 +13,27 @@ describe 'Fluentd::Agent::Common' do
13
13
 
14
14
  describe '#pid' do
15
15
  context 'no pid file exists' do
16
- its(:pid) { should be_nil }
16
+ it "should be nil" do
17
+ expect(subject.pid).to be_nil
18
+ end
17
19
  end
18
20
 
19
21
  context 'empty pid file given' do
20
22
  before { FileUtils.touch pid_file_path }
21
23
  after { FileUtils.rm pid_file_path }
22
24
 
23
- its(:pid) { should be_nil }
25
+ it "should be nil" do
26
+ expect(subject.pid).to be_nil
27
+ end
24
28
  end
25
29
 
26
30
  context 'valid pid file given' do
27
31
  before { File.write pid_file_path, '9999' }
28
32
  after { FileUtils.rm pid_file_path }
29
33
 
30
- its(:pid) { should eq(9999) }
34
+ it "should be 9999" do
35
+ expect(subject.pid).to eq(9999)
36
+ end
31
37
  end
32
38
  end
33
39
 
data/spec/spec_helper.rb CHANGED
@@ -12,7 +12,6 @@ end
12
12
  ENV["RAILS_ENV"] ||= 'test'
13
13
  require File.expand_path("../../config/environment", __FILE__)
14
14
  require 'rspec/rails'
15
- require 'rspec/its'
16
15
  require 'webmock/rspec'
17
16
  WebMock.disable_net_connect!(allow_localhost: true)
18
17
  require 'capybara/poltergeist'
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.18
4
+ version: 0.3.19
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-02 00:00:00.000000000 Z
12
+ date: 2015-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 4.1.7
40
+ version: 4.2.0
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 4.1.7
47
+ version: 4.2.0
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: sucker_punch
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -448,6 +448,7 @@ files:
448
448
  - bin/fluentd-ui-restart
449
449
  - bin/rails
450
450
  - bin/rake
451
+ - bin/setup
451
452
  - bin/spring
452
453
  - bower.json
453
454
  - circle.yml
@@ -496,6 +497,7 @@ files:
496
497
  - lib/grok_converter.rb
497
498
  - lib/regexp_preview.rb
498
499
  - lib/tasks/.keep
500
+ - lib/tasks/clean.rake
499
501
  - lib/tasks/dep.rake
500
502
  - lib/treeview.rb
501
503
  - log/.keep