oxidized-web 0.7.1 → 0.8.0

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

Potentially problematic release.


This version of oxidized-web might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a6c99156a4f1b11e6191cebbc45930a1a9b08c3
4
- data.tar.gz: b1b53cd9ad617946022cdc76c7a434dea13dbbf8
3
+ metadata.gz: c961dc5e881fa1ff198d051155548ce78c83aa28
4
+ data.tar.gz: 96c4683669a7be4399b5861b5c71ef6dc71ec474
5
5
  SHA512:
6
- metadata.gz: eece9ad88b2bae1ce741199d3402da38c1fc2aaf2a38b0f8b1bc076b2c134f8f6f49670ac4a3c2fd1ac92ed2c05cb493fe0d8f8dbf153a2ef9d99a5bdc9e544e
7
- data.tar.gz: 283a0bb900bd859e92ee320ae792b9250bd55d75f2181d0b5c3bbb98ecabe304601863ac78bdf4551c8ae34b9cfec5173f05e777d6fc3da40317fc9a2c3f22a8
6
+ metadata.gz: e1d2f501cb2325ceb4cd30d601d11ee395a80d8f06ea5f0ff2b38a977c9ad09718cc772b2ed1a35ec07aff624ce7ae8894e6c35303a3199937eedea8e4319924
7
+ data.tar.gz: ae93b452c2d73f24c86b4e1d696e6f48c01bb981d41f8f31d556ee80ff9c9ad76a7dc3dd01aa25a050ce2b983bab40bdd631a311b511e53d8300f8759ce4a268
data/.gitignore CHANGED
@@ -1,2 +1,50 @@
1
- Gemfile.lock
2
- gems
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
data/Rakefile CHANGED
@@ -1,10 +1,5 @@
1
- begin
2
- require 'rake/testtask'
3
- require 'bundler'
4
- # Bundler.setup
5
- rescue LoadError
6
- warn 'bundler missing'
7
- end
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
8
3
 
9
4
  gemspec = eval(File.read(Dir['*.gemspec'].first))
10
5
  file = [gemspec.name, gemspec.version].join('-') + '.gem'
@@ -17,27 +12,21 @@ end
17
12
  desc 'Run minitest'
18
13
  task :test do
19
14
  Rake::TestTask.new do |t|
20
- t.libs.push 'lib'
21
- t.test_files = FileList['spec/*_spec.rb']
15
+ t.libs << 'spec'
16
+ t.test_files = FileList['spec/**/*_spec.rb']
17
+ t.warning = true
22
18
  t.verbose = true
23
19
  end
24
20
  end
25
21
 
26
- desc 'Build gem'
27
- task :build do
28
- system "gem build #{gemspec.name}.gemspec"
29
- FileUtils.mkdir_p 'gems'
30
- FileUtils.mv file, 'gems'
31
- end
32
-
33
- desc 'Install gem'
34
- task install: :build do
35
- system "sudo -Es sh -c \'umask 022; gem install gems/#{file}\'"
36
- end
22
+ ## desc 'Install gem'
23
+ ## task :install => :build do
24
+ ## system "sudo -Es sh -c \'umask 022; gem install gems/#{file}\'"
25
+ ## end
37
26
 
38
27
  desc 'Remove gems'
39
28
  task :clean do
40
- FileUtils.rm_rf 'gems'
29
+ FileUtils.rm_rf 'pkg'
41
30
  end
42
31
 
43
32
  desc 'Tag the release'
@@ -46,6 +35,8 @@ task :tag do
46
35
  end
47
36
 
48
37
  desc 'Push to rubygems'
49
- task push: :tag do
50
- system "gem push gems/#{file}"
38
+ task :push => :tag do
39
+ system "gem push pkg/#{file}"
51
40
  end
41
+
42
+ task default: :test
@@ -44,7 +44,7 @@ var convertTime = function() {
44
44
  */
45
45
  $('.time').each(function() {
46
46
  var content = $(this).text();
47
- if(content === 'never') { return; }
47
+ if(content === 'never' || content === '') { return; }
48
48
  var utcTime = content.split(' ');
49
49
  var date = new Date(utcTime[0] + 'T' + utcTime[1] + 'Z');
50
50
  var year = date.getFullYear();
@@ -2,6 +2,7 @@
2
2
  %meta{charset: 'utf-8'}
3
3
  %meta{:'meta-equiv' => 'X-UA-Compatible', content: 'IE=edge'}
4
4
  %meta{name: 'viewport', content: 'width=device-width, initial-scale=1'}
5
+ %meta{name: 'google', content: 'notranslate'}
5
6
  %title oxidized
6
7
  %link{rel: 'stylesheet', href: url_for('/css/bootstrap.min.css')}
7
8
  %link{rel: 'stylesheet', href: url_for('/css/oxidized.css')}
@@ -45,7 +45,7 @@ module Oxidized
45
45
  out :nodes
46
46
  end
47
47
 
48
- post '/nodes/conf_search' do
48
+ post '/nodes/conf_search.?:format?' do
49
49
  @to_research = Regexp.new params[:search_in_conf_textbox]
50
50
  nodes_list = nodes.list.map
51
51
  @nodes_match = []
@@ -56,6 +56,7 @@ module Oxidized
56
56
  @nodes_match.push({ node: n[:name], full_name: n[:full_name] })
57
57
  end
58
58
  end
59
+ @data = @nodes_match
59
60
  out :conf_search
60
61
  end
61
62
 
@@ -262,7 +263,7 @@ module Oxidized
262
263
  date.insert(21, '+')
263
264
  end
264
265
  date = DateTime.parse date
265
- now = DateTime.now
266
+ now = DateTime.now.new_offset(0)
266
267
  t = ((now - date) * 24 * 60 * 60).to_i
267
268
  mm, ss = t.divmod(60)
268
269
  hh, mm = mm.divmod(60)
data/oxidized-web.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'oxidized-web'
3
- s.version = '0.7.1'
3
+ s.version = '0.8.0'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Saku Ytti', 'Samer Abdel-Hafez']
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.require_path = 'lib'
15
15
 
16
16
  s.required_ruby_version = '>= 1.9.3'
17
- s.add_runtime_dependency 'oxidized', '~> 0.13'
17
+ s.add_runtime_dependency 'oxidized', '~> 0.19'
18
18
  s.add_runtime_dependency 'puma', '~> 2.8'
19
19
  s.add_runtime_dependency 'sinatra', '~> 1.4', '>= 1.4.6'
20
20
  s.add_runtime_dependency 'sinatra-contrib', '~> 1.4', '>= 1.4.6'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxidized-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-28 00:00:00.000000000 Z
12
+ date: 2017-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oxidized
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.13'
20
+ version: '0.19'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.13'
27
+ version: '0.19'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: puma
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project: oxidized-web
200
- rubygems_version: 2.5.1
200
+ rubygems_version: 2.5.2
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: sinatra API + webUI for oxidized