ib 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ea52248a4f7ff0413027ee553fdb45c6f3cd95d
4
- data.tar.gz: 85d3e69c6f1b9ab25a904637a6a3c40d7de8295d
3
+ metadata.gz: 777a348ad4cf65b2259057adee029f93b3370cd1
4
+ data.tar.gz: dbbfcd77eda8d6a9f3cd758cd47dbe6718b8f0ca
5
5
  SHA512:
6
- metadata.gz: fc0952cdb7beb7a43a589d3cb8bffc9530906744c010227c00de41914ce63f4dbfae123d7297cf0746f80159782875ca3811a27862b0dbaa9f7893856df4335e
7
- data.tar.gz: 89e8ee5db2a7257cbe33726634fc5b4a83cf7c24f0c77075241f5ec51cfc269d240ab29e927d9a845bad67b183b018d57acaa3dcf5f03aecb7fd26a025f80d1b
6
+ metadata.gz: e51089015442e6cbaf01daeb6e0307751a35e8efa237fc33dd498bc23918a4740cc6820f7de011879e264753591e6ffa789822e61131ae3e6253bf01b033b184
7
+ data.tar.gz: d416fbe5115975e3958717da849302809e5540da1675995aaee39050ccfd05bf2f8e1aa3dcd51bb7b2bb4bf326db9b4213e164230b9afd6a389db64087279af8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ib (0.7.0)
4
+ ib (0.7.1)
5
5
  thor (~> 0.15.4)
6
6
  tilt (~> 1.4.1)
7
7
  xcodeproj (~> 0.17)
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  RubyMotion Interface Builder support (yes, with outlets)
4
4
 
