kuppayam 0.1.31 → 0.1.32

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
- SHA1:
3
- metadata.gz: cbe766f7291ba4a2f0af39c7049fc578f7371806
4
- data.tar.gz: 6b1781e3efc6351968b04c793ea401669a36d3fc
2
+ SHA256:
3
+ metadata.gz: 305b9d0ae821959eb9bd09f24bf4c6439ce1ed809e500d923f3dec1b434e64e6
4
+ data.tar.gz: 2437546186ff7cc6f9111449ff9816b81a51b8b542d8aae1792531854b39dcad
5
5
  SHA512:
6
- metadata.gz: 0a747d97826f750374c1c212f2e72335ebab73230e8e7cc2d4e47eedfe5876716362198a3184e3142c252565f38a9db30072ffc459ac53b01583f1e7aecc84b0
7
- data.tar.gz: 215aa34acd72a2078a454ad71d2436382a20cd6b559bda33060f6a55d63dc547c9c689ac17067cf223184908b02501a45450764635940c7156753deb20244892
6
+ metadata.gz: 51f772e085bfe106d801610596aec7fbc70b3f178e8c509c7a5c3dd15d95ba3de0af3bef17df40ea12cae5f1a34b8b8fa66ae4c63ba1c01ac80abedd80ea8415
7
+ data.tar.gz: 29a06a2eb25fa8d17e7998ec4890821d316d7ad428001e45b762b6081797f8fcb35b0058383a727b77a02f45a6e38a6b1d78fbcab7e45d0abedb61fa50774597
@@ -4,19 +4,20 @@ class CoverImageUploader < ImageUploader
4
4
  "uploads/cover_images/#{model.id}"
5
5
  end
6
6
 
7
- version :large do
8
- process :resize_to_fill => [750, 368]
7
+ version :large do
8
+ process :resize_to_fill => [800, 400]
9
9
  end
10
10
 
11
- version :medium do
12
- process :resize_to_fill => [550, 294]
11
+ version :small do
12
+ process :resize_to_fill => [300, 150]
13
13
  end
14
14
 
15
- version :small do
16
- process :resize_to_fill => [300, 160]
15
+ version :large_square do
16
+ process :resize_to_fill => [800, 800]
17
17
  end
18
18
 
19
- version :tiny do
20
- process :resize_to_fill => [100, 54]
19
+ version :small_square do
20
+ process :resize_to_fill => [300, 300]
21
21
  end
22
+
22
23
  end
@@ -5,18 +5,19 @@ class GalleryImageUploader < ImageUploader
5
5
  end
6
6
 
7
7
  version :large do
8
- process :resize_to_fill => [500, 500]
9
- end
10
-
11
- version :medium do
12
- process :resize_to_fill => [200, 200]
8
+ process :resize_to_fill => [800, 400]
13
9
  end
14
10
 
15
11
  version :small do
16
- process :resize_to_fill => [140, 140]
12
+ process :resize_to_fill => [140, 70]
13
+ end
14
+
15
+ version :large_square do
16
+ process :resize_to_fill => [800, 800]
17
17
  end
18
18
 
19
- version :tiny do
20
- process :resize_to_fill => [80, 80]
19
+ version :small_square do
20
+ process :resize_to_fill => [140, 140]
21
21
  end
22
+
22
23
  end
@@ -15,7 +15,7 @@
15
15
  <div class="col-md-4" style="margin-top:10px;">
16
16
  <%= link_to @image.image.versions[k].url, target: "_blank" do %>
17
17
  <%= display_image(@image, "image.#{k}.url", width: "auto", height: "60px", style: "display:block; margin-left:auto; margin-right:auto;") %>
18
- <div style="text-align: center;color: #4b4b4b;font-size:12px;padding:5px;"><%= k.to_s.titleize %></div>
18
+ <div style="text-align: left;color: #4b4b4b;font-size:12px;padding:5px;"><%= k.to_s.titleize %></div>
19
19
  <% end %>
20
20
  </div>
21
21
  <% end %>
@@ -5,9 +5,9 @@
5
5
  <meta name="description" content="Admin Module" />
6
6
  <meta name="author" content="Right IT Solutions" />
7
7
 
8
- <%#= meta_tags %>
9
-
8
+ <link rel="shortcut icon" href="assets/favicon.png" type="image/x-icon">
10
9
  <title><%= title -%></title>
10
+ <%#= meta_tags %>
11
11
 
12
12
  <!-- http://www.favicon-generator.org/ -->
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.1.31'
2
+ VERSION = '0.1.32'
3
3
  end
@@ -0,0 +1,47 @@
1
+ require 'csv'
2
+ require 'open-uri'
3
+ require 'time'
4
+
5
+ namespace 'import' do
6
+ namespace 'data' do
7
+
8
+ # # Import Cover Images
9
+ # ["Category", "ClassifiedAttribute"].each do |imageable_cls_name|
10
+ # name = imageable_cls_name.underscore.pluralize
11
+ # desc "Import Cover Image for #{name}"
12
+ # task name => :environment do
13
+ # verbose = true
14
+ # verbose = false if ["false", "f","0","no","n"].include?(ENV["verbose"].to_s.downcase.strip)
15
+
16
+ # path = Rails.root.join('db', 'images', "cover_images", name)
17
+ # imageable_cls_name.constantize.import_cover_image_recursively(path, true, verbose)
18
+ # puts "Importing Completed".green if verbose
19
+ # end
20
+ # end
21
+
22
+ desc "Import all images"
23
+ task 'images' => :environment do
24
+ verbose = true
25
+ verbose = false if ["false", "f","0","no","n"].include?(ENV["verbose"].to_s.downcase.strip)
26
+
27
+ path = Rails.root.join('db', 'images', "#{cls_name.constantize.table_name}")
28
+ cls_name.constantize.destroy_all if destroy_all
29
+ cls_name.constantize.import_images_recursively(path, true, verbose)
30
+ puts "Importing Completed".green if verbose
31
+ end
32
+
33
+ namespace 'dummy' do
34
+ desc "Import all dummy images"
35
+ task 'images' => :environment do
36
+ verbose = true
37
+ verbose = false if ["false", "f","0","no","n"].include?(ENV["verbose"].to_s.downcase.strip)
38
+
39
+ path = Rails.root.join('db', 'images', "#{cls_name.constantize.table_name}")
40
+ cls_name.constantize.destroy_all if destroy_all
41
+ cls_name.constantize.import_images_recursively(path, true, verbose)
42
+ puts "Importing Completed".green if verbose
43
+ end
44
+ end
45
+ end
46
+ end
47
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuppayam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-24 00:00:00.000000000 Z
11
+ date: 2018-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -569,6 +569,7 @@ files:
569
569
  - lib/kuppayam/action_view/theme_helper.rb
570
570
  - lib/kuppayam/engine.rb
571
571
  - lib/kuppayam/version.rb
572
+ - lib/tasks/import_images.rake
572
573
  - lib/tasks/template.rake
573
574
  - lib/tasks/test_import.rake
574
575
  - vendor/assets/fonts/elusive/css/animation.css
@@ -1591,7 +1592,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1591
1592
  version: '0'
1592
1593
  requirements: []
1593
1594
  rubyforge_project:
1594
- rubygems_version: 2.6.11
1595
+ rubygems_version: 2.7.3
1595
1596
  signing_key:
1596
1597
  specification_version: 4
1597
1598
  summary: Kuppayam is a basic UI to starter kit