longbow 0.2.0 → 0.3.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: 81142cac5e04a75f3e26c8745e626c897f845459
4
- data.tar.gz: 459f2f5d8218f455e86241e2e6c398289c4b821b
3
+ metadata.gz: c0474cbb4b0559735ed51cf99fe4c88a2a6cba13
4
+ data.tar.gz: a93cf3a6c7280fe6aa8ed9e0a9c6e20a019919ec
5
5
  SHA512:
6
- metadata.gz: 503a4d7e6545db7854d13719880d27d408b4aad9055718fa6650390da28b2b26054008740fa6d7d50a42441522bd72ed74dcdccf2ff215e854803c34a3ba8fec
7
- data.tar.gz: 7005ea6b753efe9da7f4d251ee5098453db4c2c64a7bddd648174718178cf1d5b62ab8fbf02f74b615cbf21a52bcac285e2088ad8808f323731de4f89dc6c06d
6
+ metadata.gz: cf807c8b352188c53890b3db79076e2970f1893207d14abe4a31a82f72dbc615d530682fe0bd4a5e8709baa5259b1876eca36729a380b98f8eeaae9347598afa
7
+ data.tar.gz: cb760751c7aea232dd3ae28870b8592d4a11af53915109ea8443a4572b26af340981e57e7519a9447c27586c17797e2e00713474e15ce484e8ef8145a07b22aa
@@ -5,6 +5,7 @@ include Magick
5
5
  require 'colors'
6
6
  require 'xcodeproj'
7
7
  require 'open-uri'
8
+ require 'utilities'
8
9
 
9
10
  module Longbow
10
11
 
@@ -355,7 +356,7 @@ module Longbow
355
356
  # Asset Directory Methods
356
357
  def self.make_asset_directory directory, target, path_extension
357
358
  asset_path = assets_file_path directory
358
- full_path = asset_path + '/' + target + path_extension
359
+ full_path = asset_path + '/' + Longbow::stripped_text(target) + path_extension
359
360
  FileUtils::mkdir_p full_path
360
361
  return full_path
361
362
  end
@@ -384,5 +385,4 @@ module Longbow
384
385
  return img_path + img_file_name
385
386
  end
386
387
 
387
-
388
388
  end
@@ -1,6 +1,7 @@
1
1
  require 'xcodeproj'
2
2
  require 'colors'
3
3
  require 'plist'
4
+ require 'utilities'
4
5
 
5
6
  module Longbow
6
7
 
@@ -59,8 +60,8 @@ module Longbow
59
60
 
60
61
  # Plist & Icons
61
62
  settings['INFOPLIST_FILE'] = main_plist.split('/')[0] + '/' + target + '-info.plist'
62
- settings['ASSETCATALOG_COMPILER_APPICON_NAME'] = target if icon
63
- settings['ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME'] = target if launch
63
+ settings['ASSETCATALOG_COMPILER_APPICON_NAME'] = Longbow::stripped_text(target) if icon
64
+ settings['ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME'] = Longbow::stripped_text(target) if launch
64
65
  settings['SKIP_INSTALL'] = 'NO'
65
66
 
66
67
  if File.exists? directory + '/Pods'
@@ -0,0 +1,8 @@
1
+ $:.push File.expand_path('../', __FILE__)
2
+
3
+ module Longbow
4
+ # Strip Non-Alphanumerics
5
+ def self.stripped_text text
6
+ return text.gsub(/[^0-9a-z ]/i, '')
7
+ end
8
+ end
@@ -2,7 +2,7 @@ $:.push File.expand_path('../', __FILE__)
2
2
  require 'colors'
3
3
 
4
4
  module Longbow
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
 
7
7
  def self.check_for_newer_version
8
8
  unless Gem.latest_version_for('longbow').to_s == VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: longbow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intermark Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-12 00:00:00.000000000 Z
11
+ date: 2014-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -141,6 +141,7 @@ files:
141
141
  - ./lib/longbow/json.rb
142
142
  - ./lib/longbow/plist.rb
143
143
  - ./lib/longbow/targets.rb
144
+ - ./lib/longbow/utilities.rb
144
145
  - ./lib/longbow/version.rb
145
146
  - ./lib/longbow.rb
146
147
  - ./LICENSE.txt