has_accounts 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,5 +3,6 @@ require 'rails'
3
3
 
4
4
  module HasAccounts
5
5
  class Railtie < Rails::Engine
6
+ engine_name "has_accounts"
6
7
  end
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module HasAccounts
2
- VERSION = "0.13.0"
2
+ VERSION = "0.14.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_accounts
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 39
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 13
8
+ - 14
9
9
  - 0
10
- version: 0.13.0
10
+ version: 0.14.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"
@@ -15,10 +15,53 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-04 00:00:00 +01:00
18
+ date: 2011-11-08 00:00:00 +01:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rails
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 3
32
+ - 1
33
+ - 0
34
+ version: 3.1.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: has_vcards
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: validates_timeliness
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ type: :development
64
+ version_requirements: *id003
22
65
  description: HasAccounts is a full featured Rails 3 gem providing models for financial accounting.
23
66
  email:
24
67
  - simon.huerlimann@cyt.ch
@@ -37,8 +80,6 @@ files:
37
80
  - app/models/bank_account.rb
38
81
  - app/models/booking.rb
39
82
  - config/locales/de.yml
40
- - lib/generators/has_accounts/migration_generator.rb
41
- - lib/generators/has_accounts/templates/migration.rb
42
83
  - lib/has_accounts.rb
43
84
  - lib/has_accounts/class_methods.rb
44
85
  - lib/has_accounts/core_ext/rounding.rb
@@ -1,26 +0,0 @@
1
- require 'rails/generators/base'
2
- require 'rails/generators/migration'
3
-
4
- module HasAccounts
5
- class MigrationGenerator < Rails::Generators::Base
6
- include Rails::Generators::Migration
7
-
8
- def self.source_root
9
- @source_root ||= File.join(File.dirname(__FILE__), 'templates')
10
- end
11
-
12
- # Implement the required interface for Rails::Generators::Migration.
13
- # taken from http://github.com/rails/rails/blob/master/activerecord/lib/generators/active_record.rb
14
- def self.next_migration_number(dirname)
15
- if ActiveRecord::Base.timestamped_migrations
16
- Time.now.utc.strftime("%Y%m%d%H%M%S")
17
- else
18
- "%.3d" % (current_migration_number(dirname) + 1)
19
- end
20
- end
21
-
22
- def create_migration_file
23
- migration_template 'migration.rb', 'db/migrate/setup_has_accounts_engine.rb'
24
- end
25
- end
26
- end
@@ -1,71 +0,0 @@
1
- class SetupHasAccountsEngine < ActiveRecord::Migration
2
- def self.up
3
- create_table "account_types" do |t|
4
- t.string "name", :limit => 100
5
- t.string "title", :limit => 100
6
- t.datetime "created_at"
7
- t.datetime "updated_at"
8
- end
9
-
10
- add_index "account_types", "name"
11
-
12
- create_table "accounts" do |t|
13
- t.string "title", :limit => 100
14
- t.integer "parent_id"
15
- t.integer "account_type_id"
16
- t.integer "number"
17
- t.string "code"
18
- t.string "type"
19
- t.integer "holder_id"
20
- t.string "holder_type"
21
- t.integer "bank_id"
22
- t.integer "esr_id"
23
- t.string "pc_id"
24
- t.datetime "created_at"
25
- t.datetime "updated_at"
26
- t.string "iban"
27
- end
28
-
29
- add_index "accounts", ["account_type_id"], :name => "index_accounts_on_account_type_id"
30
- add_index "accounts", ["bank_id"], :name => "index_accounts_on_bank_id"
31
- add_index "accounts", ["code"], :name => "index_accounts_on_code"
32
- add_index "accounts", ["holder_id", "holder_type"], :name => "index_accounts_on_holder_id_and_holder_type"
33
- add_index "accounts", ["type"], :name => "index_accounts_on_type"
34
-
35
- create_table "banks" do |t|
36
- t.integer "vcard_id"
37
- t.string "swift"
38
- t.string "clearing"
39
- t.datetime "created_at"
40
- t.datetime "updated_at"
41
- end
42
-
43
- add_index "banks", :vcard_id
44
-
45
- create_table "bookings" do |t|
46
- t.string "title", :limit => 100
47
- t.decimal "amount"
48
- t.integer "credit_account_id"
49
- t.integer "debit_account_id"
50
- t.date "value_date"
51
- t.text "comments", :limit => 1000, :default => ""
52
- t.string "scan"
53
- t.string "debit_currency", :default => "CHF"
54
- t.string "credit_currency", :default => "CHF"
55
- t.float "exchange_rate", :default => 1.0
56
- t.datetime "created_at"
57
- t.datetime "updated_at"
58
- t.integer "reference_id"
59
- t.string "reference_type"
60
- end
61
-
62
- add_index "bookings", ["credit_account_id"], :name => "index_bookings_on_credit_account_id"
63
- add_index "bookings", ["debit_account_id"], :name => "index_bookings_on_debit_account_id"
64
- add_index "bookings", ["reference_id", "reference_type"], :name => "index_bookings_on_reference_id_and_reference_type"
65
- add_index "bookings", ["value_date"], :name => "index_bookings_on_value_date"
66
- end
67
-
68
- def self.down
69
- drop_table :account_types, :accounts, :banks, :bookings
70
- end
71
- end