tbone 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -28,3 +28,4 @@ gem 'jquery-rails'
28
28
  gem 'yajl-ruby'
29
29
  gem 'rails-backbone'
30
30
  gem 'requirejs-rails'
31
+ gem 'rake'
@@ -134,6 +134,7 @@ DEPENDENCIES
134
134
  less-rails
135
135
  rabl
136
136
  rails-backbone
137
+ rake
137
138
  rdoc
138
139
  requirejs-rails
139
140
  sass-rails
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -19,20 +19,19 @@ define ['backbone'], (Backbone) ->
19
19
  this.fetch()
20
20
  this)
21
21
 
22
- fetch: (options) ->
23
- options ||= {}
22
+ fetch: (options = {}) ->
24
23
  @trigger "fetching"
25
24
  self = this
26
25
  success = options.success
27
26
  options.success = (resp) ->
28
27
  self.trigger "fetched"
29
- success self, resp if success
28
+ success self, resp if success
30
29
 
31
30
  Backbone.Collection::fetch.call this, options
32
31
 
33
- setPage: (num) ->
32
+ setPage: (num, options) ->
34
33
  @page = num
35
- this.fetch()
34
+ @fetch options
36
35
 
37
36
 
38
37
  parse: (resp) ->
@@ -57,7 +56,7 @@ define ['backbone'], (Backbone) ->
57
56
 
58
57
  max = Math.min(@total, @page * @perPage)
59
58
  max = @total if @total is @pages * @perPage
60
- info.range = [ (@page - 1) * @perPage + 1, max ]
59
+ info.range = [(@page - 1) * @perPage + 1, max]
61
60
  info.prev = @page - 1 if @page > 1
62
61
  info.next = @page + 1 if @page < info.pages
63
62
  info
@@ -68,12 +67,12 @@ define ['backbone'], (Backbone) ->
68
67
  data['pageInfo'] = this.pageInfo()
69
68
  data
70
69
 
71
- nextPage: ->
70
+ nextPage: (options = {}) ->
72
71
  return false unless @pageInfo().next
73
72
  @page = @page + 1
74
- @fetch()
73
+ @fetch options
75
74
 
76
- previousPage: ->
75
+ previousPage: (options = {}) ->
77
76
  return false unless @pageInfo().prev
78
77
  @page = @page - 1
79
- @fetch()
78
+ @fetch options
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{tbone}
8
- s.version = "0.2.0"
7
+ s.name = "tbone"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Pavel Tatarsky}]
12
- s.date = %q{2012-11-09}
13
- s.description = %q{Library for mixing together requirejs backbone and twitter bootstrap}
14
- s.email = %q{fazzzenda@mail.ru}
11
+ s.authors = ["Pavel Tatarsky"]
12
+ s.date = "2013-05-30"
13
+ s.description = "Library for mixing together requirejs backbone and twitter bootstrap"
14
+ s.email = "fazzzenda@mail.ru"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
@@ -81,11 +81,11 @@ Gem::Specification.new do |s|
81
81
  "test/helper.rb",
82
82
  "test/test_tbone.rb"
83
83
  ]
