codefumes 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
1
- === 0.2.0 / 2010-08-15
1
+ === 0.2.1 / 2010-08-22
2
+
3
+ * Moved integrity_notifier into codefumes directory & removed
4
+ references to CodeFumesHarvester gem
5
+ * Updated QuickBuild & QuickMetric to use new API for Project
6
+
7
+ === 0.2.0 / 2010-08-21
2
8
 
3
9
  * Merged CodeFumesHarvester gem content into this gem...the
4
10
  CodeFumesHarvester gem will go away now...
@@ -31,11 +31,11 @@ lib/codefumes/config_file.rb
31
31
  lib/codefumes/errors.rb
32
32
  lib/codefumes/exit_codes.rb
33
33
  lib/codefumes/harvester.rb
34
+ lib/codefumes/integrity_notifier/codefumes.haml
35
+ lib/codefumes/integrity_notifier/codefumes.rb
34
36
  lib/codefumes/quick_build.rb
35
37
  lib/codefumes/quick_metric.rb
36
38
  lib/codefumes/source_control.rb
37
- lib/integrity_notifier/codefumes.haml
38
- lib/integrity_notifier/codefumes.rb
39
39
  spec/codefumes/api/build_spec.rb
40
40
  spec/codefumes/api/claim_spec.rb
41
41
  spec/codefumes/api/commit_spec.rb
@@ -12,5 +12,5 @@ require 'codefumes/source_control.rb'
12
12
  include CodeFumes::API
13
13
 
14
14
  module CodeFumes
15
- VERSION = '0.2.0' unless defined?(CodeFumes::VERSION)
15
+ VERSION = '0.2.1' unless defined?(CodeFumes::VERSION)
16
16
  end
@@ -1,10 +1,10 @@
1
1
  begin
2
- require 'codefumes_harvester'
2
+ require 'codefumes'
3
3
  rescue LoadError
4
- abort "Install codefumes_harvester to use the CodeFumes notifier"
4
+ abort "Install 'codefumes' gem to use the CodeFumes notifier"
5
5
  end
6
6
 
7
- module CodeFumesHarvester
7
+ module CodeFumes
8
8
  class IntegrityNotifier
9
9
  class CodeFumes < ::Integrity::Notifier::Base
10
10
  attr_reader :private_key, :public_key
@@ -30,7 +30,7 @@ module CodeFumesHarvester
30
30
  :ended_at => @build.completed_at,
31
31
  :repository_path => @repo_path}
32
32
 
33
- CodeFumesHarvester::QuickBuild.finish(@build_name, build_state, qb_options)
33
+ CodeFumes::QuickBuild.finish(@build_name, build_state, qb_options)
34
34
  end
35
35
 
36
36
  def deliver_started_notification!
@@ -40,7 +40,7 @@ module CodeFumesHarvester
40
40
  :started_at => @build.started_at,
41
41
  :repository_path => @repo_path}
42
42
 
43
- CodeFumesHarvester::QuickBuild.start(@build_name, qb_options)
43
+ CodeFumes::QuickBuild.start(@build_name, qb_options)
44
44
  end
45
45
 
46
46
  private
@@ -57,6 +57,6 @@ end
57
57
 
58
58
  module Integrity
59
59
  class Notifier
60
- register CodeFumesHarvester::IntegrityNotifier::CodeFumes
60
+ register CodeFumes::IntegrityNotifier::CodeFumes
61
61
  end
62
62
  end
@@ -15,7 +15,7 @@ module CodeFumes
15
15
  private_key = options[:private_key] || repo.private_key
16
16
  started_at = options[:started_at] || Time.now
17
17
 
18
- project = Project.new(public_key, :private_key => private_key)
18
+ project = Project.new(public_key, private_key)
19
19
  commit = Commit.new(project, commit_identifier)
20
20
  timestamps = {:started_at => started_at, :ended_at => ""}
21
21
  build = Build.new(commit, build_name, :running, timestamps)
@@ -30,7 +30,7 @@ module CodeFumes
30
30
  private_key = options[:private_key] || repo.private_key
31
31
  ended_at = options[:ended_at] || Time.now
32
32
 
33
- project = Project.new(public_key, :private_key => private_key)
33
+ project = Project.new(public_key, private_key)
34
34
  commit = Commit.new(project, commit_identifier)
35
35
 
36
36
  build = Build.find(commit, build_name)
@@ -6,14 +6,13 @@ module CodeFumes
6
6
  # Returns +true+ if the request succeeded.
7
7
  #
8
8
  # Returns +false+ if the request failed.
9
- def self.save(custom_attributes, repository_path = './')
9
+ def self.save(custom_attributes, commit_identifer = nil, repository_path = './')
10
10
  repo = SourceControl.new(repository_path)
11
- commit = {:identifier => repo.local_commit_identifier,
11
+ commit = {:identifier => commit_identifer || repo.local_commit_identifier,
12
12
  :custom_attributes => custom_attributes
13
13
  }
14
- content = {:content => {:commits => [commit]}}
15
- project = Project.new(repo.public_key, :private_key => repo.private_key)
16
- payload_set = Payload.prepare(project, content)
14
+ project = Project.new(repo.public_key, repo.private_key)
15
+ payload_set = Payload.prepare(project, {:commits => [commit]})
17
16
  payload_set.reject {|payload| payload.save}.empty?
18
17
  end
19
18
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tom Kersten
@@ -230,11 +230,11 @@ files:
230
230
  - lib/codefumes/errors.rb
231
231
  - lib/codefumes/exit_codes.rb
232
232
  - lib/codefumes/harvester.rb
233
+ - lib/codefumes/integrity_notifier/codefumes.haml
234
+ - lib/codefumes/integrity_notifier/codefumes.rb
233
235
  - lib/codefumes/quick_build.rb
234
236
  - lib/codefumes/quick_metric.rb
235
237
  - lib/codefumes/source_control.rb
236
- - lib/integrity_notifier/codefumes.haml
237
- - lib/integrity_notifier/codefumes.rb
238
238
  - spec/codefumes/api/build_spec.rb
239
239
  - spec/codefumes/api/claim_spec.rb
240
240
  - spec/codefumes/api/commit_spec.rb