Sha256: 7b37739d5694a9993e69bb05c9878a861f24926e3da6f5fd7a954789f0d021e7

Contents?: true

Size: 244 Bytes

Versions: 16

Compression:

Stored size: 244 Bytes

Contents

require 'json'

module ChameleonVersion
  class Generator < Jekyll::Generator
    def generate(site)

      site.data['chameleon_version'] = JSON.load(File.open(File.expand_path('../../../package.json', __FILE__)))['version']

    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
pusher-chameleon-1.4.6 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.4.5 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.4.4 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.4.3 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.4.2 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.4.1 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.4.0 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.3.0 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.2.1 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.2.0 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.1.0 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.0.4 docs/_plugins/chameleon_version.rb
pusher-chameleon-1.0.3 docs/_plugins/chameleon_version.rb
pusher_chameleon-1.0.3 docs/_plugins/chameleon_version.rb
pusher_chameleon-1.0.2 docs/_plugins/chameleon_version.rb
pusher_chameleon-1.0.0 docs/_plugins/chameleon_version.rb