madride 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/madride +6 -5
- data/lib/madride/version.rb +1 -1
- data/madride.gemspec +1 -1
- metadata +4 -4
data/bin/madride
CHANGED
@@ -12,7 +12,7 @@ require 'rack'
|
|
12
12
|
# Options container. Filled in with default values.
|
13
13
|
#
|
14
14
|
|
15
|
-
options = { :host => '0.0.0.0', :port => 3000, :data => {}
|
15
|
+
options = { :host => '0.0.0.0', :port => 3000, :data => {} }
|
16
16
|
|
17
17
|
#
|
18
18
|
# Parse options
|
@@ -41,7 +41,8 @@ OptionParser.new("", 24, ' ') do |opts|
|
|
41
41
|
end
|
42
42
|
|
43
43
|
opts.on("-d", "--data FILE", "read data from yaml FILE") do |file|
|
44
|
-
|
44
|
+
data = YAML.load_file file
|
45
|
+
options[:data].merge! data if data.is_a? Hash
|
45
46
|
end
|
46
47
|
|
47
48
|
#
|
@@ -58,7 +59,7 @@ OptionParser.new("", 24, ' ') do |opts|
|
|
58
59
|
#
|
59
60
|
|
60
61
|
begin
|
61
|
-
opts.
|
62
|
+
opts.parse!
|
62
63
|
rescue OptionParser::ParseError => e
|
63
64
|
opts.warn e.message
|
64
65
|
exit 1
|
@@ -68,7 +69,7 @@ OptionParser.new("", 24, ' ') do |opts|
|
|
68
69
|
# We need at least one path
|
69
70
|
#
|
70
71
|
|
71
|
-
if
|
72
|
+
if ARGV.empty?
|
72
73
|
opts.warn "No paths given. See `madride --help` for usage info."
|
73
74
|
exit 1
|
74
75
|
end
|
@@ -84,7 +85,7 @@ environment = Madride::Environment.new Dir.pwd
|
|
84
85
|
# Fill in paths
|
85
86
|
#
|
86
87
|
|
87
|
-
|
88
|
+
ARGV.each{ |path| environment.append_path path }
|
88
89
|
|
89
90
|
#
|
90
91
|
# Start server
|
data/lib/madride/version.rb
CHANGED
data/madride.gemspec
CHANGED
@@ -4,7 +4,7 @@ require File.expand_path('../lib/madride/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "madride"
|
6
6
|
gem.version = Madride::VERSION
|
7
|
-
gem.homepage = ""
|
7
|
+
gem.homepage = "https://github.com/madride/madride"
|
8
8
|
gem.authors = ["Aleksey V Zapparov"]
|
9
9
|
gem.email = ["ixti@member.fsf.org"]
|
10
10
|
gem.summary = "madride-#{Madride::VERSION}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: madride
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|
@@ -160,7 +160,7 @@ files:
|
|
160
160
|
- spec/fixtures/pages/music/bands.html.slim
|
161
161
|
- spec/server_spec.rb
|
162
162
|
- spec/spec_helper.rb
|
163
|
-
homepage:
|
163
|
+
homepage: https://github.com/madride/madride
|
164
164
|
licenses: []
|
165
165
|
post_install_message:
|
166
166
|
rdoc_options: []
|
@@ -183,7 +183,7 @@ rubyforge_project:
|
|
183
183
|
rubygems_version: 1.8.23
|
184
184
|
signing_key:
|
185
185
|
specification_version: 3
|
186
|
-
summary: madride-1.0.
|
186
|
+
summary: madride-1.0.2
|
187
187
|
test_files:
|
188
188
|
- spec/.gitkeep
|
189
189
|
- spec/environment_spec.rb
|