lathe 0.0.9 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 74d2b8602b11a746f4f3a9d832f2ff3924729227
4
+ data.tar.gz: bc7d0154feb795843713f92db406d3c4c40f313e
5
+ SHA512:
6
+ metadata.gz: c7c2ae499b38708f24034aa6ffc31fb37bf5f8a9942c2b90907dd4f3e202a46bbff9cfe71ea0ddd3ae48e50076f9159a2ef99af4bcce3768ab452bf6f37d8bd4
7
+ data.tar.gz: a4e78c4abcd89423ea0caae3ad6b5e186b168d35bbef7c9ecb4c76e5dec2c9cb7de9aa2b6ac0a4d5aa1a0336b275db4d863411c6081ab1c2cdb60f161e3c0726
@@ -10,9 +10,9 @@ Gem::Specification.new do |s|
10
10
  s.authors = ["dev@dehuinet.com"]
11
11
  s.email = ["dev@dehuinet.com"]
12
12
  s.homepage = ""
13
- s.summary = %q{TODO: Write a gem summary}
14
- s.description = %q{TODO: Write a gem description}
13
+ s.summary = %q{这是当前插件的摘要}
14
+ s.description = %q{这是当前插件的描述}
15
15
  s.require_paths = ["lib"]
16
- s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
16
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["LICENSE", "Rakefile", "README.md"]
17
17
  s.test_files = Dir["test/**/*"]
18
18
  end
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 vulgarcoder
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  <%=app_path%>
2
2
  =============
3
- 为党建系统开发的学习应用
3
+ 这是通过lathe工具生成的插件,可以按照以下步骤进行安装
4
4
 
5
5
  安装步骤
6
6
  ---------
@@ -8,7 +8,7 @@
8
8
 
9
9
  #### 1. 在Gemfile中添加 ####
10
10
 
11
- gem '<%=app_path%>',:git=>"TODO"
11
+ gem '<%=app_path%>',:path=>"这地方写mini_app工程的路径"
12
12
 
13
13
  #### 2. 安装插件 ####
14
14
  rails g <%=app_path%>:install
@@ -11,12 +11,14 @@ module <%=package%>
11
11
  end
12
12
  end
13
13
 
14
- initializer '<%=app_path%>.behind', :after=> :disable_dependency_loading do |app|
14
+ config.after_initialize do
15
15
  #这儿的代码在rails加载器都加载完成以后再执行
16
16
  #加载API
17
+ unless ( File.basename($0) == "rake")
17
18
  ::API.send "include",<%=package%>::ApiV1<%=app_name.camelize%>
18
19
 
19
20
  MiniApp.apps << {:title=>I18n.t("ft.mini_app.<%=app_name%>.app_text"),:create_url=>'/mini_apps/<%=app_name%>/new',:icon=> ActionController::Base.helpers.asset_path('<%=app_path%>/<%=app_name%>_white.png')}
21
+ end
20
22
  end
21
23
  end
22
24
  end
data/lib/lathe/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lathe
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lathe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
5
- prerelease:
4
+ version: 0.0.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - vulgarcoder
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-23 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -46,6 +43,7 @@ files:
46
43
  - lib/lathe/cli.rb
47
44
  - lib/lathe/generators/mini_app/%app_path%.gemspec.tt
48
45
  - lib/lathe/generators/mini_app/Gemfile
46
+ - lib/lathe/generators/mini_app/LICENSE.tt
49
47
  - lib/lathe/generators/mini_app/README.md.tt
50
48
  - lib/lathe/generators/mini_app/Rakefile.tt
51
49
  - lib/lathe/generators/mini_app/app/api/%app_path%/api_v1_%app_name%.rb.tt
@@ -62,14 +60,14 @@ files:
62
60
  - lib/lathe/generators/mini_app/app/assets/stylesheets/%app_path%/%app_name%.less.tt
63
61
  - lib/lathe/generators/mini_app/app/assets/stylesheets/%app_path%/application.css
64
62
  - lib/lathe/generators/mini_app/app/controllers/%app_path%/%app_name%_controller.rb.tt
65
- - lib/lathe/generators/mini_app/app/helpers/%app_path%/application_helper.rb
63
+ - lib/lathe/generators/mini_app/app/helpers/%app_path%/application_helper.rb.tt
66
64
  - lib/lathe/generators/mini_app/app/mailers/.empty_directory
67
65
  - lib/lathe/generators/mini_app/app/models/%app_path%/%app_name%_model.rb.tt
68
66
  - lib/lathe/generators/mini_app/app/models/%app_path%/service.rb.tt
69
67
  - lib/lathe/generators/mini_app/app/views/layouts/%app_path%/.empty_directory
70
68
  - lib/lathe/generators/mini_app/config/.empty_directory
71
- - lib/lathe/generators/mini_app/config/locales/fontend.en.yml.tt
72
- - lib/lathe/generators/mini_app/config/locales/fontend.zh-CN.yml.tt
69
+ - lib/lathe/generators/mini_app/config/locales/frontend.en.yml.tt
70
+ - lib/lathe/generators/mini_app/config/locales/frontend.zh-CN.yml.tt
73
71
  - lib/lathe/generators/mini_app/config/routes.rb.tt
74
72
  - lib/lathe/generators/mini_app/db/migrate/%now%_create_%app_path%_%app_name%_models.rb.tt
75
73
  - lib/lathe/generators/mini_app/lib/%app_path%.rb.tt
@@ -84,26 +82,25 @@ files:
84
82
  homepage: https://github.com/vulgarcoder/lathe
85
83
  licenses:
86
84
  - MIT
85
+ metadata: {}
87
86
  post_install_message:
88
87
  rdoc_options: []
89
88
  require_paths:
90
89
  - lib
91
90
  required_ruby_version: !ruby/object:Gem::Requirement
92
- none: false
93
91
  requirements:
94
- - - ! '>='
92
+ - - '>='
95
93
  - !ruby/object:Gem::Version
96
94
  version: '0'
97
95
  required_rubygems_version: !ruby/object:Gem::Requirement
98
- none: false
99
96
  requirements:
100
- - - ! '>='
97
+ - - '>='
101
98
  - !ruby/object:Gem::Version
102
99
  version: '0'
103
100
  requirements: []
104
101
  rubyforge_project:
105
- rubygems_version: 1.8.23
102
+ rubygems_version: 2.1.9
106
103
  signing_key:
107
- specification_version: 3
104
+ specification_version: 4
108
105
  summary: For minxing365.com
109
106
  test_files: []