ish_manager 0.1.8.274 → 0.1.8.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- 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: 4d8e601e092ac1ab90f429616e5f3b26d990977bac988fa493f84d9663d26c3d
|
4
|
+
data.tar.gz: f1260c4bd594f5c4c1700ac8f786292f31eedd5ba824df50c4b83598711112c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd92f8a2cc6fb2e1750735173b13e927c2e5538d1b649bebbab784c87d586b5ed2296307e2afc63c29752ba0596f2a408f9f186f8fde752f618d06a625db54e2
|
7
|
+
data.tar.gz: b30ea95ef1b0dfbbe2a4b9c286a5c01f28047f8d51217a2071c7dc9abd40dd1db9570de5440fca6d669c5ff6d636cb7310544d0f4b17d5f24b680b055008ef02
|
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.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-
|
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.
|
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
|