emitter 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
@@ -0,0 +1,6 @@
1
+ 0.11.2 / 2012-04-18
2
+
3
+ * Enhancements
4
+
5
+ * DRY up data miner script code injection with data_miner 2.x syntax
6
+ * Tested with MRI 1.8, MRI 1.9, and JRuby 1.6.7+
data/Gemfile CHANGED
@@ -1,11 +1,24 @@
1
+ source :rubygems
2
+
3
+ gemspec
4
+
1
5
  gem 'sniff', :path => ENV['LOCAL_SNIFF'] if ENV['LOCAL_SNIFF']
2
6
  gem 'data_miner', :path => ENV['LOCAL_DATA_MINER'] if ENV['LOCAL_DATA_MINER']
3
7
  gem 'earth', :path => ENV['LOCAL_EARTH'] if ENV['LOCAL_EARTH']
4
8
 
5
- source :rubygems
6
-
7
- gemspec :path => '.'
9
+ gem 'activerecord', '~>3'
10
+ gem 'bueller'
11
+ gem 'sniff', '>=0.11.0' unless ENV['LOCAL_SNIFF']
8
12
 
9
13
  if RUBY_VERSION < "1.9"
10
14
  gem 'fastercsv'
11
15
  end
16
+
17
+ platforms :ruby do
18
+ gem 'sqlite3'
19
+ end
20
+
21
+ platforms :jruby do
22
+ gem 'jruby-openssl'
23
+ gem 'activerecord-jdbcsqlite3-adapter'
24
+ end
data/emitter.gemspec CHANGED
@@ -1,13 +1,11 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "emitter/version"
2
+ require File.expand_path("../lib/emitter/version", __FILE__)
4
3
 
5
4
  Gem::Specification.new do |s|
6
5
  s.name = 'emitter'
7
6
  s.version = Emitter::VERSION
8
- s.platform = Gem::Platform::RUBY
9
7
  s.authors = ["Andy Rossmeissl", "Seamus Abshere", "Ian Hough", "Matt Kling", 'Derek Kastner']
10
- s.email = %q{derek@brighterplanet.com}
8
+ s.email = ['andy@rossmeissl.net', "seamus@abshere.net", "ijhough@gmail.com", "matt.kling@gmail.com", "dkastner@gmail.com"]
11
9
  s.homepage = "https://github.com/brighterplanet/emitter"
12
10
  s.summary = %q{A framework for modelling the impact of real-world entities.}
13
11
  s.description = %q{A framework for modelling the impact of real-world entities.}
@@ -19,7 +17,7 @@ Gem::Specification.new do |s|
19
17
 
20
18
  s.add_dependency 'activesupport', '>=2.3.10'
21
19
  s.add_dependency 'charisma'
22
- s.add_dependency 'data_miner', '>=1.2.1' unless ENV['LOCAL_DATA_MINER']
20
+ s.add_dependency 'data_miner', '>=2' unless ENV['LOCAL_DATA_MINER']
23
21
  s.add_dependency 'earth', '>=0.5.1' unless ENV['LOCAL_EARTH']
24
22
  s.add_dependency 'falls_back_on'
25
23
  s.add_dependency 'leap', '>=0.5.4'
@@ -27,7 +25,4 @@ Gem::Specification.new do |s|
27
25
  s.add_dependency 'timeframe'
28
26
  s.add_dependency 'weighted_average'
29
27
  s.add_dependency 'active_record_inline_schema'
30
- s.add_development_dependency 'activerecord', '~>3'
31
- s.add_development_dependency 'bueller'
32
- s.add_development_dependency 'sniff', '>=0.11.0' unless ENV['LOCAL_SNIFF']
33
28
  end
data/lib/emitter.rb CHANGED
@@ -55,12 +55,9 @@ module BrighterPlanet
55
55
  end
56
56
 
57
57
  base.send :include, "::BrighterPlanet::#{common_camel}::Data".constantize
58
- unless base.data_miner_config.steps.any? { |step| step.description == :auto_upgrade! }
59
- base.data_miner_config.steps.unshift ::DataMiner::Process.new(base.data_miner_config, :auto_upgrade! )
60
- end
61
- unless base.data_miner_config.steps.any? { |step| step.description == :run_data_miner_on_parent_associations! }
62
- base.data_miner_config.steps.push ::DataMiner::Process.new(base.data_miner_config, :run_data_miner_on_parent_associations!)
63
- end
58
+
59
+ base.data_miner_script.prepend_once :process, :auto_upgrade!
60
+ base.data_miner_script.append_once :process, :run_data_miner_on_parent_associations!
64
61
 
