longbow 0.0.6 → 0.0.7

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: 367d5c4ba4b392253a235796e8f2a7ddc70d1dc9
4
- data.tar.gz: b93c026749f538b78ab5e1e00fcfdfc3613bfaeb
3
+ metadata.gz: b43ff0879515846492c80d64ca997c4c7dc827db
4
+ data.tar.gz: 8721083cff6e803a7fdeb26ef6e65e51ae6f111b
5
5
  SHA512:
6
- metadata.gz: daa01a1b53430feb4736710c6e733ba466378daca68f8b8bc9ece5fa5ab533fe823c340cd23006c4451711430e2829c54b7bed2913a602fc162ae79d1b7b6d38
7
- data.tar.gz: 6a3439aa005b9b22857db96d6fedc27f5092705ea3ad0006b15522a4e9c0492e1ad5a6093bdd627dd8d21a10973eff14c673de74ac8e7c160d8b9972fa32c7bb
6
+ metadata.gz: 52ed2833ca5385d3f06b45f39987f04511a1eeaef006a1ff03584a9352390283b85b89bfc4659ab91f1a2d2451bcda3f818b728b49e4aad0c66df45f1a23ea8e
7
+ data.tar.gz: 43c5f44cd4a8388bbcb43cefa57eef2d0dc7598a2794b928185c6e4133489983bdfae6285308c137c193be69216da7510b2fcfe78d25d62d5200214c2116ee11
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- longbow (0.0.5)
4
+ longbow (0.0.6)
5
5
  bundler (~> 1.3)
6
6
  commander (~> 4.1)
7
7
  dotenv (~> 0.7)
@@ -31,7 +31,7 @@ GEM
31
31
  rake (10.1.1)
32
32
  rmagick (2.13.2)
33
33
  subexec (0.2.3)
34
- xcodeproj (0.16.0)
34
+ xcodeproj (0.16.1)
35
35
  activesupport (~> 3.0)
36
36
  colored (~> 1.2)
37
37
 
@@ -9,9 +9,14 @@ command :install do |c|
9
9
  c.option '-d', '--directory DIRECTORY', 'Path where the .xcproj or .xcworkspace file && the longbow.json file live.'
10
10
 
11
11
  c.action do |args, options|
12
+ # Check for newer version
13
+ Longbow::check_for_newer_version unless $nolog
14
+
15
+ # Set Up
12
16
  @directory = options.directory ? options.directory : Dir.pwd
13
17
  @json_path = @directory + '/longbow.json'
14
18
 
19
+ # Install
15
20
  if File.exist?(@json_path)
16
21
  Longbow::red ' longbow.json already exists at ' + @json_path
17
22
  else
@@ -13,6 +13,9 @@ command :shoot do |c|
13
13
  c.option '-d', '--directory DIRECTORY', 'Path where the .xcodeproj or .xcworkspace file && the longbow.json file live.'
14
14
 
15
15
  c.action do |args, options|
16
+ # Check for newer version
17
+ Longbow::check_for_newer_version unless $nolog
18
+
16
19
  # Set Up
17
20
  @target_name = options.name ? options.name : nil
18
21
  @directory = options.directory ? options.directory : Dir.pwd
@@ -1,3 +1,14 @@
1
+ $:.push File.expand_path('../', __FILE__)
2
+ require 'colors'
3
+
1
4
  module Longbow
2
- VERSION = "0.0.6"
5
+ VERSION = '0.0.7'
6
+
7
+ def self.check_for_newer_version
8
+ if `gem outdated -r`.include? 'longbow'
9
+ puts
10
+ Longbow::red " A newer version of longbow is available. Run 'gem update longbow'."
11
+ puts
12
+ end
13
+ end
3
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: longbow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intermark Interactive