sibu_apidae 0.1.0 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 819b7d4ac4fb7ea0a870ff22ce6c985d254b1dbf
4
- data.tar.gz: a522cd94484e2ae5f9e54ce57cb42b36de621bbf
3
+ metadata.gz: 118110c471c72dffa4fd984bc201c53679ab5a06
4
+ data.tar.gz: caecc0b682c36a2f615e3fd19fd136a8a9b78cc7
5
5
  SHA512:
6
- metadata.gz: 9d452efccbff4d6afa19f7776b9469238144b8a5c56466ca00a666f3a68f8c357854ef9e52203741226bd66713fb02116cad8b405b0daef17038b1e249a3c5a3
7
- data.tar.gz: ea6d24c46d58a818e94d85739a027f204dd9605f52732c8a0a9be0ab52df610d98b84350d8c6c2d920dd5868dae791c84d4ae163e996333405364a13de1d072b
6
+ metadata.gz: 0d9d546f3506e102b9e5932b5dfc206c740897fc1c68c30caed84bcda6a9db25457625779a67f41551954d52c3afa067af54120a313b44de06a310f7474b14d7
7
+ data.tar.gz: 90d5b52c05ba09d60a0713a152499e37b886a897150fbc411aa7082be26d3ea55eacb2ef4466530756ab527e2d0af2cbd75cdfeab0d365357dc9185ee4fe0c97
@@ -38,7 +38,8 @@ module SibuApidae
38
38
  obj_path = Rails.application.config.sibu_apidae[:obj_path].call(obj)
39
39
  obj_page = Sibu::Page.where(site_id: site_id, path: obj_path).first
40
40
  unless obj_page
41
- p = Sibu::Page.new(name: obj.title, site_id: site_id, path: obj_path)
41
+ p = Sibu::Page.new(name: obj.title, site_id: site_id, path: obj_path, title: obj.title,
42
+ description: obj.short_desc)
42
43
  p.sections = Rails.application.config.sibu_apidae[:obj_sections].call(obj)
43
44
  p.save!
44
45
  end
@@ -1,3 +1,3 @@
1
1
  module SibuApidae
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibu_apidae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain