octodmin 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 628d01f6e3f0ebaf91f1a4437d0148c578957e06
4
- data.tar.gz: eba818ad7f140fb080be4e6ff2ac07c46f9b48a3
3
+ metadata.gz: 25769485b174a543c10c85b8cb1ebf99ca8c91ab
4
+ data.tar.gz: b76e24969e9b7af79ae149d8afc5f6cb38993f44
5
5
  SHA512:
6
- metadata.gz: 6c151783a1b30437fd2d285645b53f787555fdc9b8ea1b05503eef29865256b66c658008dc8763db93324455e43293dc8dd5824285f7255ad7a308647eb08891
7
- data.tar.gz: 110aaa2d980c1275d3f6920c7cff7a00e611fd7cb699122f3aeb5921533eb484eedd05616a49d83b43b25738b3a0fd531b0d657ac1df1827ae0524c29403db0b
6
+ metadata.gz: ebbe2421ce23ccb9d75d5e34219a033af078ff00d1b874c96744349ae76bf6d9914109107863aa2f0c29b6e4e3b41059d5136e048760370f12342f6d946522c7
7
+ data.tar.gz: 754ba99ebfbfc6dd7100963895c96da4703c2587bee523b99a614584bfdd969eeeb9d83b574c92491a825306b25626e7b15e1d10fc6f0ce67265b0696d555147
data/.lotusrc ADDED
@@ -0,0 +1,3 @@
1
+ architecture=container
2
+ test=minitest
3
+ template=erb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ v0.3.2
2
+ ------
3
+
4
+ * Disable upload button when file is chosen
5
+ * Fix preview layout
6
+ * Optimize post initialization
7
+
1
8
  v0.3.1
2
9
  ------
3
10
 
data/Gemfile CHANGED
@@ -5,13 +5,12 @@ gem "rake", "~> 10.0"
5
5
  gem "sprockets", "~> 3.0.0.beta"
6
6
  gem "bower", "~> 0.0.2"
7
7
  gem "sprockets-standalone", github: "krasnoukhov/sprockets-standalone"
8
- gem "coffee-react", "~> 2.1.0"
9
- gem "lotusrb", github: "lotus/lotus"
8
+ gem "coffee-react", "~> 2.4.0"
10
9
 
11
10
  group :test do
12
11
  gem "simplecov", "~> 0.9.0", require: false
13
12
  gem "coveralls", "~> 0.7.0", require: false
14
- gem "rspec", "~> 3.1.0"
13
+ gem "rspec", "~> 3.2.0"
15
14
  gem "json_spec", "~> 1.1.0"
16
15
  gem "rack-test", "~> 0.6.0"
17
16
  end
data/README.md CHANGED
@@ -6,8 +6,7 @@ Content management for Jekyll blogs
6
6
  [![Build Status](https://secure.travis-ci.org/krasnoukhov/octodmin.svg?branch=master)](http://travis-ci.org/krasnoukhov/octodmin?branch=master)
7
7
  [![Coverage Status](https://img.shields.io/coveralls/krasnoukhov/octodmin.svg)](https://coveralls.io/r/krasnoukhov/octodmin?branch=master)
8
8
  [![Code Climate](https://img.shields.io/codeclimate/github/krasnoukhov/octodmin.svg)](https://codeclimate.com/github/krasnoukhov/octodmin)
9
-
10
- ![Screencast](http://i.imgur.com/SazYNe8.gif)
9
+ [![Dependency Status](https://gemnasium.com/krasnoukhov/octodmin.svg)](https://gemnasium.com/krasnoukhov/octodmin)
11
10
 
12
11
  ## Installation
13
12
 
@@ -213,9 +213,8 @@
213
213
 
214
214
  handleUpload: (event)->
215
215
  form = $("<form><input type='file' name='file' /></form>")
216
- event.disableButtons("cmdUpload")
217
-
218
216
  form.find("input").on("change", (->
217
+ event.disableButtons("cmdUpload")
219
218
  data = new FormData(form[0])
220
219
  $.ajaxq("default",
221
220
  type: "POST"
@@ -77,6 +77,10 @@ a, button, input, textarea, *:focus {
77
77
  width: 100%;
78
78
  }
79
79
 
80
+ .md-preview {
81
+ overflow: auto;
82
+ }
83
+
80
84
  .buttons {
81
85
  .btn {
82
86
  margin-left: 10px;
data/bower.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "spin.js": "~2.0.2",
12
12
  "react": "~0.12.0",
13
13
  "react-loader": "~1.1.0",
14
- "react-router": "~0.11.6",
14
+ "react-router": "~0.12.0",
15
15
  "fontawesome": "~4.3.0",
16
16
  "bootswatch": "~3.3.2",
17
17
  "momentjs": "~2.9.0"
data/lib/octodmin/post.rb CHANGED
@@ -26,9 +26,9 @@ module Octodmin
26
26
  rescue RuntimeError
27
27
  end
28
28
 
29
- def initialize(post)
29
+ def initialize(site, post)
30
+ @site = site
30
31
  @post = post
31
- @site = Octodmin::Site.new
32
32
  end
33
33
 
34
34
  def path
data/lib/octodmin/site.rb CHANGED
@@ -41,7 +41,7 @@ module Octodmin
41
41
  def posts
42
42
  reset
43
43
  @site.read
44
- @site.posts.sort_by(&:date).last(20).reverse.map { |post| Post.new(post) }
44
+ @site.posts.sort_by(&:date).last(20).reverse.map { |post| Post.new(self, post) }
45
45
  end
46
46
 
47
47
  def reset
@@ -1,3 +1,3 @@
1
1
  module Octodmin
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octodmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Krasnoukhov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-15 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".bowerrc"
77
77
  - ".gitignore"
78
+ - ".lotusrc"
78
79
  - ".rspec"
79
80
  - ".travis.yml"
80
81
  - CHANGELOG.md