Skip to content
Browse files

changed the sdk_version to ios_version

  • Loading branch information...
1 parent bb88f3b commit 6608995cc385ddde600732d3d2af7ab9e32ad6ec @supermarin supermarin committed Sep 26, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +1 −1 motion/core/device.rb
  3. +2 −2 spec/motion/core/device_spec.rb
View
2 README.md
@@ -192,7 +192,7 @@ Examples:
# :portrait
> Device.simulator?
# true
-> Device.sdk_version
+> Device.ios_version
# "6.0"
> Device.retina?
# false
View
2 motion/core/device.rb
@@ -41,7 +41,7 @@ def simulator?
# Returns the IOS SDK version currently running (i.e. "5.1" or "6.0" etc)
# @return [String] the IOS SDK version currently running
- def sdk_version
+ def ios_version
UIDevice.currentDevice.systemVersion
end
View
4 spec/motion/core/device_spec.rb
@@ -42,10 +42,10 @@
end
end
- describe '.sdk_version?' do
+ describe '.ios_version' do
it 'returns true' do
# exact value depends on system where specs run. 4.0 seems like a safe guess
- BW::Device.sdk_version.should > '4.0'
+ BW::Device.ios_version.should > '4.0'
end
end

0 comments on commit 6608995

Please sign in to comment.
Something went wrong with that request. Please try again.