Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in Notifications & update Travis.yml #16

Merged
merged 5 commits into from
Mar 1, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- jruby-18mode # JRuby in 1.8 mode
- 2.0.0
- jruby-19mode # JRuby in 1.9 mode
- rbx-18mode
- rbx-19mode
- rbx-19mode # Rubinius in 1.9 mode
# uncomment this line if your project needs to run something other than `rake`:
# script: bundle exec rspec spec
# script: bundle exec rspec spec
2 changes: 1 addition & 1 deletion lib/pushmeup/apns/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(device_token, message)
elsif message.is_a?(String)
self.alert = message
else
raise "Notification needs to have either a hash or string"
raise "Notification needs to have either a Hash or String"
end
end

Expand Down
6 changes: 3 additions & 3 deletions lib/pushmeup/gcm/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ def device_tokens=(tokens)
elsif tokens.is_a?(String)
@device_tokens = [tokens]
else
raise "device_tokens needs to be either a hash or string"
raise "device_tokens needs to be either a Hash or String"
end
end

def data=(data)
if data.is_a?(Hash)
@data = data
else
raise "data parameter must be the tpe of Hash"
raise "data parameter must be the type of Hash"
end
end

Expand All @@ -52,4 +52,4 @@ def ==(that)
end

end
end
end