brainstem-js 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/.travis.yml +3 -6
  2. data/Gemfile.lock +1 -1
  3. data/README.md +3 -1
  4. data/Rakefile +2 -0
  5. data/lib/brainstem/js/version.rb +1 -1
  6. data/spec/brainstem-collection-spec.coffee +25 -0
  7. data/spec/{brianstem-expectation-spec.coffee → brainstem-expectation-spec.coffee} +132 -17
  8. data/spec/brainstem-model-spec.coffee +67 -27
  9. data/spec/brainstem-sync-spec.coffee +29 -6
  10. data/spec/brainstem-utils-spec.coffee +11 -1
  11. data/spec/helpers/builders.coffee +2 -2
  12. data/spec/helpers/models/post.coffee +1 -1
  13. data/spec/helpers/models/project.coffee +1 -1
  14. data/spec/helpers/models/task.coffee +2 -2
  15. data/spec/helpers/models/time-entry.coffee +1 -1
  16. data/spec/helpers/models/user.coffee +1 -1
  17. data/spec/helpers/spec-helper.coffee +21 -0
  18. data/spec/loaders/abstract-loader-shared-behavior.coffee +604 -0
  19. data/spec/loaders/abstract-loader-spec.coffee +3 -0
  20. data/spec/loaders/collection-loader-spec.coffee +146 -0
  21. data/spec/loaders/model-loader-spec.coffee +99 -0
  22. data/spec/storage-manager-spec.coffee +242 -56
  23. data/vendor/assets/javascripts/brainstem/brainstem-collection.coffee +16 -6
  24. data/vendor/assets/javascripts/brainstem/brainstem-expectation.coffee +70 -20
  25. data/vendor/assets/javascripts/brainstem/brainstem-model.coffee +13 -13
  26. data/vendor/assets/javascripts/brainstem/brainstem-sync.coffee +8 -3
  27. data/vendor/assets/javascripts/brainstem/loaders/abstract-loader.coffee +289 -0
  28. data/vendor/assets/javascripts/brainstem/loaders/collection-loader.coffee +68 -0
  29. data/vendor/assets/javascripts/brainstem/loaders/model-loader.coffee +35 -0
  30. data/vendor/assets/javascripts/brainstem/loading-mixin.coffee +1 -7
  31. data/vendor/assets/javascripts/brainstem/storage-manager.coffee +79 -196
  32. data/vendor/assets/javascripts/brainstem/utils.coffee +18 -4
  33. metadata +17 -6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainstem-js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-29 00:00:00.000000000 Z
12
+ date: 2014-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -99,10 +99,10 @@ files:
99
99
  - lib/brainstem/js/engine.rb
100
100
  - lib/brainstem/js/version.rb
101
101
  - spec/brainstem-collection-spec.coffee
102
+ - spec/brainstem-expectation-spec.coffee
102
103
  - spec/brainstem-model-spec.coffee
103
104
  - spec/brainstem-sync-spec.coffee
104
105
  - spec/brainstem-utils-spec.coffee
105
- - spec/brianstem-expectation-spec.coffee
106
106
  - spec/helpers/builders.coffee
107
107
  - spec/helpers/jquery-matchers.js
108
108
  - spec/helpers/models/post.coffee
@@ -111,6 +111,10 @@ files:
111
111
  - spec/helpers/models/time-entry.coffee
112
112
  - spec/helpers/models/user.coffee
113
113
  - spec/helpers/spec-helper.coffee
114
+ - spec/loaders/abstract-loader-shared-behavior.coffee
115
+ - spec/loaders/abstract-loader-spec.coffee
116
+ - spec/loaders/collection-loader-spec.coffee
117
+ - spec/loaders/model-loader-spec.coffee
114
118
  - spec/storage-manager-spec.coffee
115
119
  - spec/support/.DS_Store
116
120
  - spec/support/console-runner.js
@@ -134,6 +138,9 @@ files:
134
138
  - vendor/assets/javascripts/brainstem/brainstem-sync.coffee
135
139
  - vendor/assets/javascripts/brainstem/index.js
136
140
  - vendor/assets/javascripts/brainstem/iso8601.js
141
+ - vendor/assets/javascripts/brainstem/loaders/abstract-loader.coffee
142
+ - vendor/assets/javascripts/brainstem/loaders/collection-loader.coffee
143
+ - vendor/assets/javascripts/brainstem/loaders/model-loader.coffee
137
144
  - vendor/assets/javascripts/brainstem/loading-mixin.coffee
138
145
  - vendor/assets/javascripts/brainstem/storage-manager.coffee
139
146
  - vendor/assets/javascripts/brainstem/utils.coffee
@@ -151,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
158
  version: '0'
152
159
  segments:
153
160
  - 0
154
- hash: -840829495700924104
161
+ hash: -2173067665790104374
155
162
  required_rubygems_version: !ruby/object:Gem::Requirement
156
163
  none: false
157
164
  requirements:
@@ -160,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
167
  version: '0'
161
168
  segments:
162
169
  - 0
163
- hash: -840829495700924104
170
+ hash: -2173067665790104374
164
171
  requirements: []
165
172
  rubyforge_project:
166
173
  rubygems_version: 1.8.25
@@ -170,10 +177,10 @@ summary: Easily connect Backbone.js with Brainstem APIs. Get relational models
170
177
  Backbone.
171
178
  test_files:
172
179
  - spec/brainstem-collection-spec.coffee
180
+ - spec/brainstem-expectation-spec.coffee
173
181
  - spec/brainstem-model-spec.coffee
174
182
  - spec/brainstem-sync-spec.coffee
175
183
  - spec/brainstem-utils-spec.coffee
176
- - spec/brianstem-expectation-spec.coffee
177
184
  - spec/helpers/builders.coffee
178
185
  - spec/helpers/jquery-matchers.js
179
186
  - spec/helpers/models/post.coffee
@@ -182,6 +189,10 @@ test_files:
182
189
  - spec/helpers/models/time-entry.coffee
183
190
  - spec/helpers/models/user.coffee
184
191
  - spec/helpers/spec-helper.coffee
192
+ - spec/loaders/abstract-loader-shared-behavior.coffee
193
+ - spec/loaders/abstract-loader-spec.coffee
194
+ - spec/loaders/collection-loader-spec.coffee
195
+ - spec/loaders/model-loader-spec.coffee
185
196
  - spec/storage-manager-spec.coffee
186
197
  - spec/support/.DS_Store
187
198
  - spec/support/console-runner.js