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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2JiMjc2MWMyYmJhYmFjYmExYjcyNWYyODE2NzZhNzA4NWI0OWQ3Ng==
4
+ NjUxYjFhNTdhYWJjZThhYmZjN2ZmZjgwMDVkZjIwNDYyZTkyZThkZQ==
5
5
  data.tar.gz: !binary |-
6
- MjlmYmNhNThkNGI0OGM5Y2ZmNGQzYjdiZDVkYTEyMjI2Y2VmNTU4Nw==
6
+ MDc4NGZiNjYwMjNlMjZmNDk5ZTlmMjBlYjVjYzRkMDAyZjYzMWY1OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDZiNGFhMzlmODEwMThhMTM5ZjNhZTFlZDBlNjQ0MWU4MTRhNzk3ZDY2ZjQx
10
- Mjg2OWQ2YzU0ZWJmZTIxMjI3ZGFhOGI4YmJmM2JlZWJlYjc5ZDk1ZTQ5NDJi
11
- OWMxOTQ0YmQxNzkyOWI5Y2Q5M2I0MWE5NGM4MGZkODljNWY1ZTk=
9
+ OTg5ODEwY2MwOTE0NDBkMWFjMWFlMDY1ZWUwZTcyYmQ2ZjQ1YjU3NjdlZmQ1
10
+ NjVhY2QyZTVkN2FjOGUxZDEwNmVmOWIxZTdmYmFlMTA1MjM2MjFiY2Y0OGRk
11
+ MTBiODJkZWNiOTVhYWI0MWUwOGM0N2M3OTdmYjI0M2VlYmEzNDc=
12
12
  data.tar.gz: !binary |-
13
- NDM5ZTYzZDc3YTVmZDU4ODAwNmQwMjE4ZTY0NzA5ODNlMmRiODBhOTgyMDBl
14
- M2JmNmE5ODRjMjEzOWM4YTIxNTY3N2U4NDllMjRkNzgwNWFmZTFhNjZkNzg3
15
- MjZhNzc3NThiNTliNjlhM2EyOWRiMGZkM2YzYmUyM2E2NmUwYmM=
13
+ MGNkN2YyNjllOTVlMDk3ZTkxZjQ1ODUzOTM5ODM5YTMwOGY0NjZhMjFiMmZm
14
+ MDM0ZmIxZGY4ZDE1MzY3ZmY3YzI0NmQ3Y2E1ZjVjMWI1N2FlNDFjZThhZDc4
15
+ N2Q2MTczODAzYjc0ZWQxY2RhNzU5MDUxOTkwMjNjZTE1NzQ2N2Y=
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
3
  - 1.9.3
5
4
  - 2.0.0
6
5
  branches:
@@ -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
@@ -14,6 +14,7 @@ module PulseMeter
14
14
 
15
15
  string_setter :title
16
16
  bool_setter :use_utc
17
+ bool_setter :embedded
17
18
  hash_extender :gchart_options
18
19
 
19
20
  deprecated_setter :outlier_color
@@ -0,0 +1,12 @@
1
+ .container-fluid {
2
+ margin: 0 !important;
3
+ padding: 0 !important;
4
+ }
5
+
6
+ #chart-controls {
7
+ display: none;
8
+ }
9
+
10
+ .navbar {
11
+ display: none;
12
+ }
@@ -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.16"
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 'bundler/setup'
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.16
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-17 00:00:00.000000000 Z
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