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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09676fb096ed5b35481b54c8bdddf2d20752aec2
4
- data.tar.gz: c4b61c927339e8f547abac5857151cbdd5db28e6
3
+ metadata.gz: 24b78c6a2194776dd7cfb02f932ef78617018e3f
4
+ data.tar.gz: 91e4bc57b66764c942ac804a720688591f0bfe1c
5
5
  SHA512:
6
- metadata.gz: e67de30eff33182070b670a8ca1be5c309b4a6ca3fbb4093f2a81eacd6353ee51b9892fcd43662220f48bdc293d47e6769e18379cbb13b73b626337fc0207a33
7
- data.tar.gz: bb7d11c9ce2c196be63d3ba4d96526814d2594a6f2550d4ceee206b0e90efbfb324205cb15e1e5d52fff579bae49737f345b0751f9be2a137c24fcbe855fa520
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
@@ -1,3 +1,3 @@
1
1
  module Tamplier
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/tamplier.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'pathname'
2
2
  require 'yaml'
3
+ require 'active_support/all'
3
4
 
4
5
  require 'tamplier/version'
5
6
  require 'tamplier/exceptions/configuration_exception'
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.1.1
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