65
62
  base.extend ::SummaryJudgement
66
63
  base.send :include, "::BrighterPlanet::#{common_camel}::Summarization".constantize
@@ -1,3 +1,3 @@
1
1
  module Emitter
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
3
3
  end
data/spec/emitter_spec.rb CHANGED
@@ -37,9 +37,9 @@ describe BrighterPlanet::Emitter do
37
37
  end
38
38
 
39
39
  it 'should have extra data_miner steps' do
40
- Airship.data_miner_config.steps[0].description.should == :auto_upgrade!
41
- Airship.data_miner_config.steps[1].description.should == "the first step defined in the emitter module"
42
- Airship.data_miner_config.steps[2].description.should == :run_data_miner_on_parent_associations!
40
+ Airship.data_miner_script.steps[0].description.should == :auto_upgrade!
41
+ Airship.data_miner_script.steps[1].description.should == "the first step defined in the emitter module"
42
+ Airship.data_miner_script.steps[2].description.should == :run_data_miner_on_parent_associations!
43
43
  end
44
44
 
45
45
  it 'should have units' do
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,6 @@
1
1
  require 'rubygems'
2
- require 'bundler'
3
- Bundler.setup
2
+ require 'bundler/setup'
4
3
  require 'sniff'
5
4
  Sniff.init File.join(File.dirname(__FILE__), '..', '..')
6
5
 
7
- $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
8
6
  require 'emitter'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,11 +13,11 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2012-03-27 00:00:00.000000000 Z
16
+ date: 2012-04-18 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activesupport
20
- requirement: &2166395340 !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
21
21
  none: false
22
22
  requirements:
23
23
  - - ! '>='
@@ -25,10 +25,15 @@ dependencies:
25
25
  version: 2.3.10
26
26
  type: :runtime
27
27
  prerelease: false
28
- version_requirements: *2166395340
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.3.10
29
34
  - !ruby/object:Gem::Dependency
30
35
  name: charisma
31
- requirement: &2166394900 !ruby/object:Gem::Requirement
36
+ requirement: !ruby/object:Gem::Requirement
32
37
  none: false
33
38
  requirements:
34
39
  - - ! '>='
@@ -36,21 +41,31 @@ dependencies:
36
41
  version: '0'
37
42
  type: :runtime
38
43
  prerelease: false
39
- version_requirements: *2166394900
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
40
50
  - !ruby/object:Gem::Dependency
41
51
  name: data_miner
42
- requirement: &2166394320 !ruby/object:Gem::Requirement
52
+ requirement: !ruby/object:Gem::Requirement
43
53
  none: false
44
54
  requirements:
45
55
  - - ! '>='
46
56
  - !ruby/object:Gem::Version
47
- version: 1.2.1
57
+ version: '2'
48
58
  type: :runtime
49
59
  prerelease: false
50
- version_requirements: *2166394320
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '2'
51
66
  - !ruby/object:Gem::Dependency
52
67
  name: earth
53
- requirement: &2166393760 !ruby/object:Gem::Requirement
68
+ requirement: !ruby/object:Gem::Requirement
54
69
  none: false
55
70
  requirements:
56
71
  - - ! '>='
@@ -58,10 +73,15 @@ dependencies:
58
73
  version: 0.5.1
59
74
  type: :runtime
60
75
  prerelease: false
61
- version_requirements: *2166393760
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: 0.5.1
62
82
  - !ruby/object:Gem::Dependency
63
83
  name: falls_back_on
64
- requirement: &2166393340 !ruby/object:Gem::Requirement
84
+ requirement: !ruby/object:Gem::Requirement
65
85
  none: false
66
86
  requirements:
67
87
  - - ! '>='
@@ -69,10 +89,15 @@ dependencies:
69
89
  version: '0'
70
90
  type: :runtime
71
91
  prerelease: false
72
- version_requirements: *2166393340
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
73
98
  - !ruby/object:Gem::Dependency
74
99
  name: leap
75
- requirement: &2166392800 !ruby/object:Gem::Requirement
100
+ requirement: !ruby/object:Gem::Requirement
76
101
  none: false
77
102
  requirements:
78
103
  - - ! '>='
@@ -80,10 +105,15 @@ dependencies:
80
105
  version: 0.5.4
81
106
  type: :runtime
82
107
  prerelease: false
