ish_manager 0.1.8.271 → 0.1.8.277

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbe380e8428822aa7772e8ab4a79b247dec85cbf1796722d1dc0cfc7207a2c98
4
- data.tar.gz: ef0a6cdf516c45eac31a13aecf6959136bd9383ab42e128af1df69f01cbe6640
3
+ metadata.gz: 4d8e601e092ac1ab90f429616e5f3b26d990977bac988fa493f84d9663d26c3d
4
+ data.tar.gz: f1260c4bd594f5c4c1700ac8f786292f31eedd5ba824df50c4b83598711112c7
5
5
  SHA512:
6
- metadata.gz: 21185a5474503b65d9dc1a32d5f3cd2e84a98868802cb6ac47638ea1ff2167f01e723d3b1b62f99d38d95ba2f7f0cd0f6a142143f01321ff96c6e57cba2f68f4
7
- data.tar.gz: a63cbfbf736782918d64994f054565ac7e9b4e15b5281dc4c0ba2f5e730faa9c313d6f5648b7b2372332e87c99c13ad18e4feb4b6efc788f62b48899422df33b
6
+ metadata.gz: cd92f8a2cc6fb2e1750735173b13e927c2e5538d1b649bebbab784c87d586b5ed2296307e2afc63c29752ba0596f2a408f9f186f8fde752f618d06a625db54e2
7
+ data.tar.gz: b30ea95ef1b0dfbbe2a4b9c286a5c01f28047f8d51217a2071c7dc9abd40dd1db9570de5440fca6d669c5ff6d636cb7310544d0f4b17d5f24b680b055008ef02
@@ -1,5 +1,6 @@
1
1
  class IshManager::NewsitemsController < IshManager::ApplicationController
2
2
  before_action :set_lists
3
+ layout 'ish_manager/application2'
3
4
 
4
5
  ## Alphabetized : )
5
6
 
@@ -1,20 +1,9 @@
1
1
 
2
2
  module IshManager
3
3
  class ApplicationMailer < ActionMailer::Base
4
- default from: 'from@example.com'
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
@@ -2,7 +2,7 @@
2
2
  %html
3
3
  %head
4
4
  %title Ish Manager
5
- %link{ :rel => 'icon', :href => '/favicon.ico?v=1' }
5
+ %link{ :rel => 'icon', :href => "/favicon_#{ENV['RAILS_ENV']}.gif" }
6
6
  %meta{ :name => :viewport, :content => 'width=device-width, initial-scale=1.0' }
7
7
  %meta{ :charset => 'UTF-8' }
8
8
  %meta{ :description => 'some description' }
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.271
4
+ version: 0.1.8.277
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-16 00:00:00.000000000 Z
11
+ date: 2022-01-18 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.0.3.1
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,9 +0,0 @@
1
-
2
- class IshManager::CoveredCallsController < IshManager::ApplicationController
3
-
4
- def index
5
- authorize! :index, Ish::CoveredCall
6
- end
7
-
8
- end
9
-
@@ -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