ns_service_pack 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -62,6 +62,9 @@ end
62
62
 
63
63
 
64
64
  #==============History:
65
+ #==0.0.14
66
+ * fix bug: error==>errors
67
+
65
68
  #==0.0.13
66
69
  * json数据打包部分增加部分成功的情况:
67
70
  ResultPacker.improve(ok_data, errors_hash, msg)
@@ -15,7 +15,7 @@ class ResultPacker
15
15
 
16
16
  #前台验证错误
17
17
  def self.improve(ok_data = nil, hint_hash={}, msg='部分逻辑错误!')
18
- {:status=>'imperfect',:msg=>msg, :data=>ok_data, :error=>hint_hash}
18
+ {:status=>'imperfect',:msg=>msg, :data=>ok_data, :errors=>hint_hash}
19
19
  end
20
20
 
21
21
  #前台验证错误
@@ -1,4 +1,4 @@
1
1
  #coding: utf-8
2
2
  module NsServicePack
3
- VERSION = '0.0.13'
3
+ VERSION = '0.0.14'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ns_service_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-11-18 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
- requirement: &69140470 !ruby/object:Gem::Requirement
18
+ requirement: &75576120 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: 3.1.0
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *69140470
26
+ version_requirements: *75576120
27
27
  description: Service package for our service lier
28
28
  email: cao7113@gmail.com
29
29
  executables: []