smooster 0.3.7 → 0.4.1

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: 2d4f25fcec49187036e957f9c54340d93907f57a
4
- data.tar.gz: 59d67076304555fcec26d6ba70229e5c99b9f84e
3
+ metadata.gz: b10f0a4f5608b08c92b1c3a604c47106fe035db5
4
+ data.tar.gz: d84635953f0c111cde9a1d1c4838b21b7d96a255
5
5
  SHA512:
6
- metadata.gz: d86b43edcaa6f177ed4c30e002fb102d1dc98c7af623937c40c5df5085790d07d0e849f12cb060ba56c6eea5ccf589ab3612c1c4c9cbc4364fe5f614060c57ba
7
- data.tar.gz: 8848d8384f03981da541312960a2e3a7e83d3b3edfbae432375e822f92e99818eb51029b2a78b6fc7cb4d319aca5bb91608f563214f5c15ae8fc501f88e589ed
6
+ metadata.gz: 82fd0268f1ce3d1d00fc8f1ee52f257e2827516cad8f13df5e6c43de4a15ac731315ccd01fd75c914594c937ef300c7a2d42c017e63665c4e0d4ad9803700d15
7
+ data.tar.gz: 35920f7fa2949e2500d5d45293be8e5b2a038efcb4b1a9075fe29e148f1a80b08309ee65436eedc63d51d5a160fba995ca8593762af2d07a8886032b0c478757
data/README.md CHANGED
@@ -24,6 +24,40 @@ This is a ruby gem
24
24
 
25
25
  $ smooster deploy
26
26
 
27
+
28
+ ## Documentation smooster commands
29
+
30
+ ### Site settings
31
+
32
+ Site settings like images sizes, text formation, hosting can be set with 'smooster configure' in site_config.yml
33
+ Just open the site_config.yml and edit to your needs, after that process:
34
+
35
+ $ smooster configure
36
+
37
+ #### Hosting settings:
38
+ IMPORTANT: changing this settings will not affect the online status of your website. If you want your website live, please set the changes and then activate the website via the web interface.
39
+
40
+ defaults are:
41
+ hosting:
42
+ type: draft
43
+
44
+ ftp hosting:
45
+ hosting:
46
+ type: ftp
47
+ server: ftp.domain.com
48
+ port: 21
49
+ username: myUsername
50
+ password: thepassword
51
+ path: /were/my/files/are/
52
+
53
+ smooster hosting:
54
+ hosting:
55
+ type: smo_hosting
56
+
57
+ #### html suffix for url
58
+ with setting "page_suffix_html" to true smooster will automaticaly add the html suffix to each internal page url
59
+ page_suffix_html: true
60
+
27
61
  ## Running tests
28
62
 
29
63
  bundle exec rake
@@ -36,9 +70,17 @@ This is a ruby gem
36
70
  * Create a local project based on a demo website - ready to deploy (for beginners, to see how it may work)
37
71
  * site_config file for image and formating settings
38
72
  * making the script windows ready
73
+ * deploy a single file like this smooster deploy media/js/functions.js
39
74
 
40
75
  ## Changelog
41
76
 
77
+ ###0.4.1
78
+ * Feature: Setting the hosting for the website
79
+
80
+ ###0.3.9
81
+ * minor Bugfix
82
+ * updated readme (in 0.3.7)
83
+
42
84
  ###0.3.6
43
85
  * added smooster site config file for image size, blockformat and rss settings
44
86
 
@@ -6,6 +6,7 @@ module Smooster
6
6
  module Cli
7
7
 
8
8
  class Executable < Thor
9
+
9
10
  desc "test", "Returns test data"
10
11
  def test
11
12
  puts Smooster::Application.instance.api_key()
@@ -28,6 +29,11 @@ module Smooster
28
29
  #method_options :force => :boolean, :alias => :string
29
30
  def setup(site_id, api_url="http://cms.smooster.com/api", html_folder="html")
30
31
 
32
+ unless File.directory?("#{Smooster::Application.instance.base_dir}/#{html_folder}")
33
+ puts "ERROR: There is no #{html_folder}/ folder, please call smooster setup from a folder including a folder named #{html_folder}/".colorize(:red)
34
+ return false
35
+ end
36
+
31
37
  unless File.directory?("#{Smooster::Application.instance.base_dir}/.smo")
32
38
  FileUtils.mkdir_p("#{Smooster::Application.instance.base_dir}/.smo")
33
39
  end
@@ -49,6 +55,12 @@ module Smooster
49
55
  desc "deploy [TYPE]", "deploy your project to the smooster cloud DEFAULT=assets [assets,templates,all,initial]"
50
56
  method_option :validator, type: :boolean, default: false, desc: "If set to true and INITIAL than all pages will be opened in the browser with html validator"
51
57
  def deploy(type="assets")
58
+
59
+ unless File.directory?("#{Smooster::Application.instance.base_dir}/#{Smooster::Application.instance.html_folder()}")
60
+ puts "ERROR: There is no #{Smooster::Application.instance.html_folder()}/ folder, please call smooster deploy from a folder including a folder named #{Smooster::Application.instance.html_folder()}/".colorize(:red)
61
+ return false
62
+ end
63
+
52
64
  puts "Starting push to smooster..."
53
65
 
54
66
  if type == "assets" || type == "all" || type == "initial"
@@ -95,6 +107,12 @@ module Smooster
95
107
  desc "load [TYPE]", "load your project from the smooster cloud DEFAULT=assets [assets,templates,all]"
96
108
  method_option :keep, type: :boolean, default: true, desc: "If the none synced files shall be keeped or deleted"
97
109
  def load(type="assets")
110
+
111
+ unless File.directory?("#{Smooster::Application.instance.base_dir}/#{Smooster::Application.instance.html_folder()}")
112
+ puts "ERROR: There is no #{Smooster::Application.instance.html_folder()}/ folder, please call smooster load from a folder including a folder named #{Smooster::Application.instance.html_folder()}/".colorize(:red)
113
+ return false
114
+ end
115
+
98
116
  puts "Starting loading from smooster..."
99
117
 
100
118
  if type == "assets" || type == "all"
@@ -106,6 +124,11 @@ module Smooster
106
124
  end
107
125
  end
108
126
 
127
+ if type == "templates" || type == "all"
128
+ puts "NOTICE: This feature is not yet implemented".colorize(:blue)
129
+ return false
130
+ end
131
+
109
132
  puts "#{type} done!"
110
133
  end
111
134
 
@@ -23,9 +23,27 @@ formats:
23
23
  name: Überschrift 4
24
24
  line6:
25
25
  tag: span
26
- name: grau & dicke Schrift
26
+ name: grey & strong Font
27
27
  class: greybold
28
28
  rss:
29
29
  site_description: none
30
30
  site_title:
31
+ hosting:
32
+ type: draft
33
+ page_suffix_html: false
34
+ mini_dbs:
35
+ database1:
36
+ name: The first database
37
+ type: first_database
38
+ fields:
39
+ number:
40
+ type: text
41
+ label:
42
+ de: "Nummer"
43
+ en: "Number"
44
+ other_field:
45
+ type: text
46
+ label:
47
+ de: "Anderes Feld"
48
+ en: "Another field"
31
49
 
@@ -1,3 +1,3 @@
1
1
  module Smooster
2
- VERSION = "0.3.7"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smooster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Maier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor