Skip to content

Commit

Permalink
Start work on renaming project from Lodo to Dodo
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Liljencrantz committed Oct 20, 2010
1 parent d0c2093 commit 0169728
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Lodo
Lodo is a web based double entry accounting application, built on the [Ruby on Rails](http://rubyonrails.org/) framework.
# Dodo
Dodo is a web based double entry accounting application, built on the [Ruby on Rails](http://rubyonrails.org/) framework.
It is open source, released under the MIT license.

## Project status
Expand All @@ -22,7 +22,7 @@ Preliminary feature list for the next milestone:

## Community
* Redmine: <https://projects.freecode.no/projects/show/lodo-ng>
* Source: <http://github.com/lodo/lodo.git>, <https://projects.freecode.no/git/lodo.git>
* Source: <http://github.com/dodo-as/dodo.git>, <https://projects.freecode.no/git/lodo.git>

## Contributors
* Funding, requirements and some development resources: [Arnt Telhaug](mailto:[email protected]), <http://www.lodo.no/>
Expand Down
6 changes: 3 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Lodo
Lodo is a web based double entry accounting application, built on the [Ruby on Rails](http://rubyonrails.org/) framework.
# Dodo
Dodo is a web based double entry accounting application, built on the [Ruby on Rails](http://rubyonrails.org/) framework.
It is open source, released under AGPLv3.

## Project status
Expand All @@ -22,7 +22,7 @@ Preliminary feature list for the next milestone:

## Community
* Redmine: <https://projects.freecode.no/projects/show/lodo-ng>
* Source: <http://github.com/lodo/lodo.git>, <https://projects.freecode.no/git/lodo.git>
* Source: <http://github.com/dodo-as/dodo.git>, <https://projects.freecode.no/git/lodo.git>

## Contributors
* Funding, requirements and some development resources: [Arnt Telhaug](mailto:[email protected]), <http://www.lodo.no/>
Expand Down
4 changes: 2 additions & 2 deletions app/views/accounts/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<%= f.text_field :name %>
</p>
<p>
<%= f.label :lodo_name, t(:lodo_name, :scope => :accounts) %><br />
<%= f.text_field :lodo_name %>
<%= f.label :dodo_name, t(:dodo_name, :scope => :accounts) %><br />
<%= f.text_field :dodo_name %>
</p>
<p>
<%= f.label :debit_text, t(:debit_text, :scope => :accounts) %><br />
Expand Down
4 changes: 2 additions & 2 deletions app/views/accounts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</p>

<p>
<b><%= t(:lodo_name, :scope => :accounts) -%>:</b>
<%= @account.lodo_name %>
<b><%= t(:dodo_name, :scope => :accounts) -%>:</b>
<%= @account.dodo_name %>
</p>


Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ en:
destroy: "Destroy"
confirm_delete: "Confirm you want to delete the account %{name}"
new_account: "New account"
lodo_name: "Lodo name"
dodo_name: "Dodo name"
debit_text: "Debit text"
credit_text: "Credit text"
vat_account: "VAT account"
Expand Down
4 changes: 2 additions & 2 deletions config/locales/nb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
name: "Navn"
confirm_delete: "Bekreft sletting av konto %{name}"
new_account: "Ny konto"
lodo_name: "Lodo navn"
dodo_name: "Dodo navn"
debit_text: "Debit tekst"
credit_text: "Credit tekst"
vat_account: "MVA-konto"
Expand Down Expand Up @@ -361,7 +361,7 @@
login:
login: Logg inn
maintainance: Vedlikehold
welcome: Velkommen til lodo regnskap
welcome: Velkommen til Dodo regnskap
units:
header_edit: Kjemperedigerer avdelning
header_index: Kjempelister avdelninger
Expand Down
9 changes: 9 additions & 0 deletions db/migrate/20101020075648_rename_lodo_name.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class RenameLodoName < ActiveRecord::Migration
def self.up
rename_column(:accounts, :lodo_name, :dodo_name)
end

def self.down
rename_column(:accounts, :dodo_name, :lodo_name)
end
end
4 changes: 2 additions & 2 deletions test/blueprints.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def print_time name, &block

Account.blueprint do
name { Sham.account_name }
lodo_name { name }
dodo_name { name }
number { rand(10000) }
debit_text { "debit" }
credit_text { "credit" }
Expand Down Expand Up @@ -196,7 +196,7 @@ def print_time name, &block
# create some accounts
companies.each do |c|
print '.'
# Vat accounts from empatix @ lodo.no
# Vat accounts from empatix @ nodo.no

# **** Outgoing vat; sales ***
a2700 = Account.make(:company => c, :name => "Utg mva kode 10", :number => 2700)
Expand Down
2 changes: 1 addition & 1 deletion test/bulkdata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def print_time name, &block

Account.blueprint do
name { Sham.account_name }
lodo_name { name }
dodo_name { name }
number { rand(10000) }
debit_text { "debit" }
credit_text { "credit" }
Expand Down
2 changes: 1 addition & 1 deletion test/unit/company_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CompanyTest < ActiveSupport::TestCase
assert_equal template.projects.size, company.projects.size

# let's compare the accounts for good measure
f = proc {|acc| [acc.number, acc.name, acc.lodo_name]}
f = proc {|acc| [acc.number, acc.name, acc.dodo_name]}
assert_equal Set.new(template.accounts.map(&f)), Set.new(company.accounts.map(&f))

# find account with a vat account and compare vat accounts..
Expand Down

0 comments on commit 0169728

Please sign in to comment.