almanac 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -3,7 +3,7 @@ Almanac is the most elegant mountable blog engine that can be easily hooked up i
3
3
 
4
4
  ## Main Features
5
5
  - Slick default design that can be easily customized.
6
- - Markdown for everything.
6
+ - kramdown (better Markdown) for all input fields.
7
7
  - Drafts that make sense.
8
8
  - Easy Google Analytics support.
9
9
  - Disqus support for comments.
@@ -71,6 +71,18 @@ Lastly, you'll have to specify the name of your user model. Create a `config/ini
71
71
  Almanac.user_class = "User" # other possibilities: "Author", "Writer", etc.
72
72
  ```
73
73
 
74
+ ## Kramdown
75
+ [Kramdown](http://kramdown.rubyforge.org/index.html) is the superset of Markdown. All input fields can use it. Check out all [syntax rules](http://kramdown.rubyforge.org/syntax.html) for kramdown. One of the best examples of kramdown usage is code highlighting that is part of Almanac. In your post you can simply write:
76
+
77
+ ```
78
+ ~~~ruby
79
+ def foo
80
+ puts "bar"
81
+ end
82
+ ```
83
+
84
+ And it will generate a nice looking block of Ruby code once your post is published.
85
+
74
86
  ## Post Comments
75
87
  Almanac supports commenting via [Disqus](http://disqus.com/)—the best commenting solution on the web. If you want your blog to support commenting, register with Disqus, add a website and copy-paste "Site Shortname" to the appropriate field in Blog Settings.
76
88
 
@@ -95,4 +107,4 @@ Go back to the `almanac` directory and run `rspec spec`.
95
107
  - Write code for a feature or bug fix.
96
108
  - Add Rspec tests for it.
97
109
  - Commit, do not make changes to rakefile or version.
98
- - Submit a pull request.
110
+ - Submit a pull request.
@@ -12,5 +12,5 @@
12
12
  //
13
13
  //= require jquery
14
14
  //= require jquery_ujs
15
- //= require bootstrap/bootstrap
15
+ //= require twitter/bootstrap
16
16
  //= require_tree .
@@ -5,7 +5,7 @@ $font-family-title: "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue B
5
5
  .almanac {
6
6
  background-color: grey;
7
7
  [class^="icon-"], [class*=" icon-"] {
8
- background-image: url("icons/glyphicons-halflings.png");
8
+
9
9
  }
10
10
 
11
11
  input[type="file"] {
@@ -9,7 +9,6 @@
9
9
  * compiled file, but it's generally better to create a new file per style scope.
10
10
  *
11
11
  *= require_self
12
- *= require bootstrap/bootstrap
13
- *= require bootstrap/bootstrap-responsive
12
+ *= require 'bootstrap_and_overrides'
14
13
  *= require_tree .
15
14
  */
@@ -0,0 +1,36 @@
1
+ @import 'twitter/bootstrap/bootstrap';
2
+ @import 'twitter/bootstrap/variables.less';
3
+ @import 'twitter/bootstrap/mixins.less';
4
+ @import 'twitter/bootstrap/responsive-utilities.less';
5
+ @import 'twitter/bootstrap/responsive-768px-979px';
6
+ @import 'twitter/bootstrap/responsive-767px-max';
7
+ @import 'twitter/bootstrap/responsive-1200px-min.less';
8
+ @import 'twitter/bootstrap/responsive-navbar.less';
9
+
10
+ // Set the correct sprite paths
11
+ @iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings");
12
+ @iconWhiteSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings-white");
13
+
14
+ // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
15
+ @fontAwesomeEotPath: asset-url("fontawesome-webfont.eot");
16
+ @fontAwesomeEotPath_iefix: asset-url("fontawesome-webfont.eot#iefix");
17
+ @fontAwesomeWoffPath: asset-url("fontawesome-webfont.woff");
18
+ @fontAwesomeTtfPath: asset-url("fontawesome-webfont.ttf");
19
+ @fontAwesomeSvgPath: asset-url("fontawesome-webfont.svg#fontawesomeregular");
20
+
21
+ // Font Awesome
22
+ @import "fontawesome/font-awesome";
23
+
24
+ // Glyphicons
25
+ //@import "twitter/bootstrap/sprites.less";
26
+
27
+ // Your custom LESS stylesheets goes here
28
+ //
29
+ // Since bootstrap was imported above you have access to its mixins which
30
+ // you may use and inherit here
31
+ //
32
+ // If you'd like to override bootstrap's own variables, you can do so here as well
33
+ // See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
34
+ //
35
+ // Example:
36
+ // @linkColor: #ff0000;
@@ -8,7 +8,6 @@ require "will_paginate"
8
8
  require "will_paginate-bootstrap"
9
9
  require "acts-as-taggable-on"
10
10
  require "almanac/MarkdownParser"
11
- require "bootstrap-rails-engine"
12
11
 
13
12
  module Almanac
14
13
  mattr_accessor :user_class
@@ -1,3 +1,3 @@
1
1
  module Almanac
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: almanac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-15 00:00:00.000000000 Z
12
+ date: 2013-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: therubyracer
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: rails
16
32
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +108,7 @@ dependencies:
92
108
  - !ruby/object:Gem::Version
93
109
  version: '0'
94
110
  - !ruby/object:Gem::Dependency
95
- name: bootstrap-rails-engine
111
+ name: twitter-bootstrap-rails
96
112
  requirement: !ruby/object:Gem::Requirement
97
113
  none: false
98
114
  requirements:
@@ -389,6 +405,7 @@ files:
389
405
  - app/assets/stylesheets/almanac/2-prettify.css
390
406
  - app/assets/stylesheets/almanac/3-main.css.scss
391
407
  - app/assets/stylesheets/almanac/application.css
408
+ - app/assets/stylesheets/almanac/bootstrap_and_overrides.css.less
392
409
  - app/controllers/almanac/application_controller.rb
393
410
  - app/controllers/almanac/blogs_controller.rb
394
411
  - app/controllers/almanac/images_controller.rb