vanity 1.9.1 → 1.9.2

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vanity (1.9.1)
4
+ vanity (1.9.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: ..
9
9
  specs:
10
- vanity (1.9.1)
10
+ vanity (1.9.2)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: ..
9
9
  specs:
10
- vanity (1.9.1)
10
+ vanity (1.9.2)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: ..
9
9
  specs:
10
- vanity (1.9.1)
10
+ vanity (1.9.2)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: ..
9
9
  specs:
10
- vanity (1.9.1)
10
+ vanity (1.9.2)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
@@ -36,7 +36,8 @@ module Vanity
36
36
  class VanityMetric < VanityRecord
37
37
  UPDATED_AT_GRACE_PERIOD = 1.minute
38
38
  self.table_name = :vanity_metrics
39
- has_many :vanity_metric_values
39
+ has_many :vanity_metric_values,
40
+ :class_name => 'Vanity::Adapters::ActiveRecordAdapter::VanityMetricValue'
40
41
 
41
42
  def self.retrieve(metric)
42
43
  rails_agnostic_find_or_create_by(:metric_id, metric.to_s)
@@ -59,13 +60,15 @@ module Vanity
59
60
  attr_accessible :date, :index, :value if needs_attr_accessible?
60
61
 
61
62
  self.table_name = :vanity_metric_values
62
- belongs_to :vanity_metric
63
+ belongs_to :vanity_metric,
64
+ :class_name => 'Vanity::Adapters::ActiveRecordAdapter::VanityMetric'
63
65
  end
64
66
 
65
67
  # Experiment model
66
68
  class VanityExperiment < VanityRecord
67
69
  self.table_name = :vanity_experiments
68
- has_many :vanity_conversions, :dependent => :destroy
70
+ has_many :vanity_conversions, :dependent => :destroy,
71
+ :class_name => 'Vanity::Adapters::ActiveRecordAdapter::VanityConversion'
69
72
  attr_accessible :experiment_id if needs_attr_accessible?
70
73
 
71
74
  # Finds or creates the experiment
@@ -82,7 +85,8 @@ module Vanity
82
85
  # Conversion model
83
86
  class VanityConversion < VanityRecord
84
87
  self.table_name = :vanity_conversions
85
- belongs_to :vanity_experiment
88
+ belongs_to :vanity_experiment,
89
+ :class_name => 'Vanity::Adapters::ActiveRecordAdapter::VanityExperiment'
86
90
  end
87
91
 
88
92
  # Participant model
@@ -1,5 +1,5 @@
1
1
  module Vanity
2
- VERSION = "1.9.1"
2
+ VERSION = "1.9.2"
3
3
 
4
4
  module Version
5
5
  version = VERSION.to_s.split(".").map { |i| i.to_i }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-20 00:00:00.000000000 Z
12
+ date: 2015-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -181,7 +181,7 @@ licenses:
181
181
  post_install_message: To get started run vanity --help
182
182
  rdoc_options:
183
183
  - --title
184
- - Vanity 1.9.1
184
+ - Vanity 1.9.2
185
185
  - --main
186
186
  - README.rdoc
187
187
  - --webcvs