homeland 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd32efc24bdeca6892b7e1f27769353c58b90679
4
- data.tar.gz: 9c23e35fc50e3203b24264ead0571f8eba035169
3
+ metadata.gz: f6bf4e42a851d300869a3226a141c8f003a8721c
4
+ data.tar.gz: fb36ad80e5a2bb4994aec09067c958d33f53e005
5
5
  SHA512:
6
- metadata.gz: 6ef581a154e3bd52f45e0a45809a5b762419b4ad7da84c685d273890dced8e6e02b06053aed75cf6fb6c3aa0d47b27c9b184217f0ccb7b5a505a2c89d8fb12cf
7
- data.tar.gz: b03617482ab9082ad908818e7cc49cfe5d627963672d81e461a33f27b29dba57c74de7112fcaf6c93a02a1a4db9080334f2aa3e34afb85a00cb99ea95d87b4a9
6
+ metadata.gz: 4a67550fdfd6a81d1d8ff1d0ee202a6b48e55e53820d3dc261b382018a5307cfca2b3298098d8527fb105c72c34ff1f9cb3601ed9404bc54dc5a8f9254aa8285
7
+ data.tar.gz: 8d89992005f3c6f620466bd60ac94cc5f6d57f0fba4f4c5860ec102323a5f40fbd05ee7bc67b41040e0b9bdf9585763a8a8beaf67b6881da55da26a15d5899c8
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  Homeland
2
2
  --------
3
3
 
4
- [![Gem Version](https://badge.fury.io/rb/homeland.svg)](https://badge.fury.io/rb/homeland) [![Build Status](https://travis-ci.org/huacnlee/homeland.svg)](https://travis-ci.org/huacnlee/homeland) [![Code Climate](https://codeclimate.com/github/huacnlee/homeland/badges/gpa.svg)](https://codeclimate.com/github/huacnlee/homeland) [![codecov.io](https://codecov.io/github/huacnlee/homeland/coverage.svg?branch=master)](https://codecov.io/github/huacnlee/homeland?branch=master)
4
+ [![Gem Version](https://badge.fury.io/rb/homeland.svg)](https://badge.fury.io/rb/homeland) [![Build Status](https://travis-ci.org/rails-engine/homeland.svg)](https://travis-ci.org/rails-engine/homeland) [![Code Climate](https://codeclimate.com/github/rails-engine/homeland/badges/gpa.svg)](https://codeclimate.com/github/rails-engine/homeland) [![codecov.io](https://codecov.io/github/rails-engine/homeland/coverage.svg?branch=master)](https://codecov.io/github/rails-engine/homeland?branch=master) [![](http://inch-ci.org/github/rails-engine/homeland.svg?branch=master)](http://inch-ci.org/github/rails-engine/homeland?branch=master)
5
5
 
6
6
  > A new style forum for tiny community as Rails Engine. You can mount this in any of you Rails apps.
7
7
 
8
+ 演示网站: https://homeland-app.herokuapp.com
9
+
8
10
  我们时常可能需要在各类中小型项目中集成用户社区之类的功能,每次当你需要做这个事情的时候都重头设计实现一遍么? No, that no the Rails way! Rails 教育我们要 DRY!
9
11
 
10
12
  Homeland 是基于 Rails Engine 实现的论坛社区 Gem,用于快速开发,类似 Devise 给我们解决账号体系的方案一样。它包含数据库、Model、Controller、Views 以及 UI 细节的完整实现,你只需简单几行就能快速在你的现有项目上面集成起来。
@@ -51,14 +53,7 @@ gem 'github-markup'
51
53
  $ rails g homeland:install
52
54
  ```
53
55
 
54
- 3. 在 routes.rb 里面 mount Homeland:
55
-
56
- ```ruby
57
- # config/routes.rb
58
- mount Homeland::Engine, at: "/homeland"
59
- ```
60
-
61
- 4. 自定义配置
56
+ 3. 自定义配置
62
57
 
63
58
  ```ruby
64
59
  # config/initializes/homeland.rb
data/Rakefile CHANGED
@@ -20,4 +20,5 @@ Rake::TestTask.new(:test) do |t|
20
20
  t.verbose = false
21
21
  end
22
22
 
23
+ task 'assets:precompile' => 'app:assets:precompile'
23
24
  task default: :test
@@ -13,13 +13,11 @@
13
13
  </div>
14
14
  </div>
15
15
  <div class="topics col-sm-7">
16
- <%= cache(node, 'topics-recent-5') do %>
17
- <% node.topics.recent.limit(3).each do |topic| %>
18
- <div class="item">
19
- <%= link_to topic.title, homeland.topic_path(topic) %>
20
- <%= timeago topic.created_at %>
21
- </div>
22
- <% end %>
16
+ <% node.topics.recent.limit(3).each do |topic| %>
17
+ <div class="item">
18
+ <%= link_to topic.title, homeland.topic_path(topic) %>
19
+ <%= timeago topic.created_at %>
20
+ </div>
23
21
  <% end %>
24
22
  </div>
25
23
  </div>
@@ -15,8 +15,12 @@ module Homeland
15
15
  end
16
16
  end
17
17
 
18
+ def add_routes
19
+ route 'mount Homeland::Engine, at: "/homeland"'
20
+ end
21
+
18
22
  def add_migrations
19
- exec("rails homeland:install:migrations")
23
+ exec("rake homeland:install:migrations")
20
24
  end
21
25
  end
22
26
  end
@@ -1,3 +1,3 @@
1
1
  module Homeland
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeland
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -188,7 +188,7 @@ files:
188
188
  - lib/homeland/markup/simple.rb
189
189
  - lib/homeland/version.rb
190
190
  - lib/tasks/homeland_tasks.rake
191
- homepage: https://github.com/huacnlee/homeland
191
+ homepage: https://github.com/rails-engine/homeland
192
192
  licenses:
193
193
  - MIT
194
194
  metadata: {}
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  version: '0'
209
209
  requirements: []
210
210
  rubyforge_project:
211
- rubygems_version: 2.6.2
211
+ rubygems_version: 2.6.3
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: A new style forum for small communitys.