mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	add a VERSION constant (#471)
This commit is contained in:
		
							parent
							
								
									1e18389f5f
								
							
						
					
					
						commit
						09bb1fcd40
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		|  | @ -54,4 +54,12 @@ describe "Config" do | ||||||
|     Kemal::CLI.new |     Kemal::CLI.new | ||||||
|     test_option.should eq("FOOBAR") |     test_option.should eq("FOOBAR") | ||||||
|   end |   end | ||||||
|  | 
 | ||||||
|  |   it "returns a string" do | ||||||
|  |     Kemal::VERSION.should be_a(String) | ||||||
|  |   end | ||||||
|  | 
 | ||||||
|  |   it "gets the version from shards.yml" do | ||||||
|  |     Kemal::VERSION.should eq("0.23.0") | ||||||
|  |   end | ||||||
| end | end | ||||||
|  |  | ||||||
|  | @ -1,4 +1,6 @@ | ||||||
| module Kemal | module Kemal | ||||||
|  |   VERSION = {{ `shards version #{__DIR__}`.chomp.stringify }} | ||||||
|  | 
 | ||||||
|   # Stores all the configuration options for a Kemal application. |   # Stores all the configuration options for a Kemal application. | ||||||
|   # It's a singleton and you can access it like. |   # It's a singleton and you can access it like. | ||||||
|   # |   # | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue