code-tools 5.0.0 → 5.0.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/spacer +4 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bccd6fecbea6c93c32b92522d03fc000ebe403b
4
- data.tar.gz: 927adb322732ca9f2f37cff0372d0f5c215810be
3
+ metadata.gz: 69c415bd53795f24c35378c06ccfc9dcd678aae4
4
+ data.tar.gz: 005850065a38366abc464c47b289b9e5896f3150
5
5
  SHA512:
6
- metadata.gz: 596b5fec512b56871f04ed48d2633fd567ba80efa53c7b2bb5732b92643d707e8b8dcf76651dcea097b3323a8b212f0f6957ace5fef32ea9a543c780b8b83bd1
7
- data.tar.gz: e9335f94a397cc1333d31aa0bd3df41fb3aa282840f1e50c39f07bfd67091d600d25572c0db1e9e59a7a8f72b312b0d5c14c4b5fd44a904aba874aa1e053a80b
6
+ metadata.gz: 2e00d971f80d0ee3ad81a3153c4dbabd42c147a2cf78e6b056dfd7462dd054bb4693090169af25db576f1e8edcd95a536d3ece1d3b7233d1b69642f22c95a4bd
7
+ data.tar.gz: 059b9e47d480c8e580c49d0fbfe2850e18ed54f0e80c2bf9404bc31ea24811538d3caaec89e4dc42f5a2c369708d58807fa9d389742aefdc867f9d9ea5dd566a
data/bin/spacer CHANGED
@@ -86,16 +86,16 @@ class Tool
86
86
 
87
87
  if !options[:mode].nil?
88
88
  if file_type == :text
89
- Spacer::Text.untabify(lines, options[:tabsize])
89
+ Spacer::Text.untabify(lines, options[:tabsize].to_i)
90
90
  else
91
- Spacer::CSharp.untabify(lines, options[:tabsize])
91
+ Spacer::CSharp.untabify(lines, options[:tabsize].to_i)
92
92
  end
93
93
 
94
94
  if options[:mode] == :tabs
95
95
  if file_type == :text
96
- Spacer::Text.tabify(lines, options[:tabsize], options[:round])
96
+ Spacer::Text.tabify(lines, options[:tabsize].to_i, options[:round] != nil)
97
97
  else
98
- Spacer::CSharp.tabify(lines, options[:tabsize], options[:round])
98
+ Spacer::CSharp.tabify(lines, options[:tabsize].to_i, options[:round] != nil)
99
99
  end
100
100
  end
101
101
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Lyon-smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-13 00:00:00.000000000 Z
11
+ date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo