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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13ae26abbc1ee9f7bd2d9afae55849632ec9ffa1
4
- data.tar.gz: 0df9f7c564139946b873e56001df974a965882e1
3
+ metadata.gz: 8124784dfc906a44033c779b625e825133266b78
4
+ data.tar.gz: ef03e6925c23a2b62f28e9de03db9463a78dba24
5
5
  SHA512:
6
- metadata.gz: afc9e88098caf477eb19c55272412bad43f175f17bd28cd37c8d665662463db8d88a040076899dc45cc129159e34d7fd37804a8dc9e307e158dd526ea2a4422a
7
- data.tar.gz: 018e22b3a6705f22c97949ef6bdfeb1c1812fe3b5384061fb21a66c0cd819a72149e4c5eaeeea465366e72d93e5d039acf9d8723ecc8271735636482aa1928eb
6
+ metadata.gz: 476da8b9dfc5228f14460bd93706c9acadea42784f11bd646a3d5d63ea31d7c859eff7f0f59fc8e7b0831d1c03b3c91daefec1fbbf0e6dfab35eba2866a39138
7
+ data.tar.gz: ba5adaf5ed0f9af7b4a1fcaf6c80e981f44b92c536f0d9d5eea070f78c1f0d90be6e6173d034cdb29dfd25c6352ff3d88254d261876797b040b44f1272452d99
data/lib/xing-backend.rb CHANGED
@@ -32,4 +32,3 @@ require 'xing/engine'
32
32
  require 'xing/serializers'
33
33
  require 'xing/services'
34
34
  require 'xing/builders'
35
- require 'deprecated_classes'
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.17
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-08 00:00:00.000000000 Z
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.17 Documentation
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.5
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.
@@ -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,11 +0,0 @@
1
- require 'deprecated_classes'
2
-
3
- describe BaseSerializer, :type => :deprecation do
4
- let :resource do
5
- double('resource')
6
- end
7
-
8
- it "should be the correct class" do
9
- expect(BaseSerializer.new(resource)).to be_a(Xing::Serializers::Base)
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- require 'deprecated_classes'
2
-
3
- describe HypermediaJSONMapper, :type => :deprecation do
4
- let :json do
5
- double('json')
6
- end
7
-
8
- it "should be the correct class" do
9
- expect(HypermediaJSONMapper.new(json)).to be_a(Xing::Mappers::Base)
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,8 +0,0 @@
1
-
2
- require 'deprecated_classes'
3
-
4
- describe RemoteSnapshotFetcher do
5
- it "should be the correct class" do
6
- expect(RemoteSnapshotFetcher.new()).to be_a(Xing::Services::SnapshotFetcher)
7
- end
8
- 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