cli-template 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +25 -16
- data/CHANGELOG.md +4 -0
- data/cli-template.gemspec +1 -1
- data/lib/cli-template/sequence.rb +4 -3
- data/lib/cli-template/version.rb +1 -1
- data/lib/templates/colon_namespaces/%project_name%.gemspec.tt +2 -2
- data/lib/templates/default/%project_name%.gemspec.tt +1 -1
- data/lib/templates/default/lib/%project_name%.rb.tt +1 -0
- metadata +3 -4
- data/lib/templates/default/Gemfile.lock.tt +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0644fbf2dbb89cbca09c2739f8a98843492b7f1c1f0c21b336aead59e56b7836
|
4
|
+
data.tar.gz: 3ab1fbd17f2c7dc0432c29e69e7641a88a1ce4a79d98d95813b2b29def798e95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79df4a1d2bef41833fcf7e53c3e48de91d53861bc3110f52b56ccb8689eeb088bc0d51cac0e6330170302f948263ccd753afdbc0bd48487cc511aa5cecbf90ff
|
7
|
+
data.tar.gz: 451c78728445ad8b52ae5c39df2379f26542865ba107801bcf1f3862660042d21837c5d6c5cc809366253cda4d6165a6c4bb3b377e85f70ad044a80e72971d7d
|
data/.circleci/config.yml
CHANGED
@@ -7,35 +7,39 @@ jobs:
|
|
7
7
|
build:
|
8
8
|
docker:
|
9
9
|
# specify the version you desire here
|
10
|
-
|
11
|
-
|
12
|
-
# Specify service dependencies here if necessary
|
13
|
-
# CircleCI maintains a library of pre-built images
|
14
|
-
# documented at https://circleci.com/docs/2.0/circleci-images/
|
15
|
-
# - image: circleci/postgres:9.4
|
10
|
+
- image: circleci/ruby:2.5.3
|
16
11
|
|
17
12
|
working_directory: ~/repo
|
18
13
|
|
19
14
|
steps:
|
20
15
|
- checkout
|
21
16
|
|
17
|
+
- run:
|
18
|
+
name: submodule sync
|
19
|
+
command: |
|
20
|
+
git submodule sync
|
21
|
+
git submodule update --init
|
22
|
+
|
22
23
|
# Download and cache dependencies
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
# Cannot cache with Gemfile.lock since it is gitignore.
|
25
|
+
# Not caching with Gemfile, would rather not.
|
26
|
+
# - restore_cache:
|
27
|
+
# keys:
|
28
|
+
# - v2-dependencies-{{ checksum "Gemfile.lock" }}
|
29
|
+
# # fallback to using the latest cache if no exact match is found
|
30
|
+
# - v2-dependencies-
|
28
31
|
|
29
32
|
- run:
|
30
33
|
name: install dependencies
|
31
34
|
command: |
|
32
35
|
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
33
36
|
|
34
|
-
- save_cache:
|
35
|
-
|
36
|
-
|
37
|
-
|
37
|
+
# - save_cache:
|
38
|
+
# paths:
|
39
|
+
# - ./vendor/bundle
|
40
|
+
# key: v2-dependencies-{{ checksum "Gemfile.lock" }}
|
38
41
|
|
42
|
+
# test require this
|
39
43
|
- run:
|
40
44
|
name: configure git
|
41
45
|
command: |
|
@@ -46,8 +50,13 @@ jobs:
|
|
46
50
|
- run:
|
47
51
|
name: run tests
|
48
52
|
command: |
|
49
|
-
gem install bundler # think need this because the specs shell out
|
50
53
|
mkdir /tmp/test-results
|
54
|
+
|
55
|
+
cat >.rspec <<EOL
|
56
|
+
--format documentation
|
57
|
+
--require spec_helper
|
58
|
+
EOL
|
59
|
+
|
51
60
|
bundle exec rspec
|
52
61
|
|
53
62
|
# collect reports
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [3.5.0]
|
7
|
+
- add .circleci/config.yml: circle 2.0 upgrade
|
8
|
+
- use rainbow gem for terminal color
|
9
|
+
|
6
10
|
## [3.4.0]
|
7
11
|
- add class Error in generated class
|
8
12
|
- add cli_markdown and rake docs task
|
data/cli-template.gemspec
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
require 'colorize'
|
3
1
|
require 'active_support/core_ext/string'
|
4
|
-
require 'thor'
|
5
2
|
require 'bundler'
|
3
|
+
require 'fileutils'
|
4
|
+
require 'rainbow'
|
5
|
+
require 'thor'
|
6
|
+
require 'rainbow/ext/string'
|
6
7
|
|
7
8
|
class CliTemplate::Sequence < Thor::Group
|
8
9
|
include Thor::Actions
|
data/lib/cli-template/version.rb
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.email = ["tongueroo@gmail.com"]
|
9
9
|
spec.summary = "Generated with cli-template tool. Please write a gem summary"
|
10
10
|
spec.description = "Generated with cli-template tool. Write a longer description or delete this line."
|
11
|
-
spec.homepage = "
|
11
|
+
spec.homepage = "http://example.com"
|
12
12
|
spec.license = "MIT"
|
13
13
|
|
14
14
|
spec.files = `git ls-files`.split($/)
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency "thor"
|
21
|
-
spec.add_dependency "
|
21
|
+
spec.add_dependency "rainbow"
|
22
22
|
spec.add_dependency "rake"
|
23
23
|
spec.add_dependency "activesupport"
|
24
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cli-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rainbow
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -197,7 +197,6 @@ files:
|
|
197
197
|
- lib/templates/default/.gitignore
|
198
198
|
- lib/templates/default/.rspec
|
199
199
|
- lib/templates/default/CHANGELOG.md
|
200
|
-
- lib/templates/default/Gemfile.lock.tt
|
201
200
|
- lib/templates/default/Gemfile.tt
|
202
201
|
- lib/templates/default/Guardfile
|
203
202
|
- lib/templates/default/LICENSE.txt
|
@@ -1,64 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
<%= project_name %> (0.1.0)
|
5
|
-
activesupport
|
6
|
-
colorize
|
7
|
-
rake
|
8
|
-
thor
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: https://rubygems.org/
|
12
|
-
specs:
|
13
|
-
activesupport (5.1.4)
|
14
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
-
i18n (~> 0.7)
|
16
|
-
minitest (~> 5.1)
|
17
|
-
tzinfo (~> 1.1)
|
18
|
-
byebug (10.0.0)
|
19
|
-
codeclimate-test-reporter (1.0.8)
|
20
|
-
simplecov (<= 0.13)
|
21
|
-
colorize (0.8.1)
|
22
|
-
concurrent-ruby (1.0.5)
|
23
|
-
diff-lcs (1.3)
|
24
|
-
docile (1.1.5)
|
25
|
-
i18n (0.9.4)
|
26
|
-
concurrent-ruby (~> 1.0)
|
27
|
-
json (2.1.0)
|
28
|
-
minitest (5.11.3)
|
29
|
-
rake (12.3.0)
|
30
|
-
rspec (3.7.0)
|
31
|
-
rspec-core (~> 3.7.0)
|
32
|
-
rspec-expectations (~> 3.7.0)
|
33
|
-
rspec-mocks (~> 3.7.0)
|
34
|
-
rspec-core (3.7.1)
|
35
|
-
rspec-support (~> 3.7.0)
|
36
|
-
rspec-expectations (3.7.0)
|
37
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
-
rspec-support (~> 3.7.0)
|
39
|
-
rspec-mocks (3.7.0)
|
40
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.7.0)
|
42
|
-
rspec-support (3.7.1)
|
43
|
-
simplecov (0.13.0)
|
44
|
-
docile (~> 1.1.0)
|
45
|
-
json (>= 1.8, < 3)
|
46
|
-
simplecov-html (~> 0.10.0)
|
47
|
-
simplecov-html (0.10.2)
|
48
|
-
thor (0.20.0)
|
49
|
-
thread_safe (0.3.6)
|
50
|
-
tzinfo (1.2.5)
|
51
|
-
thread_safe (~> 0.1)
|
52
|
-
|
53
|
-
PLATFORMS
|
54
|
-
ruby
|
55
|
-
|
56
|
-
DEPENDENCIES
|
57
|
-
bundler
|
58
|
-
byebug
|
59
|
-
codeclimate-test-reporter
|
60
|
-
<%= project_name %>!
|
61
|
-
rspec
|
62
|
-
|
63
|
-
BUNDLED WITH
|
64
|
-
1.16.1
|