jabe 0.5.0 → 0.5.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.
- data/Gemfile +0 -1
- data/Gemfile.lock +0 -2
- data/README.textile +31 -4
- data/VERSION +1 -1
- data/app/helpers/{application_helper.rb → jabe_helper.rb} +1 -1
- data/app/views/layouts/application.html.haml +1 -1
- data/lib/generators/jabe/migrations/migrations_generator.rb +1 -3
- data/lib/jabe.rb +7 -1
- metadata +5 -19
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -166,7 +166,6 @@ GEM
|
|
166
166
|
ffi (~> 0.6.3)
|
167
167
|
json_pure
|
168
168
|
rubyzip
|
169
|
-
sqlite3-ruby (1.3.2)
|
170
169
|
sys-uname (0.8.5)
|
171
170
|
term-ansicolor (1.0.5)
|
172
171
|
thor (0.14.6)
|
@@ -212,6 +211,5 @@ DEPENDENCIES
|
|
212
211
|
rspec-rails (= 2.0.1)
|
213
212
|
ruby-debug
|
214
213
|
sass (>= 3.1.0.alpha.206)
|
215
|
-
sqlite3-ruby
|
216
214
|
will_paginate (>= 3.0.pre2)
|
217
215
|
wirble
|
data/README.textile
CHANGED
@@ -1,12 +1,39 @@
|
|
1
|
-
h1.
|
1
|
+
h1. Just Another Blog Engine
|
2
2
|
|
3
3
|
h3. What is this?
|
4
4
|
|
5
|
-
Jabe is a bare bones blogging engine that is
|
5
|
+
Jabe is a bare bones blogging engine that is installed as a gem. It will grow as its needs do.
|
6
6
|
|
7
7
|
h2. Basic TODOs
|
8
8
|
|
9
|
-
* Authors
|
10
9
|
* Comment notifications
|
11
|
-
* SPAM prevention
|
12
10
|
* News feed
|
11
|
+
|
12
|
+
h2. Installing
|
13
|
+
|
14
|
+
Edit your Gemfile and add the required gems
|
15
|
+
gem 'rails', '~> 3.0.3'
|
16
|
+
gem 'devise'
|
17
|
+
gem 'friendly_id', '3.1.8'
|
18
|
+
gem 'formtastic', '>= 1.2.3.beta'
|
19
|
+
gem 'haml', '>= 3.0.23'
|
20
|
+
gem 'haml-rails'
|
21
|
+
gem 'jquery-rails'
|
22
|
+
gem 'RedCloth'
|
23
|
+
gem 'sass', '>= 3.1.0.alpha.206'
|
24
|
+
gem 'will_paginate', '>= 3.0.pre2'
|
25
|
+
|
26
|
+
From your rails root
|
27
|
+
|
28
|
+
* bundle install
|
29
|
+
* rails plugin install http://github.com/defunkt/acts_as_textiled.git
|
30
|
+
* rails g devise:install
|
31
|
+
* rails g jabe:migrations
|
32
|
+
* rake db:migrate
|
33
|
+
* rm app/views/layouts/*
|
34
|
+
* rm public/index.html
|
35
|
+
* rails c
|
36
|
+
* >> Admin.create!(:email => 'you@example.com', :password => 'password', :password_confirmation => 'password')
|
37
|
+
* rails s
|
38
|
+
* login
|
39
|
+
* edit settings
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
@@ -38,7 +38,7 @@
|
|
38
38
|
%script{:src => "//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"}
|
39
39
|
:javascript
|
40
40
|
!window.jQuery && document.write(unescape('%3Cscript src="/javascripts/libs/jquery-min.js"%3E%3C/script%3E'))
|
41
|
-
= javascript_include_tag '
|
41
|
+
= javascript_include_tag 'plugins'
|
42
42
|
= javascript_include_tag 'application'
|
43
43
|
/[if lt IE 7 ]
|
44
44
|
<script src="/javascripts/libs/dd_belatedpng.js"></script>
|
@@ -6,9 +6,7 @@ module Jabe
|
|
6
6
|
class MigrationsGenerator < Rails::Generators::Base
|
7
7
|
include Rails::Generators::Migration
|
8
8
|
|
9
|
-
self.source_root(File.expand_path(
|
10
|
-
File.join(__FILE__, '..', '..', 'templates', 'migrations'))
|
11
|
-
)
|
9
|
+
self.source_root(File.expand_path(JABE_DIR, 'templates', 'migrations')))
|
12
10
|
|
13
11
|
desc "run this generator to create the necessary migrations"
|
14
12
|
|
data/lib/jabe.rb
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
require "rails/all"
|
2
2
|
|
3
3
|
module Jabe
|
4
|
+
JABE_DIR = File.expand_path(File.join(__FILE__, '../../'))
|
5
|
+
|
4
6
|
class Engine < Rails::Engine
|
5
|
-
|
7
|
+
require File.join(JABE_DIR, 'app/helpers/jabe_helper.rb')
|
8
|
+
|
9
|
+
initializer "jabe setup" do |app|
|
6
10
|
app.middleware.use ::ActionDispatch::Static, "#{root}/public"
|
11
|
+
::ActionController::Base.send(:helper, :jabe)
|
7
12
|
end
|
8
13
|
end
|
9
14
|
end
|
15
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jabe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Moen a.k.a. UnderpantsGnome
|
@@ -436,7 +436,7 @@ dependencies:
|
|
436
436
|
- !ruby/object:Gem::Dependency
|
437
437
|
prerelease: false
|
438
438
|
type: :development
|
439
|
-
name:
|
439
|
+
name: wirble
|
440
440
|
version_requirements: &id029 !ruby/object:Gem::Requirement
|
441
441
|
none: false
|
442
442
|
requirements:
|
@@ -447,20 +447,6 @@ dependencies:
|
|
447
447
|
- 0
|
448
448
|
version: "0"
|
449
449
|
requirement: *id029
|
450
|
-
- !ruby/object:Gem::Dependency
|
451
|
-
prerelease: false
|
452
|
-
type: :development
|
453
|
-
name: wirble
|
454
|
-
version_requirements: &id030 !ruby/object:Gem::Requirement
|
455
|
-
none: false
|
456
|
-
requirements:
|
457
|
-
- - ">="
|
458
|
-
- !ruby/object:Gem::Version
|
459
|
-
hash: 3
|
460
|
-
segments:
|
461
|
-
- 0
|
462
|
-
version: "0"
|
463
|
-
requirement: *id030
|
464
450
|
description: Blog engine for Rails 3+
|
465
451
|
email: michael@pixels-and-bits.com
|
466
452
|
executables: []
|
@@ -482,7 +468,7 @@ files:
|
|
482
468
|
- app/controllers/admin/settings_controller.rb
|
483
469
|
- app/controllers/comments_controller.rb
|
484
470
|
- app/controllers/entries_controller.rb
|
485
|
-
- app/helpers/
|
471
|
+
- app/helpers/jabe_helper.rb
|
486
472
|
- app/models/admin.rb
|
487
473
|
- app/models/comment.rb
|
488
474
|
- app/models/entry.rb
|