centuria 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: b254018a92a60c4f65c9ee916ed83bcb8e862b0a425fcc730f9faa1a3e62d079
4
- data.tar.gz: 8a40816127cb227db681904e4192c8ea99d747bccaa66b38614c2498443fe065
3
+ metadata.gz: 29d5771f2d51e5d9232c3faebf25a2a342a8f37ffd8cbf7fb8480dc0fb0fca55
4
+ data.tar.gz: e5a25e94369e961c9baf783a5e83f69dad081eebd7e77fc769263727884b61e4
5
5
  SHA512:
6
- metadata.gz: 8cb617c6274553bf8cbeda92a0ab59d85cf50a6a77f555aa13d7ae3054efd3995b1449073e798dc4b5fb4a725c5f4ab3d1fa4a748ba3ac52fba34ae32c6a037d
7
- data.tar.gz: db3ffeec9a3f06fc3f5228b1ed894370f604a770b59d3dbaffdaa5a04f08c4e4b0fe2c3c19ddc76614ef2b12ac362ffad157c3b66bb13d6db7526ed8681ccc36
6
+ metadata.gz: fe02bd9975d3327471a6e0be2af1391c5a377d4be23d42b7798ffe3b0b7a7c204f98d32d7ed48c22126118d0199de6c98bb483aaff91a3a40c2a0f1dcd124cf9
7
+ data.tar.gz: afb700f0179ce08dd797d24aba1c92631bf876ea002ee30bede417dac2f7e9412ba70d3e304085e40c857e55754be6c1c4876bb9ca3085b1aaff0b014a0f3e4d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- centuria (0.1.2)
4
+ centuria (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
File without changes
data/exe/cent CHANGED
@@ -1,11 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'centuria'
4
- # puts Centuria.logging
5
4
 
6
5
  module Cent
7
6
  class CLI < Thor
8
- register(Generator, "g", "g [NAME]", "you can generate text file for memo")
7
+ map %w[-v] => :__version
8
+
9
+ desc "-v", "you can confirm the version of Centuria"
10
+ def __version
11
+ puts "Centuria #{Centuria.gem_version}"
12
+ end
13
+
14
+ register(Create, "new", "new [NAME]", "you can generate text file for memo")
9
15
  register(Clear, "clear", "clear [NAME]", "you can destroy file or directory")
10
16
  end
11
17
  end
@@ -10,7 +10,7 @@ module Centuria
10
10
 
11
11
  MAJOR = 0
12
12
  MINOR = 2
13
- TINY = 0
13
+ TINY = 1
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY].compact.join(".")
16
16
  end
@@ -1,4 +1,5 @@
1
1
  require "generator/clear"
2
- require "generator/generator"
2
+ require "generator/create"
3
+
3
4
  module GeneratorCmd
4
5
  end
@@ -1,6 +1,6 @@
1
1
  require "generator/gene_base"
2
2
 
3
- class Generator < Thor::Group
3
+ class Create < Thor::Group
4
4
  include Thor::Actions
5
5
  include GeneratorBase::Template
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: centuria
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kohei
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2019-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -71,17 +71,17 @@ files:
71
71
  - Rakefile
72
72
  - bin/console
73
73
  - bin/setup
74
+ - centuria.gemspec
74
75
  - exe/cent
75
76
  - lib/centuria.rb
76
77
  - lib/centuria/gem_version.rb
77
78
  - lib/centuria/generator/clear.rb
78
79
  - lib/centuria/generator/commands.rb
80
+ - lib/centuria/generator/create.rb
79
81
  - lib/centuria/generator/gene_base.rb
80
- - lib/centuria/generator/generator.rb
81
82
  - lib/centuria/templates/lib/app.txt.tt
82
83
  - lib/centuria/templates/lib/version.rb.tt
83
84
  - lib/centuria/version.rb
84
- - sample_app.gemspec
85
85
  homepage: https://github.com/Koh0412/centuria
86
86
  licenses:
87
87
  - MIT