Skip to content

Commit

Permalink
Merge branch 'release/0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Feb 4, 2016
2 parents 55a9f0f + 6ed1ebf commit eaa6cbc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.swp
Gemfile.lock
pkg
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# [develop](https://github.com/adhearsion/electric_slide)

# [0.4.2](https://github.com/adhearsion/electric_slide/compare/v0.4.1...v0.4.2) - [2016-02-04](https://rubygems.org/gems/adhearsion/versions/0.4.2)
* Bugfix: FixedPriority now correctly checks out agents in priority order.

# [0.4.1](https://github.com/adhearsion/electric_slide/compare/v0.4.0...v0.4.1) - [2016-01-04](https://rubygems.org/gems/adhearsion/versions/0.4.1)
* Bugfix: Don't hand out internal CallQueue references to Agents - thread-safety

Expand Down
2 changes: 1 addition & 1 deletion lib/electric_slide/agent_strategy/fixed_priority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def available_agent_summary
end

def checkout_agent
_, agents = @priorities.detect do |priority, agents|
_, agents = @priorities.sort.detect do |priority, agents|
agents.present?
end
agents.shift
Expand Down
2 changes: 1 addition & 1 deletion lib/electric_slide/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
class ElectricSlide
VERSION = '0.4.1'
VERSION = '0.4.2'
end
2 changes: 1 addition & 1 deletion spec/electric_slide/agent_strategy/fixed_priority_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
agent1 = OpenStruct.new({ id: 101, priority: 2 })
agent2 = OpenStruct.new({ id: 102, priority: 2 })
agent3 = OpenStruct.new({ id: 103, priority: 3 })
subject << agent3
subject << agent1
subject << agent2
subject << agent3
expect(subject.checkout_agent).to eql(agent1)
expect(subject.checkout_agent).to eql(agent2)
expect(subject.checkout_agent).to eql(agent3)
Expand Down

0 comments on commit eaa6cbc

Please sign in to comment.