Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.2.2', Resolves #35
Browse files Browse the repository at this point in the history
  • Loading branch information
odinsride committed May 20, 2019
2 parents 2c9d3f5 + 1dedfbe commit 0c48d7a
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 97 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] changes

## [v1.2.2] - 2019-05-19

### Fixed
- User registration issues have been fixed (#35)
- Transaction attachments will now be renamed to `{{trx_date}}_{{description}}.{{extension}}`

## [v1.2.1] - 2019-02-24

### Fixed
Expand Down Expand Up @@ -86,7 +92,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Account overview with list of all accounts and balances for each


[Unreleased]: https://github.com/odinsride/olubalance/compare/v1.2.0...HEAD
[Unreleased]: https://github.com/odinsride/olubalance/compare/v1.2.2...HEAD
[v1.2.2]: https://github.com/odinsride/olubalance/compare/v1.2.1...v1.2.2
[v1.2.1]: https://github.com/odinsride/olubalance/compare/v1.2.0...v1.2.1
[v1.2.0]: https://github.com/odinsride/olubalance/compare/v1.1.3...v1.2.0
[v1.1.3]: https://github.com/odinsride/olubalance/compare/v1.1.2...v1.1.3
Expand Down
163 changes: 79 additions & 84 deletions Gemfile.lock
@@ -1,47 +1,47 @@
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.2)
actionpack (= 5.2.2)
actioncable (5.2.3)
actionpack (= 5.2.3)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.2)
actionpack (= 5.2.2)
actionview (= 5.2.2)
activejob (= 5.2.2)
actionmailer (5.2.3)
actionpack (= 5.2.3)
actionview (= 5.2.3)
activejob (= 5.2.3)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.2)
actionview (= 5.2.2)
activesupport (= 5.2.2)
actionpack (5.2.3)
actionview (= 5.2.3)
activesupport (= 5.2.3)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.2)
activesupport (= 5.2.2)
actionview (5.2.3)
activesupport (= 5.2.3)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.2)
activesupport (= 5.2.2)
activejob (5.2.3)
activesupport (= 5.2.3)
globalid (>= 0.3.6)
activemodel (5.2.2)
activesupport (= 5.2.2)
activemodel (5.2.3)
activesupport (= 5.2.3)
activemodel-serializers-xml (1.0.2)
activemodel (> 5.x)
activesupport (> 5.x)
builder (~> 3.1)
activerecord (5.2.2)
activemodel (= 5.2.2)
activesupport (= 5.2.2)
activerecord (5.2.3)
activemodel (= 5.2.3)
activesupport (= 5.2.3)
arel (>= 9.0)
activestorage (5.2.2)
actionpack (= 5.2.2)
activerecord (= 5.2.2)
activestorage (5.2.3)
actionpack (= 5.2.3)
activerecord (= 5.2.3)
marcel (~> 0.3.1)
activesupport (5.2.2)
activesupport (5.2.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
Expand All @@ -50,21 +50,22 @@ GEM
public_suffix (>= 2.0.2, < 4.0)
arel (9.0.0)
ast (2.4.0)
aws-eventstream (1.0.1)
aws-partitions (1.140.0)
aws-sdk-core (3.46.2)
aws-eventstream (~> 1.0)
aws-eventstream (1.0.3)
aws-partitions (1.163.0)
aws-sdk-core (3.52.1)
aws-eventstream (~> 1.0, >= 1.0.2)
aws-partitions (~> 1.0)
aws-sigv4 (~> 1.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.13.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-s3 (1.30.1)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sdk-kms (1.20.0)
aws-sdk-core (~> 3, >= 3.52.1)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.39.0)
aws-sdk-core (~> 3, >= 3.52.1)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.0)
aws-sigv4 (1.0.3)
aws-sigv4 (1.1.0)
aws-eventstream (~> 1.0, >= 1.0.2)
backport (0.3.0)
bcrypt (3.1.12)
better_errors (2.5.1)
Expand All @@ -74,16 +75,16 @@ GEM
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
builder (3.2.3)
byebug (11.0.0)
byebug (11.0.1)
capybara (2.18.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (>= 2.0, < 4.0)
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
childprocess (1.0.1)
rake (< 13.0)
climate_control (0.2.0)
coderay (1.1.2)
coffee-rails (4.2.2)
Expand All @@ -93,39 +94,38 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.1.4)
concurrent-ruby (1.1.5)
crass (1.0.4)
debug_inspector (0.0.3)
devise (4.6.1)
devise (4.6.2)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 6.0)
responders
warden (~> 1.2.3)
draper (3.0.1)
actionpack (~> 5.0)
activemodel (~> 5.0)
activemodel-serializers-xml (~> 1.0)
activesupport (~> 5.0)
request_store (~> 1.0)
draper (3.1.0)
actionpack (>= 5.0)
activemodel (>= 5.0)
activemodel-serializers-xml (>= 1.0)
activesupport (>= 5.0)
request_store (>= 1.0)
erubi (1.8.0)
execjs (2.7.0)
faker (1.9.3)
i18n (>= 0.7)
ffi (1.9.25)
figaro (1.1.1)
thor (~> 0.14)
font-awesome-rails (4.7.0.4)
railties (>= 3.2, < 6.0)
font-awesome-rails (4.7.0.5)
railties (>= 3.2, < 6.1)
globalid (0.4.2)
activesupport (>= 4.2.0)
htmlentities (4.3.4)
i18n (1.5.3)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
jaro_winkler (1.5.2)
jbuilder (2.8.0)
jbuilder (2.9.1)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jmespath (1.4.0)
jquery-rails (4.3.3)
rails-dom-testing (>= 1, < 3)
Expand All @@ -149,19 +149,18 @@ GEM
material_icons (2.2.1)
railties (>= 3.2)
materialize-form (1.0.8)
materialize-sass (0.100.2)
materialize-sass (0.100.2.1)
sass (~> 3.3)
method_source (0.9.2)
mime-types (3.2.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2018.0812)
mime-types-data (3.2019.0331)
mimemagic (0.3.3)
mini_mime (1.0.1)
mini_portile2 (2.4.0)
minitest (5.11.3)
multi_json (1.13.1)
nio4r (2.3.1)
nokogiri (1.10.1)
nokogiri (1.10.3)
mini_portile2 (~> 2.4.0)
orm_adapter (0.5.0)
paperclip (6.0.0)
Expand All @@ -170,29 +169,27 @@ GEM
mime-types
mimemagic (~> 0.3.0)
terrapin (~> 0.6.0)
parallel (1.13.0)
parser (2.6.0.0)
parallel (1.17.0)
parser (2.6.3.0)
ast (~> 2.4.0)
pg (1.1.4)
powerpack (0.1.2)
psych (3.1.0)
public_suffix (3.0.3)
puma (3.12.0)
rack (2.0.6)
puma (3.12.1)
rack (2.0.7)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.2)
actioncable (= 5.2.2)
actionmailer (= 5.2.2)
actionpack (= 5.2.2)
actionview (= 5.2.2)
activejob (= 5.2.2)
activemodel (= 5.2.2)
activerecord (= 5.2.2)
activestorage (= 5.2.2)
activesupport (= 5.2.2)
rails (5.2.3)
actioncable (= 5.2.3)
actionmailer (= 5.2.3)
actionpack (= 5.2.3)
actionview (= 5.2.3)
activejob (= 5.2.3)
activemodel (= 5.2.3)
activerecord (= 5.2.3)
activestorage (= 5.2.3)
activesupport (= 5.2.3)
bundler (>= 1.3.0)
railties (= 5.2.2)
railties (= 5.2.3)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
Expand All @@ -201,9 +198,9 @@ GEM
loofah (~> 2.2, >= 2.2.2)
rails-ujs (0.1.0)
railties (>= 3.1)
railties (5.2.2)
actionpack (= 5.2.2)
activesupport (= 5.2.2)
railties (5.2.3)
actionpack (= 5.2.3)
activesupport (= 5.2.3)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
Expand All @@ -219,19 +216,17 @@ GEM
railties (>= 4.2.0, < 6.0)
reverse_markdown (1.1.0)
nokogiri
rubocop (0.65.0)
rubocop (0.69.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1)
psych (>= 3.1.0)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.0)
ruby_dep (1.5.0)
rubyzip (1.2.2)
sass (3.7.3)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
Expand All @@ -246,8 +241,8 @@ GEM
sprockets (> 2.11)
sprockets-rails
tilt
selenium-webdriver (3.141.0)
childprocess (~> 0.5)
selenium-webdriver (3.142.2)
childprocess (>= 0.5, < 2.0)
rubyzip (~> 1.2, >= 1.2.2)
simple_form (4.1.0)
actionpack (>= 5.0)
Expand Down Expand Up @@ -287,16 +282,16 @@ GEM
thread_safe (~> 0.1)
uglifier (4.1.20)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.4.1)
unicode-display_width (1.6.0)
warden (1.2.8)
rack (>= 2.0.6)
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
will_paginate (3.1.6)
will_paginate (3.1.7)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.18)
yard (0.9.19)

