concerto_template_scheduling 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5c7c04f07217590b080132754d21fe5cafeac4a
4
- data.tar.gz: 0deb0cda5c77652123da91d07fefad3ea3b48ff0
3
+ metadata.gz: ca7e673d1dce129829cb280a4650d9ffbdec692d
4
+ data.tar.gz: 56ea80be0cb47c1f8d80e742e5557ad0d649d977
5
5
  SHA512:
6
- metadata.gz: 8c4de17db8e34ee8e5812e576baa84a61f773f777d36a44b7d1fcfc6533a3d4876382219f551393f5007049d2a576c495247c95dc929e00ba5d6fca6b9a55e0e
7
- data.tar.gz: d44439625bd89b78004a8ebcc54ea064cd0a9a446fc49f8254d6270f5aa16f2a1b5ca7fa2c122ba75decb32ca3829262c834287d5df3608b327b01c137381b62
6
+ metadata.gz: 0af34cb906da98ec44283b65728e2cd1e2cef4b017fae7b4499090bd9afda55ba4de5308b045ed7bd39e36954cc4af5d20ecd91f9ce4b2625dd4623d644e11b0
7
+ data.tar.gz: 85441bd0de375ec069f2175d0ef48fda9bb8807afec7225350039ef994bfc9f3ae772cbbad9a49c2f388ee842bb2bad8689c16436d548e470269e74c880b3857
@@ -11,7 +11,7 @@ module ConcertoTemplateScheduling
11
11
  @schedules = Schedule.all
12
12
  # ignore the schedules that belong to screens we cant read
13
13
  # or schedules where the template has been deleted
14
- @schedules.reject! { |s| !can?(:read, s.screen) || s.template.nil? }
14
+ @schedules.to_a.reject! { |s| !can?(:read, s.screen) || s.template.nil? }
15
15
 
16
16
  respond_to do |format|
17
17
  format.html # index.html.erb
@@ -169,7 +169,7 @@ module ConcertoTemplateScheduling
169
169
  if !self.screen.nil?
170
170
  feeds = Feed.all
171
171
  ability = Ability.new(self.screen)
172
- feeds.reject { |feed| !ability.can?(:read, feed) }
172
+ feeds.to_a.reject { |feed| !ability.can?(:read, feed) }
173
173
  end
174
174
  end
175
175
 
@@ -23,7 +23,7 @@ module ConcertoTemplateScheduling
23
23
  add_controller_hook "ScreensController", :show, :before do
24
24
  @schedules = Schedule.where(:screen_id => @screen.id)
25
25
  # reject the schedules that specify templates that have been deleted
26
- @schedules.reject!{|s| s.template.nil?}
26
+ @schedules.to_a.reject!{|s| s.template.nil?}
27
27
  end
28
28
 
29
29
  add_view_hook "ScreensController", :screen_details, :partial => "concerto_template_scheduling/screens/screen_link"
@@ -42,14 +42,14 @@ module ConcertoTemplateScheduling
42
42
  add_controller_hook "Screen", :frontend_display, [:before, :prepend => true] do
43
43
  # sets the template to the "effective" template
44
44
  schedules = Schedule.active.where(:screen_id => self.id)
45
- schedules.reject! {|s| !s.is_effective? }
45
+ schedules.to_a.reject! {|s| !s.is_effective? }
46
46
  self.template = schedules.first.template if !schedules.empty?
47
47
  end
48
48
 
49
49
  add_controller_hook "Frontend::ContentsController", :index, [:after, :prepend => true] do
50
50
  # sets the template to the "effective" template
51
51
  schedules = Schedule.active.where(:screen_id => @screen.id)
52
- schedules.reject! {|s| !s.is_effective? }
52
+ schedules.to_a.reject! {|s| !s.is_effective? }
53
53
  @screen.template = schedules.first.template if !schedules.empty?
54
54
  end
55
55
 
@@ -1,3 +1,3 @@
1
1
  module ConcertoTemplateScheduling
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concerto_template_scheduling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marvin Frederickson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2015-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.16
19
+ version: 3.2.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.16
26
+ version: 3.2.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ice_cube
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: recurring_select
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.2.1rc3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.2.1rc3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Schedule templates for screens in Concerto.
@@ -73,6 +73,9 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - LICENSE
77
+ - README.md
78
+ - Rakefile
76
79
  - app/assets/javascripts/concerto_template_scheduling/application.js
77
80
  - app/assets/javascripts/concerto_template_scheduling/schedules.js
78
81
  - app/assets/stylesheets/concerto_template_scheduling/application.css
@@ -96,14 +99,13 @@ files:
96
99
  - config/locales/en.yml
97
100
  - config/routes.rb
98
101
  - db/migrate/20140118205731_create_concerto_template_scheduling_schedules.rb
102
+ - lib/concerto_template_scheduling.rb
99
103
  - lib/concerto_template_scheduling/engine.rb
100
104
  - lib/concerto_template_scheduling/version.rb
101
- - lib/concerto_template_scheduling.rb
102
105
  - lib/tasks/concerto_template_scheduling_tasks.rake
103
- - LICENSE
104
- - Rakefile
105
- - README.md
106
106
  - test/concerto_template_scheduling_test.rb
107
+ - test/dummy/README.rdoc
108
+ - test/dummy/Rakefile
107
109
  - test/dummy/app/assets/javascripts/application.js
108
110
  - test/dummy/app/assets/stylesheets/application.css
109
111
  - test/dummy/app/controllers/application_controller.rb
@@ -112,6 +114,7 @@ files:
112
114
  - test/dummy/bin/bundle
113
115
  - test/dummy/bin/rails
114
116
  - test/dummy/bin/rake
117
+ - test/dummy/config.ru
115
118
  - test/dummy/config/application.rb
116
119
  - test/dummy/config/boot.rb
117
120
  - test/dummy/config/database.yml
@@ -128,13 +131,10 @@ files:
128
131
  - test/dummy/config/initializers/wrap_parameters.rb
129
132
  - test/dummy/config/locales/en.yml
130
133
  - test/dummy/config/routes.rb
131
- - test/dummy/config.ru
132
134
  - test/dummy/public/404.html
133
135
  - test/dummy/public/422.html
134
136
  - test/dummy/public/500.html
135
137
  - test/dummy/public/favicon.ico
136
- - test/dummy/Rakefile
137
- - test/dummy/README.rdoc
138
138
  - test/fixtures/concerto_template_scheduling/schedules.yml
139
139
  - test/functional/concerto_template_scheduling/schedules_controller_test.rb
140
140
  - test/integration/navigation_test.rb
@@ -150,17 +150,17 @@ require_paths:
150
150
  - lib
151
151
  required_ruby_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - '>='
153
+ - - ">="
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - '>='
158
+ - - ">="
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.0.3
163
+ rubygems_version: 2.2.2
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Scheduling of Templates for Screens