prosperity 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/prosperity/graph.js.coffee +14 -3
- data/app/assets/stylesheets/prosperity/graph.css.scss +4 -6
- data/app/controllers/prosperity/graphs_controller.rb +24 -15
- data/app/models/prosperity/graph.rb +4 -1
- data/app/views/layouts/prosperity/application.html.erb +1 -1
- data/app/views/layouts/prosperity/embedabble.html.erb +16 -0
- data/app/views/prosperity/graphs/edit.html.erb +20 -3
- data/app/views/prosperity/graphs/show.html.erb +3 -0
- data/db/migrate/20140516222642_add_graph_type_to_graphs.rb +11 -0
- data/lib/prosperity/version.rb +1 -1
- data/spec/controllers/prosperity/dashboard_graphs_controller_spec.rb +1 -1
- data/spec/controllers/prosperity/graphs_controller_spec.rb +31 -12
- data/spec/dummy/db/schema.rb +2 -1
- data/spec/dummy/log/development.log +4244 -0
- data/spec/dummy/log/test.log +14113 -0
- data/spec/dummy/tmp/cache/assets/development/sass/34a577735054231563e7022ea73e1468db9203ba/graph.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/197492ed379339e17a0f5d01d3b01b8c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1c55cf24465f311353197ce336df0178 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/210050da208fb75a75b701bfa4e8470f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/27a59e08207d3ae723f2b2b3d22264c3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5f7660fd92b228b2de09f92d54ca6b49 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6882b260ae69f1594eff540d803e5ac3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/828a046f0e7dc2dad0eecfe49d31e14d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a2b14d5c46db32da9183354fb3fcd0bf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a6d6196cfd275dea0718553a95f997a5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aacfd4457155e8607cbe66d5fdaf11b3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d94883bc533251c5e4b4821c716ae300 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f4648036e284d9aa3468f4f7b9bbb967 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/34a577735054231563e7022ea73e1468db9203ba/graph.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/197492ed379339e17a0f5d01d3b01b8c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1c55cf24465f311353197ce336df0178 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/210050da208fb75a75b701bfa4e8470f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/27a59e08207d3ae723f2b2b3d22264c3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6882b260ae69f1594eff540d803e5ac3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a2b14d5c46db32da9183354fb3fcd0bf +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a6d6196cfd275dea0718553a95f997a5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/aacfd4457155e8607cbe66d5fdaf11b3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d94883bc533251c5e4b4821c716ae300 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f4648036e284d9aa3468f4f7b9bbb967 +0 -0
- data/spec/models/prosperity/graph_spec.rb +7 -0
- metadata +4 -1
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/34a577735054231563e7022ea73e1468db9203ba/graph.css.scssc
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -2,5 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Prosperity
|
4
4
|
describe Graph do
|
5
|
+
describe "#valid?" do
|
6
|
+
it { should allow_value('line').for(:graph_type) }
|
7
|
+
it { should allow_value('area').for(:graph_type) }
|
8
|
+
it { should_not allow_value('whatever').for(:graph_type) }
|
9
|
+
it { should_not allow_value(nil).for(:graph_type) }
|
10
|
+
it { should_not allow_value("").for(:graph_type) }
|
11
|
+
end
|
5
12
|
end
|
6
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prosperity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Mathieu
|
@@ -82,17 +82,20 @@ files:
|
|
82
82
|
- app/models/prosperity/graph.rb
|
83
83
|
- app/models/prosperity/graph_line.rb
|
84
84
|
- app/views/layouts/prosperity/application.html.erb
|
85
|
+
- app/views/layouts/prosperity/embedabble.html.erb
|
85
86
|
- app/views/prosperity/dashboards/edit.html.erb
|
86
87
|
- app/views/prosperity/dashboards/index.html.erb
|
87
88
|
- app/views/prosperity/dashboards/new.html.erb
|
88
89
|
- app/views/prosperity/dashboards/show.html.erb
|
89
90
|
- app/views/prosperity/graphs/edit.html.erb
|
90
91
|
- app/views/prosperity/graphs/new.html.erb
|
92
|
+
- app/views/prosperity/graphs/show.html.erb
|
91
93
|
- app/views/prosperity/metrics/index.html.erb
|
92
94
|
- app/views/prosperity/metrics/show.html.erb
|
93
95
|
- app/views/prosperity/shared/_date_range.html.erb
|
94
96
|
- config/routes.rb
|
95
97
|
- db/migrate/20131127042251_dashboards.rb
|
98
|
+
- db/migrate/20140516222642_add_graph_type_to_graphs.rb
|
96
99
|
- lib/generators/metric/USAGE
|
97
100
|
- lib/generators/metric/metric_generator.rb
|
98
101
|
- lib/generators/metric/templates/metric.rb.erb
|