ld 0.2.13 → 0.2.14

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
  SHA1:
3
- metadata.gz: fd4feb768f39bd1e6376e8bb3e5d2dae0490c9c3
4
- data.tar.gz: ac92f9960df452e9b5a879c602b4f6c15651aeca
3
+ metadata.gz: 4c8679ac077b377ae3c58fe3654238ad533080e2
4
+ data.tar.gz: 7ae66a89f7dc77b658e910a0c80ce5d54382c4ea
5
5
  SHA512:
6
- metadata.gz: d82fa893037b844d171dff611e2d63471997d08ecc989948c4f6f8dcf486161bde4438abb5db725a3b6d71177a2fae314782bc8c5ca2c46918cb4c41896331f1
7
- data.tar.gz: 6ac1d29b40385497a02ea8f1617f0ca9a4c4097a64b5b62df700171b78b6171d2e23c1587e49937865ae20d880cdacfd32b176f6a748f233a4c2a04be152fe2d
6
+ metadata.gz: e6cd3bd025c52def49c1dabc928f2dab82a58854cf2e0dedae26eb464b048972595eb004d2b076c6e48b5d45bc0e75cc4e69cf8a0b11b8dce869282d69eaf5a4
7
+ data.tar.gz: 16e79abb2b650a66d158ecf6d7f96fb62eaa191e89825eabf8fa0cf7894340ba055a7f7bf0e3d602933c6e28e54196d3f16cacbf70d4252ef4b78e8761483aed
@@ -7,7 +7,7 @@ class Ld::Project
7
7
  @table_hash = table_hash
8
8
  @schema = @root.db.find('schema.rb')
9
9
  raise "schema.rb文件不存在\n请运行命令(rake db:schema:dump)或手动添加此文件" if @schema.nil?
10
- raise "schema.rb文件没有内存\n请运行命令(rake db:schema:dump)或手动添加此文件" if @schema.lines.size == 0
10
+ raise "schema.rb文件是空的\n请运行命令(rake db:schema:dump)或手动添加此文件" if @schema.lines.size == 0
11
11
  parse_project
12
12
  end
13
13
 
@@ -25,7 +25,7 @@ class Ld::Routes
25
25
  uri = row[2]
26
26
  [@model_name,controller_name, action, type, uri, help_method]
27
27
  }.sort{|a,b| a[1] <=> b[1]}
28
- #File.delete("#{@root.path}/routes.txt") if File.exist? "#{@root.path}/routes.txt"
28
+ File.delete("#{@root.path}/routes.txt") if File.exist? "#{@root.path}/routes.txt"
29
29
  @headings = ['所属模型','控制器', 'action', '请求类型','URI','帮助方法']
30
30
  end
31
31
  end
data/lib/ld/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ld
2
- VERSION = "0.2.13"
2
+ VERSION = "0.2.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ld
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Dong