wco_models 3.1.0.270 → 3.1.0.271
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
- data/README.txt +10 -12
- data/app/assets/stylesheets/wco/main.scss +24 -0
- data/app/assets/stylesheets/wco/newsvideos.scss +45 -0
- data/app/controllers/wco/api_controller.rb +2 -2
- data/app/controllers/wco/application_controller.rb +45 -0
- data/app/controllers/wco/leads_controller.rb +0 -2
- data/app/controllers/wco/newspartials_controller.rb +1 -1
- data/app/controllers/wco/newsvideos_controller.rb +3 -2
- data/app/controllers/wco/publishers_controller.rb +12 -4
- data/app/controllers/wco/reports_controller.rb +140 -0
- data/app/controllers/wco/tags_controller.rb +18 -5
- data/app/controllers/wco/videos_controller.rb +4 -0
- data/app/mailers/wco_email/application_mailer.rb +1 -1
- data/app/models/ability.rb +3 -0
- data/app/models/iro/option.rb +2 -3
- data/app/models/iro/position.rb +67 -13
- data/app/models/iro/purse.rb +1 -2
- data/app/models/iro/stock.rb +20 -0
- data/app/models/iro/strategy.rb +57 -40
- data/app/models/tda/option.rb +1 -1
- data/app/models/wco/lead.rb +6 -5
- data/app/models/wco/newspartial.rb +7 -2
- data/app/models/wco/newsvideo.rb +2 -0
- data/app/models/wco/photo.rb +2 -0
- data/app/models/wco/profile.rb +6 -0
- data/app/models/wco/publisher.rb +3 -3
- data/app/models/wco/report.rb +6 -3
- data/app/models/wco/site.rb +2 -2
- data/app/models/wco/tag.rb +3 -0
- data/app/models/wco/video.rb +28 -3
- data/app/models/wco_email/email_filter.rb +1 -1
- data/app/models/wco_email/email_filter_action.rb +2 -0
- data/app/models/wco_email/email_filter_condition.rb +29 -14
- data/app/models/wco_email/message_stub.rb +2 -1
- data/app/views/wco/_main_footer.haml +4 -3
- data/app/views/wco/_main_header.haml +1 -0
- data/app/views/wco/_sidebar.haml +21 -0
- data/app/views/wco/newsoverlays/_show_in_newsvideo.haml +7 -5
- data/app/views/wco/newspartials/_show_in_newsvideo.haml +35 -28
- data/app/views/wco/newspartials/edit.haml +4 -0
- data/app/views/wco/newsvideos/_form.haml +10 -3
- data/app/views/wco/newsvideos/show.haml +20 -3
- data/app/views/wco/profiles/_form.haml +33 -13
- data/app/views/wco/publishers/_post_with.haml +7 -0
- data/app/views/wco/reports/_form.haml +11 -2
- data/app/views/wco/reports/_to_facebook.html +23 -0
- data/app/views/wco/reports/show.haml +15 -0
- data/app/views/wco/tags/_index_table.haml +4 -1
- data/app/views/wco/tags/_index_tree.haml +2 -1
- data/app/views/wco/tags/new_for_sidebar.haml +9 -0
- data/app/views/wco/tags/show.haml +54 -42
- data/app/views/wco/tags/show.haml-bk +63 -0
- data/config/initializers/08_integrations.rb +0 -15
- data/config/routes.rb +11 -2
- data/lib/wco/facebook_poster.rb +17 -0
- metadata +23 -3
- data/app/views/wco/newspartials/index.haml-trash +0 -6
|
@@ -7,18 +7,3 @@ Stripe.api_version = '2020-08-27'
|
|
|
7
7
|
|
|
8
8
|
PI_DRUP_PROD_USERNAME ||= 'test-1@piousbox.com'
|
|
9
9
|
PI_DRUP_PROD_PASSWD ||= 'KSUisl321,'
|
|
10
|
-
|
|
11
|
-
SCHWAB_DATA = {
|
|
12
|
-
# key: 'epK2snmDATP8Rt8Z61drW7pp7bbA0Jxd', ## exec
|
|
13
|
-
# secret: 'GaIGXzwxsEc69S4w', ## exec
|
|
14
|
-
|
|
15
|
-
key: 'AytEXpTMmzmAHaKDlcvu5uYjqQvdHinz', ## market data
|
|
16
|
-
secret: '9zYIcBxPLzDFqEhN', ## market data
|
|
17
|
-
|
|
18
|
-
access_token: 'I0.b2F1dGgyLmNkYy5zY2h3YWIuY29t.ZOtBvya0gEzxBQAjbaFoABoYhRsrvEEWPF3yswUVuZg@',
|
|
19
|
-
# redirect_url: 'https://email.wasya.co/trading/api/oauth2-redirect.html',
|
|
20
|
-
redirect_url: 'http://email.local:3002/trading/api/oauth2-redirect.html',
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
TEST_SCHWAB_ACCESS_TOKEN = "I0.b2F1dGgyLmJkYy5zY2h3YWIuY29t.mf4P-9r_E8x6sm4-lkoWRfBB8n0hXYv7O-O08t21f2s@"
|
|
24
|
-
|
data/config/routes.rb
CHANGED
|
@@ -19,7 +19,9 @@ Wco::Engine.routes.draw do
|
|
|
19
19
|
post 'videos', to: 'videos#create'
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
get 'application/tinymce',
|
|
22
|
+
get 'application/tinymce', to: 'application#tinymce'
|
|
23
|
+
get 'linkedin_sync', to: 'application#linkedin_sync', as: :linkedin_sync
|
|
24
|
+
match 'linkedin_cb', to: 'application#linkedin_cb', as: :linkedin_cb, via: [ :post, :get ]
|
|
23
25
|
|
|
24
26
|
resources :assets
|
|
25
27
|
# get 'assets/:id', to: 'assets#show', as: :asset
|
|
@@ -77,7 +79,8 @@ Wco::Engine.routes.draw do
|
|
|
77
79
|
resources :prices
|
|
78
80
|
resources :products
|
|
79
81
|
resources :profiles
|
|
80
|
-
post 'publishers/:id/do-run', to: 'publishers#do_run',
|
|
82
|
+
post 'publishers/:id/do-run', to: 'publishers#do_run', as: :run_publisher
|
|
83
|
+
post 'publishers/do-run', to: 'publishers#do_run_any', as: :run_any_publisher
|
|
81
84
|
resources :publishers
|
|
82
85
|
|
|
83
86
|
post 'photos/update-ordering', to: 'galleries#update_ordering', as: :update_ordering_photos
|
|
@@ -87,6 +90,9 @@ Wco::Engine.routes.draw do
|
|
|
87
90
|
|
|
88
91
|
get 'reports', to: 'reports#index', as: :reports, defaults: { deleted: false }
|
|
89
92
|
get 'reports/deleted', to: 'reports#index', as: :deleted_reports, defaults: { deleted: true } ## must be before resources, because 'deleted' is not an id.
|
|
93
|
+
match 'reports/:id/to-linkedin', to: 'reports#to_linkedin', as: :report_to_linkedin, via: [ :get, :post ]
|
|
94
|
+
match 'reports/:id/to-facebook', to: 'reports#to_facebook', as: :report_to_facebook, via: [ :get, :post ]
|
|
95
|
+
match 'reports/:id/to-company-linkedin', to: 'reports#to_company_linkedin', as: :report_to_company_linkedin, via: [ :get, :post ]
|
|
90
96
|
resources :reports
|
|
91
97
|
|
|
92
98
|
post 'sites/:id/check_sitemap', to: 'sites#check_sitemap', as: :check_sitemap
|
|
@@ -102,6 +108,9 @@ Wco::Engine.routes.draw do
|
|
|
102
108
|
## many resources
|
|
103
109
|
post 'tags/add-to-many/:resource', to: 'tags#add_to_many', as: :add_tag_to_many
|
|
104
110
|
post 'tags/rm-from-many/:resource', to: 'tags#rm_from_many', as: :rm_tag_from_many
|
|
111
|
+
get 'tags/new-for-sidebar', to: 'tags#new_for_sidebar', as: :new_sidebar_tag
|
|
112
|
+
post 'tags/new-for-sidebar', to: 'tags#create_for_sidebar'
|
|
113
|
+
get 'tags/:id/show2', to: 'tags#show', as: :tag_show2, defaults: { template: 'show2' }
|
|
105
114
|
resources :tags
|
|
106
115
|
|
|
107
116
|
## In order to have unsubscribes_url , unsubscribes must be in wco .
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
class Wco::FacebookPoster
|
|
3
|
+
include HTTParty
|
|
4
|
+
base_uri 'https://graph.facebook.com/v19.0'
|
|
5
|
+
|
|
6
|
+
def initialize
|
|
7
|
+
@page_id = ::FB_PAGE_ID # Rails.application.credentials.dig(:facebook, :page_id)
|
|
8
|
+
@access_token = ::FB_ACCESS_TOKEN # Rails.application.credentials.dig(:facebook, :access_token)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def post(message)
|
|
12
|
+
self.class.post("/#{@page_id}/feed", body: {
|
|
13
|
+
message: message,
|
|
14
|
+
access_token: @access_token
|
|
15
|
+
})
|
|
16
|
+
end
|
|
17
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wco_models
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.0.
|
|
4
|
+
version: 3.1.0.271
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Pudeyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ahoy_matey
|
|
@@ -360,6 +360,20 @@ dependencies:
|
|
|
360
360
|
- - "~>"
|
|
361
361
|
- !ruby/object:Gem::Version
|
|
362
362
|
version: 10.4.0
|
|
363
|
+
- !ruby/object:Gem::Dependency
|
|
364
|
+
name: streamio-ffmpeg
|
|
365
|
+
requirement: !ruby/object:Gem::Requirement
|
|
366
|
+
requirements:
|
|
367
|
+
- - ">="
|
|
368
|
+
- !ruby/object:Gem::Version
|
|
369
|
+
version: '0'
|
|
370
|
+
type: :runtime
|
|
371
|
+
prerelease: false
|
|
372
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
373
|
+
requirements:
|
|
374
|
+
- - ">="
|
|
375
|
+
- !ruby/object:Gem::Version
|
|
376
|
+
version: '0'
|
|
363
377
|
description: https://wasya.co
|
|
364
378
|
email:
|
|
365
379
|
- victor@wasya.co
|
|
@@ -550,6 +564,7 @@ files:
|
|
|
550
564
|
- app/views/wco/_paginate.haml
|
|
551
565
|
- app/views/wco/_search.haml
|
|
552
566
|
- app/views/wco/_select_all.haml
|
|
567
|
+
- app/views/wco/_sidebar.haml
|
|
553
568
|
- app/views/wco/api/leads/index_hash.jbuilder
|
|
554
569
|
- app/views/wco/api/tags/index.json.jbuilder
|
|
555
570
|
- app/views/wco/application/_alerts_notices.haml
|
|
@@ -623,7 +638,7 @@ files:
|
|
|
623
638
|
- app/views/wco/newsoverlays/new.haml
|
|
624
639
|
- app/views/wco/newspartials/_form.haml
|
|
625
640
|
- app/views/wco/newspartials/_show_in_newsvideo.haml
|
|
626
|
-
- app/views/wco/newspartials/
|
|
641
|
+
- app/views/wco/newspartials/edit.haml
|
|
627
642
|
- app/views/wco/newspartials/new.haml
|
|
628
643
|
- app/views/wco/newsvideos/_form.haml
|
|
629
644
|
- app/views/wco/newsvideos/_header_mini.haml
|
|
@@ -680,12 +695,14 @@ files:
|
|
|
680
695
|
- app/views/wco/profiles/new.haml
|
|
681
696
|
- app/views/wco/publishers/_form.haml
|
|
682
697
|
- app/views/wco/publishers/_header.haml
|
|
698
|
+
- app/views/wco/publishers/_post_with.haml
|
|
683
699
|
- app/views/wco/publishers/edit.haml
|
|
684
700
|
- app/views/wco/publishers/index.haml
|
|
685
701
|
- app/views/wco/publishers/new.haml
|
|
686
702
|
- app/views/wco/reports/_form.haml
|
|
687
703
|
- app/views/wco/reports/_header.haml
|
|
688
704
|
- app/views/wco/reports/_index.haml
|
|
705
|
+
- app/views/wco/reports/_to_facebook.html
|
|
689
706
|
- app/views/wco/reports/edit.haml
|
|
690
707
|
- app/views/wco/reports/index.haml
|
|
691
708
|
- app/views/wco/reports/index_table.haml
|
|
@@ -715,7 +732,9 @@ files:
|
|
|
715
732
|
- app/views/wco/tags/edit.haml
|
|
716
733
|
- app/views/wco/tags/index.haml
|
|
717
734
|
- app/views/wco/tags/new.haml
|
|
735
|
+
- app/views/wco/tags/new_for_sidebar.haml
|
|
718
736
|
- app/views/wco/tags/show.haml
|
|
737
|
+
- app/views/wco/tags/show.haml-bk
|
|
719
738
|
- app/views/wco/unsubscribes/_header.haml
|
|
720
739
|
- app/views/wco/unsubscribes/_table.haml
|
|
721
740
|
- app/views/wco/unsubscribes/error.haml
|
|
@@ -781,6 +800,7 @@ files:
|
|
|
781
800
|
- lib/tasks/wp_tasks.rake
|
|
782
801
|
- lib/wco/ai_writer.rb
|
|
783
802
|
- lib/wco/engine.rb
|
|
803
|
+
- lib/wco/facebook_poster.rb
|
|
784
804
|
- lib/wco/office_worker.rb
|
|
785
805
|
- lib/wco/scrape_wsj.rb
|
|
786
806
|
- lib/wco/scrape_wsj_capy.rb
|