embark-journey 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/journey.rb +1 -0
- data/lib/journey/oplog.rb +4 -0
- data/lib/journey/resource/attribute_loading.rb +5 -8
- data/lib/journey/version.rb +1 -1
- data/spec/models/journey/oplog_spec.rb +11 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4686df29e65a3ebc8fac2f42b1323cfa15ec0599
|
4
|
+
data.tar.gz: 4328300152c187737623cc8fd2d79bab78647bdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb44d831384d966eac83eea6a56bb3ce96bddd37a9aca8c6c91fdfc210eeb27e74aee166b5ddda1755b38609ca04171105677c7688ee44641cca12b3a1e87bf
|
7
|
+
data.tar.gz: 6f1d3487bfdbdcd3ed5410a78a280159843a81e09730b69dba21d1c30a7c9d7faf0ad30f3a2fbc34ae98a4bdf19771813fccbec04ca064c5a2fb682b66a7873e
|
data/CHANGELOG.md
CHANGED
data/lib/journey.rb
CHANGED
@@ -4,15 +4,12 @@ module Journey::Resource::AttributeLoading
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
included do
|
7
|
-
# uses defined setters in place of attributes[key] where possible,
|
8
|
-
# for the purpose of enums
|
9
7
|
def load(attributes, remove_root = false, persisted = false)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
end
|
8
|
+
# 'data' is a reserved key in ActiveResource,
|
9
|
+
# but Journey uses it for the Oplog
|
10
|
+
|
11
|
+
attributes['content'] = attributes.delete('data')
|
12
|
+
super(attributes, remove_root, persisted)
|
16
13
|
end
|
17
14
|
end
|
18
15
|
|
data/lib/journey/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embark-journey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Davey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_attr
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- lib/journey.rb
|
147
147
|
- lib/journey/configurable.rb
|
148
148
|
- lib/journey/configuration.rb
|
149
|
+
- lib/journey/oplog.rb
|
149
150
|
- lib/journey/resource.rb
|
150
151
|
- lib/journey/resource/api.rb
|
151
152
|
- lib/journey/resource/attachments.rb
|
@@ -159,6 +160,7 @@ files:
|
|
159
160
|
- lib/journey/version.rb
|
160
161
|
- spec/models/journey/configurable_spec.rb
|
161
162
|
- spec/models/journey/configuration_spec.rb
|
163
|
+
- spec/models/journey/oplog_spec.rb
|
162
164
|
- spec/models/journey/resource/attachments_spec.rb
|
163
165
|
- spec/models/journey/resource_spec.rb
|
164
166
|
- spec/spec_helper.rb
|
@@ -191,6 +193,7 @@ summary: Journey API wrapper for Ruby
|
|
191
193
|
test_files:
|
192
194
|
- spec/models/journey/configurable_spec.rb
|
193
195
|
- spec/models/journey/configuration_spec.rb
|
196
|
+
- spec/models/journey/oplog_spec.rb
|
194
197
|
- spec/models/journey/resource/attachments_spec.rb
|
195
198
|
- spec/models/journey/resource_spec.rb
|
196
199
|
- spec/spec_helper.rb
|