PLATFORMS
ruby
Expand Down
6 changes: 6 additions & 0 deletions app/models/account.rb
@@ -1,5 +1,11 @@
# An account which will store many transactions and belongs to one user
class Account < ApplicationRecord
# Define Constants
NO_ACCOUNT_DESC = "It looks like you don't have any accounts added. To add an account, \
click the add account button at the top of the page :)".freeze

NO_INACTIVE_DESC = 'You have no inactive accounts :)'.freeze

belongs_to :user
has_many :transactions, dependent: :destroy
has_many :documents
Expand Down
2 changes: 1 addition & 1 deletion app/models/transaction.rb
Expand Up @@ -86,6 +86,6 @@ def update_account_balance_destroy
def rename_file
extension = File.extname(attachment_file_name).downcase
file_description = description.squish.tr(' ', '_')
attachment.instance_write :file_name, "#{self.id}_#{file_description}_#{trx_date}#{extension}"
attachment.instance_write :file_name, "#{trx_date}_#{file_description}#{extension}"
end
end
2 changes: 1 addition & 1 deletion app/views/accounts/inactive.html.erb
Expand Up @@ -7,7 +7,7 @@
</div>

<!-- Render the message if no accounts exist -->
<%= render partial: "noaccounts", locals: { description: Constants::NO_INACTIVE_DESC } if @inactiveaccounts.empty? %>
<%= render partial: "noaccounts", locals: { description: Account::NO_INACTIVE_DESC } if @inactiveaccounts.empty? %>

<div class="row" id="accounts">
<%= render partial: "inactiveaccount", collection: @inactiveaccounts %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/accounts/index.html.erb
@@ -1,7 +1,7 @@
<%= render partial: "shared/pagetitle", locals: { page_model: "account", description: "Accounts" } %>

<!-- Render the message if no accounts exist -->
<%= render partial: "noaccounts", locals: { description: Constants::NO_ACCOUNT_DESC } if @accounts.empty? %>
<%= render partial: "noaccounts", locals: { description: Account::NO_ACCOUNT_DESC } if @accounts.empty? %>

<div class="row" id="accounts">
<%= render partial: "account", collection: @accounts %>
Expand Down
2 changes: 0 additions & 2 deletions config/application.rb
Expand Up @@ -11,8 +11,6 @@ class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.1

config.autoload_paths << Rails.root.join('lib')

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
Expand Down
7 changes: 0 additions & 7 deletions lib/constants.rb

This file was deleted.

0 comments on commit 0c48d7a

Please sign in to comment.