carraway 0.1.3 → 0.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: cc4bed22dfa184283c6759f303618a90d96af98e3a0a5db6b5043505fa2cfebd
4
- data.tar.gz: 415b55a32d6e4136e48bf6fcea91135a7c2d3c59200a3e65dde015d88eceab75
3
+ metadata.gz: 9d8e34bdc6fe36b91e4f9832faeafca92c41cb1767f3395978fae1d6c4e906ec
4
+ data.tar.gz: e874ee4468fe8d2702430d10214dfd13651a22cb31a2e5a6c58f61a7e5f965ef
5
5
  SHA512:
6
- metadata.gz: 7e1285c808361afaea53181949015f9f5923f6bf464e75584bf700035433a32530271bac82b5be44efbc406b2f3ce8a0e4bafb1fa6f8213f016283efbc131204
7
- data.tar.gz: 0d679cc4b3e1be005738c7febeb329f2779939b50186952aff5191f0496cbd4c6768b675228aefa68961833edc466dd2bcb57c3144094a3e8711b9b7d6ad0a5d
6
+ metadata.gz: 73e0198dd612d5274164b0093fffc586a82d96423f64a8445076028c0977e88cfc693304e365348cf34ecfc377a019257b272104ff3022b40bba07b48df15400
7
+ data.tar.gz: a4cf3ab6db898c0268808bd22d782965438b404917ced1cfd599e60059f269a22f35eaa02a7b6b49296c05868b1309281c610419dc3f65d65aa4cc609d5551ac
data/lib/carraway/cli.rb CHANGED
@@ -6,7 +6,7 @@ module Carraway
6
6
  option :config, default: 'carraway.yml', aliases: 'c', type: :string
7
7
  def start
8
8
  Carraway::Config.load(options[:config])
9
- Carraway::Server.run!
9
+ Carraway::Server.run!(port: Config.port)
10
10
  end
11
11
 
12
12
 
@@ -11,6 +11,10 @@ module Carraway
11
11
  def backend
12
12
  @config['backend']
13
13
  end
14
+
15
+ def port
16
+ @config['port'] || 5000
17
+ end
14
18
  end
15
19
  end
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module Carraway
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carraway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - adorechic