apidae 0.5.0 → 0.5.1
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/app/controllers/apidae/objects_controller.rb +4 -4
- data/app/models/apidae/obj.rb +1 -1
- data/lib/apidae/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31c663f50b9b41f31819067a7e8af82f44fa4622
|
|
4
|
+
data.tar.gz: 21c1c4dae6cc1d75e30241a86c06c3625b2e5be7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18bddeee3022a6520979e46a338e51d010570a98898fc25a4bf9c9ee57edc1666a312e13a82167e753e5da1288659aa86a76acca501f95ed3797138173fa88dd
|
|
7
|
+
data.tar.gz: 24a3be222e24cbdae2f91212a550c37f716bc72032c753955212cd98fa0be3932aee7203bbfb05eb184e97f113d444beb781182554a468776a6332397c716072
|
|
@@ -9,7 +9,7 @@ module Apidae
|
|
|
9
9
|
@selection = Selection.find(params[:selection_id])
|
|
10
10
|
@objects = @selection.objects.select(:apidae_id, :title, :apidae_type, :updated_at)
|
|
11
11
|
else
|
|
12
|
-
@objects =
|
|
12
|
+
@objects = Obj.all.select(:apidae_id, :title, :apidae_type, :updated_at)
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
|
|
@@ -17,14 +17,14 @@ module Apidae
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def new
|
|
20
|
-
@object =
|
|
20
|
+
@object = Obj.new
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def edit
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def create
|
|
27
|
-
@object =
|
|
27
|
+
@object = Obj.new(object_params)
|
|
28
28
|
|
|
29
29
|
if @object.save
|
|
30
30
|
redirect_to @object, notice: 'Object was successfully created.'
|
|
@@ -48,7 +48,7 @@ module Apidae
|
|
|
48
48
|
|
|
49
49
|
private
|
|
50
50
|
def set_object
|
|
51
|
-
@object =
|
|
51
|
+
@object = Obj.find(params[:id])
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def object_params
|
data/app/models/apidae/obj.rb
CHANGED
|
@@ -261,7 +261,7 @@ module Apidae
|
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
def main_picture
|
|
264
|
-
pictures.any? ? pictures[0]["url"] : "
|
|
264
|
+
pictures.any? ? pictures[0]["url"] : "#{Rails.application.config.apidae_pictures_path}/default/logo.png"
|
|
265
265
|
end
|
|
266
266
|
|
|
267
267
|
def self.build_rate(rate_period)
|
data/lib/apidae/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apidae
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jean-Baptiste Vilain
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-06-
|
|
11
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|