codes21 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/codes21 +1 -1
  3. data/lib/codes21.rb +2 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65a0e90df44b151c6cc010b5a6717af1da10c869
4
- data.tar.gz: b5a47455331d92f1dd32c76233e49a906444e911
3
+ metadata.gz: 59be62698687bfb3685a65c7249b1def4625f3c2
4
+ data.tar.gz: 8ef2fe9f0d837e7df644c9ce73c6ca287f3fe7c4
5
5
  SHA512:
6
- metadata.gz: d284a2fa576013fbb364e714fa076d488b8380c82acf80fd18c6c9de3d0101cfec621f29d0b73b4d93d8cff0560c454c85fe4dbb02b3ea8147ae29a92746b770
7
- data.tar.gz: b37f56be017b4106c3ac4594db28cce090c67df2185aaa4885c3289a9e42f1587cf78ce95853a302d3d728c88cdf45dc2708d988e59443f560f55d4f5277b3cd
6
+ metadata.gz: 09edf309e6c207cd210fe73a71663c7191aa10665cae18aef1739e978cccea517abee37cdf50b0b6711da9bd26bd13f145aac4133a663a4e995b0a89b92c855e
7
+ data.tar.gz: 0185fdba1a7ac70b93d9b22ddc3061fb6aecb5be477eb21e02ec42cdbbce78c0fd8aaab1afca6d38f0d4d99fd7b9942ab8babaebcb719ab2ce84faad1c910606
data/bin/codes21 CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'codes21'
3
+ require_relative '../lib/codes21'
4
4
 
5
5
  if ARGV.count != 3
6
6
  puts "With the given suffixes merge multiple files code into one file."
data/lib/codes21.rb CHANGED
@@ -7,7 +7,8 @@ class Codes21
7
7
 
8
8
  puts '*' * 70
9
9
  codes = File.read(file)
10
- codes.squeeze! "\n"
10
+ # sb的软件著作权要求不能有空行
11
+ codes = codes.squeeze("\n")
11
12
  puts codes
12
13
 
13
14
  item = {title: title, codes: codes}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codes21
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aston Fu