-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.gemspec
141 lines (103 loc) · 4.57 KB
/
panda.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
require_relative "lib/panda/version"
Gem::Specification.new do |spec|
spec.name = "panda"
spec.version = Panda::VERSION
spec.authors = ["Zhiyong Yang"]
spec.email = ["[email protected]"]
spec.homepage = "https://github.com/younthu/panda"
spec.summary = "一个巨型app,集合各种常用的功能. 一个模版app。一个引擎。警告: 本Engine不提供任何兼容性支持,版本之间随时不兼容,请谨慎。"
spec.description = "它包含了常用的功能。用户模型,登录登出,后台管理,rest api token管理. 微信相关的功能,微信支付相关的功能。小程序相关的功能。苹果推送。"
spec.license = "MIT"
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/younthu/panda.git"
spec.metadata["changelog_uri"] = "https://github.com/younthu/panda/blob/master/CHANGELOG.md"
spec.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
spec.add_dependency "rails"
<<-Comment
# 微信支付
gem 'wx_pay'
# 微信登录
gem 'wechat'
gem "devise-jwt"
gem 'warden-jwt_auth', '= 0.4.0'
Comment
spec.add_dependency "wx_pay"
spec.add_dependency "wechat"
# spec.add_dependency "devise-jwt"
# spec.add_dependency "warden-jwt_auth"
spec.add_dependency "pg"
# devise 用户管理, gem 'devise'
spec.add_dependency 'devise'
# devise token support, https://github.com/lynndylanhurley/devise_token_auth
spec.add_dependency 'devise_token_auth'
# swag, 包含了rspec-rails, rswag-specs, ref: https://github.com/rswag/rswag
spec.add_dependency 'rswag'
# active_admin
spec.add_dependency 'activeadmin'
spec.add_dependency 'activeadmin_addons'
# spec.add_dependency 'activeadmin-searchable_select' # 这个不需要,它提供的功能在activeadmin_addons里面有。
# require 'ohai' or irb -rohai
# system = Ohai::System.new
# system.all_plugins
# puts system.to_json
spec.add_dependency 'ohai' # https://stackoverflow.com/questions/12537317/how-to-use-ohai-gem,
# Localization
spec.add_dependency 'rails-i18n'
spec.add_dependency 'devise-i18n'
spec.add_dependency 'kaminari-i18n'
# Redis
spec.add_dependency 'redis' # ruby redis gem
# Redis::Namespace provides an interface to a namespaced subset of your redis keyspace (e.g., keys with a common beginning),
# and requires the redis-rb gem.
spec.add_dependency 'redis-namespace'
# redis-rails provides a full set of stores (Cache, Session, HTTP Cache) for Ruby on Rails.
# See the main redis-store readme for general guidelines.
spec.add_dependency 'redis-rails'
# 图片上传
spec.add_dependency 'carrierwave'
# 权限管理
spec.add_dependency 'cancancan'
# 角色管理
spec.add_dependency 'rolify'
# 苹果推送, rpush
spec.add_dependency 'rpush'
# job管理
spec.add_dependency 'sidekiq'
# 设备识别, https://github.com/podigee/device_detector
spec.add_dependency 'device_detector'
# 状态机,for order status management
spec.add_dependency 'aasm'
spec.add_dependency 'sass-rails'
# development dependencies
# spec.add_development_dependency "pry" # powerful ruby console, for debugging.
# spec.add_development_dependency 'pry-rails' # pry rails support
spec.add_dependency 'rspec-rails' # integration test, add_development_dependency not work. please specify it in the app gem file.
spec.add_dependency 'rspec'
# 阿里云短信,测试: AliyunCloud::AliSmsService.new('测试', '15201991025', 'SMS_1918162822').invoke({ code: '1234' })
spec.add_dependency 'aliyun-cloud_sms'
# for loading settings from settings.yml & settings.local.yml, https://github.com/rubyconfig/config
# run rails g config:install to generate config files
spec.add_dependency 'config'
# 参数检查
spec.add_dependency 'rails_param'
#
spec.add_dependency 'exception_notification'
# cors
spec.add_dependency 'rack-cors'
# jbuilder
spec.add_dependency 'jbuilder'
# oj, Optimized JSON
spec.add_dependency 'oj'
# mqtt
spec.add_dependency 'mqtt'
spec.post_install_message = <<~EOM
Welcome to Panda!
1. 接下来请运行`rails g panda:install && rails g panda:initializer`
2. 如果使用mqtt, 请启动mqtt进程.
3. 更多流程,请看doc/setup.md.
4. 如果想快速
EOM
end