avo 2.9.1.pre4 → 2.9.1.pre5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1.pre4
4
+ version: 2.9.1.pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -1263,7 +1263,6 @@ files:
1263
1263
  - lib/avo/menu/section.rb
1264
1264
  - lib/avo/reloader.rb
1265
1265
  - lib/avo/services/authorization_service.rb
1266
- - lib/avo/services/uri_service.rb
1267
1266
  - lib/avo/tools_manager.rb
1268
1267
  - lib/avo/version.rb
1269
1268
  - lib/generators/avo/action_generator.rb
@@ -1301,6 +1300,7 @@ files:
1301
1300
  - lib/generators/avo/templates/filters/text_filter.tt
1302
1301
  - lib/generators/avo/templates/initializer/avo.tt
1303
1302
  - lib/generators/avo/templates/locales/avo.en.yml
1303
+ - lib/generators/avo/templates/locales/avo.fr.yml
1304
1304
  - lib/generators/avo/templates/locales/avo.nb-NO.yml
1305
1305
  - lib/generators/avo/templates/locales/avo.pt-BR.yml
1306
1306
  - lib/generators/avo/templates/locales/avo.ro.yml
@@ -1,41 +0,0 @@
1
- module Avo
2
- module Services
3
- class URIService
4
- class << self
5
- def parse(path)
6
- self.new path
7
- end
8
- end
9
-
10
- attr_reader = :uri
11
-
12
- def initialize(path = '')
13
- @uri = Addressable::URI.parse(path)
14
- end
15
-
16
- def append_paths(*paths)
17
- paths = Array.wrap(paths)
18
-
19
- # abort 11.inspect
20
-
21
- return self if paths.blank?
22
- # abort 12.inspect
23
-
24
- @uri.merge!(path: @uri.path.concat("/#{paths.join("/")}"))
25
- self
26
- end
27
- alias_method :append_path, :append_paths
28
-
29
- def append_query(*params)
30
- params = Array.wrap(params)
31
-
32
- @uri.merge!(query: [@uri.query, *params].join("&"))
33
- self
34
- end
35
-
36
- def to_s
37
- @uri.to_s
38
- end
39
- end
40
- end
41
- end