insulin 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- insulin (0.1.7)
12
+ insulin (0.1.9)
13
13
  bson_ext
14
14
  ffi
15
15
  mongo
data/insulin.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency "mongo"
22
22
  gem.add_dependency "bson_ext"
23
23
  gem.add_dependency "ffi"
24
- gem.add_dependency "prawn", "= 1.0.0.rc1"
24
+ gem.add_dependency "prawn" #, "= master"
25
25
  gem.add_dependency "pony"
26
26
 
27
27
  gem.add_development_dependency "rspec", "~> 2.6"
data/lib/insulin/pdf.rb CHANGED
@@ -75,15 +75,18 @@ module Insulin
75
75
  @pdf.text "\n"
76
76
 
77
77
  @period.each do |d|
78
- @grid = []
79
- @grid << [{
80
- :content => "%s (%s)" % [
78
+ @pdf.formatted_text [{
79
+ :text => "%s (%s)" % [
81
80
  d.date,
82
81
  d.day
83
82
  ],
84
- :colspan => 5
83
+ :color => "AA0000",
84
+ :size => 10
85
85
  }]
86
+ @pdf.text "\n"
86
87
 
88
+ @grid = []
89
+ @pdf.font_size 8
87
90
  d["all"].each do |e|
88
91
  if e.simple?
89
92
  @grid << [
@@ -112,8 +115,7 @@ module Insulin
112
115
  :cell_style => {
113
116
  :border_color => "333333",
114
117
  :border_width => 1
115
- },
116
- :header => :true
118
+ }
117
119
  @pdf.text "\n"
118
120
  @pdf.text "\n"
119
121
  @pdf.text "\n"
@@ -1,5 +1,5 @@
1
1
  module Insulin
2
2
 
3
3
  # Current version
4
- VERSION = "0.1.9"
4
+ VERSION = "0.1.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insulin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -80,17 +80,17 @@ dependencies:
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - '='
83
+ - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
- version: 1.0.0.rc1
85
+ version: '0'
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - '='
91
+ - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
- version: 1.0.0.rc1
93
+ version: '0'
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: pony
96
96
  requirement: !ruby/object:Gem::Requirement