5
- <a href='http://spellhub.com/projects/project/7'><img src="http://spellhub.com/projects/status/7" height="18"></a>
6
5
  [![Build Status](https://travis-ci.org/rubymotion/ib.png?branch=master)](https://travis-ci.org/rubymotion/ib)
7
6
 
8
7
  [**Change Log**](https://github.com/rubymotion/ib/wiki/Change-Log)
@@ -21,8 +20,6 @@ Or install it yourself as:
21
20
 
22
21
  $ gem install ib
23
22
 
24
- Or use RubyMotion [templates by @infiniteNIL](https://github.com/infiniteNIL/RubyMotionTemplates)
25
-
26
23
  In your Rake file:
27
24
 
28
25
  ```ruby
@@ -38,16 +35,24 @@ Bundler.require
38
35
  require 'rubygems'
39
36
  require 'ib'
40
37
 
41
- IB::RakeTask.new do |project|
42
- # ...
43
- end
44
-
45
38
  Motion::Project::App.setup do |app|
46
39
  # ...
47
40
  end
48
41
 
49
42
  ```
50
43
 
44
+ ## Customizing `IB::Project`
45
+
46
+ If you want to customize the `IB::Project` instance that creates `ib.xcodeproj`, you
47
+ should create an instance of `IB::RakeTask` and pass it a block. That block will be handed
48
+ an instance of `IB::Project` that you can modify:
49
+
50
+ ###### Rakefile
51
+ ```ruby
52
+ IB::RakeTask.new do |project|
53
+ end
54
+ ```
55
+
51
56
  ## Usage
52
57
 
53
58
  ### Manual Way
data/ib.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  require File.expand_path('../lib/ib/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.authors = ["Yury Korolev", "Francis Chong"]
6
- gem.email = ["yury.korolev@gmail.com", "francis@ignition.hk"]
5
+ gem.authors = ["Yury Korolev", "Francis Chong", "Eloy Durán"]
6
+ gem.email = ["yury.korolev@gmail.com", "francis@ignition.hk", "eloy@hipbyte.com"]
7
7
  gem.description = %q{Magic rubymotion ib outlets support}
8
8
  gem.summary = %q{Small portion of love to interface builder with rubymotion}
9
- gem.homepage = "https://github.com/yury/ib"
9
+ gem.homepage = "https://github.com/rubymotion/ib"
10
10
  gem.licenses = ['BSD']
11
11
 
12
12
  gem.files = `git ls-files`.split($\).reject { |f| f =~ %r{samples/} }
@@ -3,10 +3,18 @@ require 'rake' unless defined? Rake
3
3
 
4
4
  module IB
5
5
  class RakeTask
6
+ class << self
7
+ attr_writer :created
8
+ def created?
9
+ @@created ||= false
10
+ end
11
+ end
6
12
  include Rake::DSL
7
13
 
8
14
  def initialize
9
15
  require 'ib/project'
16
+ @@created = true
17
+
10
18
  @project = IB::Project.new
11
19
  yield @project if block_given?
12
20
  define_tasks
@@ -14,18 +22,39 @@ module IB
14
22
 
15
23
  def define_tasks
16
24
  namespace :ib do
17
- desc "Generates ib.xcodeproj"
18
25
  task :project do
19
26
  @project.write
20
27
  end
21
-
22
- desc "Generates ib.xcodeproj and opens it in XCode"
23
- task :open => :project do
24
- system "open ib.xcodeproj"
25
- end
26
28
  end
27
- desc "Same as 'ib:open'"
28
- task :ib => "ib:open"
29
29
  end
30
30
  end
31
31
  end
32
+
33
+
34
+ namespace :ib do
35
+ desc "Generates ib.xcodeproj and opens it in XCode"
36
+ task :open do
37
+ if ! IB::RakeTask.created?
38
+ # create a default instance of IB::RakeTask
39
+ IB::RakeTask.new
40
+ end
41
+ Rake::Task['ib:project'].invoke
42
+ system "open ib.xcodeproj"
43
+ end
44
+
45
+ desc "Generates ib.xcodeproj"
46
+ task :project do
47
+ if ! IB::RakeTask.created?
48
+ puts "You haven't created an instance of IB::RakeTask in your Rakefile"
49
+ puts
50
+ puts "Add this somewhere in your Rakefile:"
51
+ puts
52
+ puts " IB::RakeTask.new do |project|"
53
+ puts " # you can customize the IB::Project here"
54
+ puts " end"
55
+ end
56
+ end
57
+ end
58
+
59
+ desc "Same as 'ib:open'"
60
+ task :ib => 'ib:open'
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module IB
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
  end
metadata CHANGED
@@ -1,126 +1,128 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
8
8
  - Francis Chong
9
+ - Eloy Durán
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-12-11 00:00:00.000000000 Z
13
+ date: 2014-12-12 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: xcodeproj
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  requirements:
18
- - - "~>"
19
+ - - ~>
19
20
  - !ruby/object:Gem::Version
20
21
  version: '0.17'
21
22
  type: :runtime
22
23
  prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
24
25
  requirements:
25
- - - "~>"
26
+ - - ~>
26
27
  - !ruby/object:Gem::Version
27
28
  version: '0.17'
28
29
  - !ruby/object:Gem::Dependency
29
30
  name: thor
30
31
  requirement: !ruby/object:Gem::Requirement
31
32
  requirements:
32
- - - "~>"
33
+ - - ~>
33
34
  - !ruby/object:Gem::Version
34
35
  version: 0.15.4
35
36
  type: :runtime
36
37
  prerelease: false
37
38
  version_requirements: !ruby/object:Gem::Requirement
38
39
  requirements:
39
- - - "~>"
40
+ - - ~>
40
41
  - !ruby/object:Gem::Version
41
42
  version: 0.15.4
42
43
  - !ruby/object:Gem::Dependency
43
44
  name: tilt
44
45
  requirement: !ruby/object:Gem::Requirement
45
46
  requirements:
46
- - - "~>"
47
+ - - ~>
47
48
  - !ruby/object:Gem::Version
48
49
  version: 1.4.1
49
50
  type: :runtime
50
51
  prerelease: false
51
52
  version_requirements: !ruby/object:Gem::Requirement
52
53
  requirements:
53
- - - "~>"
54
+ - - ~>
54
55
  - !ruby/object:Gem::Version
55
56
  version: 1.4.1
56
57
  - !ruby/object:Gem::Dependency
57
58
  name: rspec
58
59
  requirement: !ruby/object:Gem::Requirement
59
60
  requirements:
60
- - - "~>"
61
+ - - ~>
61
62
  - !ruby/object:Gem::Version
62
63
  version: '2.0'
63
64
  type: :development
64
65
  prerelease: false
65
66
  version_requirements: !ruby/object:Gem::Requirement
66
67
  requirements:
67
- - - "~>"
68
+ - - ~>
68
69
  - !ruby/object:Gem::Version
69
70
  version: '2.0'
70
71
  - !ruby/object:Gem::Dependency
71
72
  name: rake
72
73
  requirement: !ruby/object:Gem::Requirement
73
74
  requirements:
74
- - - ">="
75
+ - - '>='
75
76
  - !ruby/object:Gem::Version
76
77
  version: '0'
77
78
  type: :development
78
79
  prerelease: false
79
80
  version_requirements: !ruby/object:Gem::Requirement
80
81
  requirements:
81
- - - ">="
82
+ - - '>='
82
83
  - !ruby/object:Gem::Version
83
84
  version: '0'
84
85
  - !ruby/object:Gem::Dependency
85
86
  name: guard-rspec
86
87
  requirement: !ruby/object:Gem::Requirement
87
88
  requirements:
88
- - - ">="
89
+ - - '>='
89
90
  - !ruby/object:Gem::Version
90
91
  version: '0'
91
92
  type: :development
92
93
  prerelease: false
93
94
  version_requirements: !ruby/object:Gem::Requirement
94
95
  requirements:
95
- - - ">="
96
+ - - '>='
96
97
  - !ruby/object:Gem::Version
97
98
  version: '0'
98
99
  - !ruby/object:Gem::Dependency
99
100
  name: guard-bundler
100
101
  requirement: !ruby/object:Gem::Requirement
101
102
  requirements:
102
- - - ">="
103
+ - - '>='
103
104
  - !ruby/object:Gem::Version
104
105
  version: '0'
105
106
  type: :development
106
107
  prerelease: false
107
108
  version_requirements: !ruby/object:Gem::Requirement
108
109
  requirements:
109
- - - ">="
110
+ - - '>='
110
111
  - !ruby/object:Gem::Version
111
112
  version: '0'
112
113
  description: Magic rubymotion ib outlets support
113
114
  email:
114
115
  - yury.korolev@gmail.com
115
116
  - francis@ignition.hk
117
+ - eloy@hipbyte.com
116
118
  executables:
117
119
  - ib
118
120
  extensions: []
119
121
  extra_rdoc_files: []
120
122
  files:
121
- - ".gitignore"
122
- - ".rspec"
123
- - ".travis.yml"
123
+ - .gitignore
124
+ - .rspec
125
+ - .travis.yml
124
126
  - Gemfile
125
127
  - Gemfile.lock
126
128
  - Guardfile
@@ -164,7 +166,7 @@ files:
164
166
  - template/controller.erb
165
167
  - template/controller_helper.erb
166
168
  - template/controller_spec.erb
167
- homepage: https://github.com/yury/ib
169
+ homepage: https://github.com/rubymotion/ib
168
170
  licenses:
169
171
  - BSD
170
172
  metadata: {}
@@ -174,17 +176,17 @@ require_paths:
174
176
  - lib
175
177
  required_ruby_version: !ruby/object:Gem::Requirement
176
178
  requirements:
177
- - - ">="
179
+ - - '>='
178
180
  - !ruby/object:Gem::Version
179
181
  version: '0'
180
182
  required_rubygems_version: !ruby/object:Gem::Requirement
181
183
  requirements:
182
- - - ">="
184
+ - - '>='
183
185
  - !ruby/object:Gem::Version
184
186
  version: '0'
185
187
  requirements: []
186
188
  rubyforge_project:
187
- rubygems_version: 2.0.14
189
+ rubygems_version: 2.0.3
188
190
  signing_key:
189
191
  specification_version: 4
190
192
  summary: Small portion of love to interface builder with rubymotion