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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/longbow/commands/install.rb +5 -0
- data/lib/longbow/commands/shoot.rb +3 -0
- data/lib/longbow/version.rb +12 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b43ff0879515846492c80d64ca997c4c7dc827db
|
|
4
|
+
data.tar.gz: 8721083cff6e803a7fdeb26ef6e65e51ae6f111b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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
|
data/lib/longbow/version.rb
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
$:.push File.expand_path('../', __FILE__)
|
|
2
|
+
require 'colors'
|
|
3
|
+
|
|
1
4
|
module Longbow
|
|
2
|
-
VERSION =
|
|
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
|