magesa 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/lib/magesa.rb CHANGED
@@ -1,3 +1,8 @@
1
1
  # set up an environment variable to tell app where to find wkhtmlpdf binary
2
- ENV['MAGESA_PATH'] = [ ENV['GEM_PATH'], 'magesa-0.1.0', 'bin', 'wkhtmltopdf-amd64' ].join("/")
3
- # TODO: make the version dynamic by reading VERSION
2
+ version = File.exist?('VERSION') ? File.read('VERSION') : "0.1.2"
3
+
4
+ gem_path = ( ENV['GEM_PATH'].blank? ?
5
+ ENV['PATH'].split(':').first.sub(/\/bin/,"/gems") :
6
+ ENV['GEM_PATH']
7
+ )
8
+ ENV['MAGESA_PATH'] = [ gem_path, "magesa-#{version}", 'bin', 'wkhtmltopdf-amd64' ].join("/")
data/magesa.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "magesa"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Daudi Amani"]
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/magesa.rb",
30
30
  "magesa.gemspec",
31
31
  "pkg/magesa-0.1.0.gem",
32
+ "pkg/magesa-0.1.1.gem",
32
33
  "test/helper.rb",
33
34
  "test/test_magesa.rb"
34
35
  ]
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magesa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &69886880 !ruby/object:Gem::Requirement
16
+ requirement: &71773320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *69886880
24
+ version_requirements: *71773320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &69886500 !ruby/object:Gem::Requirement
27
+ requirement: &71772750 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *69886500
35
+ version_requirements: *71772750
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &69886070 !ruby/object:Gem::Requirement
38
+ requirement: &71772010 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *69886070
46
+ version_requirements: *71772010
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &69885570 !ruby/object:Gem::Requirement
49
+ requirement: &71789700 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *69885570
57
+ version_requirements: *71789700
58
58
  description: bin/wkhtmltopdf-amd64 accessible in heroku as a gem
59
59
  email: dsaronin@gmail.com
60
60
  executables:
@@ -75,6 +75,7 @@ files:
75
75
  - lib/magesa.rb
76
76
  - magesa.gemspec
77
77
  - pkg/magesa-0.1.0.gem
78
+ - pkg/magesa-0.1.1.gem
78
79
  - test/helper.rb
79
80
  - test/test_magesa.rb
80
81
  homepage: http://github.com/dsaronin/magesa
@@ -92,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
93
  version: '0'
93
94
  segments:
94
95
  - 0
95
- hash: -880003185
96
+ hash: 1014490579
96
97
  required_rubygems_version: !ruby/object:Gem::Requirement
97
98
  none: false
98
99
  requirements: