Skip to content

Commit

Permalink
+ number of cores in OSX for Lion
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Sep 13, 2011
1 parent d3487f3 commit 883247a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
2 changes: 1 addition & 1 deletion server/lib/picky/cores.rb
Expand Up @@ -94,7 +94,7 @@ def self.actual_platform
# os_name => lambda_which_returns_a_number_of_cores
#
@@number_of_cores = {
'darwin' => lambda { `system_profiler SPHardwareDataType | grep -i 'Total Number Of Cores'`.gsub(/[^\d]/, '') },
'darwin' => lambda { `system_profiler SPHardwareDataType | grep -i 'Total Number [oO]f Cores'`.gsub(/[^\d]/, '') },
'linux' => lambda { `grep -ci ^processor /proc/cpuinfo` }
}
def self.os_to_core_mapping
Expand Down
67 changes: 37 additions & 30 deletions server/test_project/Gemfile.lock
@@ -1,44 +1,51 @@
GEM
remote: http://rubygems.org/
specs:
activemodel (3.0.3)
activesupport (= 3.0.3)
builder (~> 2.1.2)
i18n (~> 0.4)
activerecord (3.0.3)
activemodel (= 3.0.3)
activesupport (= 3.0.3)
arel (~> 2.0.2)
tzinfo (~> 0.3.23)
activesupport (3.0.3)
arel (2.0.7)
builder (2.1.2)
diff-lcs (1.1.2)
i18n (0.5.0)
kgio (2.3.3)
activemodel (3.1.0)
activesupport (= 3.1.0)
bcrypt-ruby (~> 3.0.0)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.0)
activemodel (= 3.1.0)
activesupport (= 3.1.0)
arel (~> 2.2.1)
tzinfo (~> 0.3.29)
activesupport (3.1.0)
multi_json (~> 1.0)
arel (2.2.1)
bcrypt-ruby (3.0.1)
builder (3.0.0)
diff-lcs (1.1.3)
i18n (0.6.0)
kgio (2.6.0)
multi_json (1.0.3)
mysql (2.8.1)
picky-client (2.3.0)
picky-client (3.1.5)
activesupport (>= 3.0.0)
yajl-ruby (>= 0.7.8)
rack (1.2.2)
rack-mount (0.6.13)
rack (1.3.2)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack_fast_escape (2009.06.24)
url_escape
rake (0.9.0)
redis (2.2.0)
rspec (2.5.0)
rspec-core (~> 2.5.0)
rspec-expectations (~> 2.5.0)
rspec-mocks (~> 2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
raindrops (0.7.0)
rake (0.9.2)
redis (2.2.2)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
rspec-mocks (~> 2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.5.0)
rspec-mocks (2.6.0)
text (0.2.0)
tzinfo (0.3.24)
unicorn (3.5.0)
kgio (~> 2.3)
tzinfo (0.3.29)
unicorn (4.1.1)
kgio (~> 2.4)
rack
raindrops (~> 0.6)
url_escape (2009.06.24)
yajl-ruby (0.8.3)

Expand Down

0 comments on commit 883247a

Please sign in to comment.