tamplier 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/tamplier +25 -0
- data/lib/tamplier/version.rb +1 -1
- data/lib/tamplier.rb +1 -0
- metadata +32 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b78c6a2194776dd7cfb02f932ef78617018e3f
|
4
|
+
data.tar.gz: 91e4bc57b66764c942ac804a720688591f0bfe1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3e54c8e2018b63ec4eabef1396e70e0888cc572695e7be6259f6da151ef199c9467e1d6cc7c80f5aa5138dd13add814cccffa164b408f403b958a03ee9fd64
|
7
|
+
data.tar.gz: a5454493e51fe97fad5d8c7c9b2537f47bd41d04df5cb01322122177157e78749cd4cf38547bb305a34b44c49178586018f8324ba15448f6a268b14f74a65aaa
|
data/bin/tamplier
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative '../lib/tamplier'
|
4
|
+
|
5
|
+
require 'commander'
|
6
|
+
|
7
|
+
Commander.configure do
|
8
|
+
program :name, 'Tamplier'
|
9
|
+
program :version, Tamplier::VERSION
|
10
|
+
program :description, 'Tamplier provides ability to manage .yml.sample config files in your ruby projects.'
|
11
|
+
program :help, 'Author', 'Alexander Shestakov <Maksar.mail@gmail.com>'
|
12
|
+
|
13
|
+
command :check do |c|
|
14
|
+
c.syntax = 'tamplier check'
|
15
|
+
c.description = 'Check current application configuration'
|
16
|
+
c.option '-e ENV', String, 'Sets environment to check (default: development)'
|
17
|
+
c.action do |args, options|
|
18
|
+
options.default e: 'development'
|
19
|
+
Tamplier::Validator.new.ensure(Pathname('.').join('config'), options.e)
|
20
|
+
puts "Your configuration seems to be correct."
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
default_command :check
|
25
|
+
end
|
data/lib/tamplier/version.rb
CHANGED
data/lib/tamplier.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tamplier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shestakov
|
@@ -10,6 +10,34 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: commander
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: bundler
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,10 +129,12 @@ description: |
|
|
101
129
|
Gem also provides command line utility to quickly setup fresh development environment by copying or symlinking .yml.sample files.
|
102
130
|
email:
|
103
131
|
- Maksar.mail@gmail.com
|
104
|
-
executables:
|
132
|
+
executables:
|
133
|
+
- tamplier
|
105
134
|
extensions: []
|
106
135
|
extra_rdoc_files: []
|
107
136
|
files:
|
137
|
+
- bin/tamplier
|
108
138
|
- lib/tamplier.rb
|
109
139
|
- lib/tamplier/exceptions/configuration_exception.rb
|
110
140
|
- lib/tamplier/railtie.rb
|