mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Remove array support from session for now
This commit is contained in:
		
							parent
							
								
									a8e53fb94e
								
							
						
					
					
						commit
						e2c99bcfb8
					
				
					 2 changed files with 1 additions and 4 deletions
				
			
		|  | @ -59,7 +59,6 @@ describe "Session" do | ||||||
|     age = nil |     age = nil | ||||||
|     awesome = nil |     awesome = nil | ||||||
|     velocity = nil |     velocity = nil | ||||||
|     arr = nil |  | ||||||
|     get "/" do |env| |     get "/" do |env| | ||||||
|       sess = env.session |       sess = env.session | ||||||
|       who = sess["who"]? |       who = sess["who"]? | ||||||
|  | @ -71,7 +70,6 @@ describe "Session" do | ||||||
|       sess["age"] = 2016 |       sess["age"] = 2016 | ||||||
|       sess["velocity"] = 9999.9 |       sess["velocity"] = 9999.9 | ||||||
|       sess["awesome"] = true |       sess["awesome"] = true | ||||||
|       sess["arr"] = [1, "Serdar", true, 90000.0] |  | ||||||
|       "Hello" |       "Hello" | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|  | @ -84,6 +82,5 @@ describe "Session" do | ||||||
|     age.should eq 2016 |     age.should eq 2016 | ||||||
|     velocity.should eq 9999.9 |     velocity.should eq 9999.9 | ||||||
|     awesome.should eq true |     awesome.should eq true | ||||||
|     arr.should eq [1, "Serdar", true, 90000.0] |  | ||||||
|   end |   end | ||||||
| end | end | ||||||
|  |  | ||||||
|  | @ -16,7 +16,7 @@ module Kemal | ||||||
|   # Sessions are pruned hourly after 48 hours of inactivity. |   # Sessions are pruned hourly after 48 hours of inactivity. | ||||||
|   class Sessions |   class Sessions | ||||||
|     # Session Types are String, Integer, Float and Boolean |     # Session Types are String, Integer, Float and Boolean | ||||||
|     alias SessionTypes = String | Int32 | Float64 | Bool | Array(String | Int32 | Float64 | Bool) |     alias SessionTypes = String | Int32 | Float64 | Bool | ||||||
| 
 | 
 | ||||||
|     # In-memory, ephemeral datastore only. |     # In-memory, ephemeral datastore only. | ||||||
|     # |     # | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue