Permalink
Browse files

Whitespace cleanup

  • Loading branch information...
1 parent f87bec1 commit 7dace0ac36b8f756b4d7f9a4eb00c6f35a69ef95 @seejohnrun committed Apr 29, 2012
Showing with 16 additions and 14 deletions.
  1. +4 −4 MIT-LICENSE
  2. +4 −2 README.md
  3. +8 −8 Rakefile
View
@@ -1,5 +1,5 @@
Copyright (c) 2009 James Pozdena
-
+
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
@@ -8,15 +8,15 @@ copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
-
+
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
-
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
+OTHER DEALINGS IN THE SOFTWARE.
View
@@ -79,7 +79,8 @@ This will add the other hash to the same level as the aps hash:
## Getting your iPhone's device token
-After you setup push notification for your application with Apple. You need to ask Apple for you application specific device token.
+After you setup push notification for your application with Apple. You need to
+ask Apple for you application specific device token.
``` objc
- (void)applicationDidFinishLaunching:(UIApplication *)application {
@@ -96,7 +97,8 @@ After you setup push notification for your application with Apple. You need to a
## Creating a second client
-Sometimes it can be useful to have a second (or third!) client to work with to manage multiple credential sets.
+Sometimes it can be useful to have a second (or third!) client to work with to
+manage multiple credential sets.
``` ruby
client = APNS::Client.new
View
@@ -3,15 +3,15 @@ require 'rake/gempackagetask'
require 'rubygems/specification'
require 'date'
require 'spec/rake/spectask'
-
+
GEM = 'apns'
GEM_NAME = 'apns'
GEM_VERSION = '0.9.0'
AUTHORS = ['James Pozdena']
EMAIL = "jpoz@jpoz.net"
HOMEPAGE = "http://github.com/jpoz/apns"
SUMMARY = "Simple Apple push notification service gem"
-
+
spec = Gem::Specification.new do |s|
s.name = GEM
s.version = GEM_VERSION
@@ -27,27 +27,27 @@ spec = Gem::Specification.new do |s|
s.autorequire = GEM
s.files = %w(MIT-LICENSE README.textile Rakefile) + Dir.glob("{lib}/**/*")
end
-
+
task :default => :spec
-
+
desc "Run specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = %w(-fs --color)
end
-
+
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
-
+
desc "install the gem locally"
task :install => [:package] do
sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
end
-
+
desc "create a gemspec file"
task :make_spec do
File.open("#{GEM}.gemspec", "w") do |file|
file.puts spec.to_ruby
end
-end
+end

0 comments on commit 7dace0a

Please sign in to comment.