raindeer 0.8.0 → 0.8.2
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/lib/cli/cli.rb +5 -6
- data/lib/cli/static/static.rb +0 -1
- data/lib/router/router.rb +1 -1
- data/lib/support/config_loader.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e437d6ae9ff2fd31adeb9fa1d31e41d1d6574bcdc8d128f22f8eeb0d0c6a0f7f
|
|
4
|
+
data.tar.gz: 34ea26b8ccccbf6f1104d050641e293bed7649dfa4036f4b2694210796fb049e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e50cd8a1cdc7fa52d60556ac60ee071b0ddc6899310d39a4169fd0119cbb6a11182cbe2c6557ef63ea2c6d8124a62a7e3b18f8a3dec5757f261638d9e956b3f6
|
|
7
|
+
data.tar.gz: 6dadafc16826077a08bb81265480ae34b0d29d92b3c61a3aec96794b14efb2728b8d6f0002766326bd8e9f2c207a9945df7483a7da749c8866f3c0dfd8488fc3
|
data/lib/cli/cli.rb
CHANGED
|
@@ -8,19 +8,18 @@ module Rain
|
|
|
8
8
|
extend Trees
|
|
9
9
|
|
|
10
10
|
line('new :app_name') do |app_name|
|
|
11
|
+
summary { "Generates a Raindeer application with the specified name." }
|
|
11
12
|
execute { 'TODO' }
|
|
12
13
|
end
|
|
13
14
|
|
|
14
15
|
line('server') do
|
|
16
|
+
summary { "Starts a Raindeer application. Once run visit http://127.0.0.1:4133" }
|
|
15
17
|
execute { system('bin/server') }
|
|
16
18
|
end
|
|
17
19
|
|
|
18
|
-
line('
|
|
19
|
-
summary { '
|
|
20
|
-
|
|
21
|
-
line('build') do
|
|
22
|
-
execute { Static.build(application_path: Dir.pwd) }
|
|
23
|
-
end
|
|
20
|
+
line('build') do
|
|
21
|
+
summary { 'Exports your static site at "app/pages" to the "build" folder.' }
|
|
22
|
+
execute { Static.build(application_path: Dir.pwd) }
|
|
24
23
|
end
|
|
25
24
|
end
|
|
26
25
|
end
|
data/lib/cli/static/static.rb
CHANGED
data/lib/router/router.rb
CHANGED
|
@@ -56,7 +56,7 @@ module Rain
|
|
|
56
56
|
response_event = nil
|
|
57
57
|
|
|
58
58
|
# The last route event will render a response event which we want to return to the request event.
|
|
59
|
-
@trie.match(path: event.request.path
|
|
59
|
+
@trie.match(path: event.request.path).each do |route_event|
|
|
60
60
|
response_event = route_event.trigger
|
|
61
61
|
end
|
|
62
62
|
return response_event if response_event
|
|
@@ -7,7 +7,7 @@ module Rain
|
|
|
7
7
|
class ConfigLoader
|
|
8
8
|
class << self
|
|
9
9
|
def load(file_path, overrides = {})
|
|
10
|
-
file_path = File.expand_path("
|
|
10
|
+
file_path = File.expand_path("config/#{file_path}", Dir.pwd) unless File.exist?(file_path)
|
|
11
11
|
config_file = YAML.safe_load_file(file_path, permitted_classes: [Symbol], symbolize_names: true)
|
|
12
12
|
|
|
13
13
|
# Environment variables override config file.
|
data/lib/version.rb
CHANGED