ib 0.7.1 → 0.7.2

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: 777a348ad4cf65b2259057adee029f93b3370cd1
4
- data.tar.gz: dbbfcd77eda8d6a9f3cd758cd47dbe6718b8f0ca
3
+ metadata.gz: 2ccccefed1de494b17aa86bda842969c564c2d41
4
+ data.tar.gz: 15ca080d79b2bb49c9ab7017c78cde05e569bfbe
5
5
  SHA512:
6
- metadata.gz: e51089015442e6cbaf01daeb6e0307751a35e8efa237fc33dd498bc23918a4740cc6820f7de011879e264753591e6ffa789822e61131ae3e6253bf01b033b184
7
- data.tar.gz: d416fbe5115975e3958717da849302809e5540da1675995aaee39050ccfd05bf2f8e1aa3dcd51bb7b2bb4bf326db9b4213e164230b9afd6a389db64087279af8
6
+ metadata.gz: 6a2e7677a572caf187f4730a21876b6840056b86e2c66ac2ec40099ebd1447206b9dbe6078e1db3b7ff656cf542f98d040f01995e498d5322165cf208ca416a1
7
+ data.tar.gz: 8e7c21c9003bcca7ca52d6db97c701e9bec24922293ab75a127e7f010a794f5b8e72f8512e07203a5f5cbea812ad44a2dea36ffe70b91fbac33fb69cd5fdb752
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ib (0.7.1)
4
+ ib (0.7.2)
5
5
  thor (~> 0.15.4)
6
6
  tilt (~> 1.4.1)
7
7
  xcodeproj (~> 0.17)
data/ib.gemspec CHANGED
@@ -2,8 +2,8 @@
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", "Eloy Durán"]
6
- gem.email = ["yury.korolev@gmail.com", "francis@ignition.hk", "eloy@hipbyte.com"]
5
+ gem.authors = ["Yury Korolev", "Francis Chong", "Eloy Durán", "Colin T.A. Gray"]
6
+ gem.email = ["yury.korolev@gmail.com", "francis@ignition.hk", "eloy@hipbyte.com", "colin@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
9
  gem.homepage = "https://github.com/rubymotion/ib"
@@ -95,6 +95,8 @@ class IB::Project
95
95
 
96
96
  def add_resources
97
97
  resource_directories.each do |dir|
98
+ resourcespath = Pathname.new dir
99
+
98
100
  group = resources.new_group(File.basename(dir), dir)
99
101
  # First add reference to any asset catalogs.
100
102
  Dir.glob(File.join(dir, "**/*.xcassets")) do |file|
@@ -103,7 +105,10 @@ class IB::Project
103
105
  # Add all other resources, ignoring files in existing asset catalogs
104
106
  Dir.glob(File.join(dir, "**/*.{#{RESOURCE_EXTENSIONS.join(",")}}"))
105
107
  .reject {|f| f[%r{.*\.xcassets/.*}] }.each do |file|
106
- group.new_reference(File.basename(file))
108
+
109
+ filepath = Pathname.new file
110
+ location = filepath.relative_path_from(resourcespath).to_s
111
+ group.new_reference(location)
107
112
  end
108
113
  end
109
114
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module IB
3
- VERSION = '0.7.1'
3
+ VERSION = '0.7.2'
4
4
  end
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
8
8
  - Francis Chong
9
9
  - Eloy Durán
10
+ - Colin T.A. Gray
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2014-12-12 00:00:00.000000000 Z
14
+ date: 2015-01-20 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: xcodeproj
@@ -115,6 +116,7 @@ email:
115
116
  - yury.korolev@gmail.com
116
117
  - francis@ignition.hk
117
118
  - eloy@hipbyte.com
119
+ - colin@hipbyte.com
118
120
  executables:
119
121
  - ib
120
122
  extensions: []