objc 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +72 -0
  3. data/lib/objc/version.rb +1 -1
  4. data/objc.gemspec +3 -1
  5. metadata +11 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7f7ebe28d44622983f8eb769014fc9bf89eee79
4
- data.tar.gz: 6bf65a15e5de66e6ad876d6328d9712e5ad4957a
3
+ metadata.gz: e01dc6f2e7bc0c06dec36fb911a35ca32e4a1a8a
4
+ data.tar.gz: 253d324bd0a3f9465f2983d0bbba801fa18cfe6a
5
5
  SHA512:
6
- metadata.gz: 1a32dd4bcb52d3449818474bb34f4e3fbea8c9f6e1c60c86c982538197a1641dd24a17608a467a33b4bf318277318170245cd96623316d35480d776bb54bcc92
7
- data.tar.gz: ceba1e26642b2348ba52e9306612319d26cb71b9eb63bc542f4e5eba56978bb435d6bb469687cea93244636b0c5ccdeff0012630cc919cce2d29b54faf3b65c1
6
+ metadata.gz: 8d8b9a53605438efe926900bc5e8dcc37afe12a2d5cec4bff41e4ec2b35815ed86b13bdd00178fc38a8db91d153313ae2ddd4bf4b3bf48f032281c5776a1ff8b
7
+ data.tar.gz: 0341a771a5074b5178c2a9a95d21b182b8733d9a64319ff50c2fc1d382939551438ccaf97c33ca8b53880d56ecd5c574fc039a7b0a3d9956a2968d5fc2fa8d65
data/README.md CHANGED
@@ -11,6 +11,8 @@ Install the gem
11
11
 
12
12
  Install [xctool](https://github.com/facebook/xctool)
13
13
 
14
+ $ brew install xctool
15
+
14
16
  ## Usage
15
17
 
16
18
  $ objc Anagram
@@ -29,6 +31,76 @@ More specifically the following occurs:
29
31
  * Using [xctool](https://github.com/facebook/xctool) the tests from the
30
32
  project file are executed.
31
33
 
34
+ ## XCTest
35
+
36
+ The test suite used is **XCTest**. This is an example of the header, source
37
+ and test file.
38
+
39
+ ### Anagram.h
40
+
41
+ ```
42
+ #import <Foundation/Foundation.h>
43
+
44
+ @interface Anagram : NSObject
45
+
46
+ - (id)initWithString:(NSString *)string;
47
+ - (NSArray *)match:(NSArray *)possibleMatches;
48
+
49
+ @end
50
+ ```
51
+
52
+ ### Anagram.m
53
+
54
+ ```
55
+ #import "Anagram.h"
56
+
57
+ @implementation Anagram
58
+
59
+ - (id)initWithString:(NSString *)string {
60
+ return [super init];
61
+ }
62
+
63
+ - (NSArray *)match:(NSArray *)possibleMatches {
64
+ return @[];
65
+ }
66
+
67
+ @end
68
+ ```
69
+
70
+ ### AnagramTest.m
71
+
72
+ ```
73
+ #import <XCTest/XCTest.h>
74
+ #import "Anagram.h"
75
+
76
+ @interface test_suite : XCTestCase
77
+
78
+ @end
79
+
80
+ @implementation test_suite
81
+
82
+ - (void)setUp
83
+ {
84
+ [super setUp];
85
+ // Put setup code here. This method is called before the invocation of each test method in the class.
86
+ }
87
+
88
+ - (void)tearDown
89
+ {
90
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
91
+ [super tearDown];
92
+ }
93
+
94
+ - (void)testNoMatches {
95
+ Anagram *detector = [[Anagram alloc] initWithString:@"diaper"];
96
+ NSArray *matches = [detector match:@[@"hello",@"world",@"zombies",@"patns"]];
97
+
98
+ XCTAssertEqual(@[], matches, @"Format");
99
+ }
100
+
101
+ @end
102
+ ```
103
+
32
104
  ## Contributing
33
105
 
34
106
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module Objc
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -20,7 +20,9 @@ execution of a test suite without the hassle of managing an Xcode Project File}
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ["lib"]
22
22
 
23
+ spec.add_dependency "xcoder", "~> 0.1.15"
24
+
23
25
  spec.add_development_dependency "bundler", "~> 1.3"
24
26
  spec.add_development_dependency "rake"
25
- spec.add_development_dependency "xcoder"
27
+
26
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franklin Webber
@@ -11,35 +11,35 @@ cert_chain: []
11
11
  date: 2013-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: xcoder
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
19
+ version: 0.1.15
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: 0.1.15
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
- name: xcoder
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '>='