Skip to content

Commit 54b673a

Browse files
committed
added second theme das_auto. It still needs work for human enjoyment.
1 parent ec80326 commit 54b673a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1504
-84
lines changed

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ end
5050
# gem 'refinerycms-portfolio', '~> 0.9.9'
5151
gem 'refinerycms-theming', '~> 0.9.9'
5252
# gem 'refinerycms-search', '~> 0.9.8'
53-
# gem 'refinerycms-blog', '~> 1.1'
53+
gem 'refinerycms-blog', '~> 1.3'
5454
# gem 'refinerycms-page-images, '~> 1.0
5555

5656
# Add i18n support (optional, you can remove this if you really want to).
5757
gem 'refinerycms-i18n', '~> 0.9.9.9'
58+
gem 'heroku' ##if you are using heroku
59+
gem 'taps' ## support for heroku db:push
5860

5961
# END USER DEFINED

Gemfile.lock

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ GEM
3737
babosa (0.3.3)
3838
bcrypt-ruby (2.1.4)
3939
builder (2.1.2)
40+
configuration (1.2.0)
4041
devise (1.2.1)
4142
bcrypt-ruby (~> 2.1.2)
4243
orm_adapter (~> 0.0.3)
@@ -45,12 +46,20 @@ GEM
4546
rack
4647
erubis (2.6.6)
4748
abstract (>= 1.0.0)
49+
filters_spam (0.3)
4850
friendly_id_globalize3 (3.2.1.1)
4951
babosa (~> 0.3.0)
5052
globalize3 (0.1.0.beta)
5153
activemodel (>= 3.0.0)
5254
activerecord (>= 3.0.0)
55+
heroku (2.0.5)
56+
launchy (>= 0.3.2)
57+
rest-client (~> 1.6.1)
58+
term-ansicolor (~> 1.0.5)
5359
i18n (0.5.0)
60+
launchy (0.4.0)
61+
configuration (>= 0.0.5)
62+
rake (>= 0.8.1)
5463
mail (2.2.15)
5564
activesupport (>= 2.3.6)
5665
i18n (>= 0.4.0)
@@ -97,6 +106,9 @@ GEM
97106
devise (~> 1.2.0)
98107
refinerycms-core (= 0.9.9.15)
99108
refinerycms-base (0.9.9.15)
109+
refinerycms-blog (1.3.2)
110+
filters_spam (~> 0.2)
111+
refinerycms (>= 0.9.8)
100112
refinerycms-core (0.9.9.15)
101113
acts_as_indexed (~> 0.7)
102114
friendly_id_globalize3 (~> 3.2.1)
@@ -130,11 +142,25 @@ GEM
130142
refinerycms-base (= 0.9.9.15)
131143
refinerycms-theming (0.9.9.2)
132144
refinerycms (>= 0.9.9)
145+
rest-client (1.6.1)
146+
mime-types (>= 1.16)
133147
routing-filter (0.2.3)
134148
actionpack
135149
seo_meta (1.0.3)
136150
refinerycms-generators (~> 1.0.1)
151+
sequel (3.20.0)
152+
sinatra (1.0)
153+
rack (>= 1.0)
137154
sqlite3 (1.3.3)
155+
sqlite3-ruby (1.3.3)
156+
sqlite3 (>= 1.3.3)
157+
taps (0.3.23)
158+
rack (>= 1.0.1)
159+
rest-client (>= 1.4.0, < 1.7.0)
160+
sequel (~> 3.20.0)
161+
sinatra (~> 1.0.0)
162+
sqlite3-ruby (~> 1.2)
163+
term-ansicolor (1.0.5)
138164
thor (0.14.6)
139165
treetop (1.4.9)
140166
polyglot (>= 0.3.1)
@@ -150,8 +176,11 @@ PLATFORMS
150176

151177
DEPENDENCIES
152178
aws-s3
179+
heroku
153180
rails (= 3.0.5)
154181
refinerycms (= 0.9.9.4)
182+
refinerycms-blog (~> 1.3)
155183
refinerycms-i18n (~> 0.9.9.9)
156184
refinerycms-theming (~> 0.9.9)
157185
sqlite3
186+
taps
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
class CreateBlogStructure < ActiveRecord::Migration
2+
3+
def self.up
4+
create_table :blog_posts, :id => true do |t|
5+
t.string :title
6+
t.text :body
7+
t.boolean :draft
8+
t.datetime :published_at
9+
t.timestamps
10+
end
11+
12+
add_index :blog_posts, :id
13+
14+
create_table :blog_comments, :id => true do |t|
15+
t.integer :blog_post_id
16+
t.boolean :spam
17+
t.string :name
18+
t.string :email
19+
t.text :body
20+
t.string :state
21+
t.timestamps
22+
end
23+
24+
add_index :blog_comments, :id
25+
26+
create_table :blog_categories, :id => true do |t|
27+
t.string :title
28+
t.timestamps
29+
end
30+
31+
add_index :blog_categories, :id
32+
33+
create_table :blog_categories_blog_posts, :id => false do |t|
34+
t.integer :blog_category_id
35+
t.integer :blog_post_id
36+
end
37+
38+
add_index :blog_categories_blog_posts, [:blog_category_id, :blog_post_id], :name => 'index_blog_categories_blog_posts_on_bc_and_bp'
39+
40+
load(Rails.root.join('db', 'seeds', 'refinerycms_blog.rb').to_s)
41+
end
42+
43+
def self.down
44+
UserPlugin.destroy_all({:name => "refinerycms_blog"})
45+
46+
Page.delete_all({:link_url => "/blog"})
47+
48+
drop_table :blog_posts
49+
drop_table :blog_comments
50+
drop_table :blog_categories
51+
drop_table :blog_categories_blog_posts
52+
end
53+
54+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class AddUserIdToBlogPosts < ActiveRecord::Migration
2+
3+
def self.up
4+
add_column :blog_posts, :user_id, :integer
5+
end
6+
7+
def self.down
8+
remove_column :blog_posts, :user_id
9+
end
10+
11+
end

0 commit comments

Comments
 (0)