brandeins 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/brandeins/setup.rb +4 -17
- data/lib/brandeins/version.rb +1 -1
- data/lib/brandeins.rb +3 -7
- metadata +3 -4
- data/lib/brandeins/helper.rb +0 -9
data/lib/brandeins/setup.rb
CHANGED
@@ -2,9 +2,9 @@ class BrandEinsSetup
|
|
2
2
|
def initialize
|
3
3
|
puts 'Checking requirements for your system'
|
4
4
|
if pdftk?
|
5
|
-
puts 'It seems you have pdftk installed on your system.'
|
5
|
+
puts "\n" + 'It seems you have pdftk installed on your system.'
|
6
6
|
else
|
7
|
-
puts 'It seems you are missing pdfk on your system. You are ready to go!'
|
7
|
+
puts "\n" + 'It seems you are missing pdfk on your system. You are ready to go!'
|
8
8
|
puts pdfk_install_instructions
|
9
9
|
end
|
10
10
|
end
|
@@ -14,19 +14,6 @@ class BrandEinsSetup
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def pdftk?
|
17
|
-
cmd?
|
17
|
+
if system(cmd).nil? return false else return true end
|
18
18
|
end
|
19
|
-
|
20
|
-
private
|
21
|
-
def cmd?(cmd, hint)
|
22
|
-
f = IO.popen cmd
|
23
|
-
f.readlines.each do |line|
|
24
|
-
if line.include? hint
|
25
|
-
return true
|
26
|
-
end
|
27
|
-
end
|
28
|
-
return false
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
BrandEinsSetup.new
|
19
|
+
end
|
data/lib/brandeins/version.rb
CHANGED
data/lib/brandeins.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
%w(
|
2
2
|
brandeins/version
|
3
|
-
brandeins/
|
3
|
+
brandeins/setup
|
4
4
|
nokogiri
|
5
5
|
open-uri
|
6
6
|
uri
|
@@ -42,13 +42,9 @@ module BrandEins
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
desc 'setup', 'Checks if all requirements
|
45
|
+
desc 'setup', 'Checks if all requirements for using brandeins gem are met'
|
46
46
|
def setup
|
47
|
-
|
48
|
-
require 'brandeins/setup'
|
49
|
-
else
|
50
|
-
puts 'Unknown/unsupported operating system. Please contact the gem author.'
|
51
|
-
end
|
47
|
+
BrandEinsSetup.new
|
52
48
|
end
|
53
49
|
end
|
54
50
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brandeins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -77,7 +77,6 @@ files:
|
|
77
77
|
- bin/brandeins
|
78
78
|
- brandeins.gemspec
|
79
79
|
- lib/brandeins.rb
|
80
|
-
- lib/brandeins/helper.rb
|
81
80
|
- lib/brandeins/setup.rb
|
82
81
|
- lib/brandeins/version.rb
|
83
82
|
- test/brandeins_test.rb
|
@@ -103,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
102
|
version: '0'
|
104
103
|
segments:
|
105
104
|
- 0
|
106
|
-
hash: -
|
105
|
+
hash: -2400763728107098120
|
107
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
107
|
none: false
|
109
108
|
requirements:
|
@@ -112,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
111
|
version: '0'
|
113
112
|
segments:
|
114
113
|
- 0
|
115
|
-
hash: -
|
114
|
+
hash: -2400763728107098120
|
116
115
|
requirements: []
|
117
116
|
rubyforge_project:
|
118
117
|
rubygems_version: 1.8.24
|