83
- version_requirements: *2166392800
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: 0.5.4
84
114
  - !ruby/object:Gem::Dependency
85
115
  name: summary_judgement
86
- requirement: &2166392340 !ruby/object:Gem::Requirement
116
+ requirement: !ruby/object:Gem::Requirement
87
117
  none: false
88
118
  requirements:
89
119
  - - ! '>='
@@ -91,10 +121,15 @@ dependencies:
91
121
  version: '0'
92
122
  type: :runtime
93
123
  prerelease: false
94
- version_requirements: *2166392340
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
95
130
  - !ruby/object:Gem::Dependency
96
131
  name: timeframe
97
- requirement: &2166391760 !ruby/object:Gem::Requirement
132
+ requirement: !ruby/object:Gem::Requirement
98
133
  none: false
99
134
  requirements:
100
135
  - - ! '>='
@@ -102,21 +137,15 @@ dependencies:
102
137
  version: '0'
103
138
  type: :runtime
104
139
  prerelease: false
105
- version_requirements: *2166391760
106
- - !ruby/object:Gem::Dependency
107
- name: weighted_average
108
- requirement: &2166391200 !ruby/object:Gem::Requirement
140
+ version_requirements: !ruby/object:Gem::Requirement
109
141
  none: false
110
142
  requirements:
111
143
  - - ! '>='
112
144
  - !ruby/object:Gem::Version
113
145
  version: '0'
114
- type: :runtime
115
- prerelease: false
116
- version_requirements: *2166391200
117
146
  - !ruby/object:Gem::Dependency
118
- name: active_record_inline_schema
119
- requirement: &2166390520 !ruby/object:Gem::Requirement
147
+ name: weighted_average
148
+ requirement: !ruby/object:Gem::Requirement
120
149
  none: false
121
150
  requirements:
122
151
  - - ! '>='
@@ -124,47 +153,41 @@ dependencies:
124
153
  version: '0'
125
154
  type: :runtime
126
155
  prerelease: false
127
- version_requirements: *2166390520
128
- - !ruby/object:Gem::Dependency
129
- name: activerecord
130
- requirement: &2166388160 !ruby/object:Gem::Requirement
156
+ version_requirements: !ruby/object:Gem::Requirement
131
157
  none: false
132
158
  requirements:
133
- - - ~>
159
+ - - ! '>='
134
160
  - !ruby/object:Gem::Version
135
- version: '3'
136
- type: :development
137
- prerelease: false
138
- version_requirements: *2166388160
161
+ version: '0'
139
162
  - !ruby/object:Gem::Dependency
140
- name: bueller
141
- requirement: &2166387700 !ruby/object:Gem::Requirement
163
+ name: active_record_inline_schema
164
+ requirement: !ruby/object:Gem::Requirement
142
165
  none: false
143
166
  requirements:
144
167
  - - ! '>='
145
168
  - !ruby/object:Gem::Version
146
169
  version: '0'
147
- type: :development
170
+ type: :runtime
148
171
  prerelease: false
149
- version_requirements: *2166387700
150
- - !ruby/object:Gem::Dependency
151
- name: sniff
152
- requirement: &2166387020 !ruby/object:Gem::Requirement
172
+ version_requirements: !ruby/object:Gem::Requirement
153
173
  none: false
154
174
  requirements:
155
175
  - - ! '>='
156
176
  - !ruby/object:Gem::Version
157
- version: 0.11.0
158
- type: :development
159
- prerelease: false
160
- version_requirements: *2166387020
177
+ version: '0'
161
178
  description: A framework for modelling the impact of real-world entities.
162
- email: derek@brighterplanet.com
179
+ email:
180
+ - andy@rossmeissl.net
181
+ - seamus@abshere.net
182
+ - ijhough@gmail.com
183
+ - matt.kling@gmail.com
184
+ - dkastner@gmail.com
163
185
  executables: []
164
186
  extensions: []
165
187
  extra_rdoc_files: []
166
188
  files:
167
189
  - .gitignore
190
+ - CHANGELOG
168
191
  - Gemfile
169
192
  - LICENSE
170
193
  - LICENSE-PREAMBLE
@@ -209,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
232
  version: '0'
210
233
  requirements: []
211
234
  rubyforge_project:
212
- rubygems_version: 1.8.15
235
+ rubygems_version: 1.8.21
213
236
  signing_key:
214
237
  specification_version: 3
215
238
  summary: A framework for modelling the impact of real-world entities.