Skip to content

Commit

Permalink
Increase Project project_name and description max chars
Browse files Browse the repository at this point in the history
  • Loading branch information
gangelo committed Feb 12, 2024
1 parent 22e709d commit 8bb0b75
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.

### Changes
[x] Update ruby gems.
[x] `dsu import` now has the --override true|false (default: false) OPTION. If true, the import process will ignore the project name found in the import file and import the entries into the current project. If false, the import process will use the project name found in the import file.
[x] Change `dsu export` file name for exports. When exporting all DSU entry groups for a project, the file name will be:

"dsu-export-<transformed project name>-<timestamp>-all-entry-groups-<from date>-thru-<to date>.csv"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dsu (3.0.0.alpha.13)
dsu (3.0.0.beta.0)
activemodel (>= 7.0.8, < 8.0)
activesupport (>= 7.0.8, < 8.0)
colorize (>= 1.1, < 2.0)
Expand Down
2 changes: 2 additions & 0 deletions dsu.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,7 @@ Gem::Specification.new do |spec|
Thank you!
<3 Gene
dsu now uses "Projects"! Run `dsu help project` to get started.
POST_INSTALL
end
4 changes: 2 additions & 2 deletions lib/dsu/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Project

VERSION = Migration::VERSION
MIN_PROJECT_NAME_LENGTH = 2
MAX_PROJECT_NAME_LENGTH = 24
MAX_PROJECT_NAME_LENGTH = 32
MIN_DESCRIPTION_LENGTH = 2
MAX_DESCRIPTION_LENGTH = 32
MAX_DESCRIPTION_LENGTH = 64

attr_reader :project_name, :current_project_file, :description, :version, :options

Expand Down
4 changes: 2 additions & 2 deletions lib/dsu/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Dsu
VERSION_REGEX = /\A\d+\.\d+\.\d+(\.(alpha|rc)\.\d+)?\z/
VERSION = '3.0.0.alpha.13'
VERSION_REGEX = /\A\d+\.\d+\.\d+(\.(alpha|beta|rc)\.\d+)?\z/
VERSION = '3.0.0.beta.0'
end

0 comments on commit 8bb0b75

Please sign in to comment.