tawork 0.0.49 → 0.0.50

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 18499cf024a4ff10196770e58399583c5017f96e
4
- data.tar.gz: 2f58b9ab0013649d5875db055a76c1ad533d9447
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MmU2ODFkZWE1NjZlYWJkYThkZWViZjRlNWE0M2JlZWMxMWU4Mjc2MA==
5
+ data.tar.gz: !binary |-
6
+ OGI4ZWE1YzFiYjQ2MDI0Y2JkYTkxYjgzZWZhY2YyMjY0M2ZkNzgxZg==
5
7
  SHA512:
6
- metadata.gz: 717261db843b85159a806c9b279ff3c33702b098e1aaee5a4391685111cc4f865b5a2b4d76ccfd7b0d9dfb191e36fd2b44e55a6a252fea502cc91418a4f697f1
7
- data.tar.gz: 466a39e8063cb91e766e00ea6034e12b83bcebff4d7bb55816e9ba70100d7ed4d5caa144315e8e1a7f73e6fdaba296e79034f2e7127b6792c29d3d9232c176df
8
+ metadata.gz: !binary |-
9
+ MmRmM2QxN2E0ZTY2MTc0MGUyNDY1MDFkYjk5N2Q3MTQ2MGEyNGM3YzNjYWRh
10
+ ZjIwOTZmNjdiYTM3ZDI2ZWY3NjY1OGE3ZjczMGNkZWVlNDQ5ZTEyOTFkZWYw
11
+ ODY1ZDUzYzI5NDM5MjU2MGMwYmIxMDkxZTUyMWQ0N2VjYWUwODQ=
12
+ data.tar.gz: !binary |-
13
+ MmRiMTBjYjg2MWU5Y2IwNTU5N2M2NTk1MWIyMDY0N2QwMTkxMjFjMjI1ZDJk
14
+ ZDA3MDdkYmU5OTZlNmMzNmQ1MGZmZTJkZGFhZGI5YWQ2ODlmMDcyYTg2NmRh
15
+ ZDVmZTY2MGI2YTdkODE4ZGQ0NmJlOTY5ODhiMzY4YjEzZDQ1YWQ=
data/Gemfile CHANGED
@@ -36,6 +36,7 @@ gem 'RedCloth'
36
36
  gem 'github-markdown'
37
37
  gem 'redcarpet'
38
38
  gem 'kramdown'
39
+ gem 'pdfkit'
39
40
 
40
41
  # assets
41
42
  gem 'tinymce-rails', git: "git@github.com:spohlenz/tinymce-rails.git", branch: "tinymce-4"
@@ -238,6 +238,7 @@ GEM
238
238
  omniauth (~> 1.0)
239
239
  rack-openid (~> 1.3.1)
240
240
  orm_adapter (0.5.0)
241
+ pdfkit (0.5.2)
241
242
  plupload-rails (1.2.1)
242
243
  rails (>= 3.1)
243
244
  posix-spawn (0.3.8)
@@ -403,6 +404,7 @@ DEPENDENCIES
403
404
  mysql2
404
405
  omniauth-google-oauth2
405
406
  omniauth-openid
407
+ pdfkit
406
408
  plupload-rails
407
409
  pry-rails
408
410
  public_activity
@@ -423,3 +425,6 @@ DEPENDENCIES
423
425
  tinymce-rails!
424
426
  uglifier (>= 1.3.0)
425
427
  web-console (~> 2.0)
428
+
429
+ BUNDLED WITH
430
+ 1.11.2
@@ -25,6 +25,10 @@ class Wiki::PagesController < ApplicationController
25
25
  @space = @page.root
26
26
  @subtree = @page.subtree.group_by(&:parent_id)
27
27
  @last_updated = @page.last_updated
28
+
29
+ if params[:layout] == "minimal"
30
+ render layout: "minimal"
31
+ end
28
32
  end
29
33
 
30
34
  def history
@@ -28,5 +28,12 @@ module Tawork
28
28
  # config.i18n.default_locale = :de
29
29
  config.assets.paths << Rails.root.join("app", "assets", "fonts")
30
30
  config.assets.precompile += %w( .svg .eot .woff .ttf )
31
+
32
+
33
+ require 'pdfkit'
34
+ use PDFKit::Middleware
35
+ PDFKit.configure do |conf|
36
+ conf.wkhtmltopdf = '/usr/local/bin/wkhtmltopdf'
37
+ end
31
38
  end
32
39
  end
@@ -1,3 +1,3 @@
1
1
  module Tawork
2
- VERSION = '0.0.49'
2
+ VERSION = '0.0.50'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tawork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.49
4
+ version: 0.0.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adnan Ali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-06 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -31,8 +31,8 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - ".DS_Store"
35
- - ".gitignore"
34
+ - .DS_Store
35
+ - .gitignore
36
36
  - Gemfile
37
37
  - Gemfile.lock
38
38
  - MIT-LICENSE
@@ -318,12 +318,12 @@ require_paths:
318
318
  - lib
319
319
  required_ruby_version: !ruby/object:Gem::Requirement
320
320
  requirements:
321
- - - ">="
321
+ - - ! '>='
322
322
  - !ruby/object:Gem::Version
323
323
  version: '0'
324
324
  required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  requirements:
326
- - - ">="
326
+ - - ! '>='
327
327
  - !ruby/object:Gem::Version
328
328
  version: '0'
329
329
  requirements: []
@@ -333,3 +333,4 @@ signing_key:
333
333
  specification_version: 4
334
334
  summary: Wiki and Tickets
335
335
  test_files: []
336
+ has_rdoc: