qa-rails 0.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ *.gem
@@ -1,9 +1,11 @@
1
- Rails 迷你问答论坛插件
1
+ qa-rails
2
2
  ==================================================================
3
+ Rails Engine. a mini forum provided by only a simple helper, written in Backbones.js.
3
4
 
4
- ### 使用
5
- 1. 添加qa-rails数据库表,bundle exec rake db:migrate
6
- 2. 在view里引用论坛插件,示例:
5
+ Usage
6
+ ------------------------------------------------------------------
7
+ 1. Ad qa-rails tables,bundle exec rake db:migrate
8
+ 2. config it in view:
7
9
 
8
10
  ```ruby
9
11
  qa_setup "#content .SectionBox .SectionList .forum",
@@ -14,14 +16,24 @@ qa_setup "#content .SectionBox .SectionList .forum",
14
16
  :notice_div => '$(".SectionBox[anchor=qa] .SectionHead .hasNew")'
15
17
  ```
16
18
 
17
- ### 其他论坛参考
19
+ Screenshots
20
+ ------------------------------------------------------------------
21
+
22
+ [<img src="https://raw.github.com/eoecn/qa-rails/eoecn/screenshots/qa_list.png">](index)
23
+ [<img src="https://raw.github.com/eoecn/qa-rails/eoecn/screenshots/qa_show.png">](show)
24
+
25
+
26
+ Other forums written in Ruby and Javascript
27
+ ------------------------------------------------------------------
18
28
  * https://github.com/radar/forem
19
- * https://github.com/discourse/discourse vendor下的gems值得一看
29
+ * https://github.com/discourse/discourse see /vendor/gems
20
30
 
21
- ### 贡献人员名单
31
+ Contributors
32
+ ------------------------------------------------------------------
22
33
  * 产品: @iceskysl
23
34
  * rails, javascript: @mvj3
24
35
  * css: @xiang97
25
36
 
26
- ### License
37
+ License
38
+ ------------------------------------------------------------------
27
39
  MIT
@@ -93,7 +93,7 @@
93
93
  #qa .topic_content .user span.avatar{display:block;height:48px;overflow:hidden;}
94
94
  #qa .topic_content .user span.uname, .markdownBox .uname{display:block;width:48px;height:24px;line-height:24px;overflow:hidden;text-align:center;color:#555;}
95
95
  #qa .topic_content .box{float:right;width:800px;height:auto !important;max-height:150px;overflow:hidden;font-size:12px;margin-right:25px;position:relative;}
96
- #qa .topic_content .box .title{color:#0073de;font-size:14px;}
96
+ #qa .topic_content .box .title{display:block;width:770px;line-height:140%;color:#0073de;font-size:14px;padding-bottom:5px;}
97
97
  #qa .topic_content .box a.uname{color:#999;}
98
98
  #qa .topic_content .box em{display:inline-block;padding:0 8px;color:#fff;font-size:14px;font-style:normal;cursor:pointer;background-color:#1c7fdb;border-radius:12px;position:absolute;right:0;top:10px;}
99
99
  #qa .topic_content .box .view_count{float:right;padding:0 5px;margin-left:10px;font-size:14px;color:#fff;border-radius:4px;background-color:#1c7fdb;}
@@ -105,16 +105,16 @@
105
105
  #qa .pagination span.page a{color:#0073de;}
106
106
  #qa .pagination span.current{color:#999;}
107
107
 
108
- #qa .topic_show .back_to_list{width:16px;height:16px;overflow:hidden;text-indent:-9999px;background:url(/assets/learn_btn.png) -212px 0 no-repeat;position:absolute;left:10px;top:14px;}
108
+ #qa .topic_show .back_to_list{width:16px;height:16px;overflow:hidden;text-indent:-9999px;background:url(/assets/learn_btn.png) -212px 0 no-repeat;position:absolute;left:10px;top:16px;}
109
109
  #qa .topic_show .head{padding:0 35px 10px;overflow:hidden;border-bottom:1px solid #ddd;}
