lines-engine 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/lines/style.css.scss +3 -4
- data/app/views/{lines/kaminari → kaminari/lines}/_gap.html.erb +0 -0
- data/app/views/{lines/kaminari → kaminari/lines}/_next_page.html.erb +1 -1
- data/app/views/{lines/kaminari → kaminari/lines}/_page.html.erb +0 -0
- data/app/views/{lines/kaminari → kaminari/lines}/_paginator.html.erb +0 -0
- data/app/views/{lines/kaminari → kaminari/lines}/_prev_page.html.erb +1 -1
- data/app/views/lines/articles/index.html.erb +1 -1
- data/config/locales/kaminari.en.yml +8 -0
- data/lib/generators/lines/install_generator.rb +1 -0
- data/lib/lines/version.rb +1 -1
- data/spec/dummy/config/lines_config.yml +55 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/config/routes.rb +0 -55
- metadata +9 -17
- data/app/assets/images/arrow_left.png +0 -0
- data/app/assets/images/arrow_right.png +0 -0
- data/app/assets/images/favorite.png +0 -0
- data/app/assets/images/feed-icon-14x14.png +0 -0
- data/app/assets/images/feed-icon-28x28.png +0 -0
- data/app/assets/images/header.jpg +0 -0
- data/app/assets/images/lastproject_th.jpg +0 -0
- data/app/assets/images/latest_project.png +0 -0
- data/app/assets/images/timer_th.jpg +0 -0
- data/app/views/lines/kaminari/_first_page.html.erb +0 -11
- data/app/views/lines/kaminari/_last_page.html.erb +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cab63d5a47a590891e484f2ea7f16dba92e95bf6
|
|
4
|
+
data.tar.gz: a6defa05747dc8cab8b136cc56cc74ac0d18cba1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f4c470d99fa76fdc17d7a67db716377663322e3b41d0018c2ff7ae07d09157d444aa19476d8d2d5595f25ca6624456a716a784d31fe8d20be055e35ef1d673b
|
|
7
|
+
data.tar.gz: ad6438da6803053bbae4a7b26c96fbc6092d8d2c1e580942ec6caa692257a71363c2b0b4438f5038239a2e66d25a862ca036e076394ef629071b2dd05aab1949
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
- Pagination (kaminari gem) fixed: templates are now loaded from app/views/kaminari/lines/ as theme
|
|
6
|
+
- Install generator: paginator templates from kaminari gem are now correctly added to host app
|
|
7
|
+
|
|
8
|
+
|
|
3
9
|
## 0.3.1
|
|
4
10
|
|
|
5
11
|
- Fonts are now referenced by unified names and font attributes ('Ubuntu' instead of 'UbuntuBold' and 'UbuntuItalic')
|
|
6
12
|
|
|
13
|
+
|
|
7
14
|
## 0.3
|
|
8
15
|
|
|
9
16
|
- Heavily simplified CSS and markup for articles
|
data/Gemfile.lock
CHANGED
|
@@ -299,6 +299,7 @@ header {
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
#pagination {
|
|
302
|
+
font-family: 'Ubuntu';
|
|
302
303
|
display: block;
|
|
303
304
|
overflow: visible;
|
|
304
305
|
border-top: 1px solid #ccc;
|
|
@@ -318,13 +319,11 @@ header {
|
|
|
318
319
|
.older { right: 0px; }
|
|
319
320
|
.prev, .first {
|
|
320
321
|
float: left;
|
|
321
|
-
|
|
322
|
-
padding: 0 10px 0 50px;
|
|
322
|
+
padding: 0 10px;
|
|
323
323
|
}
|
|
324
324
|
.next, .last {
|
|
325
325
|
float: right;
|
|
326
|
-
|
|
327
|
-
padding: 0 50px 10px 0px;
|
|
326
|
+
padding: 0 10px;
|
|
328
327
|
}
|
|
329
328
|
|
|
330
329
|
.pages {
|
|
File without changes
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
remote: data-remote
|
|
8
8
|
-%>
|
|
9
9
|
<span class="next">
|
|
10
|
-
<%= link_to_unless current_page.last?, raw(
|
|
10
|
+
<%= link_to_unless current_page.last?, raw('Older ›'), url, :rel => 'next', :remote => remote %>
|
|
11
11
|
</span>
|
|
File without changes
|
|
File without changes
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
remote: data-remote
|
|
8
8
|
-%>
|
|
9
9
|
<span class="prev">
|
|
10
|
-
<%= link_to_unless current_page.first?, raw(
|
|
10
|
+
<%= link_to_unless current_page.first?, raw('‹ Newer'), url, :rel => 'prev', :remote => remote %>
|
|
11
11
|
</span>
|
|
@@ -23,6 +23,7 @@ module Lines
|
|
|
23
23
|
|
|
24
24
|
def copy_views
|
|
25
25
|
directory('../../../app/views/lines', 'app/views/lines/', {:exclude_pattern => /admin|sessions/})
|
|
26
|
+
directory('../../../app/views/kaminari', 'app/views/kaminari/'
|
|
26
27
|
copy_file('../../../app/views/layouts/lines/application.html.erb', 'app/views/layouts/lines/application.html.erb')
|
|
27
28
|
copy_file('../../../app/views/layouts/lines/preview.html.erb', 'app/views/layouts/lines/preview.html.erb')
|
|
28
29
|
end
|
data/lib/lines/version.rb
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
###################################
|
|
2
|
+
### GENERAL, HEADER & META TAGS ###
|
|
3
|
+
###################################
|
|
4
|
+
|
|
5
|
+
logo: "/assets/logo.png" # Logo for your blog
|
|
6
|
+
title: "Lines Blog - A Blog about Ruby on Rails" # Give your blog a meaningful title. This is used for the HTML title attribute
|
|
7
|
+
title_short: "Lines Blog" # Place the name of your blog or a short title here
|
|
8
|
+
short_description: "A Ruby on Rails Developer's Blog" # Short description for your blog
|
|
9
|
+
meta_description: "Lines - A Ruby on Rails Developer's Blog" # meta description tag
|
|
10
|
+
meta_author: "John Doe" # meta tag for author
|
|
11
|
+
keywords: "Lines, Blog, Ruby on Rails" # your keywords
|
|
12
|
+
og_logo: "http://www.opoloo.de/assets/opoloogo.png" # OpenGraph logo
|
|
13
|
+
geo_position: "50.00; 8.27" # Geo tags for position and address
|
|
14
|
+
geo_address: "Opoloo, 55116 Mainz" # Geo tags for position and address
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
##############
|
|
18
|
+
### SOCIAL ###
|
|
19
|
+
##############
|
|
20
|
+
|
|
21
|
+
# Your Twitter and Google+ profile URL
|
|
22
|
+
# Leave empty if you don't want to display inside the footer
|
|
23
|
+
twitter_url: 'http://twitter.com/opoloo'
|
|
24
|
+
gplus_url: 'https://plus.google.com/+Opoloo'
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
#################
|
|
28
|
+
### ATOM FEED ###
|
|
29
|
+
#################
|
|
30
|
+
|
|
31
|
+
feed_title: "Lines Blog - A Blog about Ruby on Rails" # give your feed a title
|
|
32
|
+
feed_logo: "http://blog.opoloo.com/assets/opoloo_feed.png" # full URL to the feed logo. Aspect ratio should be 2:1
|
|
33
|
+
feed_favicon: "http://blog.opoloo.com/favivon.ico" # #full URL to the favicon. Aspect ratio should be 1:1
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#####################
|
|
37
|
+
### APP SPECIFICS ###
|
|
38
|
+
#####################
|
|
39
|
+
|
|
40
|
+
refresh_sitemap: false
|
|
41
|
+
|
|
42
|
+
hero_images: ["001_dark.jpg", "001.jpg", "002_dark.jpg", "002.jpg", "003_dark.jpg", "003.jpg"]
|
|
43
|
+
|
|
44
|
+
articles_per_page: 10 # Pagination: How many articles should be desplayed per page?
|
|
45
|
+
|
|
46
|
+
# Your apps secret token. Generate a new one with 'rake secret' and paste it below
|
|
47
|
+
secret_token: "afa4a436180a2febe9b814c6a57b6f3ad298aa82ce0ab4c9e8238713764b665e978f9fad8146587b6cf4a518de4a8f0eac1156cf43a778548e0082629d099fef"
|
|
48
|
+
|
|
49
|
+
# Environment dependent configuration. Place your URLs here
|
|
50
|
+
development:
|
|
51
|
+
host: "localhost:3000"
|
|
52
|
+
test:
|
|
53
|
+
host: "test.local"
|
|
54
|
+
production:
|
|
55
|
+
host: "blog.opoloo.com"
|
data/spec/dummy/config/routes.rb
CHANGED
|
@@ -1,58 +1,3 @@
|
|
|
1
1
|
Rails.application.routes.draw do
|
|
2
2
|
mount Lines::Engine => "/"
|
|
3
|
-
|
|
4
|
-
# The priority is based upon order of creation: first created -> highest priority.
|
|
5
|
-
# See how all your routes lay out with "rake routes".
|
|
6
|
-
|
|
7
|
-
# You can have the root of your site routed with "root"
|
|
8
|
-
# root 'welcome#index'
|
|
9
|
-
|
|
10
|
-
# Example of regular route:
|
|
11
|
-
# get 'products/:id' => 'catalog#view'
|
|
12
|
-
|
|
13
|
-
# Example of named route that can be invoked with purchase_url(id: product.id)
|
|
14
|
-
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
|
15
|
-
|
|
16
|
-
# Example resource route (maps HTTP verbs to controller actions automatically):
|
|
17
|
-
# resources :products
|
|
18
|
-
|
|
19
|
-
# Example resource route with options:
|
|
20
|
-
# resources :products do
|
|
21
|
-
# member do
|
|
22
|
-
# get 'short'
|
|
23
|
-
# post 'toggle'
|
|
24
|
-
# end
|
|
25
|
-
#
|
|
26
|
-
# collection do
|
|
27
|
-
# get 'sold'
|
|
28
|
-
# end
|
|
29
|
-
# end
|
|
30
|
-
|
|
31
|
-
# Example resource route with sub-resources:
|
|
32
|
-
# resources :products do
|
|
33
|
-
# resources :comments, :sales
|
|
34
|
-
# resource :seller
|
|
35
|
-
# end
|
|
36
|
-
|
|
37
|
-
# Example resource route with more complex sub-resources:
|
|
38
|
-
# resources :products do
|
|
39
|
-
# resources :comments
|
|
40
|
-
# resources :sales do
|
|
41
|
-
# get 'recent', on: :collection
|
|
42
|
-
# end
|
|
43
|
-
# end
|
|
44
|
-
|
|
45
|
-
# Example resource route with concerns:
|
|
46
|
-
# concern :toggleable do
|
|
47
|
-
# post 'toggle'
|
|
48
|
-
# end
|
|
49
|
-
# resources :posts, concerns: :toggleable
|
|
50
|
-
# resources :photos, concerns: :toggleable
|
|
51
|
-
|
|
52
|
-
# Example resource route within a namespace:
|
|
53
|
-
# namespace :admin do
|
|
54
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
|
55
|
-
# # (app/controllers/admin/products_controller.rb)
|
|
56
|
-
# resources :products
|
|
57
|
-
# end
|
|
58
3
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lines-engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Opoloo GbR
|
|
@@ -618,15 +618,9 @@ files:
|
|
|
618
618
|
- app/assets/heroes/002_dark.jpg
|
|
619
619
|
- app/assets/heroes/003.jpg
|
|
620
620
|
- app/assets/heroes/003_dark.jpg
|
|
621
|
-
- app/assets/images/arrow_left.png
|
|
622
|
-
- app/assets/images/arrow_right.png
|
|
623
621
|
- app/assets/images/article-icons.png
|
|
624
622
|
- app/assets/images/checkbox-icon.png
|
|
625
|
-
- app/assets/images/favorite.png
|
|
626
|
-
- app/assets/images/feed-icon-14x14.png
|
|
627
|
-
- app/assets/images/feed-icon-28x28.png
|
|
628
623
|
- app/assets/images/footer_icon.png
|
|
629
|
-
- app/assets/images/header.jpg
|
|
630
624
|
- app/assets/images/ic_action_add.png
|
|
631
625
|
- app/assets/images/ic_action_home.png
|
|
632
626
|
- app/assets/images/ic_arrow_left.png
|
|
@@ -639,15 +633,12 @@ files:
|
|
|
639
633
|
- app/assets/images/ic_twitter.png
|
|
640
634
|
- app/assets/images/ic_twitter_hover.png
|
|
641
635
|
- app/assets/images/icon_addphoto.png
|
|
642
|
-
- app/assets/images/lastproject_th.jpg
|
|
643
|
-
- app/assets/images/latest_project.png
|
|
644
636
|
- app/assets/images/logo.png
|
|
645
637
|
- app/assets/images/logo_opoloo.png
|
|
646
638
|
- app/assets/images/opoloo_feed.png
|
|
647
639
|
- app/assets/images/signet.png
|
|
648
640
|
- app/assets/images/signet_opoloo.png
|
|
649
641
|
- app/assets/images/squirrelpark_signet.png
|
|
650
|
-
- app/assets/images/timer_th.jpg
|
|
651
642
|
- app/assets/javascripts/lines/admin.js
|
|
652
643
|
- app/assets/javascripts/lines/application.js
|
|
653
644
|
- app/assets/javascripts/lines/articles.js.coffee
|
|
@@ -676,6 +667,11 @@ files:
|
|
|
676
667
|
- app/uploaders/document_uploader.rb
|
|
677
668
|
- app/uploaders/hero_image_uploader.rb
|
|
678
669
|
- app/uploaders/picture_uploader.rb
|
|
670
|
+
- app/views/kaminari/lines/_gap.html.erb
|
|
671
|
+
- app/views/kaminari/lines/_next_page.html.erb
|
|
672
|
+
- app/views/kaminari/lines/_page.html.erb
|
|
673
|
+
- app/views/kaminari/lines/_paginator.html.erb
|
|
674
|
+
- app/views/kaminari/lines/_prev_page.html.erb
|
|
679
675
|
- app/views/layouts/lines/_messages.html.erb
|
|
680
676
|
- app/views/layouts/lines/admin.html.erb
|
|
681
677
|
- app/views/layouts/lines/application.html.erb
|
|
@@ -701,13 +697,6 @@ files:
|
|
|
701
697
|
- app/views/lines/articles/index.atom.builder
|
|
702
698
|
- app/views/lines/articles/index.html.erb
|
|
703
699
|
- app/views/lines/articles/show.html.erb
|
|
704
|
-
- app/views/lines/kaminari/_first_page.html.erb
|
|
705
|
-
- app/views/lines/kaminari/_gap.html.erb
|
|
706
|
-
- app/views/lines/kaminari/_last_page.html.erb
|
|
707
|
-
- app/views/lines/kaminari/_next_page.html.erb
|
|
708
|
-
- app/views/lines/kaminari/_page.html.erb
|
|
709
|
-
- app/views/lines/kaminari/_paginator.html.erb
|
|
710
|
-
- app/views/lines/kaminari/_prev_page.html.erb
|
|
711
700
|
- app/views/lines/sessions/new.html.erb
|
|
712
701
|
- app/views/lines/shared/_footer.html.erb
|
|
713
702
|
- app/views/lines/shared/_navigation.html.erb
|
|
@@ -717,6 +706,7 @@ files:
|
|
|
717
706
|
- config/initializers/load_config.rb
|
|
718
707
|
- config/initializers/simple_form.rb
|
|
719
708
|
- config/lines_config.yml
|
|
709
|
+
- config/locales/kaminari.en.yml
|
|
720
710
|
- config/routes.rb
|
|
721
711
|
- db/migrate/20140505122014_base_migration.rb
|
|
722
712
|
- db/migrate/20140702160602_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb
|
|
@@ -771,6 +761,7 @@ files:
|
|
|
771
761
|
- spec/dummy/config/initializers/mime_types.rb
|
|
772
762
|
- spec/dummy/config/initializers/session_store.rb
|
|
773
763
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
764
|
+
- spec/dummy/config/lines_config.yml
|
|
774
765
|
- spec/dummy/config/locales/en.yml
|
|
775
766
|
- spec/dummy/config/routes.rb
|
|
776
767
|
- spec/dummy/config/secrets.yml
|
|
@@ -851,6 +842,7 @@ test_files:
|
|
|
851
842
|
- spec/dummy/config/initializers/mime_types.rb
|
|
852
843
|
- spec/dummy/config/initializers/session_store.rb
|
|
853
844
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
845
|
+
- spec/dummy/config/lines_config.yml
|
|
854
846
|
- spec/dummy/config/locales/en.yml
|
|
855
847
|
- spec/dummy/config/routes.rb
|
|
856
848
|
- spec/dummy/config/secrets.yml
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<%# Link to the "First" page
|
|
2
|
-
- available local variables
|
|
3
|
-
url: url to the first page
|
|
4
|
-
current_page: a page object for the currently displayed page
|
|
5
|
-
total_pages: total number of pages
|
|
6
|
-
per_page: number of items to fetch per page
|
|
7
|
-
remote: data-remote
|
|
8
|
-
-%>
|
|
9
|
-
<span class="first">
|
|
10
|
-
<%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %>
|
|
11
|
-
</span>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<%# Link to the "Last" page
|
|
2
|
-
- available local variables
|
|
3
|
-
url: url to the last page
|
|
4
|
-
current_page: a page object for the currently displayed page
|
|
5
|
-
total_pages: total number of pages
|
|
6
|
-
per_page: number of items to fetch per page
|
|
7
|
-
remote: data-remote
|
|
8
|
-
-%>
|
|
9
|
-
<span class="last">
|
|
10
|
-
<%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {remote: remote} %>
|
|
11
|
-
</span>
|