pulse_meter_visualizer 0.4.16 → 0.4.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +0 -1
- data/lib/pulse_meter/visualize/app.rb +2 -0
- data/lib/pulse_meter/visualize/dsl/layout.rb +1 -0
- data/lib/pulse_meter/visualize/public/css/embedded.css +12 -0
- data/lib/pulse_meter/visualize/views/main.haml +2 -0
- data/pulse_meter_visualizer.gemspec +1 -1
- data/spec/spec_helper.rb +5 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjUxYjFhNTdhYWJjZThhYmZjN2ZmZjgwMDVkZjIwNDYyZTkyZThkZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDc4NGZiNjYwMjNlMjZmNDk5ZTlmMjBlYjVjYzRkMDAyZjYzMWY1OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTg5ODEwY2MwOTE0NDBkMWFjMWFlMDY1ZWUwZTcyYmQ2ZjQ1YjU3NjdlZmQ1
|
10
|
+
NjVhY2QyZTVkN2FjOGUxZDEwNmVmOWIxZTdmYmFlMTA1MjM2MjFiY2Y0OGRk
|
11
|
+
MTBiODJkZWNiOTVhYWI0MWUwOGM0N2M3OTdmYjI0M2VlYmEzNDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGNkN2YyNjllOTVlMDk3ZTkxZjQ1ODUzOTM5ODM5YTMwOGY0NjZhMjFiMmZm
|
14
|
+
MDM0ZmIxZGY4ZDE1MzY3ZmY3YzI0NmQ3Y2E1ZjVjMWI1N2FlNDFjZThhZDc4
|
15
|
+
N2Q2MTczODAzYjc0ZWQxY2RhNzU5MDUxOTkwMjNjZTE1NzQ2N2Y=
|
data/.travis.yml
CHANGED
@@ -14,6 +14,7 @@ module PulseMeter
|
|
14
14
|
|
15
15
|
def initialize(layout)
|
16
16
|
@layout = layout
|
17
|
+
self.class.set :protection, except: :frame_options if @layout.embedded
|
17
18
|
super()
|
18
19
|
end
|
19
20
|
|
@@ -23,6 +24,7 @@ module PulseMeter
|
|
23
24
|
|
24
25
|
get '/' do
|
25
26
|
@title = @layout.title
|
27
|
+
@embedded = @layout.embedded
|
26
28
|
gon.pageInfos = camelize_keys(@layout.page_infos)
|
27
29
|
gon.options = camelize_keys(@layout.options)
|
28
30
|
haml :main
|
@@ -8,6 +8,8 @@
|
|
8
8
|
%script{type: 'text/javascript', src: url("/js/#{jsfile}")}
|
9
9
|
- %w{bootstrap.min.css application.css jquery-ui-1.8.16.bootstrap.css}.each do |cssfile|
|
10
10
|
%link{rel: 'stylesheet', href: url("/css/#{cssfile}"), type: 'text/css', media: 'screen'}
|
11
|
+
- if @embedded
|
12
|
+
%link{rel: 'stylesheet', href: url('/css/embedded.css'), type: 'text/css', media: 'screen'}
|
11
13
|
%script{type: 'text/javascript', src: "https://www.google.com/jsapi"}
|
12
14
|
:javascript
|
13
15
|
google.load("visualization", "1", {packages:["corechart", "table", "gauge"]});
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
15
|
gem.name = "pulse_meter_visualizer"
|
16
16
|
gem.require_paths = ["lib"]
|
17
|
-
gem.version = "0.4.
|
17
|
+
gem.version = "0.4.17"
|
18
18
|
|
19
19
|
gem.add_runtime_dependency('pulse_meter_core')
|
20
20
|
gem.add_runtime_dependency('gon-sinatra')
|
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require '
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start
|
4
|
+
|
5
|
+
|
3
6
|
$:.unshift File.expand_path('../../lib/', __FILE__)
|
4
7
|
|
5
8
|
ROOT = File.expand_path('../..', __FILE__)
|
6
9
|
|
7
10
|
Bundler.require(:default, :test, :development)
|
8
11
|
|
9
|
-
SimpleCov.start
|
10
12
|
|
11
13
|
require 'pulse_meter_visualizer'
|
12
14
|
PulseMeter.redis = MockRedis.new
|
@@ -17,7 +19,7 @@ Dir['spec/shared_examples/**/*.rb'].each{|f| require File.join(ROOT,f)}
|
|
17
19
|
|
18
20
|
require 'aquarium'
|
19
21
|
include Aquarium::Aspects
|
20
|
-
|
22
|
+
|
21
23
|
Aspect.new :after, :calls_to => [:event, :event_at], :for_types => [PulseMeter::Sensor::Base, PulseMeter::Sensor::Timeline] do |jp, obj, *args|
|
22
24
|
PulseMeter.command_aggregator.wait_for_pending_events
|
23
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulse_meter_visualizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Averyanov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pulse_meter_core
|
@@ -355,6 +355,7 @@ files:
|
|
355
355
|
- lib/pulse_meter/visualize/public/css/application.css
|
356
356
|
- lib/pulse_meter/visualize/public/css/bootstrap.css
|
357
357
|
- lib/pulse_meter/visualize/public/css/bootstrap.min.css
|
358
|
+
- lib/pulse_meter/visualize/public/css/embedded.css
|
358
359
|
- lib/pulse_meter/visualize/public/css/images/ui-bg_flat_0_aaaaaa_40x100.png
|
359
360
|
- lib/pulse_meter/visualize/public/css/images/ui-bg_glass_55_fbf9ee_1x400.png
|
360
361
|
- lib/pulse_meter/visualize/public/css/images/ui-bg_glass_65_ffffff_1x400.png
|