indent_code 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39b0755154953912cd205b464cabed3adc2088f4
4
- data.tar.gz: 01ccfb635a163344c296929e8b50014b22e36cbe
3
+ metadata.gz: 76f657306f4257bd86b32c566b81791117c366f9
4
+ data.tar.gz: 28765cef27b123bf0dfea985b33d3c03514807dd
5
5
  SHA512:
6
- metadata.gz: cfdec35c1bc2f09bf68b8b4a79d67af3d92e8bf3e5ce0b17febf4fd53496c9139e1b70b3bdf5eb3d8a9086294f46be8ed2832432a6623f0356f2213d9c4dd89f
7
- data.tar.gz: 96818e42acfe06d8508f615b181d4bec515c6d3f869bff37868069d81609073ebbe4ddbc26971f7f13933824295adea45057e496043d8ed7053a46aad0c57886
6
+ metadata.gz: 3df88d5004a19450f39354beb13ef7ea6fea9fca189d9afc5f823862e03a5133257a2d1a004beb1692ea5999769b125b1aae4f524f6815e789efa15f6344e748
7
+ data.tar.gz: 19bbad14bdb21efed72749f9aedc5026c28149c236df9cd80d491f6c7921c95472baeab7da5572e32ca473ba70005a9d313ceb6fcbd09be641410f08d1ebd169
data/README.md CHANGED
@@ -21,6 +21,7 @@ Or install it yourself as:
21
21
  ## Usage
22
22
 
23
23
  For details use option `-h` or `--help`.
24
+
24
25
  File for normalize 'test.c':
25
26
  ```
26
27
  #include <stdlib.h>
@@ -40,14 +41,6 @@ File for normalize 'test.c':
40
41
  }
41
42
  }
42
43
 
43
- #if EDEF
44
- //Some text - 1.
45
- # if 0
46
- This is deleted text.
47
- # endif
48
- //Some text - 2.
49
- #endif
50
-
51
44
  /**
52
45
  * Test function - 2. {
53
46
  */
@@ -63,7 +56,6 @@ void test2 ( void )
63
56
  }
64
57
  return a;
65
58
  }
66
-
67
59
  ```
68
60
 
69
61
  Run `indent` gem:
@@ -89,14 +81,6 @@ void test1 ( void )
89
81
  }
90
82
  }
91
83
 
92
- #if EDEF
93
- //Some text - 1.
94
- # if 0
95
- This is deleted text.
96
- # endif
97
- //Some text - 2.
98
- #endif
99
-
100
84
  /**
101
85
  * Test function - 2. {
102
86
  */
@@ -114,49 +98,39 @@ void test2 ( void )
114
98
  }
115
99
  ```
116
100
 
117
- Also you can set indent size and clean source code, by used `-c` option.
118
- This option deleted code blocks framed is a: `#if 0` ... `#endif`.
101
+ Also you can set indent size `-i 4` (set TAB size = 4 chars) and clean source code, by used `-c` option.
102
+ Clean option deleted code blocks framed is a: `#if 0` ... `#endif`.
119
103
 
120
104
  $ indent test.c -c
121
105
  ```
122
106
  #include <stdlib.h>
123
107
 
124
- ///Test function - 1. }
125
- void test1 ( void )
126
- {
127
- switch(c) {
128
- case 4:
129
- c = "** \" { \" ";
130
- break;
131
- }
132
-
133
- if (c)
134
- {
135
- return 1;
136
- }
137
- }
138
-
139
108
  #if EDEF
140
109
  //Some text - 1.
110
+ # if 0
111
+ Deleted text.
112
+ # endif
141
113
  //Some text - 2.
142
114
  #endif
115
+ ```
143
116
 
144
- /**
145
- * Test function - 2. {
146
- */
147
- void test2 ( void )
148
- {
149
- int a;
150
- /*
151
- * Simple comment block.
152
- * Check align into comments.
153
- */
154
- {
155
- a++;
156
- }
157
- return a;
158
- }
117
+ We get follow result after clean:
159
118
  ```
119
+ #include <stdlib.h>
120
+
121
+ #if EDEF
122
+ //Some text - 1.
123
+ //Some text - 2.
124
+ #endif
125
+ ```
126
+
127
+ ## Patch
128
+
129
+ Details information for each patch.
130
+
131
+ ##### 0.1.1
132
+ * Corrected describe information.
133
+
160
134
 
161
135
  ## Development
162
136
 
data/indent_code.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["anton"]
10
10
  spec.email = ["gera_box@mail.ru"]
11
11
 
12
- spec.summary = %q{This utilities with CLI (Command Line Interface) for normalize indentation in your source code.}
13
- spec.description = %q{This gem use the 'iparser'gem as a parser engine. For details gem, use '--help' option.}
12
+ spec.summary = %q{This utilities with CLI (Command Line Interface) for normalize indentation in your source code. This gem use the 'iparser' gem as a parser engine.}
13
+ spec.description = %q{}
14
14
  spec.homepage = "https://github.com/gera-gas/indent_code"
15
15
  spec.license = "MIT"
16
16
 
@@ -1,3 +1,3 @@
1
1
  module IndentCode
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indent_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - anton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-11 00:00:00.000000000 Z
11
+ date: 2015-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,8 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.1.6
55
- description: This gem use the 'iparser'gem as a parser engine. For details gem, use
56
- '--help' option.
55
+ description: ''
57
56
  email:
58
57
  - gera_box@mail.ru
59
58
  executables:
@@ -99,6 +98,6 @@ rubygems_version: 2.2.2
99
98
  signing_key:
100
99
  specification_version: 4
101
100
  summary: This utilities with CLI (Command Line Interface) for normalize indentation
102
- in your source code.
101
+ in your source code. This gem use the 'iparser' gem as a parser engine.
103
102
  test_files: []
104
103
  has_rdoc: