ns_service_pack 0.0.10 → 0.0.11

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.
data/README CHANGED
@@ -1,13 +1,15 @@
1
- ##==README
1
+ ##===========README
2
2
 
3
3
  Service层基础共享代码模式抽取
4
4
 
5
- 功能列表:
5
+ #==功能列表:
6
+
6
7
  * 支持自定义json格式的资源crud操作
7
8
  * 提供全局字典常量/转换管理
8
9
  * 提供数据库层-业务层字段自动转换
9
10
 
10
11
  #==TODO TASK LIST
12
+
11
13
  * 更好用的安装使用接口,自动完成,可配置
12
14
  * rake 任务的引入, 产品模式将数据文件预编译成一个数据文件
13
15
  * fieldmapping 和 常量管理的分离
@@ -17,7 +19,8 @@
17
19
  * application_controller_module的引入还是有问题!!!
18
20
  * index默认查询条件加入,传入条件的merge(目前已提供传入条件的精确搜索)
19
21
 
20
- ##==NS Service Pack使用指南
22
+ #==NS Service Pack使用指南
23
+
21
24
  *1 在rails3项目Gemfile中引入
22
25
  gem 'ns_service_pack'
23
26
 
@@ -44,10 +47,6 @@ class AddressesController < ApplicationController
44
47
  #引用的模型类,是ActiveRecord::Base子类
45
48
  end
46
49
 
47
- #已提供默认条件查询
48
- def index
49
- #定义@conds实例变量,组织查询的条件,默认支持分页
50
- end
51
50
  ...
52
51
  end
53
52
 
@@ -60,3 +59,56 @@ class Customer < ActiveRecord::Base
60
59
  end
61
60
  ...
62
61
  end
62
+
63
+
64
+ #==============History:
65
+
66
+ #0.0.11
67
+ * 文档整理
68
+
69
+ #==0.0.8
70
+ * 支持更灵活的index查询方法
71
+ 直接提供子类的
72
+ #def get_page_data(start, size, params)
73
+ # [10, model_class.all[0..3]]
74
+ #end
75
+
76
+ #==0.0.6
77
+ * 修正query_fields接口实现
78
+ * 修改方法名:
79
+ 生成mapping: ModelName.dump_mapping
80
+ 生成示例初始数据:ModelName.dump_new
81
+
82
+ #==0.0.5
83
+ * 初步解决application controller问题
84
+ * 添加默认index精确搜索条件
85
+
86
+ #==0.0.4
87
+ * 同一版本号不能向rubygems上提交两次?那怎么更新那个版本呢?
88
+ * 本地可以启用gem server,客户端通过以下指定源方式安装
89
+ gem install --source http://cao:8808
90
+
91
+ #==0.0.3 20111116
92
+ * 添加自动生成可配置的field_map,在控制台中运行:
93
+ Customer.dump_field_map
94
+ * 自动生成为客户端new资源时的初始结构
95
+ Customer.dump_init_hash
96
+ 生成到<app>/data/customer_field.yml中
97
+
98
+ * 统一用建立在CodeHash基础上的GlobalConst管理常量数据
99
+ <app>/config/code_hashes/**/*.yml文件会被初始化时加载
100
+ * 将对ApplicationController和ActiveRecord::Base的扩展放在
101
+ initializers/ns_service_pack.rb中,便于项目做定制
102
+
103
+
104
+ #==0.0.2
105
+ * 增加使用指南README,测试gem更新
106
+
107
+ #==0.0.1 20111116
108
+ 发布0.0.1版本,主要实现以下内容:
109
+ * 建立gem包基本结构,将主要代码纳入gem中
110
+ * 更友好的CodeHash数据管理
111
+
112
+ #==20111116
113
+ 根据Shang的建议,决定将共用代码抽离成gem包形式
114
+
@@ -1,4 +1,4 @@
1
1
  #coding: utf-8
2
2
  module NsServicePack
3
- VERSION = '0.0.10'
3
+ VERSION = '0.0.11'
4
4
  end
@@ -9,7 +9,6 @@ Gem::Specification.new do |s|
9
9
  s.description = %q{Service package for our service lier}
10
10
  s.email = %q{cao7113@gmail.com}
11
11
  s.files = Dir.glob("lib/**/*") + Dir.glob("config/**/*") + [
12
- "History",
13
12
  "ns_service_pack.gemspec",
14
13
  "README"
15
14
  ]
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.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-11-17 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
- requirement: &74477360 !ruby/object:Gem::Requirement
18
+ requirement: &77486750 !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: *74477360
26
+ version_requirements: *77486750
27
27
  description: Service package for our service lier
28
28
  email: cao7113@gmail.com
29
29
  executables: []
@@ -41,7 +41,6 @@ files:
41
41
  - lib/ns_service_pack.rb~
42
42
  - config/code_hashes.yml.sample
43
43
  - config/initializers/ns_service_pack.rb
44
- - History
45
44
  - ns_service_pack.gemspec
46
45
  - README
47
46
  homepage: http://github.com/cao7113?weibo=http://weibo.com/cao7113
data/History DELETED
@@ -1,45 +0,0 @@
1
- #==20111116
2
- 根据Shang的建议,决定将共用代码抽离成gem包形式
3
-
4
- #==0.0.1 20111116
5
- 发布0.0.1版本,主要实现以下内容:
6
- * 建立gem包基本结构,将主要代码纳入gem中
7
- * 更友好的CodeHash数据管理
8
-
9
- #==0.0.2
10
- * 增加使用指南README,测试gem更新
11
-
12
- #==0.0.3 20111116
13
- * 添加自动生成可配置的field_map,在控制台中运行:
14
- Customer.dump_field_map
15
- * 自动生成为客户端new资源时的初始结构
16
- Customer.dump_init_hash
17
- 生成到<app>/data/customer_field.yml中
18
-
19
- * 统一用建立在CodeHash基础上的GlobalConst管理常量数据
20
- <app>/config/code_hashes/**/*.yml文件会被初始化时加载
21
- * 将对ApplicationController和ActiveRecord::Base的扩展放在
22
- initializers/ns_service_pack.rb中,便于项目做定制
23
-
24
- #==0.0.4
25
- * 同一版本号不能向rubygems上提交两次?那怎么更新那个版本呢?
26
- * 本地可以启用gem server,客户端通过以下指定源方式安装
27
- gem install --source http://cao:8808
28
-
29
- #==0.0.5
30
- * 初步解决application controller问题
31
- * 添加默认index精确搜索条件
32
-
33
- #==0.0.6
34
- * 修正query_fields接口实现
35
- * 修改方法名:
36
- 生成mapping: ModelName.dump_mapping
37
- 生成示例初始数据:ModelName.dump_new
38
-
39
- #==0.0.8
40
- * 支持更灵活的index查询方法
41
- 直接提供子类的
42
- #def get_page_data(start, size, params)
43
- # [10, model_class.all[0..3]]
44
- #end
45
-