metrify 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +18 -0
- data/app/views/metrify/_mailer_charts_summary.html.erb +3 -0
- data/app/views/metrify/_mailer_single_chart.html.erb +26 -0
- data/lib/metrify.rb +7 -6
- data/spec/debug.log +9290 -0
- data/spec/metrify_spec.rb +8 -0
- metadata +6 -4
data/spec/metrify_spec.rb
CHANGED
|
@@ -102,6 +102,14 @@ describe "Metrify" do
|
|
|
102
102
|
historical_site_stats[0].element_a_count.should eql 23
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
+
it "should fail inclusion if class does not extend ActiveRecord" do
|
|
106
|
+
lambda {
|
|
107
|
+
class NotActiveRecordSubclass
|
|
108
|
+
include Metrify
|
|
109
|
+
end
|
|
110
|
+
}.should raise_error(Metrify::MetrifyInclusionError)
|
|
111
|
+
end
|
|
112
|
+
|
|
105
113
|
it "should return filters with hash of hashes" do
|
|
106
114
|
Metric.filters['type'].keys.to_set.should eql ['numbers', 'letters', 'animals'].to_set
|
|
107
115
|
Metric.filters['type']['numbers']['set'].to_set.should eql ['element_1_count', 'element_2_count', 'element_3_count', 'element_4_count'].to_set
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metrify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
8
|
+
- 5
|
|
9
9
|
- 0
|
|
10
|
-
version: 0.
|
|
10
|
+
version: 0.5.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Stephen Abrams
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-12-01 00:00:00 -05:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -49,6 +49,8 @@ files:
|
|
|
49
49
|
- app/helpers/metrify_helper.rb
|
|
50
50
|
- app/views/metrify/_chart.html.erb
|
|
51
51
|
- app/views/metrify/_graph.html.erb
|
|
52
|
+
- app/views/metrify/_mailer_charts_summary.html.erb
|
|
53
|
+
- app/views/metrify/_mailer_single_chart.html.erb
|
|
52
54
|
- app/views/metrify/_time_links.erb
|
|
53
55
|
- lib/metrify.rb
|
|
54
56
|
- spec/database.yml
|