canoe 0.3.3.9 → 0.3.3.10

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: 27fc12be4cfd0775886ed271cbc9ef488af257f39b042bf2d05e0c9e15383ced
4
- data.tar.gz: c7098cf99ac368904025146a345dc9568c10bf22b6ad92d20bb3a650c78f3353
3
+ metadata.gz: aa7b88d374db4b819dc680be67aa6320869e7cfdd08866baa889264e068792d7
4
+ data.tar.gz: 7c30628f907145f4c1d71ceb410cf1b84cf14eb48614eec297d02f06875147d5
5
5
  SHA512:
6
- metadata.gz: 41c42a532260ed0cb89b6885cbd9dae8058b26e5ddd90b4bb30a8f439b7d09e86a500e078bd6a807242c9e1a4be3e87ec43901a69538afdb60adf6ed48d4b4de
7
- data.tar.gz: 2f2aa63dbf22b89538a56f9854de86ff27912b70cda5081c9201a469e36f957d27b5a1997f0c8d8b42423bd41efb6767993c53e12c59317ed26ed9a8839f85b9
6
+ metadata.gz: '05867ae57be308d052e77fa68efa0bfd0a964b423b4c6843f4476cedc84ebbe85eba7a085d980413f240533f0b92e2af33ce551a659305eaf47d3ad2a594032e'
7
+ data.tar.gz: 4c3dd9afe36b4ee30350ad914063d8a739e693e8dab516fe22f664ae9fb0ab3a0e0ec8095eae0f5a1bd9a2d4be348ab535f276ce9ad04654dab5aaddcd1dcd90
data/lib/default_files.rb CHANGED
@@ -10,6 +10,18 @@ class DefaultFiles
10
10
  end
11
11
  end
12
12
 
13
+ def create_clang_format(path)
14
+ open_file_and_write(
15
+ "#{path}/.clang-format",
16
+ <<~CLANG
17
+ BasedOnStyle: LLVM
18
+ IndentWidth: 4
19
+ ColumnLimit: 86
20
+ NamespaceIndentation: All
21
+ CLANG
22
+ )
23
+ end
24
+
13
25
  def create_config(path, compiler = 'clang++', src_sfx = 'cpp', hdr_sfx = 'hpp')
14
26
  open_file_and_write(
15
27
  "#{path}/config.json",
data/lib/workspace/new.rb CHANGED
@@ -26,6 +26,7 @@ module Canoe
26
26
  Dir.chdir(@workspace) do
27
27
  issue_command 'git init'
28
28
  issue_command 'canoe add tests'
29
+ DefaultFiles.create_clang_format @workspace
29
30
  end
30
31
  puts "workspace #{@workspace.blue} is created"
31
32
  end
@@ -2,7 +2,7 @@ module Canoe
2
2
  class WorkSpace
3
3
  def self.version
4
4
  puts <<~VER
5
- canoe v0.3.3.9
5
+ canoe v0.3.3.10
6
6
  For features in this version, please visit https://github.com/Dicridon/canoe
7
7
  Currently, canoe can do below:
8
8
  - project creation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3.9
4
+ version: 0.3.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - XIONG Ziwei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2024-03-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |+
14
14
  Canoe offers project management and building facilities to C/C++ projects.