slickplan-rooftop 0.1.1 → 0.1.2

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: 065e835e0aec2930587d3947180e41ece340312e
4
- data.tar.gz: 8a17584f702aa2a6d8dfc267cc842a994b28ae5e
3
+ metadata.gz: b2e40c5fa5f7e299f94f6f2b608a0d37938076d6
4
+ data.tar.gz: 7983dc38314d0140942c04e168342cf1d3a301b8
5
5
  SHA512:
6
- metadata.gz: e80769a09538b8daac9c98c823b7e5d7e809f95d745930f13eb377da89fdb922b506288806c67d321976dbff236e5e06fe946c796d74c9bd45a4357cfdf6c568
7
- data.tar.gz: 146caefd9987a687cb72e57d2a9091357ac9fe6ede81e358c6f52c7b17cd16bb1c594d637b3590a2a8e6339ef12478849490829a70807911f62df67886c899a1
6
+ metadata.gz: 0a81db8473cea9ffad15086eb70cc1d7a66144a9a70a34f2b69d48d62896f16c6ac79a9a2568e421f8d6d3b7c3bf8dfe22cafd6ecefbf6df2dbccaeddc5d2330
7
+ data.tar.gz: 2e66b06367d1643ed04711c302bf107f3b8444a0bccadc4445af4461871cffe1cf17fc660f1be0d7cf1cc2a431af17ee7ef3d89887b14505f1e22a8dd6ad89db
@@ -32,7 +32,7 @@ namespace :slickplan do
32
32
  # iterate through and create the pages, saving the rt page id to the @sitemap.pages collection
33
33
  @sitemap.pages.each do |page|
34
34
  puts "Generating page #{page.title}"
35
- new_page = Page.create(title: page.title, content: {basic: {content: content || page.content}}, status: 'publish', template: page.template.try(:name))
35
+ new_page = Page.create(title: page.title, content: {basic: {content: content || page.content}}, status: 'publish')
36
36
  page.rooftop_id = new_page.id
37
37
  end
38
38
 
@@ -47,6 +47,10 @@ namespace :slickplan do
47
47
  end
48
48
  end
49
49
 
50
+ puts "Generating templates in Rails"
51
+ @sitemap.templates.each do |template|
52
+ `rails g rooftop:template #{template.parameterize.underscore}`
53
+ end
50
54
  puts "Done."
51
55
 
52
56
  Rake::Task['slickplan:list_templates'].invoke(options[:xml])
@@ -1,5 +1,5 @@
1
1
  module Slickplan
2
2
  module Rooftop
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slickplan-rooftop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Jones
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-07 00:00:00.000000000 Z
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler