outpost-aggregator 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ ## 1.1.2
2
+ ### Fixes
3
+ * Fixed dropLimit
4
+
5
+
1
6
  ## 1.1.1
2
7
  ### Additions
3
8
  * Added a `dropLimit` in the view options, for specifying the number of articles allowed in the DropZone. By default, this is "null", which means "no limit".
@@ -92,7 +92,8 @@ class outpost.Aggregator
92
92
  # Build the Drop Zone section
93
93
  @dropZone = new outpost.Aggregator.Views.DropZone
94
94
  collection: @collection # The bootstrapped content
95
- base: @
95
+ base: @,
96
+ limit: @options.dropLimit
96
97
 
97
98
  @
98
99
 
@@ -132,7 +133,14 @@ class outpost.Aggregator
132
133
  #---------------------
133
134
 
134
135
  initialize: ->
135
- @base = @options.base
136
+ @base = @options.base
137
+ @limit = @options.limit
138
+
139
+ # Is there a limit? Add a notification to the top of the
140
+ # drop zone to let them know.
141
+ if @limit
142
+ @limitNotification =
143
+ new outpost.Notification(@$el, "info", "Limit")
136
144
 
137
145
  # Setup the container, render the template,
138
146
  # and then add in the el (the list)
@@ -141,14 +149,6 @@ class outpost.Aggregator
141
149
  @container.append @$el
142
150
  @helper = $("<h1 />").html("Drop Content Here")
143
151
 
144
- # Is there a limit? Add a notification to the top of the
145
- # drop zone to let them know.
146
- @limit = @options.limit
147
-
148
- if @limit
149
- @limitNotification =
150
- new outpost.Notification(@$el, "info", "Limit")
151
-
152
152
  @render()
153
153
 
154
154
  # Register listeners for URL droppage
@@ -1,5 +1,5 @@
1
1
  module Outpost
2
2
  module Aggregator
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outpost-aggregator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &70360918168500 !ruby/object:Gem::Requirement
16
+ requirement: &70110278587040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70360918168500
24
+ version_requirements: *70110278587040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70360918165380 !ruby/object:Gem::Requirement
27
+ requirement: &70110278585260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70360918165380
35
+ version_requirements: *70110278585260
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &70360918155860 !ruby/object:Gem::Requirement
38
+ requirement: &70110278582300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70360918155860
46
+ version_requirements: *70110278582300
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: combustion
49
- requirement: &70360918154960 !ruby/object:Gem::Requirement
49
+ requirement: &70110274963500 !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: *70360918154960
57
+ version_requirements: *70110274963500
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: activerecord
60
- requirement: &70360918152920 !ruby/object:Gem::Requirement
60
+ requirement: &70110274961840 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70360918152920
68
+ version_requirements: *70110274961840
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
- requirement: &70360918151420 !ruby/object:Gem::Requirement
71
+ requirement: &70110274959860 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '1.3'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70360918151420
79
+ version_requirements: *70110274959860
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: factory_girl
82
- requirement: &70360918149680 !ruby/object:Gem::Requirement
82
+ requirement: &70110274958320 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '4.2'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70360918149680
90
+ version_requirements: *70110274958320
91
91
  description: Content aggregator for Outpost
92
92
  email:
93
93
  - bricker88@gmail.com