nimbu 0.12.0 → 0.13.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: 89810923de0892b2e89ec5a67e73b09504b6b5e3ca55feb3796e687d0aeaac9d
4
- data.tar.gz: 234965e37cfe0a548d6d4af6f2f45b5de88ffe4364fb07b1620565d7a200e1e1
3
+ metadata.gz: b5ca8decb3bbcaff09111f825e17dfac4f94e3703f015568ec3923369ef46383
4
+ data.tar.gz: 54270a24b7ae669ff6fb9e9d1d298b3b92ed022eace0d06f841fe2e0807974ad
5
5
  SHA512:
6
- metadata.gz: e3f047d1f0971d7931984e5081b156029b531d01c02151d0df83ee32a957e2b893c8c6c7f8db23d0866427d39c051e2de54e5c763d29968d569d9109dba6d3d7
7
- data.tar.gz: 7b97b0d9371a70579bee1c89f9a6664ef24989ab2317ffae5095c5e349e708dfe5e6b598aa21a2230349ed07f8df42bc81b62dce2f02d3bf9d7815813754ed90
6
+ metadata.gz: b729ae9aa81917073c5fe296c31fcf8cbd4e97090360a81c4b307995078938a13f55692e4cf204f6362e23975bcc39e016c518698c8405bae10a115fccfb4107
7
+ data.tar.gz: 7d396b10643c17110361d3799979e96154695af5688a0aeebce1e9472a2750b3acd3a7b03f497755f008211190826f5487ada963da1606b281b211989d8d6d32
@@ -25,6 +25,7 @@ class Nimbu::Command::Server < Nimbu::Command::Base
25
25
  require 'thin'
26
26
  require 'filewatcher'
27
27
  require 'pathname'
28
+ require 'lolcat'
28
29
 
29
30
  # Check if config file is present?
30
31
  if !Nimbu::Auth.read_configuration
@@ -63,13 +64,13 @@ class Nimbu::Command::Server < Nimbu::Command::Base
63
64
  services = []
64
65
  services << "HAML" if @with_haml
65
66
  services << "Compass" if @with_compass
66
- title = "Starting up Nimbu Server"
67
- title << " (with local #{services.join(' and ')} watcher)" if @with_compass || @with_haml
68
- title << " (skipping cookies check)" if @no_cookies
69
- title << " (proxying webpack resources to #{Nimbu.cli_options[:webpack_url]})" if @webpack_resources
67
+ title = "Starting up local Nimbu Toolbelt Server (v#{Nimbu::VERSION}, using Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}):"
68
+ title << "\n - with local #{services.join(' and ')} watcher" if @with_compass || @with_haml
69
+ title << "\n - skipping cookies check" if @no_cookies
70
+ title << "\n - proxying webpack resources to #{Nimbu.cli_options[:webpack_url]}" if @webpack_resources
70
71
  title << " ..."
71
72
  puts white("\n#{title}")
72
- puts green(nimbu_header)
73
+ puts nimbu_header
73
74
  puts green("\nConnnected to '#{Nimbu::Auth.site}.#{Nimbu::Auth.admin_host}', using '#{Nimbu::Auth.theme}' theme#{Nimbu.debug ? ' (in debug mode)'.red : nil}.\n")
74
75
 
75
76
  if Nimbu::Helpers.running_on_windows?
@@ -164,7 +165,7 @@ class Nimbu::Command::Server < Nimbu::Command::Base
164
165
  :DocumentRoot => Dir.pwd
165
166
  }
166
167
  server_options.merge!({:Host => options[:host]}) if options[:host]
167
- Rack::Handler::Thin.run Nimbu::Server::Base, server_options do |server|
168
+ Rack::Handler::Thin.run Nimbu::Server::Base, **server_options do |server|
168
169
  [:INT, :TERM].each { |sig| trap(sig) { server.respond_to?(:stop!) ? server.stop! : server.stop } }
169
170
  end
170
171
  end
@@ -226,15 +227,29 @@ class Nimbu::Command::Server < Nimbu::Command::Base
226
227
  Process.waitall
227
228
  end
228
229
 
230
+ def nimbu_ascii_art
231
+ %{
232
+ _ _ _ _ _____ _ _ _ _
233
+ | \\ | (_)_ __ ___ | |__ _ |_ _|__ ___ | | |__ ___| | |_
234
+ | \\| | | '_ ` _ \\| '_ \\| | | || |/ _ \\ / _ \\| | '_ \\ / _ \\ | __|
235
+ | |\\ | | | | | | | |_) | |_| || | (_) | (_) | | |_) | __/ | |_
236
+ |_| \\_|_|_| |_| |_|_.__/ \\__,_||_|\\___/ \\___/|_|_.__/ \\___|_|\\__|}
237
+ end
238
+
229
239
  def nimbu_header
230
- h = ""
231
- h << "\n o8o .o8"
232
- h << "\n `\"' \"888"
233
- h << "\nooo. .oo. oooo ooo. .oo. .oo. 888oooo. oooo oooo"
234
- h << "\n`888P\"Y88b `888 `888P\"Y88bP\"Y88b d88' `88b `888 `888"
235
- h << "\n 888 888 888 888 888 888 888 888 888 888"
236
- h << "\n 888 888 888 888 888 888 888 888 888 888"
237
- h << "\no888o o888o o888o o888o o888o o888o `Y8bod8P' `V88V\"V8P'"
240
+ length = nimbu_ascii_art.split("\n").last.length
241
+ print white("\n" + "=" * length)
242
+ buf = StringIO.new(nimbu_ascii_art)
243
+ opts = {
244
+ :animate => false,
245
+ :duration => 12,
246
+ :os => rand * 8192,
247
+ :speed => 20,
248
+ :spread => 8.0,
249
+ :freq => 0.3
250
+ }
251
+ Lol.cat buf, opts
252
+ print white("\n\n" + "=" * length)
238
253
  end
239
254
 
240
255
  def running?(pid)
data/lib/nimbu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nimbu
2
- VERSION = '0.12.0'.freeze
2
+ VERSION = '0.13.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimbu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zenjoy BVBA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-10 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: term-ansicolor
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.2
61
+ version: 2.1.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.2
68
+ version: 2.1.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sinatra-contrib
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -206,20 +206,34 @@ dependencies:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: lolcat
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
209
223
  - !ruby/object:Gem::Dependency
210
224
  name: bundler
211
225
  requirement: !ruby/object:Gem::Requirement
212
226
  requirements:
213
- - - "~>"
227
+ - - ">="
214
228
  - !ruby/object:Gem::Version
215
- version: '1.3'
229
+ version: '0'
216
230
  type: :development
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
219
233
  requirements:
220
- - - "~>"
234
+ - - ">="
221
235
  - !ruby/object:Gem::Version
222
- version: '1.3'
236
+ version: '0'
223
237
  - !ruby/object:Gem::Dependency
224
238
  name: rake
225
239
  requirement: !ruby/object:Gem::Requirement
@@ -339,8 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
353
  - !ruby/object:Gem::Version
340
354
  version: '0'
341
355
  requirements: []
342
- rubyforge_project:
343
- rubygems_version: 2.7.6.2
356
+ rubygems_version: 3.3.3
344
357
  signing_key:
345
358
  specification_version: 4
346
359
  summary: Client library and CLI to design websites on the Nimbu platform.