84
- s.homepage = %q{http://github.com/vintikzzz/tbone}
85
- s.licenses = [%q{MIT}]
86
- s.require_paths = [%q{lib}]
87
- s.rubygems_version = %q{1.8.6}
88
- s.summary = %q{Library for mixing together requirejs backbone and twitter bootstrap}
84
+ s.homepage = "http://github.com/vintikzzz/tbone"
85
+ s.licenses = ["MIT"]
86
+ s.require_paths = ["lib"]
87
+ s.rubygems_version = "1.8.25"
88
+ s.summary = "Library for mixing together requirejs backbone and twitter bootstrap"
89
89
 
90
90
  if s.respond_to? :specification_version then
91
91
  s.specification_version = 3
@@ -100,6 +100,7 @@ Gem::Specification.new do |s|
100
100
  s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
101
101
  s.add_runtime_dependency(%q<rails-backbone>, [">= 0"])
102
102
  s.add_runtime_dependency(%q<requirejs-rails>, [">= 0"])
103
+ s.add_runtime_dependency(%q<rake>, [">= 0"])
103
104
  s.add_development_dependency(%q<rdoc>, [">= 0"])
104
105
  s.add_development_dependency(%q<bundler>, [">= 0"])
105
106
  s.add_development_dependency(%q<jeweler>, [">= 0"])
@@ -113,6 +114,7 @@ Gem::Specification.new do |s|
113
114
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
114
115
  s.add_dependency(%q<rails-backbone>, [">= 0"])
115
116
  s.add_dependency(%q<requirejs-rails>, [">= 0"])
117
+ s.add_dependency(%q<rake>, [">= 0"])
116
118
  s.add_dependency(%q<rdoc>, [">= 0"])
117
119
  s.add_dependency(%q<bundler>, [">= 0"])
118
120
  s.add_dependency(%q<jeweler>, [">= 0"])
@@ -127,6 +129,7 @@ Gem::Specification.new do |s|
127
129
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
128
130
  s.add_dependency(%q<rails-backbone>, [">= 0"])
129
131
  s.add_dependency(%q<requirejs-rails>, [">= 0"])
132
+ s.add_dependency(%q<rake>, [">= 0"])
130
133
  s.add_dependency(%q<rdoc>, [">= 0"])
131
134
  s.add_dependency(%q<bundler>, [">= 0"])
132
135
  s.add_dependency(%q<jeweler>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tbone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-09 00:00:00.000000000 Z
12
+ date: 2013-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n-js
16
- requirement: &70191079091780 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70191079091780
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: kaminari
27
- requirement: &70191079089800 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70191079089800
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: haml-rails
38
- requirement: &70191079103900 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70191079103900
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: coffee-filter
49
- requirement: &70191079101960 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70191079101960
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: rabl
60
- requirement: &70191079099800 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '0'
66
86
  type: :runtime
67
87
  prerelease: false
68
- version_requirements: *70191079099800
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: jquery-rails
71
- requirement: &70191079098360 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,10 +101,15 @@ dependencies:
76
101
  version: '0'
77
102
  type: :runtime
78
103
  prerelease: false
79
- version_requirements: *70191079098360
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: yajl-ruby
82
- requirement: &70191079097480 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ! '>='
@@ -87,10 +117,15 @@ dependencies:
87
117
  version: '0'
88
118
  type: :runtime
89
119
  prerelease: false
90
- version_requirements: *70191079097480
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: rails-backbone
93
- requirement: &70191079114320 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ! '>='
@@ -98,10 +133,31 @@ dependencies:
98
133
  version: '0'
99
134
  type: :runtime
100
135
  prerelease: false
101
- version_requirements: *70191079114320
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
102
142
  - !ruby/object:Gem::Dependency
103
143
  name: requirejs-rails
104
- requirement: &70191079113060 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: rake
160
+ requirement: !ruby/object:Gem::Requirement
105
161
  none: false
106
162
  requirements:
107
163
  - - ! '>='
@@ -109,10 +165,15 @@ dependencies:
109
165
  version: '0'
110
166
  type: :runtime
111
167
  prerelease: false
112
- version_requirements: *70191079113060
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
113
174
  - !ruby/object:Gem::Dependency
114
175
  name: rdoc
115
- requirement: &70191079129480 !ruby/object:Gem::Requirement
176
+ requirement: !ruby/object:Gem::Requirement
116
177
  none: false
117
178
  requirements:
118
179
  - - ! '>='
@@ -120,10 +181,15 @@ dependencies:
120
181
  version: '0'
121
182
  type: :development
122
183
  prerelease: false
123
- version_requirements: *70191079129480
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
124
190
  - !ruby/object:Gem::Dependency
125
191
  name: bundler
126
- requirement: &70191079127320 !ruby/object:Gem::Requirement
192
+ requirement: !ruby/object:Gem::Requirement
127
193
  none: false
128
194
  requirements:
129
195
  - - ! '>='
@@ -131,10 +197,15 @@ dependencies:
131
197
  version: '0'
132
198
  type: :development
133
199
  prerelease: false
134
- version_requirements: *70191079127320
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
135
206
  - !ruby/object:Gem::Dependency
136
207
  name: jeweler
137
- requirement: &70191079142520 !ruby/object:Gem::Requirement
208
+ requirement: !ruby/object:Gem::Requirement
138
209
  none: false
139
210
  requirements:
140
211
  - - ! '>='
@@ -142,7 +213,12 @@ dependencies:
142
213
  version: '0'
143
214
  type: :development
144
215
  prerelease: false
145
- version_requirements: *70191079142520
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
146
222
  description: Library for mixing together requirejs backbone and twitter bootstrap
147
223
  email: fazzzenda@mail.ru
148
224
  executables: []
@@ -229,7 +305,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
305
  version: '0'
230
306
  segments:
231
307
  - 0
232
- hash: 4460083678279688216
308
+ hash: 4153042715066462761
233
309
  required_rubygems_version: !ruby/object:Gem::Requirement
234
310
  none: false
235
311
  requirements:
@@ -238,7 +314,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
314
  version: '0'
239
315
  requirements: []
240
316
  rubyforge_project:
241
- rubygems_version: 1.8.6
317
+ rubygems_version: 1.8.25
242
318
  signing_key:
243
319
  specification_version: 3
244
320
  summary: Library for mixing together requirejs backbone and twitter bootstrap