ish_manager 0.1.8.272 → 0.1.8.278
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/ish_manager/application_mailer.rb +8 -12
- metadata +3 -8
- data/app/controllers/ish_manager/trash/co_tailors_controller.rb +0 -33
- data/app/controllers/ish_manager/trash/covered_calls_controller.rb +0 -9
- data/app/controllers/ish_manager/trash/events_controller.rb +0 -65
- data/app/controllers/ish_manager/trash/friends_controller.rb +0 -28
- data/app/controllers/ish_manager/trash/iron_condors_controller.rb +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ea88d9378fd171766a3dfd996a631f5a92d28880018fcc52bca01aed7d7d2b2
|
4
|
+
data.tar.gz: f4ae443eb6d4ff99e7242b11205121fa93111db2e3666602e227480a3156844a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 487c21d056637ed963ca9bf71e11540fb083eb528a78c477ccaa718e0c5acf3c40b23e229d5c2668a62dc4403151de0447523facfb76c83a670c2a5e3d22aa99
|
7
|
+
data.tar.gz: 779c28a83610c15f69cb44111258d27ecb6200e338f5c20cd95471b7c37805bb25121b2a3e5b00f8846ed3153793a5f02f8d5283894ae58152ccfa2dbab4bd63
|
@@ -1,20 +1,9 @@
|
|
1
1
|
|
2
2
|
module IshManager
|
3
3
|
class ApplicationMailer < ActionMailer::Base
|
4
|
-
default from: '
|
4
|
+
default from: '314658@gmail.com'
|
5
5
|
layout 'mailer'
|
6
6
|
|
7
|
-
def stock_alert stock
|
8
|
-
@stock = stock
|
9
|
-
mail( :to => stock.profile.email, :subject => "IshManager Stock Alert :: #{stock.ticker}" ).deliver
|
10
|
-
end
|
11
|
-
|
12
|
-
def condor_followup_alert args
|
13
|
-
@condor = Ish::IronCondor.find args[:condor_id]
|
14
|
-
@args = args
|
15
|
-
mail( to: 'piousbox@gmail.com', subject: "Condor Followup Alert :: #{condor.ticker} #{args.to_s}" ).deliver
|
16
|
-
end
|
17
|
-
|
18
7
|
def shared_galleries profiles, gallery
|
19
8
|
return if profiles.count == 0
|
20
9
|
@gallery = gallery
|
@@ -26,5 +15,12 @@ module IshManager
|
|
26
15
|
:subject => 'You got new shared galleries on pi manager' ).deliver
|
27
16
|
end
|
28
17
|
|
18
|
+
|
19
|
+
def stock_alert stock
|
20
|
+
@stock = stock
|
21
|
+
mail( :to => stock.profile.email, :subject => "IshManager Stock Alert :: #{stock.ticker}" ).deliver
|
22
|
+
end
|
23
|
+
|
24
|
+
|
29
25
|
end
|
30
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.278
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -209,11 +209,6 @@ files:
|
|
209
209
|
- app/controllers/ish_manager/sites_controller.rb
|
210
210
|
- app/controllers/ish_manager/stock_watches_controller.rb
|
211
211
|
- app/controllers/ish_manager/tags_controller.rb
|
212
|
-
- app/controllers/ish_manager/trash/co_tailors_controller.rb
|
213
|
-
- app/controllers/ish_manager/trash/covered_calls_controller.rb
|
214
|
-
- app/controllers/ish_manager/trash/events_controller.rb
|
215
|
-
- app/controllers/ish_manager/trash/friends_controller.rb
|
216
|
-
- app/controllers/ish_manager/trash/iron_condors_controller.rb
|
217
212
|
- app/controllers/ish_manager/user_profiles_controller.rb
|
218
213
|
- app/controllers/ish_manager/users_controller.rb
|
219
214
|
- app/controllers/ish_manager/venues_controller.rb
|
@@ -401,7 +396,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
401
396
|
- !ruby/object:Gem::Version
|
402
397
|
version: '0'
|
403
398
|
requirements: []
|
404
|
-
rubygems_version: 3.
|
399
|
+
rubygems_version: 3.1.6
|
405
400
|
signing_key:
|
406
401
|
specification_version: 4
|
407
402
|
summary: Summary of IshManager.
|
@@ -1,33 +0,0 @@
|
|
1
|
-
|
2
|
-
class IshManager::CoTailorsController < IshManager::ApplicationController
|
3
|
-
|
4
|
-
def home
|
5
|
-
authorize! :home, ::CoTailors
|
6
|
-
@products = ::CoTailors::Product.all
|
7
|
-
end
|
8
|
-
|
9
|
-
def create_product
|
10
|
-
authorize! :create, ::CoTailors::Product
|
11
|
-
@product = ::CoTailors::Product.new params[:co_tailors_product].permit!
|
12
|
-
if @product.save
|
13
|
-
flash[:notice] = 'Created product'
|
14
|
-
else
|
15
|
-
flash[:alert] = 'Cannot create product: ', @product.errors.messages.to_s
|
16
|
-
end
|
17
|
-
redirect_to :action => 'home'
|
18
|
-
end
|
19
|
-
|
20
|
-
def update_product
|
21
|
-
@product = ::CoTailors::Product.find params[:id]
|
22
|
-
authorize! :update, @product
|
23
|
-
if @product.update_attributes params[:co_tailors_product].permit!
|
24
|
-
flash[:notice] = 'updated product'
|
25
|
-
else
|
26
|
-
flash[:alert] = 'Cannot update product: ', @product.errors.messages.to_s
|
27
|
-
end
|
28
|
-
redirect_to :action => 'home'
|
29
|
-
end
|
30
|
-
|
31
|
-
|
32
|
-
end
|
33
|
-
|
@@ -1,65 +0,0 @@
|
|
1
|
-
|
2
|
-
class IshManager::EventsController < IshManager::ApplicationController
|
3
|
-
|
4
|
-
before_action :set_lists
|
5
|
-
|
6
|
-
def index
|
7
|
-
authorize! :index, ::Event
|
8
|
-
@events = Event.all
|
9
|
-
if params[:city_id]
|
10
|
-
@resource = City.find( params[:city_id] )
|
11
|
-
@events = @resource.events
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def new
|
16
|
-
@event = Event.new
|
17
|
-
authorize! :new, @event
|
18
|
-
end
|
19
|
-
|
20
|
-
def create
|
21
|
-
@event = Event.new params[:event].permit!
|
22
|
-
authorize! :create, @event
|
23
|
-
if @event.save
|
24
|
-
@event.city.touch
|
25
|
-
redirect_to :action => :index
|
26
|
-
else
|
27
|
-
flash[:alert] = @event.errors.messages
|
28
|
-
render :action => :new
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def edit
|
33
|
-
@event = Event.find params[:id]
|
34
|
-
authorize! :edit, @event
|
35
|
-
end
|
36
|
-
|
37
|
-
def update
|
38
|
-
@event = Event.find params[:id]
|
39
|
-
authorize! :update, @event
|
40
|
-
|
41
|
-
if params[:photo]
|
42
|
-
photo = Photo.new :photo => params[:photo]
|
43
|
-
@event.profile_photo = photo
|
44
|
-
end
|
45
|
-
|
46
|
-
flag = @event.update_attributes params[:event].permit!
|
47
|
-
if flag
|
48
|
-
@event.city.touch
|
49
|
-
flash[:notice] = 'updated event'
|
50
|
-
redirect_to :action => :index
|
51
|
-
else
|
52
|
-
flash[:alert] = "No luck: #{@event.errors.messages}"
|
53
|
-
render :action => :edit
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def show
|
58
|
-
@event = Event.find params[:id]
|
59
|
-
authorize! :show, @event
|
60
|
-
redirect_to :action => :edit, :id => @event.id
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|
65
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
class IshManager::FriendsController < IshManager::ApplicationController
|
2
|
-
|
3
|
-
def index
|
4
|
-
authorize! :friends_index, Ish::UserProfile
|
5
|
-
@new_friend = Ish::UserProfile.new
|
6
|
-
|
7
|
-
@friends = current_user.profile.friends
|
8
|
-
friend_ids = @friends.map &:id
|
9
|
-
end
|
10
|
-
|
11
|
-
def create
|
12
|
-
@friend = ::Ish::UserProfile.find_by( :email => params[:friend][:email] ) # .includes( :shared_galleries )
|
13
|
-
|
14
|
-
authorize! :friends_new, @friend
|
15
|
-
|
16
|
-
me = current_user.profile
|
17
|
-
me.friends << @friend
|
18
|
-
if me.save
|
19
|
-
flash[:notice] = 'Added Friend'
|
20
|
-
else
|
21
|
-
flash[:alert] = "Cannot add friend: #{me.errors.messages}"
|
22
|
-
end
|
23
|
-
redirect_to :action => 'index'
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
|
@@ -1,45 +0,0 @@
|
|
1
|
-
|
2
|
-
class IshManager::IronCondorsController < IshManager::ApplicationController
|
3
|
-
|
4
|
-
def index
|
5
|
-
authorize! :index, ::Ish::IronCondor
|
6
|
-
@condors = ::Ish::IronCondor.all
|
7
|
-
end
|
8
|
-
|
9
|
-
def create
|
10
|
-
condor = ::Ish::IronCondor.new params[:ish_iron_condor].permit!
|
11
|
-
authorize! :create, condor
|
12
|
-
condor.ticker.upcase!
|
13
|
-
if condor.save
|
14
|
-
flash[:notice] = 'Success.'
|
15
|
-
else
|
16
|
-
flash[:alert] = condor.errors.messages.to_s
|
17
|
-
end
|
18
|
-
redirect_to action: :index
|
19
|
-
end
|
20
|
-
|
21
|
-
def update
|
22
|
-
condor = ::Ish::IronCondor.find params[:id]
|
23
|
-
authorize! :update, condor
|
24
|
-
condor.update params[:ish_iron_condor].permit!
|
25
|
-
condor.ticker.upcase!
|
26
|
-
if condor.save
|
27
|
-
flash[:notice] = 'Success.'
|
28
|
-
else
|
29
|
-
flash[:alert] = condor.errors.messages.to_s
|
30
|
-
end
|
31
|
-
redirect_to action: :index
|
32
|
-
end
|
33
|
-
|
34
|
-
def destroy
|
35
|
-
condor = ::Ish::IronCondor.find params[:id]
|
36
|
-
authorize! :destroy, condor
|
37
|
-
if condor.destroy
|
38
|
-
flash[:notice] = 'Success.'
|
39
|
-
else
|
40
|
-
flash[:alert] = condor.errors.messages.to_s
|
41
|
-
end
|
42
|
-
redirect_to action: :index
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|