sunzi-rails 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.ruby-version +1 -0
- data/bin/sunzi-cap +10 -0
- data/lib/sunzi/version.rb +5 -0
- data/sunzi.gemspec +6 -4
- metadata +4 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: def0b1015f882e01108a08367951082cd7af9d65
|
4
|
+
data.tar.gz: c77f07236cba06111ab3e964013d28bf3378cb7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11009783323bdfb86d03ccf79bfdafaf4ae9b381a97c8202d19ac731107cc7eb1fab8dde2d47bd7b21525c793bbddae9b828e579070001361abddf85b8561220
|
7
|
+
data.tar.gz: 39ed8809ea6b6a02b00df3fbfed73b8fe0d4bd20da23732b84cdd312e688106acb6ef7ba42ef5ebd6503e16bca22660c616e470f56f3af061490a03a06f2e193
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.3
|
data/bin/sunzi-cap
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
2
3
|
|
3
4
|
# Abort beautifully with ctrl+c.
|
4
5
|
Signal.trap(:INT) { abort "\nAborting." }
|
@@ -7,8 +8,17 @@ Signal.trap(:INT) { abort "\nAborting." }
|
|
7
8
|
if ENV['RAILS_ENV'] == 'development'
|
8
9
|
require './lib/sunzi'
|
9
10
|
else
|
11
|
+
source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
|
12
|
+
|
13
|
+
$LOAD_PATH << source_path
|
10
14
|
require 'sunzi'
|
11
15
|
end
|
16
|
+
|
17
|
+
if ['-v', '--version'].include? ARGV[0]
|
18
|
+
puts Sunzi::VERSION
|
19
|
+
exit 0
|
20
|
+
end
|
21
|
+
|
12
22
|
require 'active_support/core_ext/hash/slice'
|
13
23
|
require 'active_support/core_ext/hash/indifferent_access'
|
14
24
|
require 'active_support/ordered_hash'
|
data/sunzi.gemspec
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'sunzi/version'
|
2
5
|
|
3
6
|
Gem::Specification.new do |spec|
|
4
|
-
spec.required_ruby_version = ">=
|
7
|
+
spec.required_ruby_version = ">= #{Sunzi::RUBY_VERSION}"
|
5
8
|
|
6
9
|
spec.name = 'sunzi-rails'
|
7
|
-
spec.version =
|
10
|
+
spec.version = Sunzi::VERSION
|
8
11
|
spec.authors = ['Kenn Ejima', 'Patrice Lebel']
|
9
12
|
spec.email = ['kenn.ejima@gmail.com']
|
10
13
|
spec.homepage = 'http://github.com/o2web/sunzi-rails'
|
@@ -17,9 +20,8 @@ Gem::Specification.new do |spec|
|
|
17
20
|
spec.executables = ["sunzi-cap"]
|
18
21
|
spec.require_paths = ["lib"]
|
19
22
|
|
20
|
-
spec.add_dependency 'rails', "~>
|
23
|
+
spec.add_dependency 'rails', "~> #{Sunzi::RAILS_VERSION}", ">= #{Sunzi::RAILS_VERSION}.0"
|
21
24
|
|
22
|
-
spec.add_runtime_dependency 'bundler', '~> 1.3'
|
23
25
|
spec.add_runtime_dependency 'thor'
|
24
26
|
spec.add_runtime_dependency 'rainbow'
|
25
27
|
spec.add_runtime_dependency 'net-ssh'
|
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.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenn Ejima
|
@@ -31,20 +31,6 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 4.2.0
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: bundler
|
36
|
-
requirement: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.3'
|
41
|
-
type: :runtime
|
42
|
-
prerelease: false
|
43
|
-
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.3'
|
48
34
|
- !ruby/object:Gem::Dependency
|
49
35
|
name: thor
|
50
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,6 +110,7 @@ extensions: []
|
|
124
110
|
extra_rdoc_files: []
|
125
111
|
files:
|
126
112
|
- ".gitignore"
|
113
|
+
- ".ruby-version"
|
127
114
|
- Gemfile
|
128
115
|
- README.md
|
129
116
|
- Rakefile
|
@@ -135,6 +122,7 @@ files:
|
|
135
122
|
- lib/sunzi/cli/secrets.rb
|
136
123
|
- lib/sunzi/logger.rb
|
137
124
|
- lib/sunzi/utility.rb
|
125
|
+
- lib/sunzi/version.rb
|
138
126
|
- lib/templates/create/files/authorized_keys
|
139
127
|
- lib/templates/create/files/sudoers
|
140
128
|
- lib/templates/create/install.sh
|
@@ -166,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
154
|
requirements:
|
167
155
|
- - ">="
|
168
156
|
- !ruby/object:Gem::Version
|
169
|
-
version:
|
157
|
+
version: 2.2.3
|
170
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
159
|
requirements:
|
172
160
|
- - ">="
|