nimbu 0.12.0 → 0.13.0
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/nimbu/command/server.rb +29 -14
- data/lib/nimbu/version.rb +1 -1
- metadata +23 -10
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: b5ca8decb3bbcaff09111f825e17dfac4f94e3703f015568ec3923369ef46383
         | 
| 4 | 
            +
              data.tar.gz: 54270a24b7ae669ff6fb9e9d1d298b3b92ed022eace0d06f841fe2e0807974ad
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: b729ae9aa81917073c5fe296c31fcf8cbd4e97090360a81c4b307995078938a13f55692e4cf204f6362e23975bcc39e016c518698c8405bae10a115fccfb4107
         | 
| 7 | 
            +
              data.tar.gz: 7d396b10643c17110361d3799979e96154695af5688a0aeebce1e9472a2750b3acd3a7b03f497755f008211190826f5487ada963da1606b281b211989d8d6d32
         | 
    
        data/lib/nimbu/command/server.rb
    CHANGED
    
    | @@ -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 << "  | 
| 68 | 
            -
                  title << "  | 
| 69 | 
            -
                  title << "  | 
| 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  | 
| 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 | 
            -
                 | 
| 231 | 
            -
                 | 
| 232 | 
            -
                 | 
| 233 | 
            -
                 | 
| 234 | 
            -
             | 
| 235 | 
            -
             | 
| 236 | 
            -
             | 
| 237 | 
            -
             | 
| 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
    
    
    
        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. | 
| 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:  | 
| 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 | 
| 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 | 
| 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: ' | 
| 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: ' | 
| 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 | 
            -
             | 
| 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.
         |