lolcommits 0.3.0.pre1 → 0.3.0.pre2

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/CHANGELOG CHANGED
@@ -1,6 +1,9 @@
1
1
  0.3.0 (in development)
2
2
  * fix bug involving git repositories with spaces in the name
3
- * internal refactoring for modularity (thanks @kenmazaika!)
3
+ * internal refactoring for modularity (thanks @kenmazaika!), should be easier
4
+ to add new plugin features to lolcommits now.
5
+ * add some extremeley basic anonymous usage tracking (if this bugs you, you
6
+ can disable via disabling the `statsd` plugin).
4
7
 
5
8
  0.2.0 (6 July 2012)
6
9
  * improved build system and testing with cucumber/methadone
@@ -21,6 +21,7 @@ require 'lolcommits/plugin'
21
21
  require 'lolcommits/plugins/loltext'
22
22
  require 'lolcommits/plugins/dot_com'
23
23
  require 'lolcommits/plugins/tranzlate'
24
+ require 'lolcommits/plugins/statsd'
24
25
 
25
26
  # require runner after all the plugins have been required
26
27
  require 'lolcommits/runner'
@@ -0,0 +1,25 @@
1
+ require "statsd"
2
+
3
+ #
4
+ # This is just to keep some usage statistics on lolcommits.
5
+ #
6
+
7
+ module Lolcommits
8
+ class StatsD < Plugin
9
+ def initialize(runner)
10
+ super
11
+
12
+ self.name = 'statsd'
13
+ self.default = true
14
+ end
15
+
16
+ def run
17
+ $statsd = Statsd.new('23.20.178.143')
18
+ if Configuration.is_fakecapture?
19
+ $statsd.increment 'app.lolcommits.fakecaptures'
20
+ else
21
+ $statsd.increment 'app.lolcommits.captures'
22
+ end
23
+ end
24
+ end
25
+ end
@@ -12,6 +12,7 @@ module Lolcommits
12
12
 
13
13
  # Executed Last
14
14
  set_callback :run, :after, :cleanup!
15
+ set_callback :run, :after, :execute_lolcommits_stats_d
15
16
  set_callback :run, :after, :execute_lolcommits_dot_com
16
17
  set_callback :run, :after, :execute_lolcommits_loltext
17
18
  # Executed First
@@ -1,3 +1,3 @@
1
1
  module Lolcommits
2
- VERSION = "0.3.0.pre1"
2
+ VERSION = "0.3.0.pre2"
3
3
  end
@@ -30,4 +30,5 @@ Gem::Specification.new do |s|
30
30
  s.add_dependency('methadone', '~>1.2.1')
31
31
  s.add_runtime_dependency('httmultiparty')
32
32
  s.add_runtime_dependency('active_support')
33
+ s.add_runtime_dependency('statsd-ruby')
33
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre1
4
+ version: 0.3.0.pre2
5
5
  prerelease: 6
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: 2012-07-30 00:00:00.000000000 Z
12
+ date: 2012-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rmagick
@@ -171,6 +171,22 @@ dependencies:
171
171
  - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: statsd-ruby
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :runtime
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
174
190
  description: Takes a snapshot with your Mac's built-in iSight/FaceTime webcam (or
175
191
  any working webcam on Linux or Windows) every time you git commit code, and archives
176
192
  a lolcat style image with it.
@@ -213,6 +229,7 @@ files:
213
229
  - lib/lolcommits/plugin.rb
214
230
  - lib/lolcommits/plugins/dot_com.rb
215
231
  - lib/lolcommits/plugins/loltext.rb
232
+ - lib/lolcommits/plugins/statsd.rb
216
233
  - lib/lolcommits/plugins/tranzlate.rb
217
234
  - lib/lolcommits/runner.rb
218
235
  - lib/lolcommits/version.rb