Sha256: 30a5dcc1c900e9c30eb03c4daf459a03afc999c814432146add9d046f63f1d29

Contents?: true

Size: 624 Bytes

Versions: 5

Compression:

Stored size: 624 Bytes

Contents

require "json"

module Whirly
  module Spinners
    WHIRLY = {
      "random_dots"         => { "proc" => ->(){ [ 0x2800 + rand(256)].pack("U") }, "interval" => 100 },
      "mahjong"             => { "proc" => ->(){ [0x1F000 + rand(44)].pack("U") }, "interval" => 200 },
      "domino"              => { "proc" => ->(){ [0x1F030 + rand(50)].pack("U") }, "interval" => 200 },
      "vertical_domino"     => { "proc" => ->(){ [0x1F062 + rand(50)].pack("U") }, "interval" => 200 }
    }
    WHIRLY.merge! JSON.load(File.read(File.dirname(__FILE__) + "/../../../data/whirly-static-spinners.json"))

    WHIRLY.freeze
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
whirly-0.3.0 lib/whirly/spinners/whirly.rb
murano-cli-whirly-0.2.7 lib/murano-cli-whirly/spinners/whirly.rb
whirly-0.2.6 lib/whirly/spinners/whirly.rb
whirly-0.2.5 lib/whirly/spinners/whirly.rb
whirly-0.2.4 lib/whirly/spinners/whirly.rb