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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e43ac5d7c906e6485ec101bb0a9770928eaee7b7
4
- data.tar.gz: 01575aca2a9010abafb8d343e53d1f183d7a73f1
3
+ metadata.gz: 2e469a11179b978f66393d0a441adfb04d5dd94d
4
+ data.tar.gz: 99e8be176ca964725dc664fb7e156fbcf31ad774
5
5
  SHA512:
6
- metadata.gz: 399a6f11f0da8fbc40a7341fa4924e79da4caf5a74bcd36bdebcc3abba366c2619ac0ae33583df94ebe30fd565b53ed8cf9d8fca5f8cfe8020837a7a7a310dcb
7
- data.tar.gz: e08254da13ee0d2d6e381fbb95067166ba69606930b71164bafcf89f2a14cf0bd59a7fe2979e4cbc0beb4d182bf118bf619ca9d138b031d05f1354ec87846d9e
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
- # Load the main lib and invoke CLI.
8
- if ENV['RAILS_ENV'] == 'development'
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
- $LOAD_PATH << source_path
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
- # Starting 2.0.0, Rainbow no longer patches string with the color method by default.
11
- require 'rainbow/version'
12
- require 'rainbow/ext/string' unless Rainbow::VERSION < '2.0.0'
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
@@ -1,5 +1,3 @@
1
- require 'active_support/hash_with_indifferent_access'
2
-
3
1
  module Sunzi
4
2
  module Cli::Secrets
5
3
  extend self
data/lib/sunzi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Sunzi
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
4
  RAILS_VERSION = "4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunzi-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenn Ejima