jabe 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/VERSION +1 -1
- data/app/controllers/admin/settings_controller.rb +1 -1
- data/app/helpers/jabe_helper.rb +2 -2
- data/app/models/settings.rb +5 -0
- data/app/stylesheets/jabe.scss +43 -20
- data/app/views/admin/entries/_form.html.haml +2 -2
- data/app/views/admin/settings/edit.html.haml +8 -3
- data/app/views/entries/index.html.haml +2 -2
- data/app/views/entries/show.html.haml +1 -1
- data/app/views/feed/index.xml.builder +1 -1
- data/app/views/layouts/_sidebar.html.haml +21 -0
- data/app/views/layouts/application.html.haml +8 -8
- data/config/initializers/settings.rb +1 -1
- data/config/initializers/time_formats.rb +1 -1
- data/lib/generators/jabe/migrations/migrations_generator.rb +1 -0
- data/lib/generators/jabe/stylesheets/stylesheets_generator.rb +1 -1
- data/lib/generators/jabe/templates/migrations/add_new_settings.rb +17 -0
- data/lib/jabe.rb +1 -1
- data/test/dummy/db/migrate/20110104004400_add_new_settings.rb +17 -0
- data/test/dummy/db/schema.rb +33 -5
- data/test/dummy/features/support/blueprints.rb +4 -1
- metadata +85 -69
- data/app/stylesheets/grid.scss +0 -336
- data/spec/support/blueprints.rb +0 -31
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -107,6 +107,7 @@ GEM
|
|
107
107
|
mime-types (~> 1.16)
|
108
108
|
treetop (~> 1.4.8)
|
109
109
|
mime-types (1.16)
|
110
|
+
mysql (2.8.1)
|
110
111
|
nokogiri (1.4.4)
|
111
112
|
pickle (0.4.4)
|
112
113
|
cucumber (>= 0.8)
|
@@ -195,6 +196,7 @@ DEPENDENCIES
|
|
195
196
|
jquery-rails
|
196
197
|
launchy
|
197
198
|
machinist (>= 2.0.0.beta2)
|
199
|
+
mysql
|
198
200
|
pickle
|
199
201
|
rails (~> 3.0.3)
|
200
202
|
rcov
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
data/app/helpers/jabe_helper.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
module JabeHelper
|
2
2
|
def public_entry_path(entry)
|
3
|
-
"/#{entry.published_at.to_s(:url_part)}/#{entry.to_param}"
|
3
|
+
"/#{entry.published_at.in_time_zone.to_s(:url_part)}/#{entry.to_param}"
|
4
4
|
end
|
5
5
|
|
6
6
|
def public_entry_url(entry)
|
7
|
-
"#{SETTINGS.site_url}
|
7
|
+
"#{SETTINGS.site_url}#{public_entry_path(entry)}"
|
8
8
|
end
|
9
9
|
end
|
data/app/models/settings.rb
CHANGED
data/app/stylesheets/jabe.scss
CHANGED
@@ -15,11 +15,10 @@
|
|
15
15
|
);
|
16
16
|
}
|
17
17
|
|
18
|
-
|
18
|
+
#container {
|
19
|
+
width:768px;
|
20
|
+
margin:auto;
|
19
21
|
background-color:#eee;
|
20
|
-
}
|
21
|
-
|
22
|
-
.grid_12 {
|
23
22
|
border-left:solid #222 1px;
|
24
23
|
border-right:solid #222 1px;
|
25
24
|
}
|
@@ -46,11 +45,38 @@ h1#site-tagline {
|
|
46
45
|
}
|
47
46
|
|
48
47
|
#main {
|
49
|
-
padding
|
48
|
+
padding:20px;
|
49
|
+
}
|
50
|
+
|
51
|
+
#content {
|
52
|
+
padding-right:10px;
|
53
|
+
float:left;
|
54
|
+
width:70%;
|
50
55
|
}
|
51
56
|
|
57
|
+
#sidebar {
|
58
|
+
padding-left:10px;
|
59
|
+
float:right;
|
60
|
+
width:27%;
|
61
|
+
|
62
|
+
.link {
|
63
|
+
padding:2px 10px;
|
64
|
+
}
|
65
|
+
|
66
|
+
#github-badge {
|
67
|
+
margin-top:20px;
|
68
|
+
|
69
|
+
.header {
|
70
|
+
.title {
|
71
|
+
display:none;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
}
|
52
77
|
.entry {
|
53
|
-
|
78
|
+
margin: 0 0 30px 0;
|
79
|
+
padding:0 0 30px 0;
|
54
80
|
border-bottom:solid 1px #333;
|
55
81
|
|
56
82
|
.title {
|
@@ -110,19 +136,6 @@ h1#site-tagline {
|
|
110
136
|
}
|
111
137
|
}
|
112
138
|
|
113
|
-
|
114
|
-
.button {
|
115
|
-
@include gradients;
|
116
|
-
color:#eee;
|
117
|
-
height:30px;
|
118
|
-
-webkit-border-radius: 5px;
|
119
|
-
-moz-border-radius: 5px;
|
120
|
-
border-radius: 5px;
|
121
|
-
border:solid 1px #333;
|
122
|
-
padding: 0 10px !important;
|
123
|
-
overflow: visible;
|
124
|
-
}
|
125
|
-
|
126
139
|
pre {
|
127
140
|
color:#eee;
|
128
141
|
background-color:#222;
|
@@ -209,6 +222,7 @@ footer {
|
|
209
222
|
height:64px;
|
210
223
|
line-height:64px;
|
211
224
|
text-align:center;
|
225
|
+
clear:both;
|
212
226
|
}
|
213
227
|
|
214
228
|
form {
|
@@ -224,10 +238,19 @@ form {
|
|
224
238
|
|
225
239
|
input[type=submit] {
|
226
240
|
margin:10px 10px 10px auto !important;
|
241
|
+
@include gradients;
|
242
|
+
color:#eee;
|
243
|
+
height:30px;
|
244
|
+
-webkit-border-radius: 5px;
|
245
|
+
-moz-border-radius: 5px;
|
246
|
+
border-radius: 5px;
|
247
|
+
border:solid 1px #333;
|
248
|
+
padding: 0 10px !important;
|
249
|
+
overflow: visible;
|
227
250
|
}
|
228
251
|
|
229
252
|
input[type=text], input[type=url], input[type=email], input[type=password] {
|
230
|
-
width:
|
253
|
+
width:80%;
|
231
254
|
padding:5px !important;
|
232
255
|
font-size:1.5em !important;
|
233
256
|
}
|
@@ -1,9 +1,14 @@
|
|
1
1
|
%h2 Site Settings
|
2
2
|
= semantic_form_for SETTINGS, :url => admin_settings_path do |form|
|
3
|
-
= form.input :
|
3
|
+
= form.input :host_name, :label => 'Domain and port', :hint => '(e.g. pixels-and-bits.com or localhost:3000)'
|
4
4
|
= form.input :site_name
|
5
5
|
= form.input :tagline
|
6
6
|
= form.input :time_zone, :label => 'Your local time zone'
|
7
7
|
= form.input :entries_per_page, :label => 'Entries on the home page'
|
8
|
-
|
9
|
-
= form.
|
8
|
+
= form.input :sidebar_heading
|
9
|
+
= form.input :github_username
|
10
|
+
= form.input :show_github_badge
|
11
|
+
= form.input :twitter_username
|
12
|
+
= form.input :facebook_url
|
13
|
+
|
14
|
+
= form.submit 'Save'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#entries
|
1
|
+
#entries
|
2
2
|
- @entries.each do |entry|
|
3
3
|
.entry{ :class => entry == @entries.last ? 'last' : '' }
|
4
4
|
.title
|
@@ -8,6 +8,6 @@
|
|
8
8
|
.content
|
9
9
|
~ entry.body.html_safe
|
10
10
|
.meta
|
11
|
-
= link_to "Comments: #{entry.comments.count}",
|
11
|
+
= link_to "Comments: #{entry.comments.count}", public_entry_path(entry) + '#comments'
|
12
12
|
#pagination.apple_pagination
|
13
13
|
= will_paginate @entries
|
@@ -0,0 +1,21 @@
|
|
1
|
+
%h2
|
2
|
+
= SETTINGS.sidebar_heading
|
3
|
+
|
4
|
+
- if SETTINGS.github_username
|
5
|
+
.link
|
6
|
+
= link_to 'Github', SETTINGS.github_username
|
7
|
+
|
8
|
+
- if SETTINGS.twitter_username
|
9
|
+
.link
|
10
|
+
= link_to 'Twitter', SETTINGS.twitter_username
|
11
|
+
|
12
|
+
- if SETTINGS.facebook_url
|
13
|
+
.link
|
14
|
+
= link_to 'Facebook', SETTINGS.facebook_url
|
15
|
+
|
16
|
+
- if SETTINGS.show_github_badge
|
17
|
+
#github-badge
|
18
|
+
|
19
|
+
:javascript
|
20
|
+
GITHUB_USERNAME="#{SETTINGS.github_username}";
|
21
|
+
= javascript_include_tag 'http://drnicjavascript.rubyforge.org/github_badge/dist/github-badge-launcher.js'
|
@@ -16,24 +16,24 @@
|
|
16
16
|
%link{:href => "/favicon.ico", :rel => "shortcut icon"}/
|
17
17
|
%link{:href => "/apple-touch-icon.png", :rel => "apple-touch-icon"}/
|
18
18
|
= auto_discovery_link_tag :atom, feed_path
|
19
|
-
= stylesheet_link_tag '
|
19
|
+
= stylesheet_link_tag 'boilerplate', 'jabe', 'application'
|
20
20
|
= javascript_include_tag 'libs/modernizr-1.6.min.js'
|
21
21
|
%body
|
22
|
-
#container
|
23
|
-
%header
|
22
|
+
#container
|
23
|
+
%header
|
24
24
|
= render 'layouts/header'
|
25
25
|
- if admin_signed_in?
|
26
|
-
%nav.
|
26
|
+
%nav.nav.admin
|
27
27
|
%ul
|
28
28
|
%li= link_to 'Entries', admin_entries_path
|
29
29
|
%li= link_to 'Settings', edit_admin_settings_path
|
30
30
|
%li= link_to 'Logout', destroy_admin_session_path
|
31
|
-
#main
|
32
|
-
#content
|
31
|
+
#main
|
32
|
+
#content
|
33
33
|
= yield
|
34
|
-
#sidebar
|
34
|
+
#sidebar
|
35
35
|
= render 'layouts/sidebar'
|
36
|
-
%footer
|
36
|
+
%footer
|
37
37
|
= render 'layouts/footer'
|
38
38
|
%script{:src => "//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"}
|
39
39
|
:javascript
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Jabe
|
2
2
|
module Generators
|
3
3
|
class StylesheetsGenerator < Rails::Generators::Base
|
4
|
-
%w(
|
4
|
+
%w( boilerplate handheld jabe ).each do |sheet|
|
5
5
|
system("bundle exec sass #{Jabe::Engine.root}/app/stylesheets/#{sheet}.scss public/stylesheets/#{sheet}.css")
|
6
6
|
end
|
7
7
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class AddNewSettings < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
add_column :settings, :sidebar_heading, :string
|
4
|
+
add_column :settings, :github_username, :string
|
5
|
+
add_column :settings, :twitter_username, :string
|
6
|
+
add_column :settings, :show_github_badge, :boolean
|
7
|
+
add_column :settings, :facebook_url, :string
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.down
|
11
|
+
remove_column :settings, :sidebar_heading
|
12
|
+
remove_column :settings, :facebook_url
|
13
|
+
remove_column :settings, :show_github_badge
|
14
|
+
remove_column :settings, :twitter_username
|
15
|
+
remove_column :settings, :github_username
|
16
|
+
end
|
17
|
+
end
|
data/lib/jabe.rb
CHANGED
@@ -8,7 +8,7 @@ module Jabe
|
|
8
8
|
|
9
9
|
initializer "static assets" do |app|
|
10
10
|
if app.config.serve_static_assets
|
11
|
-
app.middleware.
|
11
|
+
app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class AddNewSettings < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
add_column :settings, :sidebar_heading, :string
|
4
|
+
add_column :settings, :github_username, :string
|
5
|
+
add_column :settings, :twitter_username, :string
|
6
|
+
add_column :settings, :show_github_badge, :boolean
|
7
|
+
add_column :settings, :facebook_url, :string
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.down
|
11
|
+
# remove_column :settings, :sidebar_heading
|
12
|
+
remove_column :settings, :facebook_url
|
13
|
+
remove_column :settings, :show_github_badge
|
14
|
+
remove_column :settings, :twitter_username
|
15
|
+
remove_column :settings, :github_username
|
16
|
+
end
|
17
|
+
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended to check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(:version =>
|
13
|
+
ActiveRecord::Schema.define(:version => 20110104004400) do
|
14
14
|
|
15
15
|
create_table "admins", :force => true do |t|
|
16
16
|
t.string "email", :default => "", :null => false
|
@@ -31,26 +31,49 @@ ActiveRecord::Schema.define(:version => 20101229224031) do
|
|
31
31
|
add_index "admins", ["email"], :name => "index_admins_on_email", :unique => true
|
32
32
|
add_index "admins", ["reset_password_token"], :name => "index_admins_on_reset_password_token", :unique => true
|
33
33
|
|
34
|
+
create_table "authors", :force => true do |t|
|
35
|
+
t.string "email", :default => "", :null => false
|
36
|
+
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
37
|
+
t.string "password_salt", :default => "", :null => false
|
38
|
+
t.string "reset_password_token"
|
39
|
+
t.string "remember_token"
|
40
|
+
t.datetime "remember_created_at"
|
41
|
+
t.integer "sign_in_count", :default => 0
|
42
|
+
t.datetime "current_sign_in_at"
|
43
|
+
t.datetime "last_sign_in_at"
|
44
|
+
t.string "current_sign_in_ip"
|
45
|
+
t.string "last_sign_in_ip"
|
46
|
+
t.integer "failed_attempts", :default => 0
|
47
|
+
t.string "unlock_token"
|
48
|
+
t.datetime "locked_at"
|
49
|
+
t.datetime "created_at"
|
50
|
+
t.datetime "updated_at"
|
51
|
+
end
|
52
|
+
|
53
|
+
add_index "authors", ["email"], :name => "index_authors_on_email", :unique => true
|
54
|
+
add_index "authors", ["reset_password_token"], :name => "index_authors_on_reset_password_token", :unique => true
|
55
|
+
add_index "authors", ["unlock_token"], :name => "index_authors_on_unlock_token", :unique => true
|
56
|
+
|
34
57
|
create_table "comments", :force => true do |t|
|
35
58
|
t.integer "entry_id"
|
36
59
|
t.string "name"
|
37
60
|
t.string "email"
|
38
|
-
t.string "url"
|
39
61
|
t.text "body"
|
40
62
|
t.datetime "created_at"
|
41
63
|
t.datetime "updated_at"
|
64
|
+
t.string "url"
|
42
65
|
end
|
43
66
|
|
44
67
|
add_index "comments", ["entry_id"], :name => "index_comments_on_entry_id"
|
45
68
|
|
46
69
|
create_table "entries", :force => true do |t|
|
47
|
-
t.string "cached_slug"
|
48
70
|
t.string "title"
|
49
71
|
t.text "body"
|
50
72
|
t.boolean "draft"
|
51
73
|
t.datetime "published_at"
|
52
74
|
t.datetime "created_at"
|
53
75
|
t.datetime "updated_at"
|
76
|
+
t.string "cached_slug"
|
54
77
|
end
|
55
78
|
|
56
79
|
create_table "settings", :force => true do |t|
|
@@ -59,12 +82,17 @@ ActiveRecord::Schema.define(:version => 20101229224031) do
|
|
59
82
|
t.string "mail_from"
|
60
83
|
t.string "site_name"
|
61
84
|
t.string "tagline"
|
62
|
-
t.string "time_zone"
|
63
85
|
t.string "google_tracker_id"
|
64
86
|
t.boolean "blackbird_enabled"
|
65
|
-
t.integer "entries_per_page"
|
66
87
|
t.datetime "created_at"
|
67
88
|
t.datetime "updated_at"
|
89
|
+
t.integer "entries_per_page"
|
90
|
+
t.string "time_zone"
|
91
|
+
t.string "sidebar_heading"
|
92
|
+
t.string "github_username"
|
93
|
+
t.string "twitter_username"
|
94
|
+
t.boolean "show_github_badge"
|
95
|
+
t.string "facebook_url"
|
68
96
|
end
|
69
97
|
|
70
98
|
create_table "slugs", :force => true do |t|
|
@@ -13,7 +13,8 @@ Admin.blueprint do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
Settings.blueprint do
|
16
|
-
|
16
|
+
site_name { 'JABE' }
|
17
|
+
site_url { 'http://example.com' }
|
17
18
|
end
|
18
19
|
|
19
20
|
Entry.blueprint do
|
@@ -30,3 +31,5 @@ end
|
|
30
31
|
Comment.blueprint do
|
31
32
|
# Attributes here
|
32
33
|
end
|
34
|
+
|
35
|
+
Settings.make!
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 5
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Moen a.k.a. UnderpantsGnome
|
@@ -16,13 +16,10 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2011-01-03 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
prerelease: false
|
24
|
-
type: :runtime
|
25
|
-
name: devise
|
26
23
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
24
|
none: false
|
28
25
|
requirements:
|
@@ -33,10 +30,10 @@ dependencies:
|
|
33
30
|
- 0
|
34
31
|
version: "0"
|
35
32
|
requirement: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
33
|
prerelease: false
|
34
|
+
name: devise
|
38
35
|
type: :runtime
|
39
|
-
|
36
|
+
- !ruby/object:Gem::Dependency
|
40
37
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
38
|
none: false
|
42
39
|
requirements:
|
@@ -49,10 +46,10 @@ dependencies:
|
|
49
46
|
- 8
|
50
47
|
version: 3.1.8
|
51
48
|
requirement: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
49
|
prerelease: false
|
50
|
+
name: friendly_id
|
54
51
|
type: :runtime
|
55
|
-
|
52
|
+
- !ruby/object:Gem::Dependency
|
56
53
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
57
54
|
none: false
|
58
55
|
requirements:
|
@@ -66,10 +63,10 @@ dependencies:
|
|
66
63
|
- beta
|
67
64
|
version: 1.2.3.beta
|
68
65
|
requirement: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
66
|
prerelease: false
|
67
|
+
name: formtastic
|
71
68
|
type: :runtime
|
72
|
-
|
69
|
+
- !ruby/object:Gem::Dependency
|
73
70
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
74
71
|
none: false
|
75
72
|
requirements:
|
@@ -82,10 +79,10 @@ dependencies:
|
|
82
79
|
- 23
|
83
80
|
version: 3.0.23
|
84
81
|
requirement: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
82
|
prerelease: false
|
83
|
+
name: haml
|
87
84
|
type: :runtime
|
88
|
-
|
85
|
+
- !ruby/object:Gem::Dependency
|
89
86
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
90
87
|
none: false
|
91
88
|
requirements:
|
@@ -96,10 +93,10 @@ dependencies:
|
|
96
93
|
- 0
|
97
94
|
version: "0"
|
98
95
|
requirement: *id005
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
96
|
prerelease: false
|
97
|
+
name: haml-rails
|
101
98
|
type: :runtime
|
102
|
-
|
99
|
+
- !ruby/object:Gem::Dependency
|
103
100
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
104
101
|
none: false
|
105
102
|
requirements:
|
@@ -110,10 +107,10 @@ dependencies:
|
|
110
107
|
- 0
|
111
108
|
version: "0"
|
112
109
|
requirement: *id006
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
110
|
prerelease: false
|
111
|
+
name: jquery-rails
|
115
112
|
type: :runtime
|
116
|
-
|
113
|
+
- !ruby/object:Gem::Dependency
|
117
114
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
118
115
|
none: false
|
119
116
|
requirements:
|
@@ -124,10 +121,10 @@ dependencies:
|
|
124
121
|
- 0
|
125
122
|
version: "0"
|
126
123
|
requirement: *id007
|
127
|
-
- !ruby/object:Gem::Dependency
|
128
124
|
prerelease: false
|
125
|
+
name: RedCloth
|
129
126
|
type: :runtime
|
130
|
-
|
127
|
+
- !ruby/object:Gem::Dependency
|
131
128
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
132
129
|
none: false
|
133
130
|
requirements:
|
@@ -142,26 +139,27 @@ dependencies:
|
|
142
139
|
- 206
|
143
140
|
version: 3.1.0.alpha.206
|
144
141
|
requirement: *id008
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
142
|
prerelease: false
|
143
|
+
name: sass
|
147
144
|
type: :runtime
|
148
|
-
|
145
|
+
- !ruby/object:Gem::Dependency
|
149
146
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
150
147
|
none: false
|
151
148
|
requirements:
|
152
149
|
- - ">="
|
153
150
|
- !ruby/object:Gem::Version
|
154
|
-
hash:
|
151
|
+
hash: 1923831917
|
155
152
|
segments:
|
156
153
|
- 3
|
157
154
|
- 0
|
158
|
-
-
|
155
|
+
- pre
|
156
|
+
- 2
|
159
157
|
version: 3.0.pre2
|
160
158
|
requirement: *id009
|
161
|
-
- !ruby/object:Gem::Dependency
|
162
159
|
prerelease: false
|
163
|
-
|
164
|
-
|
160
|
+
name: will_paginate
|
161
|
+
type: :runtime
|
162
|
+
- !ruby/object:Gem::Dependency
|
165
163
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
166
164
|
none: false
|
167
165
|
requirements:
|
@@ -174,10 +172,10 @@ dependencies:
|
|
174
172
|
- 3
|
175
173
|
version: 3.0.3
|
176
174
|
requirement: *id010
|
177
|
-
- !ruby/object:Gem::Dependency
|
178
175
|
prerelease: false
|
176
|
+
name: rails
|
179
177
|
type: :development
|
180
|
-
|
178
|
+
- !ruby/object:Gem::Dependency
|
181
179
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
182
180
|
none: false
|
183
181
|
requirements:
|
@@ -188,10 +186,10 @@ dependencies:
|
|
188
186
|
- 0
|
189
187
|
version: "0"
|
190
188
|
requirement: *id011
|
191
|
-
- !ruby/object:Gem::Dependency
|
192
189
|
prerelease: false
|
190
|
+
name: autotest
|
193
191
|
type: :development
|
194
|
-
|
192
|
+
- !ruby/object:Gem::Dependency
|
195
193
|
version_requirements: &id012 !ruby/object:Gem::Requirement
|
196
194
|
none: false
|
197
195
|
requirements:
|
@@ -202,10 +200,10 @@ dependencies:
|
|
202
200
|
- 0
|
203
201
|
version: "0"
|
204
202
|
requirement: *id012
|
205
|
-
- !ruby/object:Gem::Dependency
|
206
203
|
prerelease: false
|
204
|
+
name: autotest-fsevent
|
207
205
|
type: :development
|
208
|
-
|
206
|
+
- !ruby/object:Gem::Dependency
|
209
207
|
version_requirements: &id013 !ruby/object:Gem::Requirement
|
210
208
|
none: false
|
211
209
|
requirements:
|
@@ -216,10 +214,10 @@ dependencies:
|
|
216
214
|
- 0
|
217
215
|
version: "0"
|
218
216
|
requirement: *id013
|
219
|
-
- !ruby/object:Gem::Dependency
|
220
217
|
prerelease: false
|
218
|
+
name: autotest-growl
|
221
219
|
type: :development
|
222
|
-
|
220
|
+
- !ruby/object:Gem::Dependency
|
223
221
|
version_requirements: &id014 !ruby/object:Gem::Requirement
|
224
222
|
none: false
|
225
223
|
requirements:
|
@@ -230,10 +228,10 @@ dependencies:
|
|
230
228
|
- 0
|
231
229
|
version: "0"
|
232
230
|
requirement: *id014
|
233
|
-
- !ruby/object:Gem::Dependency
|
234
231
|
prerelease: false
|
232
|
+
name: capybara
|
235
233
|
type: :development
|
236
|
-
|
234
|
+
- !ruby/object:Gem::Dependency
|
237
235
|
version_requirements: &id015 !ruby/object:Gem::Requirement
|
238
236
|
none: false
|
239
237
|
requirements:
|
@@ -244,10 +242,10 @@ dependencies:
|
|
244
242
|
- 0
|
245
243
|
version: "0"
|
246
244
|
requirement: *id015
|
247
|
-
- !ruby/object:Gem::Dependency
|
248
245
|
prerelease: false
|
246
|
+
name: cucumber
|
249
247
|
type: :development
|
250
|
-
|
248
|
+
- !ruby/object:Gem::Dependency
|
251
249
|
version_requirements: &id016 !ruby/object:Gem::Requirement
|
252
250
|
none: false
|
253
251
|
requirements:
|
@@ -258,10 +256,10 @@ dependencies:
|
|
258
256
|
- 0
|
259
257
|
version: "0"
|
260
258
|
requirement: *id016
|
261
|
-
- !ruby/object:Gem::Dependency
|
262
259
|
prerelease: false
|
260
|
+
name: cucumber-rails
|
263
261
|
type: :development
|
264
|
-
|
262
|
+
- !ruby/object:Gem::Dependency
|
265
263
|
version_requirements: &id017 !ruby/object:Gem::Requirement
|
266
264
|
none: false
|
267
265
|
requirements:
|
@@ -274,10 +272,10 @@ dependencies:
|
|
274
272
|
- 0
|
275
273
|
version: 0.6.0
|
276
274
|
requirement: *id017
|
277
|
-
- !ruby/object:Gem::Dependency
|
278
275
|
prerelease: false
|
276
|
+
name: database_cleaner
|
279
277
|
type: :development
|
280
|
-
|
278
|
+
- !ruby/object:Gem::Dependency
|
281
279
|
version_requirements: &id018 !ruby/object:Gem::Requirement
|
282
280
|
none: false
|
283
281
|
requirements:
|
@@ -288,10 +286,10 @@ dependencies:
|
|
288
286
|
- 0
|
289
287
|
version: "0"
|
290
288
|
requirement: *id018
|
291
|
-
- !ruby/object:Gem::Dependency
|
292
289
|
prerelease: false
|
290
|
+
name: jeweler
|
293
291
|
type: :development
|
294
|
-
|
292
|
+
- !ruby/object:Gem::Dependency
|
295
293
|
version_requirements: &id019 !ruby/object:Gem::Requirement
|
296
294
|
none: false
|
297
295
|
requirements:
|
@@ -302,27 +300,28 @@ dependencies:
|
|
302
300
|
- 0
|
303
301
|
version: "0"
|
304
302
|
requirement: *id019
|
305
|
-
- !ruby/object:Gem::Dependency
|
306
303
|
prerelease: false
|
304
|
+
name: launchy
|
307
305
|
type: :development
|
308
|
-
|
306
|
+
- !ruby/object:Gem::Dependency
|
309
307
|
version_requirements: &id020 !ruby/object:Gem::Requirement
|
310
308
|
none: false
|
311
309
|
requirements:
|
312
310
|
- - ">="
|
313
311
|
- !ruby/object:Gem::Version
|
314
|
-
hash:
|
312
|
+
hash: 62196455
|
315
313
|
segments:
|
316
314
|
- 2
|
317
315
|
- 0
|
318
316
|
- 0
|
319
|
-
-
|
317
|
+
- beta
|
318
|
+
- 2
|
320
319
|
version: 2.0.0.beta2
|
321
320
|
requirement: *id020
|
322
|
-
- !ruby/object:Gem::Dependency
|
323
321
|
prerelease: false
|
322
|
+
name: machinist
|
324
323
|
type: :development
|
325
|
-
|
324
|
+
- !ruby/object:Gem::Dependency
|
326
325
|
version_requirements: &id021 !ruby/object:Gem::Requirement
|
327
326
|
none: false
|
328
327
|
requirements:
|
@@ -333,10 +332,10 @@ dependencies:
|
|
333
332
|
- 0
|
334
333
|
version: "0"
|
335
334
|
requirement: *id021
|
336
|
-
- !ruby/object:Gem::Dependency
|
337
335
|
prerelease: false
|
336
|
+
name: pickle
|
338
337
|
type: :development
|
339
|
-
|
338
|
+
- !ruby/object:Gem::Dependency
|
340
339
|
version_requirements: &id022 !ruby/object:Gem::Requirement
|
341
340
|
none: false
|
342
341
|
requirements:
|
@@ -347,10 +346,10 @@ dependencies:
|
|
347
346
|
- 0
|
348
347
|
version: "0"
|
349
348
|
requirement: *id022
|
350
|
-
- !ruby/object:Gem::Dependency
|
351
349
|
prerelease: false
|
350
|
+
name: rcov
|
352
351
|
type: :development
|
353
|
-
|
352
|
+
- !ruby/object:Gem::Dependency
|
354
353
|
version_requirements: &id023 !ruby/object:Gem::Requirement
|
355
354
|
none: false
|
356
355
|
requirements:
|
@@ -361,10 +360,10 @@ dependencies:
|
|
361
360
|
- 0
|
362
361
|
version: "0"
|
363
362
|
requirement: *id023
|
364
|
-
- !ruby/object:Gem::Dependency
|
365
363
|
prerelease: false
|
364
|
+
name: redgreen
|
366
365
|
type: :development
|
367
|
-
|
366
|
+
- !ruby/object:Gem::Dependency
|
368
367
|
version_requirements: &id024 !ruby/object:Gem::Requirement
|
369
368
|
none: false
|
370
369
|
requirements:
|
@@ -377,10 +376,10 @@ dependencies:
|
|
377
376
|
- 1
|
378
377
|
version: 2.0.1
|
379
378
|
requirement: *id024
|
380
|
-
- !ruby/object:Gem::Dependency
|
381
379
|
prerelease: false
|
380
|
+
name: rspec-rails
|
382
381
|
type: :development
|
383
|
-
|
382
|
+
- !ruby/object:Gem::Dependency
|
384
383
|
version_requirements: &id025 !ruby/object:Gem::Requirement
|
385
384
|
none: false
|
386
385
|
requirements:
|
@@ -391,10 +390,10 @@ dependencies:
|
|
391
390
|
- 0
|
392
391
|
version: "0"
|
393
392
|
requirement: *id025
|
394
|
-
- !ruby/object:Gem::Dependency
|
395
393
|
prerelease: false
|
394
|
+
name: ruby-debug
|
396
395
|
type: :development
|
397
|
-
|
396
|
+
- !ruby/object:Gem::Dependency
|
398
397
|
version_requirements: &id026 !ruby/object:Gem::Requirement
|
399
398
|
none: false
|
400
399
|
requirements:
|
@@ -405,10 +404,10 @@ dependencies:
|
|
405
404
|
- 0
|
406
405
|
version: "0"
|
407
406
|
requirement: *id026
|
408
|
-
- !ruby/object:Gem::Dependency
|
409
407
|
prerelease: false
|
408
|
+
name: mysql
|
410
409
|
type: :development
|
411
|
-
|
410
|
+
- !ruby/object:Gem::Dependency
|
412
411
|
version_requirements: &id027 !ruby/object:Gem::Requirement
|
413
412
|
none: false
|
414
413
|
requirements:
|
@@ -419,6 +418,23 @@ dependencies:
|
|
419
418
|
- 0
|
420
419
|
version: "0"
|
421
420
|
requirement: *id027
|
421
|
+
prerelease: false
|
422
|
+
name: sqlite3-ruby
|
423
|
+
type: :development
|
424
|
+
- !ruby/object:Gem::Dependency
|
425
|
+
version_requirements: &id028 !ruby/object:Gem::Requirement
|
426
|
+
none: false
|
427
|
+
requirements:
|
428
|
+
- - ">="
|
429
|
+
- !ruby/object:Gem::Version
|
430
|
+
hash: 3
|
431
|
+
segments:
|
432
|
+
- 0
|
433
|
+
version: "0"
|
434
|
+
requirement: *id028
|
435
|
+
prerelease: false
|
436
|
+
name: wirble
|
437
|
+
type: :development
|
422
438
|
description: Blog engine for Rails 3+
|
423
439
|
email: michael@pixels-and-bits.com
|
424
440
|
executables: []
|
@@ -448,7 +464,6 @@ files:
|
|
448
464
|
- app/models/settings.rb
|
449
465
|
- app/stylesheets/_will_paginate.scss
|
450
466
|
- app/stylesheets/boilerplate.scss
|
451
|
-
- app/stylesheets/grid.scss
|
452
467
|
- app/stylesheets/handheld.scss
|
453
468
|
- app/stylesheets/jabe.scss
|
454
469
|
- app/views/admin/entries/_form.html.haml
|
@@ -471,6 +486,7 @@ files:
|
|
471
486
|
- config/routes.rb
|
472
487
|
- lib/generators/jabe/migrations/migrations_generator.rb
|
473
488
|
- lib/generators/jabe/stylesheets/stylesheets_generator.rb
|
489
|
+
- lib/generators/jabe/templates/migrations/add_new_settings.rb
|
474
490
|
- lib/generators/jabe/templates/migrations/create_comments.rb
|
475
491
|
- lib/generators/jabe/templates/migrations/create_entries.rb
|
476
492
|
- lib/generators/jabe/templates/migrations/create_settings.rb
|
@@ -500,7 +516,6 @@ files:
|
|
500
516
|
- public/javascripts/rails.js
|
501
517
|
- public/nginx.conf
|
502
518
|
- public/robots.txt
|
503
|
-
- spec/support/blueprints.rb
|
504
519
|
- test/dummy/app/controllers/application_controller.rb
|
505
520
|
- test/dummy/app/helpers/application_helper.rb
|
506
521
|
- test/dummy/config/application.rb
|
@@ -521,6 +536,7 @@ files:
|
|
521
536
|
- test/dummy/db/migrate/20101229224029_devise_create_admins.rb
|
522
537
|
- test/dummy/db/migrate/20101229224030_create_entries.rb
|
523
538
|
- test/dummy/db/migrate/20101229224031_create_comments.rb
|
539
|
+
- test/dummy/db/migrate/20110104004400_add_new_settings.rb
|
524
540
|
- test/dummy/db/schema.rb
|
525
541
|
- test/dummy/features/step_definitions/admin_steps.rb
|
526
542
|
- test/dummy/features/step_definitions/entry_steps.rb
|
@@ -567,12 +583,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
567
583
|
requirements: []
|
568
584
|
|
569
585
|
rubyforge_project:
|
570
|
-
rubygems_version: 1.
|
586
|
+
rubygems_version: 1.4.0
|
571
587
|
signing_key:
|
572
588
|
specification_version: 3
|
573
589
|
summary: Just Another Blog Engine
|
574
590
|
test_files:
|
575
|
-
- spec/support/blueprints.rb
|
576
591
|
- test/dummy/app/controllers/application_controller.rb
|
577
592
|
- test/dummy/app/helpers/application_helper.rb
|
578
593
|
- test/dummy/config/application.rb
|
@@ -593,6 +608,7 @@ test_files:
|
|
593
608
|
- test/dummy/db/migrate/20101229224029_devise_create_admins.rb
|
594
609
|
- test/dummy/db/migrate/20101229224030_create_entries.rb
|
595
610
|
- test/dummy/db/migrate/20101229224031_create_comments.rb
|
611
|
+
- test/dummy/db/migrate/20110104004400_add_new_settings.rb
|
596
612
|
- test/dummy/db/schema.rb
|
597
613
|
- test/dummy/features/step_definitions/admin_steps.rb
|
598
614
|
- test/dummy/features/step_definitions/entry_steps.rb
|
data/app/stylesheets/grid.scss
DELETED
@@ -1,336 +0,0 @@
|
|
1
|
-
/* Containers
|
2
|
-
----------------------------------------------------------------------------------------------------*/
|
3
|
-
.container_12 {
|
4
|
-
margin-left: auto;
|
5
|
-
margin-right: auto;
|
6
|
-
width: 768px;
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
|
11
|
-
/* Grid >> Children (Alpha ~ First, Omega ~ Last)
|
12
|
-
----------------------------------------------------------------------------------------------------*/
|
13
|
-
|
14
|
-
.alpha {
|
15
|
-
margin-left: 0 !important;
|
16
|
-
}
|
17
|
-
|
18
|
-
.omega {
|
19
|
-
margin-right: 0 !important;
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
/* Grid >> Global
|
25
|
-
----------------------------------------------------------------------------------------------------*/
|
26
|
-
|
27
|
-
.grid_1,
|
28
|
-
.grid_2,
|
29
|
-
.grid_3,
|
30
|
-
.grid_4,
|
31
|
-
.grid_5,
|
32
|
-
.grid_6,
|
33
|
-
.grid_7,
|
34
|
-
.grid_8,
|
35
|
-
.grid_9,
|
36
|
-
.grid_10,
|
37
|
-
.grid_11,
|
38
|
-
.grid_12{
|
39
|
-
display:inline;
|
40
|
-
float: left;
|
41
|
-
position: relative;
|
42
|
-
margin-left: 10.0px;
|
43
|
-
margin-right: 10.0px;
|
44
|
-
}
|
45
|
-
|
46
|
-
|
47
|
-
/* Grid >> 2 Columns
|
48
|
-
----------------------------------------------------------------------------------------------------*/
|
49
|
-
|
50
|
-
.container_12 .grid_1{
|
51
|
-
width:44px;
|
52
|
-
}
|
53
|
-
|
54
|
-
.container_12 .grid_2{
|
55
|
-
width:108px;
|
56
|
-
}
|
57
|
-
|
58
|
-
.container_12 .grid_3{
|
59
|
-
width:172px;
|
60
|
-
}
|
61
|
-
|
62
|
-
.container_12 .grid_4{
|
63
|
-
width:236px;
|
64
|
-
}
|
65
|
-
|
66
|
-
.container_12 .grid_5{
|
67
|
-
width:300px;
|
68
|
-
}
|
69
|
-
|
70
|
-
.container_12 .grid_6{
|
71
|
-
width:364px;
|
72
|
-
}
|
73
|
-
|
74
|
-
.container_12 .grid_7{
|
75
|
-
width:428px;
|
76
|
-
}
|
77
|
-
|
78
|
-
.container_12 .grid_8{
|
79
|
-
width:492px;
|
80
|
-
}
|
81
|
-
|
82
|
-
.container_12 .grid_9{
|
83
|
-
width:556px;
|
84
|
-
}
|
85
|
-
|
86
|
-
.container_12 .grid_10{
|
87
|
-
width:620px;
|
88
|
-
}
|
89
|
-
|
90
|
-
.container_12 .grid_11{
|
91
|
-
width:684px;
|
92
|
-
}
|
93
|
-
|
94
|
-
.container_12 .grid_12{
|
95
|
-
width:748px;
|
96
|
-
}
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
/* Prefix Extra Space >> 2 Columns
|
103
|
-
----------------------------------------------------------------------------------------------------*/
|
104
|
-
|
105
|
-
.container_12 .prefix_1 {
|
106
|
-
padding-left:64px;
|
107
|
-
}
|
108
|
-
|
109
|
-
.container_12 .prefix_2 {
|
110
|
-
padding-left:128px;
|
111
|
-
}
|
112
|
-
|
113
|
-
.container_12 .prefix_3 {
|
114
|
-
padding-left:192px;
|
115
|
-
}
|
116
|
-
|
117
|
-
.container_12 .prefix_4 {
|
118
|
-
padding-left:256px;
|
119
|
-
}
|
120
|
-
|
121
|
-
.container_12 .prefix_5 {
|
122
|
-
padding-left:320px;
|
123
|
-
}
|
124
|
-
|
125
|
-
.container_12 .prefix_6 {
|
126
|
-
padding-left:384px;
|
127
|
-
}
|
128
|
-
|
129
|
-
.container_12 .prefix_7 {
|
130
|
-
padding-left:448px;
|
131
|
-
}
|
132
|
-
|
133
|
-
.container_12 .prefix_8 {
|
134
|
-
padding-left:512px;
|
135
|
-
}
|
136
|
-
|
137
|
-
.container_12 .prefix_9 {
|
138
|
-
padding-left:576px;
|
139
|
-
}
|
140
|
-
|
141
|
-
.container_12 .prefix_10 {
|
142
|
-
padding-left:640px;
|
143
|
-
}
|
144
|
-
|
145
|
-
.container_12 .prefix_11 {
|
146
|
-
padding-left:704px;
|
147
|
-
}
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
/* Suffix Extra Space >> 2 Columns
|
152
|
-
----------------------------------------------------------------------------------------------------*/
|
153
|
-
|
154
|
-
.container_12 .suffix_1 {
|
155
|
-
padding-right:64px;
|
156
|
-
}
|
157
|
-
|
158
|
-
.container_12 .suffix_2 {
|
159
|
-
padding-right:128px;
|
160
|
-
}
|
161
|
-
|
162
|
-
.container_12 .suffix_3 {
|
163
|
-
padding-right:192px;
|
164
|
-
}
|
165
|
-
|
166
|
-
.container_12 .suffix_4 {
|
167
|
-
padding-right:256px;
|
168
|
-
}
|
169
|
-
|
170
|
-
.container_12 .suffix_5 {
|
171
|
-
padding-right:320px;
|
172
|
-
}
|
173
|
-
|
174
|
-
.container_12 .suffix_6 {
|
175
|
-
padding-right:384px;
|
176
|
-
}
|
177
|
-
|
178
|
-
.container_12 .suffix_7 {
|
179
|
-
padding-right:448px;
|
180
|
-
}
|
181
|
-
|
182
|
-
.container_12 .suffix_8 {
|
183
|
-
padding-right:512px;
|
184
|
-
}
|
185
|
-
|
186
|
-
.container_12 .suffix_9 {
|
187
|
-
padding-right:576px;
|
188
|
-
}
|
189
|
-
|
190
|
-
.container_12 .suffix_10 {
|
191
|
-
padding-right:640px;
|
192
|
-
}
|
193
|
-
|
194
|
-
.container_12 .suffix_11 {
|
195
|
-
padding-right:704px;
|
196
|
-
}
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
/* Push Space >> 2 Columns
|
201
|
-
----------------------------------------------------------------------------------------------------*/
|
202
|
-
|
203
|
-
.container_12 .push_1 {
|
204
|
-
left:64px;
|
205
|
-
}
|
206
|
-
|
207
|
-
.container_12 .push_2 {
|
208
|
-
left:128px;
|
209
|
-
}
|
210
|
-
|
211
|
-
.container_12 .push_3 {
|
212
|
-
left:192px;
|
213
|
-
}
|
214
|
-
|
215
|
-
.container_12 .push_4 {
|
216
|
-
left:256px;
|
217
|
-
}
|
218
|
-
|
219
|
-
.container_12 .push_5 {
|
220
|
-
left:320px;
|
221
|
-
}
|
222
|
-
|
223
|
-
.container_12 .push_6 {
|
224
|
-
left:384px;
|
225
|
-
}
|
226
|
-
|
227
|
-
.container_12 .push_7 {
|
228
|
-
left:448px;
|
229
|
-
}
|
230
|
-
|
231
|
-
.container_12 .push_8 {
|
232
|
-
left:512px;
|
233
|
-
}
|
234
|
-
|
235
|
-
.container_12 .push_9 {
|
236
|
-
left:576px;
|
237
|
-
}
|
238
|
-
|
239
|
-
.container_12 .push_10 {
|
240
|
-
left:640px;
|
241
|
-
}
|
242
|
-
|
243
|
-
.container_12 .push_11 {
|
244
|
-
left:704px;
|
245
|
-
}
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
/* Pull Space >> 2 Columns
|
252
|
-
----------------------------------------------------------------------------------------------------*/
|
253
|
-
|
254
|
-
.container_12 .pull_1 {
|
255
|
-
right:64px;
|
256
|
-
}
|
257
|
-
|
258
|
-
.container_12 .pull_2 {
|
259
|
-
right:128px;
|
260
|
-
}
|
261
|
-
|
262
|
-
.container_12 .pull_3 {
|
263
|
-
right:192px;
|
264
|
-
}
|
265
|
-
|
266
|
-
.container_12 .pull_4 {
|
267
|
-
right:256px;
|
268
|
-
}
|
269
|
-
|
270
|
-
.container_12 .pull_5 {
|
271
|
-
right:320px;
|
272
|
-
}
|
273
|
-
|
274
|
-
.container_12 .pull_6 {
|
275
|
-
right:384px;
|
276
|
-
}
|
277
|
-
|
278
|
-
.container_12 .pull_7 {
|
279
|
-
right:448px;
|
280
|
-
}
|
281
|
-
|
282
|
-
.container_12 .pull_8 {
|
283
|
-
right:512px;
|
284
|
-
}
|
285
|
-
|
286
|
-
.container_12 .pull_9 {
|
287
|
-
right:576px;
|
288
|
-
}
|
289
|
-
|
290
|
-
.container_12 .pull_10 {
|
291
|
-
right:640px;
|
292
|
-
}
|
293
|
-
|
294
|
-
.container_12 .pull_11 {
|
295
|
-
right:704px;
|
296
|
-
}
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
/* Clear Floated Elements
|
302
|
-
----------------------------------------------------------------------------------------------------*/
|
303
|
-
|
304
|
-
|
305
|
-
.clear {
|
306
|
-
clear: both;
|
307
|
-
display: block;
|
308
|
-
overflow: hidden;
|
309
|
-
visibility: hidden;
|
310
|
-
width: 0;
|
311
|
-
height: 0;
|
312
|
-
}
|
313
|
-
|
314
|
-
|
315
|
-
.clearfix:after {
|
316
|
-
clear: both;
|
317
|
-
content: ' ';
|
318
|
-
display: block;
|
319
|
-
font-size: 0;
|
320
|
-
line-height: 0;
|
321
|
-
visibility: hidden;
|
322
|
-
width: 0;
|
323
|
-
height: 0;
|
324
|
-
}
|
325
|
-
|
326
|
-
.clearfix {
|
327
|
-
display: inline-block;
|
328
|
-
}
|
329
|
-
|
330
|
-
* html .clearfix {
|
331
|
-
height: 1%;
|
332
|
-
}
|
333
|
-
|
334
|
-
.clearfix {
|
335
|
-
display: block;
|
336
|
-
}
|
data/spec/support/blueprints.rb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
require 'machinist/active_record'
|
2
|
-
|
3
|
-
# takes care of
|
4
|
-
# Validation failed: Email has already been taken (ActiveRecord::RecordInvalid)
|
5
|
-
Machinist.configure do |config|
|
6
|
-
config.cache_objects = false
|
7
|
-
end
|
8
|
-
|
9
|
-
Admin.blueprint do
|
10
|
-
email { 'admin@example.com' }
|
11
|
-
password { 'password' }
|
12
|
-
password_confirmation { 'password' }
|
13
|
-
end
|
14
|
-
|
15
|
-
Settings.blueprint do
|
16
|
-
# Attributes here
|
17
|
-
end
|
18
|
-
|
19
|
-
Entry.blueprint do
|
20
|
-
title { Faker::Lorem.words.to_s }
|
21
|
-
body { Faker::Lorem.paragraph }
|
22
|
-
published_at { Time.now }
|
23
|
-
end
|
24
|
-
|
25
|
-
Entry.blueprint(:published) do
|
26
|
-
draft { false }
|
27
|
-
end
|
28
|
-
|
29
|
-
Comment.blueprint do
|
30
|
-
# Attributes here
|
31
|
-
end
|