smooster 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +8 -0
- data/lib/smooster/cli/executable.rb +5 -0
- data/lib/smooster/deploy/media_asset.rb +7 -5
- data/lib/smooster/deploy/site_template.rb +7 -3
- data/lib/smooster/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDIxY2QyZWZhNmEwOTMxZmU0Mjc5YmE2NzAxNjJhNDk4OTBiZjRmOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzhkZDM4ODMzYWUyMzgzZDdlMjBlZTI3OGE4YmNhMGIxNjAyNzQyYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzQ1OGU0NzFiNDg5MTM3NThjMDgzYjY0ZDlkNDMyY2FiOTEzYjI2NjM4ZDBh
|
10
|
+
ODAxMDNmOWJiMGIwZjA2MDlhOTNhOWFmODFmZWE1YTcxOThiM2NhZDMxMmYy
|
11
|
+
Y2Q0ZTVmMzNjMWQzOWYyNGJmM2VlYTZjMGJiNWEwOTNkY2M0MzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDdjZDc5YTUyOGQ2MmIwNDFhNzMzZGZhNzIzNzczYTlkM2NmN2NhMTBmNjdj
|
14
|
+
ZjljMmJkYmJkYjQ1MTkwMjc4OGNmNDVhMzc1Yjg4Yjk4MTljZjEzMGEyZGFk
|
15
|
+
ODc1YTRjMDE2YmIxY2IwYmVhMjU0YmI2YzMxMDVhOTAzZjdiNWI=
|
data/README.md
CHANGED
@@ -33,9 +33,17 @@ This is a ruby gem
|
|
33
33
|
* Detecting liquid variables in site_templates an auto activating liquid feature
|
34
34
|
* add subtemplate feature - auto detect similar parts in html and create subtemplates
|
35
35
|
* Feature that can create a page for each uploaded site_template (so that it's easier to check, if they are working) and return the links for all of them
|
36
|
+
* Generate a page for each site_template if site_template is uploaded for the first time
|
37
|
+
* For each new generated test page, return a html validator link http://validator.w3.org/check?uri=www.smooster.com%2Fde%2Findex&charset=%28detect+automatically%29&doctype=Inline&group=0
|
36
38
|
|
37
39
|
## Changelog
|
38
40
|
|
41
|
+
###0.1.7
|
42
|
+
* Bugfix: use only short_path as reference for site_templates and media_assets (do be more compatible between different users systems)
|
43
|
+
|
44
|
+
###0.1.6
|
45
|
+
* Bugfix: smooster setup failed, if .smo Dir doesn't exist in users homedir
|
46
|
+
|
39
47
|
###0.1.2
|
40
48
|
* Uploading assets first
|
41
49
|
* Enhanced deploy command default is assets only. options are assets, templates, all
|
@@ -14,6 +14,11 @@ module Smooster
|
|
14
14
|
|
15
15
|
desc "setup API_KEY", "Setup your smooster gem. Add your API_KEY"
|
16
16
|
def setup(api_key)
|
17
|
+
|
18
|
+
unless File.directory?("#{Dir.home}/.smo")
|
19
|
+
FileUtils.mkdir_p("#{Dir.home}/.smo")
|
20
|
+
end
|
21
|
+
|
17
22
|
Smooster::Application.instance.update_api_key(api_key)
|
18
23
|
puts Smooster::Application.instance.api_key()
|
19
24
|
puts "done!"
|
@@ -25,11 +25,15 @@ module Smooster
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def load_checksum
|
28
|
-
store.transaction { store[self.
|
28
|
+
store.transaction { store[self.short_file_path][:checksum] if store[self.short_file_path].present? }
|
29
29
|
end
|
30
30
|
|
31
31
|
def load_smo_id
|
32
|
-
store.transaction { store[self.
|
32
|
+
store.transaction { store[self.short_file_path][:smo_id] if store[self.short_file_path].present? }
|
33
|
+
end
|
34
|
+
|
35
|
+
def short_file_path
|
36
|
+
self.file_path.gsub("#{Smooster::Application.instance.base_dir}/#{Smooster::Application.instance.html_folder()}","")
|
33
37
|
end
|
34
38
|
|
35
39
|
def download(keep=true)
|
@@ -44,8 +48,6 @@ module Smooster
|
|
44
48
|
puts "This file failed to load: #{self.file_path}".colorize(:red)
|
45
49
|
File.delete(self.file_path) if keep == false
|
46
50
|
end
|
47
|
-
|
48
|
-
|
49
51
|
end
|
50
52
|
|
51
53
|
def upload
|
@@ -77,7 +79,7 @@ module Smooster
|
|
77
79
|
|
78
80
|
def save
|
79
81
|
store.transaction do
|
80
|
-
store[self.
|
82
|
+
store[self.short_file_path] = {:checksum => self.checksum.to_s, :smo_id => self.smo_id}
|
81
83
|
end
|
82
84
|
end
|
83
85
|
end
|
@@ -16,11 +16,15 @@ module Smooster
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def load_checksum
|
19
|
-
store.transaction { store[self.
|
19
|
+
store.transaction { store[self.short_path][:checksum] if store[self.short_path].present? }
|
20
20
|
end
|
21
21
|
|
22
22
|
def load_smo_id
|
23
|
-
store.transaction { store[self.
|
23
|
+
store.transaction { store[self.short_path][:smo_id] if store[self.short_path].present? }
|
24
|
+
end
|
25
|
+
|
26
|
+
def short_path
|
27
|
+
self.path.gsub("#{Smooster::Application.instance.base_dir}/#{Smooster::Application.instance.html_folder()}","")
|
24
28
|
end
|
25
29
|
|
26
30
|
def upload
|
@@ -39,7 +43,7 @@ module Smooster
|
|
39
43
|
|
40
44
|
def save
|
41
45
|
store.transaction do
|
42
|
-
store[self.
|
46
|
+
store[self.short_path] = {:checksum => self.checksum.to_s, :smo_id => self.smo_id}
|
43
47
|
end
|
44
48
|
end
|
45
49
|
end
|
data/lib/smooster/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.7
|
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-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|