usmu 1.4.4 → 1.4.5

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
  SHA1:
3
- metadata.gz: 7b8b70c84c30cdcdd1b5e3bd4aaccf9393c1a815
4
- data.tar.gz: 81de219aa3ac8c671606ebfe9b11d7e16707929f
3
+ metadata.gz: 3051182d5716715bdc8f7dd24a568fd5f3e6c7e3
4
+ data.tar.gz: 389a461e09f481e2bfc9e37f68fad694a10be967
5
5
  SHA512:
6
- metadata.gz: a6d9e4559b7ce3691e3b9e3d8e58b600e89e48c2ca746b43a71ced2096f94206e0938a9722b9f65121afdb88021b72be73c2258fa1814f1df68ae716b19cf2bd
7
- data.tar.gz: 930086e119f6887041a56d4d05b3438be05f7ea341be22dd38bd512d97e2c357124f37d3ae506113ad51274dc1dbf1056323a136b82d54406f0889d6d8ed5ae6
6
+ metadata.gz: f82c219485f87230561ee35b84071562594efce9c0c90ab64a25737dbc05298e0f5e8522842487c1696495eda6d228d55c79d0fa531425fcdd5d6e6f4c39d335
7
+ data.tar.gz: a37532f0fe7b9e077f346089fa82ac67370e8bf5541ce1d63f3e1553ad7af77ffc5baa109ca82f01198b5c4a366cd07341c9bd06a37f09cc45e4db50bc4d1194
@@ -1,5 +1,20 @@
1
1
  # Usmu Change Log
2
2
 
3
+ ## 1.4.5
4
+
5
+ Matthew Scharley <matt.scharley@gmail.com>
6
+
7
+ * Bump copyright (90975f61e3b1814a13dce39f0ae8e3889ea9fa9a)
8
+ * Allow for PORT env var to override port specified in config (36956be9bcfc02489c907daa5ecbfe8ec347e095)
9
+
10
+ ## 1.4.4
11
+
12
+ Matthew Scharley <matt.scharley@gmail.com>
13
+
14
+ * Bump to >= Ruby 2.2 (1a386c38aeb329c00bc9fff90d1f3ddc756d1770)
15
+ * Fix bug in #provider_name (e90dbda1ad0902ed1d717b22ef5c1f65b1500a48)
16
+ * Bump build status to use Circle CI's badge (4aecfef22be391ec5c9acc8c69cdf8cdc7a9da9b)
17
+
3
18
  ## 1.4.3
4
19
 
5
20
  Matthew Scharley <matt.scharley@gmail.com>
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Matthew Scharley and contributors
1
+ Copyright (c) 2016 Matthew Scharley and contributors
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  **Author:** Matthew Scharley
9
9
  **Contributors:** [See contributors on GitHub][gh-contrib]
10
10
  **Bugs/Support:** [Github Issues][gh-issues]
11
- **Copyright:** 2014
11
+ **Copyright:** 2016
12
12
  **License:** [MIT license][license]
13
13
  **Status:** Active
14
14
 
data/circle.yml CHANGED
@@ -1,7 +1,3 @@
1
- machine:
2
- ruby:
3
- version: 2.3.0
4
-
5
1
  test:
6
2
  override:
7
3
  - bundle exec rspec --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml
@@ -82,9 +82,11 @@ module Usmu
82
82
  Rack::Handler::WEBrick.shutdown
83
83
  server.shutdown
84
84
  end
85
+ host = configuration['serve', 'host', default: 'localhost']
86
+ port = (ENV['PORT'] || configuration['serve', 'port', default: 8080]).to_i
85
87
  Rack::Handler::WEBrick.run server,
86
- Host: configuration['serve', 'host', default: 'localhost'],
87
- Port: configuration['serve', 'port', default: 8080]
88
+ Host: host,
89
+ Port: port
88
90
  @log.info('Stopped webserver.')
89
91
  end
90
92
 
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Usmu
3
3
  # The current version string for the gem
4
- VERSION = '1.4.4'
4
+ VERSION = '1.4.5'
5
5
  end
@@ -113,6 +113,17 @@ RSpec.describe Usmu::Plugin::Core do
113
113
  expect(Rack::Handler::WEBrick).to receive(:run).with(rs, Host: '0.0.0.0', Port: 8008)
114
114
  plugin.command_serve [], options
115
115
  end
116
+
117
+ it 'should take port from the environment if available' do
118
+ ENV['PORT'] = '80'
119
+ plugin.send :ui=, OpenStruct.new(configuration: configuration)
120
+ expect(Rack::Handler::WEBrick).to receive(:run).with(rs, Host: '0.0.0.0', Port: 80)
121
+ plugin.command_serve [], options
122
+ end
123
+
124
+ after(:each) do
125
+ ENV.delete 'PORT'
126
+ end
116
127
  end
117
128
 
118
129
  context '#init_copy_file' do
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'json', '~> 1.8'
33
33
 
34
34
  spec.add_development_dependency 'bundler', '~> 1.6'
35
- spec.add_development_dependency 'rake', '~> 10.0'
35
+ spec.add_development_dependency 'rake', '~> 11.0'
36
36
  spec.add_development_dependency 'rspec', '~> 3.1'
37
37
  spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2'
38
38
  spec.add_development_dependency 'yard', '~> 0.8'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usmu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Scharley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slim
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '10.0'
131
+ version: '11.0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '10.0'
138
+ version: '11.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement