ish_manager 0.1.8.377 → 0.1.8.378

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5421ad5b4dc558f6e168566d8bacc5db35ab266e1701abf9cfc5e7fefe605fd1
4
- data.tar.gz: fdd493de49a5ace572f87d31f3c61d607bf205c793998f9136ec77a08ae1c7c8
3
+ metadata.gz: 72d1d8103d7dde529e81e9074568b647db2b98bd9d1c6019664c417837243b15
4
+ data.tar.gz: 82c682267071f417b7f908ade31ae60a6139a7dfdd3794aedc9580fe7fe2abc6
5
5
  SHA512:
6
- metadata.gz: 1ebe7d90b2bca5b0f029dd7e462ca72c338a61fd513f120ec2e645cd589c17572cdf9650c84a6404be263a74fe74e672fbfc2d7aa412813d6ef3f57fab6fc61d
7
- data.tar.gz: 896955dcb964096acd99ddf8ef71e019ba213bf917b5291378d07584b203966dad014c30ea798e73fbd16c650b8c5d9a7916a9faa28125ed0ddbb2a7d874a261
6
+ metadata.gz: 80b6707997cda1e32efa5e2bee8776f77b5823f6e761fee72e8ffdbd2d0ddc7ac6b0a732a5f3a6fe7314a8664f059378f4bb7384fbe3dcf2dcfa631503203669
7
+ data.tar.gz: f923c98b7eaf195c22da13c9761b45af889844b049b5eda104db927275f5f3fe5c97ff2c76686d93b42bc479cd3a570d7d577f19851ffa335e3407097579a123
@@ -9,6 +9,7 @@
9
9
  .email-contexts-edit,
10
10
  .email-contexts-show,
11
11
  .emails-ns, // emails namespace
12
+ .iro-purses-my,
12
13
  .leads-edit,
13
14
  .leads-index,
14
15
  .leads-show,
@@ -9,6 +9,8 @@ module IshManager
9
9
  check_authorization
10
10
  rescue_from ::CanCan::AccessDenied, :with => :access_denied
11
11
 
12
+ http_basic_authenticate_with :name => BASIC_AUTH_NAME, :password => BASIC_AUTH_PASSWORD
13
+
12
14
  def home
13
15
  authorize! :home, IshManager::Ability
14
16
  render 'home'
@@ -0,0 +1,12 @@
1
+
2
+ class ::IshManager::IroPursesController < IshManager::ApplicationController
3
+
4
+ before_action :set_lists
5
+
6
+ def my
7
+ @purse = Iro::Purse.find_or_create_by({ user_id: current_user.id })
8
+ authorize! :my, @purse
9
+ @positions = @purse.positions
10
+ end
11
+
12
+ end
@@ -78,6 +78,8 @@
78
78
  Iro Wor
79
79
  .a
80
80
  %ul
81
+ %li
82
+ = link_to 'Purse', my_purse_path
81
83
  %li
82
84
  = link_to 'Watches', iro_watches_path
83
85
  %li
@@ -0,0 +1,11 @@
1
+
2
+ .iro-purses-my.max-width
3
+ .header
4
+ %h2.title
5
+ My purse value: $#{@purse.current_value}
6
+
7
+ .positions
8
+ %h3 Positions (#{@positions.length})
9
+ %ul
10
+ - @positions.each do |p|
11
+ %li= p.inspect
data/config/routes.rb CHANGED
@@ -23,16 +23,12 @@ IshManager::Engine.routes.draw do
23
23
  # end
24
24
  # resources :orders
25
25
 
26
- # namespace :iron_warbler do
27
- # resources :iron_condors
28
- # resources :stock_watches
29
- # resources :option_watches
30
- # resources :covered_calls
31
- # end
32
26
 
33
- namespace :iro do
34
- get 'watches', to: 'iro_watches#index'
35
- end
27
+ get 'iro_watches', to: 'iro_watches#index'
28
+ get 'iro_purse', to: 'iro_purses#my', as: :my_purse
29
+
30
+
31
+
36
32
 
37
33
  scope 'gameui' do
38
34
  get 'maps/:id/map-editor', to: 'maps#map_editor', as: :location_map_editor
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.377
4
+ version: 0.1.8.378
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-17 00:00:00.000000000 Z
11
+ date: 2023-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -318,6 +318,7 @@ files:
318
318
  - app/controllers/ish_manager/galleries_controller.rb
319
319
  - app/controllers/ish_manager/image_assets_controller.rb
320
320
  - app/controllers/ish_manager/invoices_controller.rb
321
+ - app/controllers/ish_manager/iro_purses_controller.rb
321
322
  - app/controllers/ish_manager/iro_watches_controller.rb
322
323
  - app/controllers/ish_manager/leads_controller.rb
323
324
  - app/controllers/ish_manager/leadset_tags_controller.rb
@@ -461,6 +462,7 @@ files:
461
462
  - app/views/ish_manager/invoices/_form.haml
462
463
  - app/views/ish_manager/invoices/index.haml
463
464
  - app/views/ish_manager/invoices/new.haml
465
+ - app/views/ish_manager/iro_purses/my.haml
464
466
  - app/views/ish_manager/iron_warbler_mailer/condor_followup_alerb.html.erb
465
467
  - app/views/ish_manager/iron_warbler_mailer/option_alert.html.erb
466
468
  - app/views/ish_manager/iron_warbler_mailer/stock_alert.html.erb