staugaard-transcoding_machine 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 1
2
+ :patch: 2
3
3
  :major: 0
4
4
  :minor: 1
@@ -51,6 +51,7 @@ module TranscodingMachine
51
51
  def push_status(status, options = {})
52
52
  msg = @message_properties.clone
53
53
  msg[:status] = status
54
+ msg[:transcoding_machine_version] => TranscodingMachine::VERSION
54
55
  msg.merge!(options)
55
56
  @result_queue.push(msg.to_yaml)
56
57
  end
@@ -8,6 +8,9 @@ require 'transcoding_machine/client/result_queue'
8
8
  require 'transcoding_machine/client/server_manager'
9
9
 
10
10
  module TranscodingMachine
11
+ version = YAML.load_file(File.expand_path('../VERSION.yml', File.dirname(__FILE__)))
12
+ VERSION = "#{version[:major]}.#{version[:minor]}.#{version[:patch]}"
13
+
11
14
  module_function
12
15
  def load_models_from_json(json_string)
13
16
  load_models_from_hash(ActiveSupport::JSON.decode(json_string))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staugaard-transcoding_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard