sunzi-rails 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sunzi-cap +3 -8
- data/lib/sunzi.rb +10 -20
- data/lib/sunzi/cli/secrets.rb +0 -2
- data/lib/sunzi/version.rb +1 -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: 2e469a11179b978f66393d0a441adfb04d5dd94d
|
4
|
+
data.tar.gz: 99e8be176ca964725dc664fb7e156fbcf31ad774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55aa30be7c0a3ec506c91cf3910f940f9059f59f297296c4d363138d829bb75ce362bf1b6fa62d0064bee9aab8b9ad9f7e1fa15e33cd4598d0ad5ff11623f139
|
7
|
+
data.tar.gz: b60ee69ea838fab3da30e530196c2994eefd48f06ea7b29aa777d16683776f62f4d8f4ccb945a76a02fd84dc2671053dc9e4693b4aead36567a08fad3fcc9c81
|
data/bin/sunzi-cap
CHANGED
@@ -4,15 +4,10 @@ require 'pathname'
|
|
4
4
|
# Abort beautifully with ctrl+c.
|
5
5
|
Signal.trap(:INT) { abort "\nAborting." }
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
require './lib/sunzi'
|
10
|
-
else
|
11
|
-
source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
|
7
|
+
source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
|
8
|
+
$LOAD_PATH << source_path
|
12
9
|
|
13
|
-
|
14
|
-
require 'sunzi'
|
15
|
-
end
|
10
|
+
require 'sunzi'
|
16
11
|
|
17
12
|
if ['-v', '--version'].include? ARGV[0]
|
18
13
|
puts Sunzi::VERSION
|
data/lib/sunzi.rb
CHANGED
@@ -1,30 +1,20 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'rainbow'
|
3
|
+
# Starting 2.0.0, Rainbow no longer patches string with the color method by default.
|
4
|
+
require 'rainbow/version'
|
5
|
+
require 'rainbow/ext/string' unless Rainbow::VERSION < '2.0.0'
|
3
6
|
require 'yaml'
|
4
|
-
require 'sunzi/version'
|
5
7
|
require 'active_support/core_ext/hash/slice'
|
6
8
|
require 'active_support/core_ext/hash/indifferent_access'
|
7
9
|
require 'active_support/ordered_hash'
|
8
10
|
require 'active_support/hash_with_indifferent_access'
|
9
|
-
|
10
|
-
|
11
|
-
require '
|
12
|
-
require '
|
11
|
+
require 'sunzi/cli/capistrano'
|
12
|
+
require 'sunzi/cli/database'
|
13
|
+
require 'sunzi/cli/secrets'
|
14
|
+
require 'sunzi/cli'
|
15
|
+
require 'sunzi/logger'
|
16
|
+
require 'sunzi/utility'
|
17
|
+
require 'sunzi/version'
|
13
18
|
|
14
19
|
module Sunzi
|
15
|
-
if ENV['RAILS_ENV'] == 'development'
|
16
|
-
autoload :Capistrano, './lib/sunzi/cli/capistrano'
|
17
|
-
autoload :Database, './lib/sunzi/cli/database'
|
18
|
-
autoload :Secrets, './lib/sunzi/cli/secrets'
|
19
|
-
autoload :Cli, './lib/sunzi/cli'
|
20
|
-
autoload :Logger, './lib/sunzi/logger'
|
21
|
-
autoload :Utility, './lib/sunzi/utility'
|
22
|
-
else
|
23
|
-
autoload :Capistrano, 'sunzi/cli/capistrano'
|
24
|
-
autoload :Database, 'sunzi/cli/database'
|
25
|
-
autoload :Secrets, 'sunzi/cli/secrets'
|
26
|
-
autoload :Cli, 'sunzi/cli'
|
27
|
-
autoload :Logger, 'sunzi/logger'
|
28
|
-
autoload :Utility, 'sunzi/utility'
|
29
|
-
end
|
30
20
|
end
|
data/lib/sunzi/cli/secrets.rb
CHANGED
data/lib/sunzi/version.rb
CHANGED