xing-backend 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xing-backend.rb +0 -1
- metadata +4 -11
- data/lib/deprecated_classes.rb +0 -28
- data/spec/deprecated_classes/active_model_error_converter_spec.rb +0 -11
- data/spec/deprecated_classes/base_serializer_spec.rb +0 -11
- data/spec/deprecated_classes/hypermedia_json_mapper_spec.rb +0 -11
- data/spec/deprecated_classes/json_tree_lister_spec.rb +0 -14
- data/spec/deprecated_classes/remote_snapshot_fetcher_spec.rb +0 -8
- data/spec/deprecated_classes/resources_serializer_spec.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8124784dfc906a44033c779b625e825133266b78
|
4
|
+
data.tar.gz: ef03e6925c23a2b62f28e9de03db9463a78dba24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 476da8b9dfc5228f14460bd93706c9acadea42784f11bd646a3d5d63ea31d7c859eff7f0f59fc8e7b0831d1c03b3c91daefec1fbbf0e6dfab35eba2866a39138
|
7
|
+
data.tar.gz: ba5adaf5ed0f9af7b4a1fcaf6c80e981f44b92c536f0d9d5eea070f78c1f0d90be6e6173d034cdb29dfd25c6352ff3d88254d261876797b040b44f1272452d99
|
data/lib/xing-backend.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xing-backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Dorn
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-07-
|
14
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -123,7 +123,6 @@ executables: []
|
|
123
123
|
extensions: []
|
124
124
|
extra_rdoc_files: []
|
125
125
|
files:
|
126
|
-
- lib/deprecated_classes.rb
|
127
126
|
- lib/xing-backend.rb
|
128
127
|
- lib/xing/builders.rb
|
129
128
|
- lib/xing/builders/list_builder.rb
|
@@ -144,12 +143,6 @@ files:
|
|
144
143
|
- lib/xing/services/locator.rb
|
145
144
|
- lib/xing/services/snapshot_fetcher.rb
|
146
145
|
- lib/xing/services/snapshot_writer.rb
|
147
|
-
- spec/deprecated_classes/active_model_error_converter_spec.rb
|
148
|
-
- spec/deprecated_classes/base_serializer_spec.rb
|
149
|
-
- spec/deprecated_classes/hypermedia_json_mapper_spec.rb
|
150
|
-
- spec/deprecated_classes/json_tree_lister_spec.rb
|
151
|
-
- spec/deprecated_classes/remote_snapshot_fetcher_spec.rb
|
152
|
-
- spec/deprecated_classes/resources_serializer_spec.rb
|
153
146
|
- spec/xing/builders/list_builder_spec.rb
|
154
147
|
- spec/xing/builders/ordered_list_builder_spec.rb
|
155
148
|
- spec/xing/controllers/base_spec.rb
|
@@ -207,7 +200,7 @@ rdoc_options:
|
|
207
200
|
- "--main"
|
208
201
|
- doc/README
|
209
202
|
- "--title"
|
210
|
-
- xing-backend-0.0.
|
203
|
+
- xing-backend-0.0.18 Documentation
|
211
204
|
require_paths:
|
212
205
|
- lib/
|
213
206
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -222,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
215
|
version: '0'
|
223
216
|
requirements: []
|
224
217
|
rubyforge_project:
|
225
|
-
rubygems_version: 2.4.
|
218
|
+
rubygems_version: 2.4.8
|
226
219
|
signing_key:
|
227
220
|
specification_version: 4
|
228
221
|
summary: Rails backend classes for the Xing web development framework.
|
data/lib/deprecated_classes.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
require 'xing-backend'
|
2
|
-
require 'active_support/deprecation'
|
3
|
-
|
4
|
-
module Xing
|
5
|
-
DEPRECATED_CLASSES = {
|
6
|
-
:HypermediaJSONMapper => Xing::Mappers::Base,
|
7
|
-
:BaseSerializer => Xing::Serializers::Base,
|
8
|
-
:ResourcesSerializer => Xing::Serializers::RootResources,
|
9
|
-
:JsonTreeLister => Xing::Services::JsonTreeLister,
|
10
|
-
:ActiveModelErrorConverter => Xing::Services::ErrorConverter,
|
11
|
-
:RemoteSnapshotFetcher => Xing::Services::SnapshotFetcher
|
12
|
-
}
|
13
|
-
end
|
14
|
-
|
15
|
-
#Xing::DEPRECATED_CLASSES.each do |old, new|
|
16
|
-
|
17
|
-
## with great power comes great responsibility
|
18
|
-
#Object.const_set(old, ActiveSupport::Deprecation::DeprecatedConstantProxy.new(old, new))
|
19
|
-
#end
|
20
|
-
|
21
|
-
def Object.const_missing(name)
|
22
|
-
if (klass = ::Xing::DEPRECATED_CLASSES[name.to_sym])
|
23
|
-
warn "[DEPRECATION] #{name} is deprecated. Please use #{klass.to_s} instead."
|
24
|
-
klass
|
25
|
-
else
|
26
|
-
super
|
27
|
-
end
|
28
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'deprecated_classes'
|
2
|
-
|
3
|
-
describe ActiveModelErrorConverter, :type => :deprecation do
|
4
|
-
let :resource do
|
5
|
-
double('resource')
|
6
|
-
end
|
7
|
-
|
8
|
-
it "should be the correct class" do
|
9
|
-
expect(ActiveModelErrorConverter.new(resource)).to be_a(Xing::Services::ErrorConverter)
|
10
|
-
end
|
11
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'deprecated_classes'
|
2
|
-
|
3
|
-
describe JsonTreeLister, :type => :deprecation do
|
4
|
-
let :models do
|
5
|
-
double('models')
|
6
|
-
end
|
7
|
-
let :serializer do
|
8
|
-
double('serializer')
|
9
|
-
end
|
10
|
-
|
11
|
-
it "should be the correct class" do
|
12
|
-
expect(JsonTreeLister.new(models, serializer)).to be_a(Xing::Services::JsonTreeLister)
|
13
|
-
end
|
14
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'deprecated_classes'
|
3
|
-
|
4
|
-
describe ResourcesSerializer do
|
5
|
-
let :resource do
|
6
|
-
double('hash_of_links')
|
7
|
-
end
|
8
|
-
|
9
|
-
it "should be the correct class" do
|
10
|
-
expect(ResourcesSerializer.new(resource)).to be_a(Xing::Serializers::RootResources)
|
11
|
-
end
|
12
|
-
end
|