feedcellar-web 0.1.0 → 0.2.0

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: 6483689a043578237a0bce437ec98ebb8a61f38a
4
- data.tar.gz: 6250cbd8153030f0e823a05fc386565777623f8c
3
+ metadata.gz: ef52bbae955731fa9e312dcbec010deb34993d42
4
+ data.tar.gz: a5f40d7123c5e9191f5844f117681d8af4ef50b0
5
5
  SHA512:
6
- metadata.gz: f9c86d3834526f90b41f4acc237c7c8ba930883642d29b41e7b7fe609a340b08dea9f73e9f2adec8deda58626c44a02449082ec167fcf07148c2d7ef19abbcdd
7
- data.tar.gz: 96be3acf986ed6981658f51777990c72866688c16f96d77572ff1c84f6a0c177371f5c1f9104c5dcc942e397518744a3a011223da9a4952cb83b654e22c48fe9
6
+ metadata.gz: 5dbdc85e7fc586bf85341d215c9160cf66e2eb0173de29dd9fa9dddd44d7b2cebed37603a625221957c6a9b79adef9aa98b468326d8001f2d827b02906aa0ae4
7
+ data.tar.gz: 25e868085b4455f8a79688bc9f7089be3fa2508d65d79e922b9951d6e55786abc15b53a704a2523b4e90c1a5670b4eeb3afeee9a0dc09ecaf92d50d3acf9cb64
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- feedcellar-web (0.1.0)
5
- feedcellar (>= 0.5.0)
4
+ feedcellar-web (0.2.0)
5
+ feedcellar (>= 0.6.0)
6
6
  haml
7
7
  kaminari
8
8
  launchy
@@ -38,14 +38,8 @@ GEM
38
38
  io-like (~> 0.3.0)
39
39
  builder (3.2.2)
40
40
  erubis (2.7.0)
41
- feedcellar (0.5.0)
42
- haml
43
- kaminari
44
- launchy
45
- padrino-helpers
46
- racknga
47
- rroonga (>= 3.0.4)
48
- sinatra
41
+ feedcellar (0.6.0)
42
+ rroonga (>= 5.0.0)
49
43
  thor
50
44
  gqtp (1.0.6)
51
45
  groonga-client (0.1.0)
data/NEWS.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.2.0: 2015-04-06
4
+
5
+ ### Changes
6
+
7
+ #### Improvements
8
+
9
+ * Fixed layouts path.
10
+ * Added GitHub ribbon.
11
+ * Supported drilldown by year and month.
12
+ * Added year drilldown.
13
+ * Added month drilldown.
14
+ * Showed date of feed.
15
+ * Use Feedcellar 0.6.0 or later.
16
+
3
17
  ## 0.1.0: 2015-04-05
4
18
 
5
19
  Initial release.
@@ -27,17 +27,17 @@ Gem::Specification.new do |spec|
27
27
  spec.version = Feedcellar::Web::VERSION
28
28
  spec.authors = ["Masafumi Yokoyama"]
29
29
  spec.email = ["myokoym@gmail.com"]
30
- spec.description = %q{Feedcellar::Web is a Web interfface for Feedcellar that is a full-text searchable RSS feed reader and data store by Groonga (via Rroonga) with Ruby.}
30
+ spec.description = %q{Web interface for Feedcellar is a full-text searchable RSS feed reader by Rroonga.}
31
31
  spec.summary = %q{Web interface for Feedcellar}
32
32
  spec.homepage = "http://myokoym.net/feedcellar/"
33
- spec.license = "LGPLv2.1 or later"
33
+ spec.license = "LGPLv2.1+"
34
34
 
35
35
  spec.files = `git ls-files`.split($/)
36
36
  spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
37
37
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
38
38
  spec.require_paths = ["lib"]
39
39
 
40
- spec.add_runtime_dependency("feedcellar", ">= 0.5.0")
40
+ spec.add_runtime_dependency("feedcellar", ">= 0.6.0")
41
41
  spec.add_runtime_dependency("thor")
