prosperity 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/prosperity/graph.js.coffee +14 -3
  3. data/app/assets/stylesheets/prosperity/graph.css.scss +4 -6
  4. data/app/controllers/prosperity/graphs_controller.rb +24 -15
  5. data/app/models/prosperity/graph.rb +4 -1
  6. data/app/views/layouts/prosperity/application.html.erb +1 -1
  7. data/app/views/layouts/prosperity/embedabble.html.erb +16 -0
  8. data/app/views/prosperity/graphs/edit.html.erb +20 -3
  9. data/app/views/prosperity/graphs/show.html.erb +3 -0
  10. data/db/migrate/20140516222642_add_graph_type_to_graphs.rb +11 -0
  11. data/lib/prosperity/version.rb +1 -1
  12. data/spec/controllers/prosperity/dashboard_graphs_controller_spec.rb +1 -1
  13. data/spec/controllers/prosperity/graphs_controller_spec.rb +31 -12
  14. data/spec/dummy/db/schema.rb +2 -1
  15. data/spec/dummy/log/development.log +4244 -0
  16. data/spec/dummy/log/test.log +14113 -0
  17. data/spec/dummy/tmp/cache/assets/development/sass/34a577735054231563e7022ea73e1468db9203ba/graph.css.scssc +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/197492ed379339e17a0f5d01d3b01b8c +0 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/1c55cf24465f311353197ce336df0178 +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/210050da208fb75a75b701bfa4e8470f +0 -0
  21. data/spec/dummy/tmp/cache/assets/development/sprockets/27a59e08207d3ae723f2b2b3d22264c3 +0 -0
  22. data/spec/dummy/tmp/cache/assets/development/sprockets/5f7660fd92b228b2de09f92d54ca6b49 +0 -0
  23. data/spec/dummy/tmp/cache/assets/development/sprockets/6882b260ae69f1594eff540d803e5ac3 +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sprockets/828a046f0e7dc2dad0eecfe49d31e14d +0 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/a2b14d5c46db32da9183354fb3fcd0bf +0 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/a6d6196cfd275dea0718553a95f997a5 +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/aacfd4457155e8607cbe66d5fdaf11b3 +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/d94883bc533251c5e4b4821c716ae300 +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/f4648036e284d9aa3468f4f7b9bbb967 +0 -0
  30. data/spec/dummy/tmp/cache/assets/test/sass/34a577735054231563e7022ea73e1468db9203ba/graph.css.scssc +0 -0
  31. data/spec/dummy/tmp/cache/assets/test/sprockets/197492ed379339e17a0f5d01d3b01b8c +0 -0
  32. data/spec/dummy/tmp/cache/assets/test/sprockets/1c55cf24465f311353197ce336df0178 +0 -0
  33. data/spec/dummy/tmp/cache/assets/test/sprockets/210050da208fb75a75b701bfa4e8470f +0 -0
  34. data/spec/dummy/tmp/cache/assets/test/sprockets/27a59e08207d3ae723f2b2b3d22264c3 +0 -0
  35. data/spec/dummy/tmp/cache/assets/test/sprockets/6882b260ae69f1594eff540d803e5ac3 +0 -0
  36. data/spec/dummy/tmp/cache/assets/test/sprockets/a2b14d5c46db32da9183354fb3fcd0bf +0 -0
  37. data/spec/dummy/tmp/cache/assets/test/sprockets/a6d6196cfd275dea0718553a95f997a5 +0 -0
  38. data/spec/dummy/tmp/cache/assets/test/sprockets/aacfd4457155e8607cbe66d5fdaf11b3 +0 -0
  39. data/spec/dummy/tmp/cache/assets/test/sprockets/d94883bc533251c5e4b4821c716ae300 +0 -0
  40. data/spec/dummy/tmp/cache/assets/test/sprockets/f4648036e284d9aa3468f4f7b9bbb967 +0 -0
  41. data/spec/models/prosperity/graph_spec.rb +7 -0
  42. metadata +4 -1
@@ -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.6
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