network_executive 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,14 @@
1
1
  ;(function() {
2
2
 
3
- var channel = window.location.pathname.split('/')[2];
3
+ var paths = window.location.pathname.split('/'),
4
+ channel = paths[ paths.length - 1];
4
5
 
5
6
  if( channel ) {
6
7
  console.log( 'tune in to channel:', channel );
7
8
 
8
9
  document.getElementById('smpte_message').innerHTML = 'Establishing uplink...';
9
10
 
10
- var source = new EventSource('/tune_in/' + channel);
11
+ var source = new EventSource('../tune_in/' + channel);
11
12
 
12
13
  source.addEventListener('open', function(e) {
13
14
  document.getElementById('smpte_message').innerHTML = 'Awaiting transmission...';
@@ -29,7 +29,7 @@
29
29
  </header>
30
30
  <article>
31
31
  <% @channels.each do |channel| %>
32
- <a href="/channels/<%= channel.name %>" class="channel"><%= channel.display_name %></a>
32
+ <a href="channels/<%= channel.name %>" class="channel"><%= channel.display_name %></a>
33
33
  <% end %>
34
34
  </article>
35
35
  </div>
@@ -1,3 +1,3 @@
1
1
  module NetworkExecutive
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: network_executive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &2152386920 !ruby/object:Gem::Requirement
16
+ requirement: &2164453740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152386920
24
+ version_requirements: *2164453740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: faye-websocket
27
- requirement: &2152385200 !ruby/object:Gem::Requirement
27
+ requirement: &2164451980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.4.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2152385200
35
+ version_requirements: *2164451980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sass-rails
38
- requirement: &2152402100 !ruby/object:Gem::Requirement
38
+ requirement: &2164470220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.2'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2152402100
46
+ version_requirements: *2164470220
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: awesome_print
49
- requirement: &2152401200 !ruby/object:Gem::Requirement
49
+ requirement: &2164469320 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2152401200
57
+ version_requirements: *2164469320
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rails
60
- requirement: &2152399480 !ruby/object:Gem::Requirement
60
+ requirement: &2164467640 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 3.2.8
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2152399480
68
+ version_requirements: *2164467640
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-rails
71
- requirement: &2152412880 !ruby/object:Gem::Requirement
71
+ requirement: &2152099960 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '2.11'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2152412880
79
+ version_requirements: *2152099960
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: fakefs
82
- requirement: &2152411700 !ruby/object:Gem::Requirement
82
+ requirement: &2152096360 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.4.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2152411700
90
+ version_requirements: *2152096360
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: timecop
93
- requirement: &2152410760 !ruby/object:Gem::Requirement
93
+ requirement: &2152095400 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 0.4.5
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2152410760
101
+ version_requirements: *2152095400
102
102
  description: An experimental application used to drive displays hung around an office.
103
103
  email:
104
104
  - dlindahl@customink.com
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  segments:
220
220
  - 0
221
- hash: -3920884458192808867
221
+ hash: -2613508738067958450
222
222
  requirements: []
223
223
  rubyforge_project:
224
224
  rubygems_version: 1.8.10