ib 0.7.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ccccefed1de494b17aa86bda842969c564c2d41
4
- data.tar.gz: 15ca080d79b2bb49c9ab7017c78cde05e569bfbe
3
+ metadata.gz: 01ddefe75de6227317cd67767fd0fcbec6366d9c
4
+ data.tar.gz: aa05518904d615d4f4a1e7f1278f901e448bf743
5
5
  SHA512:
6
- metadata.gz: 6a2e7677a572caf187f4730a21876b6840056b86e2c66ac2ec40099ebd1447206b9dbe6078e1db3b7ff656cf542f98d040f01995e498d5322165cf208ca416a1
7
- data.tar.gz: 8e7c21c9003bcca7ca52d6db97c701e9bec24922293ab75a127e7f010a794f5b8e72f8512e07203a5f5cbea812ad44a2dea36ffe70b91fbac33fb69cd5fdb752
6
+ metadata.gz: 94fa7770655e48bd2adccdae567002d92b5deda47f6b5cfab5b25b0f46d160080570e1a748e8afd385ca31d7e15ee0ea8f1c7f0643dcc81cfe045c1b72fe9634
7
+ data.tar.gz: b256e81cfd1d46c228b9e00c195c237da63610ab9a243ac6813be1e81a49f6bc96a7c2d83eae0a3b0450824b0439e1f8b977195781e3053a0dad37ee50176d89
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ib (0.7.2)
4
+ ib (0.8.0)
5
5
  thor (~> 0.15.4)
6
6
  tilt (~> 1.4.1)
7
7
  xcodeproj (~> 0.17)
@@ -13,7 +13,15 @@ class IB::OCInterface
13
13
 
14
14
  class Action < Struct.new(:variable, :arg, :return_type)
15
15
  def to_declare
16
- arg ? "#{variable}:(#{return_type ? "#{return_type}*" : 'id'}) #{arg}" : "#{variable}"
16
+ if arg
17
+ if arg =~ /story_?board/i
18
+ "#{variable}:(UIStoryBoard *) #{arg}"
19
+ else
20
+ "#{variable}:(#{return_type ? "#{return_type}*" : 'id'}) #{arg}"
21
+ end
22
+ else
23
+ "#{variable}"
24
+ end
17
25
  end
18
26
  end
19
27
 
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module IB
3
- VERSION = '0.7.2'
3
+ VERSION = '0.8.0'
4
4
  end
@@ -33,6 +33,9 @@ class CustomView < UIView
33
33
  def actionWithoutArgs
34
34
  end
35
35
 
36
+ def exitAction(story_board)
37
+ end
38
+
36
39
  def actionWithDefaultedArgs(sender = nil) #comment
37
40
  end
38
41
 
@@ -47,6 +47,7 @@ describe IB::Generator do
47
47
  -(IBAction) actionWithComment:(id) sender;
48
48
  -(IBAction) actionWithBrackets:(id) sender;
49
49
  -(IBAction) actionWithoutArgs;
50
+ -(IBAction) exitAction:(UIStoryBoard *) story_board;
50
51
  -(IBAction) actionWithDefaultedArgs:(id) sender;
51
52
 
52
53
  @end
@@ -108,6 +109,7 @@ OBJC
108
109
  -(IBAction) actionWithComment:(id) sender;
109
110
  -(IBAction) actionWithBrackets:(id) sender;
110
111
  -(IBAction) actionWithoutArgs;
112
+ -(IBAction) exitAction:(UIStoryBoard *) story_board;
111
113
  -(IBAction) actionWithDefaultedArgs:(id) sender;
112
114
 
113
115
  @end
@@ -19,13 +19,14 @@ describe IB::Parser do
19
19
  ["yellowLabelCollection", "id"]
20
20
  ]
21
21
  info[:actions].should == [
22
- ["someAction", "sender", nil],
23
- ["segueAction", "sender", "UIStoryboardSegue"],
24
- ["anotherAction", "button", nil],
25
- ["actionWithComment", "sender", nil],
26
- ["actionWithBrackets", "sender", nil],
27
- ["actionWithoutArgs", nil, nil],
28
- ["actionWithDefaultedArgs", "sender", nil]
22
+ ["someAction", "sender", nil],
23
+ ["segueAction", "sender", "UIStoryboardSegue"],
24
+ ["anotherAction", "button", nil],
25
+ ["actionWithComment", "sender", nil],
26
+ ["actionWithBrackets", "sender", nil],
27
+ ["actionWithoutArgs", nil, nil],
28
+ ["exitAction", "story_board", nil],
29
+ ["actionWithDefaultedArgs", "sender", nil]
29
30
  ]
30
31
  end
31
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-01-20 00:00:00.000000000 Z
14
+ date: 2015-08-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: xcodeproj
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  version: '0'
189
189
  requirements: []
190
190
  rubyforge_project:
191
- rubygems_version: 2.0.3
191
+ rubygems_version: 2.4.5
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Small portion of love to interface builder with rubymotion