statikaj 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.4
4
+
5
+ * category support
6
+
3
7
  ## 0.0.3
4
8
 
5
9
  * added summary to article
@@ -8,9 +12,7 @@
8
12
  * added permalink to article
9
13
  * added force option to rebuild old articles
10
14
  * added atom support
11
-
12
15
  * now the date of article return a Date object
13
-
14
16
  * fixed cli require bug
15
17
 
16
18
  ## 0.0.2
data/README.md CHANGED
@@ -66,6 +66,11 @@ But she had an enchantment upon her of a fearful sort, which could only be broke
66
66
  ## Works on your blog design
67
67
  > TODO, for now see [src/templates](https://github.com/dukex/statikaj/tree/master/templates/src/templates)
68
68
 
69
+ ## Update
70
+
71
+ $ gem install statikaj # or bundle update statikaj
72
+ $ cd myblog
73
+ $ statikaj new . # ATTENTION the command will prompt if you want change yours files, make a backup before!
69
74
 
70
75
  ## Who uses it?
71
76
  * [Apartamento131](https://github.com/dukex/apartamento131)
@@ -28,7 +28,7 @@ module Statikaj
28
28
 
29
29
  self.taint
30
30
  self.update data
31
- self[:date] = Date.parse(self[:date].gsub('/', '-')) rescue Date.today
31
+ self[:date] = Time.parse(self[:date].gsub('/', '-')) rescue Time.now
32
32
  self
33
33
  end
34
34
 
data/lib/statikaj/cli.rb CHANGED
@@ -39,7 +39,7 @@ module Statikaj
39
39
  config = {}
40
40
  config[:url] = options[:url].split("/").join("/")
41
41
 
42
- articles_files = Dir[source.join('articles/*.md')].sort_by {|entry| File.basename(entry) }
42
+ articles_files = Dir[source.join('articles/*.md')].sort_by {|entry| File.basename(entry) }.reverse
43
43
  articles = articles_files.map{|f| Article.new(f, config) }
44
44
  categories = {}
45
45
 
@@ -1,3 +1,3 @@
1
1
  module Statikaj
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  <h2>Category: <%= category %></h2>
2
2
  <ul id="articles">
3
- <% articles.select {|a| a[:date] <= Date.today}[0...10].each do |article| %>
3
+ <% articles.select {|a| a[:date] <= Time.now}[0...10].each do |article| %>
4
4
  <li><article>
5
5
  <h3><a href="<%= article.path %>"><%= article.title %></a></h2>
6
6
  <div class="about">
@@ -1,5 +1,5 @@
1
1
  <ul id="posts">
2
- <% articles.select {|a| a[:date] <= Date.today}[0...10].each do |article| %>
2
+ <% articles.select {|a| a[:date] <= Time.now}[0...10].each do |article| %>
3
3
  <li class="post">
4
4
  <h2><a href="<%= article.path %>"><%= article.title %></a></h2>
5
5
  <span class="author"><%= article.author %></span> -
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statikaj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Duke
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-09-29 00:00:00.000000000 Z
12
+ date: 2013-11-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: pry
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ! '>='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: kramdown
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ! '>='
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ! '>='
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: thor
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ! '>='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ! '>='
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: builder
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ! '>='
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ! '>='
95
108
  - !ruby/object:Gem::Version
@@ -129,25 +142,32 @@ files:
129
142
  homepage: https://github.com/dukex/statikaj
130
143
  licenses:
131
144
  - MIT
132
- metadata: {}
133
145
  post_install_message:
134
146
  rdoc_options: []
135
147
  require_paths:
136
148
  - lib
137
149
  required_ruby_version: !ruby/object:Gem::Requirement
150
+ none: false
138
151
  requirements:
139
152
  - - ! '>='
140
153
  - !ruby/object:Gem::Version
141
154
  version: '0'
155
+ segments:
156
+ - 0
157
+ hash: 413590605116098593
142
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
+ none: false
143
160
  requirements:
144
161
  - - ! '>='
145
162
  - !ruby/object:Gem::Version
146
163
  version: '0'
164
+ segments:
165
+ - 0
166
+ hash: 413590605116098593
147
167
  requirements: []
148
168
  rubyforge_project:
149
- rubygems_version: 2.0.7
169
+ rubygems_version: 1.8.23
150
170
  signing_key:
151
- specification_version: 4
171
+ specification_version: 3
152
172
  summary: Statikaj is simple tool to create statikaj blogs.
153
173
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDYzMGUyYjg0YjhiOGYzYzU0MDMwNGQ1OGFkNzA3N2I0OTFhNmI0Yw==
5
- data.tar.gz: !binary |-
6
- MDg1Y2YxYzFlMDRmNjNlNjQyMGRkMjVhNGJjOGQxY2VkYTJmZTgzOQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZDQ0ZDJjNzAxMjJmZDA1MzIxYzRiOTY4ZWI0MWQ5MDZkN2FjN2UwMjM4ZDc3
10
- Yjk3MmI2MmJiYmRkNGMwMTc1NmIxOTQxMTAxOTM2MzQ3ODUzZjQzNzQyYzQ0
11
- MjFmYTE4MmU2N2RlMTM3ODZlZjZiNjUwYzA5MTA3N2FmMzM3MDg=
12
- data.tar.gz: !binary |-
13
- ODYwNTc0MzFlMmYyNWU4NWFkOThhZDEwMTNhMmZiMzMyMmNjNGFlYmI3YjM2
14
- ZGUyYWM2YTQ5MTlmMGJlYjU1MWY5YmU0MjkzZGE0YjBjODliNzE3NmY1YWZk
15
- NTI4NjYyY2M1M2NiYjZmMGEwMTVmZjkxYTc4MDVjYTM1NTk0ZDQ=