vesr 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,37 @@
1
+ class CreateVesrTables < ActiveRecord::Migration
2
+ def change
3
+ create_table "esr_files", :force => true do |t|
4
+ t.integer "size"
5
+ t.string "content_type"
6
+ t.string "filename"
7
+ t.datetime "created_at"
8
+ t.datetime "updated_at"
9
+ t.string "remarks", :default => ""
10
+ end
11
+
12
+ create_table "esr_records", :force => true do |t|
13
+ t.string "bank_pc_id"
14
+ t.string "reference"
15
+ t.decimal "amount", :precision => 8, :scale => 2
16
+ t.string "payment_reference"
17
+ t.date "payment_date"
18
+ t.date "transaction_date"
19
+ t.date "value_date"
20
+ t.string "microfilm_nr"
21
+ t.string "reject_code"
22
+ t.string "reserved"
23
+ t.string "payment_tax"
24
+ t.datetime "created_at"
25
+ t.datetime "updated_at"
26
+ t.integer "esr_file_id"
27
+ t.integer "booking_id"
28
+ t.integer "invoice_id"
29
+ t.string "remarks", :default => ""
30
+ t.string "state", :null => false
31
+ end
32
+
33
+ add_index "esr_records", ["booking_id"], :name => "index_esr_records_on_booking_id"
34
+ add_index "esr_records", ["esr_file_id"], :name => "index_esr_records_on_esr_file_id"
35
+ add_index "esr_records", ["invoice_id"], :name => "index_esr_records_on_invoice_id"
36
+ end
37
+ end
@@ -0,0 +1,8 @@
1
+ require 'vesr'
2
+ require 'rails'
3
+
4
+ module Vesr
5
+ class Railtie < Rails::Engine
6
+ engine_name "vesr"
7
+ end
8
+ end
data/lib/vesr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vesr
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/vesr.rb CHANGED
@@ -1 +1,2 @@
1
- Dir.glob(File.join(File.dirname(__FILE__), '/vesr/*.rb')).sort.each { |lib| require lib }
1
+ require 'vesr/railtie' if defined?(::Rails::Railtie)
2
+ require 'vesr/prawn'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vesr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek
@@ -44,9 +44,11 @@ files:
44
44
  - app/views/esr_bookings/_sidebar.html.erb
45
45
  - app/views/esr_bookings/list.html.erb
46
46
  - app/views/esr_bookings/show.html.erb
47
+ - db/migrate/1_create_vesr_tables.rb
47
48
  - lib/vesr.rb
48
49
  - lib/vesr/prawn.rb
49
50
  - lib/vesr/prawn/esr_recipe.rb
51
+ - lib/vesr/railtie.rb
50
52
  - lib/vesr/version.rb
51
53
  - README.rdoc
52
54
  - LICENSE.txt