110
- #qa .topic_show .head .left{float:left;width:530px;}
110
+ #qa .topic_show .head .left{float:left;width:785px;}
111
111
  #qa .topic_show .head .left .detail{margin-top:10px;}
112
- #qa .topic_show .head .left .title{font-size:20px;color:#0073de;}
112
+ #qa .topic_show .head .left .title{font-size:20px;color:#0073de;line-height:140%;}
113
113
  #qa .topic_show .head .left .uname{color:#666;font-weight:bold;}
114
114
  #qa .topic_show .head .left .time{color:#999;padding:0 8px;}
115
115
  #qa .topic_show .head .right{float:right;width:48px;height:48px;overflow:hidden;}
116
116
  #qa .topic_show .body,.topic_show .comment{padding:15px 25px;overflow:hidden;border-bottom:1px solid #ddd;}
117
- #qa .topic_show .body .content code,#qa .topic_content .box .content code,#qa .preview_box .preview_content code{padding:1px 3px;border:1px solid #dedede;border-radius:3px;background-color:#fafafa;}
117
+ #qa .topic_show .body .content code,#qa .topic_content .box .content code,#qa .preview_box .preview_content code,#qa .topic_show .comments .content code{padding:1px 3px;border:1px solid #dedede;border-radius:3px;background-color:#fafafa;}
118
118
  #qa .topic_show .comment{border-bottom:1px dashed #ddd;padding:15px 0;margin:0 25px;}
119
119
  #qa .topic_show .comment .avatar,#qa .comment .avatar,#qa .textareaBox .avatar{float:left;width:48px;height:48px;overflow:hidden;margin-right:15px;_display:inline;}
120
120
  #qa .topic_show .comment .user{float:left;width:710px;}
@@ -1,12 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'qa-rails'
3
- s.version = '0.1'
4
- s.date = '2013-04-08'
5
- s.summary = File.read("README.markdown").split(/===+/)[0].strip
3
+ s.version = '0.1.2'
4
+ s.date = '2013-07-17'
5
+ s.summary = File.read("README.markdown").split(/===+/)[1].strip.split("\n")[0]
6
6
  s.description = s.summary
7
7
  s.authors = ["David Chen"]
8
8
  s.email = 'mvjome@gmail.com'
9
9
  s.homepage = 'http://github.com/eoecn/qa-rails'
10
+ s.license = 'MIT'
10
11
 
11
12
  s.add_dependency "rails"
12
13
  s.add_dependency "haml"
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qa-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-08 00:00:00.000000000 Z
12
+ date: 2013-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -123,12 +123,14 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
- description: Rails 迷你问答论坛插件
126
+ description: Rails Engine. a mini forum provided by only a simple helper, written
127
+ in Backbones.js.
127
128
  email: mvjome@gmail.com
128
129
  executables: []
129
130
  extensions: []
130
131
  extra_rdoc_files: []
131
132
  files:
133
+ - .gitignore
132
134
  - README.markdown
133
135
  - app/assets/images/askbg.png
134
136
  - app/assets/images/dot2.png
@@ -149,8 +151,11 @@ files:
149
151
  - lib/qa-rails.rb
150
152
  - lib/rails_engine.rb
151
153
  - qa-rails.gemspec
154
+ - screenshots/qa_list.png
155
+ - screenshots/qa_show.png
152
156
  homepage: http://github.com/eoecn/qa-rails
153
- licenses: []
157
+ licenses:
158
+ - MIT
154
159
  post_install_message:
155
160
  rdoc_options: []
156
161
  require_paths:
@@ -169,8 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
174
  version: '0'
170
175
  requirements: []
171
176
  rubyforge_project:
172
- rubygems_version: 1.8.25
177
+ rubygems_version: 1.8.23
173
178
  signing_key:
174
179
  specification_version: 3
175
- summary: Rails 迷你问答论坛插件
180
+ summary: Rails Engine. a mini forum provided by only a simple helper, written in Backbones.js.
176
181
  test_files: []