42
42
  spec.add_runtime_dependency("sinatra")
43
43
  spec.add_runtime_dependency("padrino-helpers")
@@ -39,6 +39,8 @@ module Feedcellar
39
39
  end
40
40
  options ||= {}
41
41
  options[:resource_id] = params[:resource_id] if params[:resource_id]
42
+ options[:year] = params[:year].to_i if params[:year]
43
+ options[:month] = params[:month].to_i if params[:month]
42
44
  @feeds = search(words, options)
43
45
  if @feeds
44
46
  page = params[:page]
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Feedcellar
20
20
  module Web
21
- VERSION = "0.1.0"
21
+ VERSION = "0.2.0"
22
22
  end
23
23
  end
@@ -12,5 +12,25 @@
12
12
  - @paginated_feeds.each do |feed|
13
13
  %li
14
14
  %p
15
+ = feed.date.strftime("%Y-%m-%d")
15
16
  = link_to("#{feed.title} - #{feed.resource.title}", feed.link)
16
17
  = paginate(@paginated_feeds)
18
+ %p
19
+ - @feeds.group("year").each do |group|
20
+ - year = group.key
21
+ = link_to("#{"%04d" % year} (#{group.n_sub_records})",
22
+ url("/search?word=#{params[:word]}&year=#{year}"))
23
+ %p
24
+ - @feeds.group(["year", "month"]).each do |group|
25
+ - sub_record = group.sub_records.first
26
+ - year = sub_record.year
27
+ - month = sub_record.month
28
+ = link_to("#{"%04d" % year}-#{"%02d" % month} (#{group.n_sub_records})",
29
+ url("/search?word=#{params[:word]}&year=#{year}&month=#{month}"))
30
+ %p
31
+ - @feeds.group("month").sort_by {|record| record.key}.each do |group|
32
+ - month = group.key
33
+ - if month == 0
34
+ - next
35
+ = link_to("#{month} (#{group.n_sub_records})",
36
+ url("/search?word=#{params[:word]}&month=#{month}"))
@@ -0,0 +1,11 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %title feedcellar-web
5
+ %body
6
+ = yield
7
+
8
+ %a{:href => "https://github.com/feedcellar/feedcellar-web"}
9
+ %img{:style => "position: absolute; top: 0; right: 0; border: 0;",
10
+ :src => "https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png",
11
+ :alt => "Fork me on GitHub"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedcellar-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-04 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: feedcellar
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.0
19
+ version: 0.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.5.0
26
+ version: 0.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -192,8 +192,8 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
- description: Feedcellar::Web is a Web interfface for Feedcellar that is a full-text
196
- searchable RSS feed reader and data store by Groonga (via Rroonga) with Ruby.
195
+ description: Web interface for Feedcellar is a full-text searchable RSS feed reader
196
+ by Rroonga.
197
197
  email:
198
198
  - myokoym@gmail.com
199
199
  executables:
@@ -216,14 +216,14 @@ files:
216
216
  - lib/feedcellar/web/command.rb
217
217
  - lib/feedcellar/web/version.rb
218
218
  - lib/feedcellar/web/views/index.haml
219
- - lib/feedcellar/web/views/layout.haml
219
+ - lib/feedcellar/web/views/layouts/application.haml
220
220
  - public/.gitkeep
221
221
  - test/run-test.rb
222
222
  - test/test-app.rb
223
223
  - test/test-command.rb
224
224
  homepage: http://myokoym.net/feedcellar/
225
225
  licenses:
226
- - LGPLv2.1 or later
226
+ - LGPLv2.1+
227
227
  metadata: {}
228
228
  post_install_message:
229
229
  rdoc_options: []
@@ -1,6 +0,0 @@
1
- !!!
2
- %html
3
- %head
4
- %title feedcellar-web
5
- %body
6
- = yield