vesr 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vesr/prawn/esr_recipe.rb +2 -1
- data/lib/vesr/version.rb +3 -0
- metadata +21 -110
- data/.document +0 -5
- data/Gemfile +0 -11
- data/Gemfile.lock +0 -106
- data/Rakefile +0 -53
- data/VERSION +0 -1
- data/test/helper.rb +0 -18
- data/test/test_vesr.rb +0 -7
- data/vesr.gemspec +0 -79
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'prawn/measurement_extensions'
|
1
2
|
require 'action_view/helpers/translation_helper'
|
2
3
|
require 'action_view/helpers'
|
3
4
|
|
@@ -94,7 +95,7 @@ module Prawn
|
|
94
95
|
end
|
95
96
|
|
96
97
|
font_size 10 do
|
97
|
-
draw_text esr9_reference(invoice, esr_account), :at => [cm2pt(12.3), cm2pt(5.9)], :character_spacing =>
|
98
|
+
draw_text esr9_reference(invoice, esr_account), :at => [cm2pt(12.3), cm2pt(5.9)], :character_spacing => 1.1
|
98
99
|
end
|
99
100
|
|
100
101
|
bounding_box [cm2pt(12.1), cm2pt(4.5)], :width => cm2pt(7.5) do
|
data/lib/vesr/version.rb
ADDED
metadata
CHANGED
@@ -1,127 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vesr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Simecek
|
14
|
+
- "Simon H\xC3\xBCrlimann (CyT)"
|
14
15
|
autorequire:
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2011-10-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
hash: 3
|
27
|
-
segments:
|
28
|
-
- 0
|
29
|
-
version: "0"
|
30
|
-
version_requirements: *id001
|
31
|
-
name: prawn
|
32
|
-
prerelease: false
|
33
|
-
type: :runtime
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
hash: 3
|
41
|
-
segments:
|
42
|
-
- 0
|
43
|
-
version: "0"
|
44
|
-
version_requirements: *id002
|
45
|
-
name: rails
|
46
|
-
prerelease: false
|
47
|
-
type: :runtime
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
hash: 3
|
55
|
-
segments:
|
56
|
-
- 0
|
57
|
-
version: "0"
|
58
|
-
version_requirements: *id003
|
59
|
-
name: shoulda
|
60
|
-
prerelease: false
|
61
|
-
type: :development
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
|
-
requirements:
|
66
|
-
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
hash: 23
|
69
|
-
segments:
|
70
|
-
- 1
|
71
|
-
- 0
|
72
|
-
- 0
|
73
|
-
version: 1.0.0
|
74
|
-
version_requirements: *id004
|
75
|
-
name: bundler
|
76
|
-
prerelease: false
|
77
|
-
type: :development
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
|
-
requirements:
|
82
|
-
- - ~>
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
hash: 7
|
85
|
-
segments:
|
86
|
-
- 1
|
87
|
-
- 6
|
88
|
-
- 4
|
89
|
-
version: 1.6.4
|
90
|
-
version_requirements: *id005
|
91
|
-
name: jeweler
|
92
|
-
prerelease: false
|
93
|
-
type: :development
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
|
-
requirements:
|
98
|
-
- - ">="
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
hash: 3
|
101
|
-
segments:
|
102
|
-
- 0
|
103
|
-
version: "0"
|
104
|
-
version_requirements: *id006
|
105
|
-
name: rcov
|
106
|
-
prerelease: false
|
107
|
-
type: :development
|
108
|
-
description: VESR
|
109
|
-
email: roman.simecek@cyt.ch
|
19
|
+
date: 2011-10-11 00:00:00 +02:00
|
20
|
+
default_executable:
|
21
|
+
dependencies: []
|
22
|
+
|
23
|
+
description: VESR provides support for ESR number calculations and gives ready to use Rails components.
|
24
|
+
email:
|
25
|
+
- roman.simecek@cyt.ch
|
26
|
+
- simon.huerlimann@cyt.ch
|
110
27
|
executables: []
|
111
28
|
|
112
29
|
extensions: []
|
113
30
|
|
114
31
|
extra_rdoc_files:
|
115
|
-
- LICENSE.txt
|
116
32
|
- README.rdoc
|
117
|
-
files:
|
118
|
-
- .document
|
119
|
-
- Gemfile
|
120
|
-
- Gemfile.lock
|
121
33
|
- LICENSE.txt
|
122
|
-
|
123
|
-
- Rakefile
|
124
|
-
- VERSION
|
34
|
+
files:
|
125
35
|
- app/controllers/esr_bookings_controller.rb
|
126
36
|
- app/models/esr_file.rb
|
127
37
|
- app/models/esr_record.rb
|
@@ -137,10 +47,11 @@ files:
|
|
137
47
|
- lib/vesr.rb
|
138
48
|
- lib/vesr/prawn.rb
|
139
49
|
- lib/vesr/prawn/esr_recipe.rb
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
|
50
|
+
- lib/vesr/version.rb
|
51
|
+
- README.rdoc
|
52
|
+
- LICENSE.txt
|
53
|
+
has_rdoc: true
|
54
|
+
homepage: https://github.com/raskhadafi/vesr
|
144
55
|
licenses:
|
145
56
|
- MIT
|
146
57
|
post_install_message:
|
@@ -169,9 +80,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
80
|
requirements: []
|
170
81
|
|
171
82
|
rubyforge_project:
|
172
|
-
rubygems_version: 1.
|
83
|
+
rubygems_version: 1.3.7
|
173
84
|
signing_key:
|
174
85
|
specification_version: 3
|
175
|
-
summary: VESR
|
86
|
+
summary: VESR invoice support library.
|
176
87
|
test_files: []
|
177
88
|
|
data/.document
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
Ascii85 (1.0.1)
|
5
|
-
actionmailer (3.1.0)
|
6
|
-
actionpack (= 3.1.0)
|
7
|
-
mail (~> 2.3.0)
|
8
|
-
actionpack (3.1.0)
|
9
|
-
activemodel (= 3.1.0)
|
10
|
-
activesupport (= 3.1.0)
|
11
|
-
builder (~> 3.0.0)
|
12
|
-
erubis (~> 2.7.0)
|
13
|
-
i18n (~> 0.6)
|
14
|
-
rack (~> 1.3.2)
|
15
|
-
rack-cache (~> 1.0.3)
|
16
|
-
rack-mount (~> 0.8.2)
|
17
|
-
rack-test (~> 0.6.1)
|
18
|
-
sprockets (~> 2.0.0)
|
19
|
-
activemodel (3.1.0)
|
20
|
-
activesupport (= 3.1.0)
|
21
|
-
bcrypt-ruby (~> 3.0.0)
|
22
|
-
builder (~> 3.0.0)
|
23
|
-
i18n (~> 0.6)
|
24
|
-
activerecord (3.1.0)
|
25
|
-
activemodel (= 3.1.0)
|
26
|
-
activesupport (= 3.1.0)
|
27
|
-
arel (~> 2.2.1)
|
28
|
-
tzinfo (~> 0.3.29)
|
29
|
-
activeresource (3.1.0)
|
30
|
-
activemodel (= 3.1.0)
|
31
|
-
activesupport (= 3.1.0)
|
32
|
-
activesupport (3.1.0)
|
33
|
-
multi_json (~> 1.0)
|
34
|
-
arel (2.2.1)
|
35
|
-
bcrypt-ruby (3.0.1)
|
36
|
-
builder (3.0.0)
|
37
|
-
erubis (2.7.0)
|
38
|
-
git (1.2.5)
|
39
|
-
hike (1.2.1)
|
40
|
-
i18n (0.6.0)
|
41
|
-
jeweler (1.6.4)
|
42
|
-
bundler (~> 1.0)
|
43
|
-
git (>= 1.2.5)
|
44
|
-
rake
|
45
|
-
mail (2.3.0)
|
46
|
-
i18n (>= 0.4.0)
|
47
|
-
mime-types (~> 1.16)
|
48
|
-
treetop (~> 1.4.8)
|
49
|
-
mime-types (1.16)
|
50
|
-
multi_json (1.0.3)
|
51
|
-
pdf-reader (0.10.0)
|
52
|
-
Ascii85 (~> 1.0.0)
|
53
|
-
polyglot (0.3.2)
|
54
|
-
prawn (0.12.0)
|
55
|
-
pdf-reader (>= 0.9.0)
|
56
|
-
ttfunk (~> 1.0.2)
|
57
|
-
rack (1.3.4)
|
58
|
-
rack-cache (1.0.3)
|
59
|
-
rack (>= 0.4)
|
60
|
-
rack-mount (0.8.3)
|
61
|
-
rack (>= 1.0.0)
|
62
|
-
rack-ssl (1.3.2)
|
63
|
-
rack
|
64
|
-
rack-test (0.6.1)
|
65
|
-
rack (>= 1.0)
|
66
|
-
rails (3.1.0)
|
67
|
-
actionmailer (= 3.1.0)
|
68
|
-
actionpack (= 3.1.0)
|
69
|
-
activerecord (= 3.1.0)
|
70
|
-
activeresource (= 3.1.0)
|
71
|
-
activesupport (= 3.1.0)
|
72
|
-
bundler (~> 1.0)
|
73
|
-
railties (= 3.1.0)
|
74
|
-
railties (3.1.0)
|
75
|
-
actionpack (= 3.1.0)
|
76
|
-
activesupport (= 3.1.0)
|
77
|
-
rack-ssl (~> 1.3.2)
|
78
|
-
rake (>= 0.8.7)
|
79
|
-
rdoc (~> 3.4)
|
80
|
-
thor (~> 0.14.6)
|
81
|
-
rake (0.9.2)
|
82
|
-
rcov (0.9.10)
|
83
|
-
rdoc (3.9.4)
|
84
|
-
shoulda (2.11.3)
|
85
|
-
sprockets (2.0.2)
|
86
|
-
hike (~> 1.2)
|
87
|
-
rack (~> 1.0)
|
88
|
-
tilt (!= 1.3.0, ~> 1.1)
|
89
|
-
thor (0.14.6)
|
90
|
-
tilt (1.3.3)
|
91
|
-
treetop (1.4.10)
|
92
|
-
polyglot
|
93
|
-
polyglot (>= 0.3.1)
|
94
|
-
ttfunk (1.0.2)
|
95
|
-
tzinfo (0.3.30)
|
96
|
-
|
97
|
-
PLATFORMS
|
98
|
-
ruby
|
99
|
-
|
100
|
-
DEPENDENCIES
|
101
|
-
bundler (~> 1.0.0)
|
102
|
-
jeweler (~> 1.6.4)
|
103
|
-
prawn
|
104
|
-
rails
|
105
|
-
rcov
|
106
|
-
shoulda
|
data/Rakefile
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler'
|
5
|
-
begin
|
6
|
-
Bundler.setup(:default, :development)
|
7
|
-
rescue Bundler::BundlerError => e
|
8
|
-
$stderr.puts e.message
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
-
exit e.status_code
|
11
|
-
end
|
12
|
-
require 'rake'
|
13
|
-
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gem|
|
16
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
-
gem.name = "vesr"
|
18
|
-
gem.homepage = "http://github.com/raskhadafi/vesr"
|
19
|
-
gem.license = "MIT"
|
20
|
-
gem.summary = "VESR"
|
21
|
-
gem.description = "VESR"
|
22
|
-
gem.email = "roman.simecek@cyt.ch"
|
23
|
-
gem.authors = ["Roman Simecek"]
|
24
|
-
# dependencies defined in Gemfile
|
25
|
-
end
|
26
|
-
Jeweler::RubygemsDotOrgTasks.new
|
27
|
-
|
28
|
-
require 'rake/testtask'
|
29
|
-
Rake::TestTask.new(:test) do |test|
|
30
|
-
test.libs << 'lib' << 'test'
|
31
|
-
test.pattern = 'test/**/test_*.rb'
|
32
|
-
test.verbose = true
|
33
|
-
end
|
34
|
-
|
35
|
-
require 'rcov/rcovtask'
|
36
|
-
Rcov::RcovTask.new do |test|
|
37
|
-
test.libs << 'test'
|
38
|
-
test.pattern = 'test/**/test_*.rb'
|
39
|
-
test.verbose = true
|
40
|
-
test.rcov_opts << '--exclude "gems/*"'
|
41
|
-
end
|
42
|
-
|
43
|
-
task :default => :test
|
44
|
-
|
45
|
-
require 'rake/rdoctask'
|
46
|
-
Rake::RDocTask.new do |rdoc|
|
47
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
|
-
|
49
|
-
rdoc.rdoc_dir = 'rdoc'
|
50
|
-
rdoc.title = "vesr #{version}"
|
51
|
-
rdoc.rdoc_files.include('README*')
|
52
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
|
-
end
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.2
|
data/test/helper.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'test/unit'
|
11
|
-
require 'shoulda'
|
12
|
-
|
13
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
-
require 'vesr'
|
16
|
-
|
17
|
-
class Test::Unit::TestCase
|
18
|
-
end
|
data/test/test_vesr.rb
DELETED
data/vesr.gemspec
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{vesr}
|
8
|
-
s.version = "0.1.2"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [%q{Roman Simecek}]
|
12
|
-
s.date = %q{2011-10-10}
|
13
|
-
s.description = %q{VESR}
|
14
|
-
s.email = %q{roman.simecek@cyt.ch}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
"Gemfile",
|
22
|
-
"Gemfile.lock",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"app/controllers/esr_bookings_controller.rb",
|
28
|
-
"app/models/esr_file.rb",
|
29
|
-
"app/models/esr_record.rb",
|
30
|
-
"app/views/esr_bookings/_form.html.erb",
|
31
|
-
"app/views/esr_bookings/_item.html.erb",
|
32
|
-
"app/views/esr_bookings/_list_footer.html.erb",
|
33
|
-
"app/views/esr_bookings/_list_header.html.erb",
|
34
|
-
"app/views/esr_bookings/_list_records.html.erb",
|
35
|
-
"app/views/esr_bookings/_navigation_section.html.erb",
|
36
|
-
"app/views/esr_bookings/_sidebar.html.erb",
|
37
|
-
"app/views/esr_bookings/list.html.erb",
|
38
|
-
"app/views/esr_bookings/show.html.erb",
|
39
|
-
"lib/vesr.rb",
|
40
|
-
"lib/vesr/prawn.rb",
|
41
|
-
"lib/vesr/prawn/esr_recipe.rb",
|
42
|
-
"test/helper.rb",
|
43
|
-
"test/test_vesr.rb",
|
44
|
-
"vesr.gemspec"
|
45
|
-
]
|
46
|
-
s.homepage = %q{http://github.com/raskhadafi/vesr}
|
47
|
-
s.licenses = [%q{MIT}]
|
48
|
-
s.require_paths = [%q{lib}]
|
49
|
-
s.rubygems_version = %q{1.8.8}
|
50
|
-
s.summary = %q{VESR}
|
51
|
-
|
52
|
-
if s.respond_to? :specification_version then
|
53
|
-
s.specification_version = 3
|
54
|
-
|
55
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
56
|
-
s.add_runtime_dependency(%q<prawn>, [">= 0"])
|
57
|
-
s.add_runtime_dependency(%q<rails>, [">= 0"])
|
58
|
-
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
59
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
60
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
61
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
62
|
-
else
|
63
|
-
s.add_dependency(%q<prawn>, [">= 0"])
|
64
|
-
s.add_dependency(%q<rails>, [">= 0"])
|
65
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
66
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
67
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
68
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
69
|
-
end
|
70
|
-
else
|
71
|
-
s.add_dependency(%q<prawn>, [">= 0"])
|
72
|
-
s.add_dependency(%q<rails>, [">= 0"])
|
73
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
74
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
75
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
76
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|