lib/you_track/client.rb in you_track-0.2.2 vs lib/you_track/client.rb in you_track-0.3.0
- old
+ new
@@ -2,22 +2,39 @@
recognizes :logger, :adapter, :builder, :connection_options, :url, :username, :password
end
require_relative "client/real"
require_relative "client/mock"
-
require_relative "client/model"
require_relative "client/request"
-
require_relative "client/login"
-require_relative "client/get_issue"
-require_relative "client/get_issues"
-require_relative "client/create_issue"
-require_relative "client/update_issue"
-require_relative "client/apply_issue_command"
-require_relative "client/get_issue_comments"
+models = %w(
+ comment
+ issue
+ project
+ user
+)
-require_relative "client/issue"
-require_relative "client/issues"
-require_relative "client/comment"
-require_relative "client/comments"
+requests = %w(
+ add_project_fix_version
+ apply_issue_command
+ create_issue
+ get_admin_user
+ get_current_user
+ get_issue
+ get_issue_comments
+ get_issues
+ get_project_custom_fields
+ get_projects
+ remove_project_fix_version
+ update_issue
+)
+
+models.each do |model|
+ require_relative "client/models/#{model}"
+ require_relative "client/models/#{model}s"
+end
+
+requests.each do |request|
+ require_relative "client/requests/#{request}"
+end