Skip to content

Commit

Permalink
fix: remove unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
danilogomes committed Oct 10, 2023
1 parent ec70054 commit 5942470
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ group :test, :development do
gem 'shoulda-matchers'
gem 'simplecov'
gem 'webmock'
#remover essa gem
gem 'debug'
end

group :development do
Expand Down
15 changes: 0 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ GEM
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
date (3.3.3)
debug (1.8.0)
irb (>= 1.5.0)
reline (>= 0.3.1)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
devise (4.9.2)
Expand Down Expand Up @@ -183,10 +180,6 @@ GEM
image_processing (1.12.2)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
io-console (0.6.0)
irb (1.8.1)
rdoc
reline (>= 0.3.8)
jira-ruby (2.3.0)
activesupport
atlassian-jwt
Expand Down Expand Up @@ -268,8 +261,6 @@ GEM
racc
path_expander (1.1.1)
pg (1.5.4)
psych (5.1.0)
stringio
public_suffix (5.0.3)
puma (6.4.0)
nio4r (~> 2.0)
Expand Down Expand Up @@ -332,16 +323,12 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rdoc (6.5.0)
psych (>= 4.0.0)
redis (4.8.1)
reek (6.1.4)
kwalify (~> 0.7.0)
parser (~> 3.2.0)
rainbow (>= 2.0, < 4.0)
regexp_parser (2.8.1)
reline (0.3.9)
io-console (~> 0.5)
require_all (3.0.0)
responders (3.1.0)
actionpack (>= 5.2)
Expand Down Expand Up @@ -448,7 +435,6 @@ GEM
ssrf_filter (1.1.2)
stackprof (0.2.25)
statsd-ruby (1.5.0)
stringio (3.0.8)
thor (1.2.2)
thread_safe (0.3.6)
timeout (0.4.0)
Expand Down Expand Up @@ -502,7 +488,6 @@ DEPENDENCIES
cloudinary
coffee-rails
database_cleaner
debug
devise
discard
fabrication
Expand Down
9 changes: 3 additions & 6 deletions app/graphql/types/teams/team_member_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,11 @@ def demands(status: 'ALL', type: 'ALL', limit: nil)
end

def team_member_consolidation_list
binding.break
consolidation_date = []
value_per_hour_performed = []
membership = object.memberships.active.last
# membership = object.memberships.active.last
membership = object.memberships.first

tmcArray = []
(1..13).reverse_each do |i|
consolidation_date << Date.today.ago(i.month).beginning_of_month
value_per_hour_performed.push(calculate_hours_per_month(membership.monthly_payment, membership.effort_in_period(Date.today.ago(i.month).beginning_of_month, Date.today.ago(i.month).end_of_month)))
tmcArray << {'consolidation_date' => Date.today.ago(i.month).beginning_of_month, 'value_per_hour_performed' => (calculate_hours_per_month(membership.monthly_payment, membership.effort_in_period(Date.today.ago(i.month).beginning_of_month, Date.today.ago(i.month).end_of_month)))}
end

Expand Down

0 comments on commit 5942470

Please sign in to comment.