Skip to content
Browse files

Added License, int>long index:

  • Loading branch information...
1 parent 7a0522c commit 949b377c335a8e55fea43d7b8b78b785a4b41d99 @zdavison committed Feb 28, 2013
Showing with 21 additions and 3 deletions.
  1. +7 −0 LICENSE
  2. +1 −1 NSString+Ruby/NSString+Ruby.h
  3. +1 −2 NSString+Ruby/NSString+Ruby.m
  4. +12 −0 NSString-Ruby.podspec
View
7 LICENSE
@@ -0,0 +1,7 @@
+Copyright (c) 2013 Zachary Davison
+
+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 restriction, including without limitation the rights to use, 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.
View
2 NSString+Ruby/NSString+Ruby.h
@@ -35,7 +35,7 @@
-(BOOL)includes:(NSString*)include;
-(NSInteger)index:(NSString*)pattern;
-(NSInteger)index:(NSString*)pattern offset:(int)offset;
--(NSString*)insert:(int)index string:(NSString*)string;
+-(NSString*)insert:(long)index string:(NSString*)string;
-(NSString*)inspect;
-(BOOL)isASCII;
-(BOOL)isEmpty;
View
3 NSString+Ruby/NSString+Ruby.m
@@ -301,8 +301,7 @@ -(NSInteger)index:(NSString*)pattern offset:(int)offset{
return NSNotFound;
}
-- (NSString*)insert:(int)index string:(NSString*)string{
- NSLog(@"%d : %d",index,self.length);
+- (NSString*)insert:(long)index string:(NSString*)string{
if(index < 0)
index = self.length - abs(index) + 1;
else if(index >= self.length)
View
12 NSString-Ruby.podspec
@@ -0,0 +1,12 @@
+Pod::Spec.new do |s|
+ s.name = "NSString-Ruby"
+ s.version = "1.0a"
+ s.summary = "NSString category providing common Ruby String methods."
+ s.homepage = "https://github.com/zdavison/NSString-Ruby"
+ s.license = 'MIT'
+ s.author = { "zdavison" => "zac.developer@gmail.com" }
+ s.source = { :git => "https://github.com/zdavison/NSString-Ruby.git", :tag => "v1.0a" }
+ s.source_files = 'NSString+Ruby/NSString+Ruby.{h,m}'
+ s.public_header_files = 'NSString+Ruby/NSString+Ruby.h'
+ s.requires_arc = true
+end

0 comments on commit 949b377

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