pairer 1.1.0 → 1.2.0

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: baae8b61ab6fe20e58bfb2040fcb97ee6ea477fc3d86cb5e962b27247ce852ea
4
- data.tar.gz: faf2a7ac60299a32f8a3beeba3e1fcd146ff61821b3f77d5b37e76f9886a4f04
3
+ metadata.gz: 03422d4cc7e2e8f77e732ab5d8c961a12ac1eca81f239ff1686225a03b044b96
4
+ data.tar.gz: 7093748edb2faae592a62dc81dbde13d123914cfb2537b78afe1149dd31c4b16
5
5
  SHA512:
6
- metadata.gz: b1d4530dd01c6e582a37545982a53dbb295cefdbfe05abd0b8a45043428bec3ef6b1d3a70c8257960e6327876e690148a11f14bfd4a7a4e4f00f474093bd42c2
7
- data.tar.gz: 799402c528dbec3437f7d23a1e734ee5b981742d1fbc090b44b3c0da4467075bff3ef711d7fdd756e2d007ab59428ef8ef9f9732d4af55d3f27f47af2df459e1
6
+ metadata.gz: a6f6cfea6e12f5efd07b1d7a118e13f14196406bc3ef25341fef7974fff6d6f650dca5fc80b216222fcd754eaa3a89f3495c8b4942403c5480bcb5161fc0c23f
7
+ data.tar.gz: ab9182ccfc3c737f39247c1a10fac7a47d12db3f71749e9d337ad374359a99e583937d8cd0ada65d237e8f898799a3e59cb10d16b291e4760e6248bae776050a
@@ -1,5 +1,3 @@
1
- //= require rails-ujs
2
-
3
1
  window.init = function(){
4
2
  $('form').attr('autocomplete', 'off');
5
3
 
@@ -1,8 +1,3 @@
1
- /*
2
- *= require ./utility
3
- *= require_self
4
- */
5
-
6
1
  :root{
7
2
  --navbar-height: 3.5em;
8
3
  }
@@ -247,7 +247,9 @@ module Pairer
247
247
  redirect_to(action: :index)
248
248
  end
249
249
 
250
- @board = Pairer::Board.find_by!(org_id: session[:pairer_current_org_id], public_id: params[:id])
250
+ @board = Pairer::Board
251
+ .includes(:people, :groups)
252
+ .find_by!(org_id: session[:pairer_current_org_id], public_id: params[:id])
251
253
  end
252
254
 
253
255
  def people_by_id
@@ -266,7 +268,7 @@ module Pairer
266
268
 
267
269
  include ActionView::Helpers::JavaScriptHelper
268
270
  def render_js_page_replace
269
- @board.reload
271
+ get_board
270
272
 
271
273
  js_page_content = escape_javascript(render_to_string "pairer/boards/show", layout: false)
272
274
 
@@ -13,6 +13,7 @@ html
13
13
 
14
14
  link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/united/bootstrap.min.css" integrity="sha512-JsK+6bBl5wmtKe9PnCXclLS1fwG7GvLZ9IkBg/ACzuSJJUKTedxyXRFujJf+KpcNFFhSX+I05YPAm99r1ivmog==" crossorigin="anonymous" referrerpolicy="no-referrer"
15
15
 
16
+ = stylesheet_link_tag 'pairer/utility'
16
17
  = stylesheet_link_tag 'pairer/application', media: 'all'
17
18
 
18
19
  script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" referrerpolicy="no-referrer"
@@ -28,6 +29,7 @@ html
28
29
 
29
30
  script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha512-oBTprMeNEKCnqfuqKd6sbvFzmFQtlXS3e0C/RGFV0hD6QzhHV+ODfaQbAlmY6/q0ubbwlAM/nCJjkrgA3waLzg==" crossorigin="anonymous" referrerpolicy="no-referrer"
30
31
 
32
+ = javascript_include_tag 'rails-ujs'
31
33
  = javascript_include_tag 'pairer/application'
32
34
 
33
35
  body
data/lib/pairer/engine.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'slim'
2
- require "sprockets/railtie"
3
2
  require 'hashids'
4
3
 
5
4
  module Pairer
@@ -7,8 +6,11 @@ module Pairer
7
6
  isolate_namespace Pairer
8
7
 
9
8
  initializer "pairer.assets.precompile" do |app|
9
+ # this initializer is only called when sprockets is in use
10
+
10
11
  app.config.assets.precompile << "pairer_manifest.js" ### manifest file required
11
12
  app.config.assets.precompile << "pairer/favicon.ico"
13
+ app.config.assets.precompile << "rails-ujs" # provided by activesupport
12
14
 
13
15
  ### Automatically precompile assets in specified folders
14
16
  ["app/assets/images/"].each do |folder|
@@ -1,3 +1,3 @@
1
1
  module Pairer
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = "1.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pairer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-23 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '6.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '6.0'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actioncable
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: sprockets-rails
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: sqlite3
85
71
  requirement: !ruby/object:Gem::Requirement