nimbu 0.11.3 → 0.11.4
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 +5 -5
- data/lib/nimbu/command/themes.rb +9 -7
- data/lib/nimbu/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3382c0aa133f1d85df8be3688822425f5347671bce1fc9240540d61663b93f0d
|
|
4
|
+
data.tar.gz: 8f99d8a7359572a38d27ff91d8c574d319d995cc9b805f65964cc27875b74ddb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9684f2d04d714abf64100ed396acdca52f8701f0124b7f6c43b5faa9b599204468b2e484ae8865983a1ff94655bdb926b68359ac984395e07721eff5d4ed5482
|
|
7
|
+
data.tar.gz: 88fb8f1c263179614472536fc63bad99e76e91b18f2b09480c2878e40576d3e090f5fec393cadeb7e5c64fb744ef1b466b0db2a267485227b63f14af7f8e0d0f
|
data/lib/nimbu/command/themes.rb
CHANGED
|
@@ -142,7 +142,7 @@ class Nimbu::Command::Themes < Nimbu::Command::Base
|
|
|
142
142
|
rescue Nimbu::Error::Conflict => error
|
|
143
143
|
handle_conflict(error, font) do
|
|
144
144
|
nimbu.themes(:subdomain => Nimbu::Auth.site).assets(:theme_id => theme).create({:name => "fonts/#{font}", :file => io, force: "true"})
|
|
145
|
-
end
|
|
145
|
+
end
|
|
146
146
|
end
|
|
147
147
|
end
|
|
148
148
|
end
|
|
@@ -166,7 +166,7 @@ class Nimbu::Command::Themes < Nimbu::Command::Base
|
|
|
166
166
|
rescue Nimbu::Error::Conflict => error
|
|
167
167
|
handle_conflict(error, image) do
|
|
168
168
|
nimbu.themes(:subdomain => Nimbu::Auth.site).assets(:theme_id => theme).create({:name => "images/#{image}", :file => io, force: "true"})
|
|
169
|
-
end
|
|
169
|
+
end
|
|
170
170
|
end
|
|
171
171
|
end
|
|
172
172
|
end
|
|
@@ -189,8 +189,9 @@ class Nimbu::Command::Themes < Nimbu::Command::Base
|
|
|
189
189
|
print " (ok)\n"
|
|
190
190
|
rescue Nimbu::Error::Conflict => error
|
|
191
191
|
handle_conflict(error, css) do
|
|
192
|
+
io = Faraday::UploadIO.new(File.open(file), 'application/octet-stream', File.basename(file))
|
|
192
193
|
nimbu.themes(:subdomain => Nimbu::Auth.site).assets(:theme_id => theme).create({:name => "stylesheets/#{css}", :file => io, force: "true"})
|
|
193
|
-
end
|
|
194
|
+
end
|
|
194
195
|
end
|
|
195
196
|
end
|
|
196
197
|
end
|
|
@@ -213,8 +214,9 @@ class Nimbu::Command::Themes < Nimbu::Command::Base
|
|
|
213
214
|
print " (ok)\n"
|
|
214
215
|
rescue Nimbu::Error::Conflict => error
|
|
215
216
|
handle_conflict(error, js) do
|
|
217
|
+
io = Faraday::UploadIO.new(File.open(file), 'application/octet-stream', File.basename(file))
|
|
216
218
|
nimbu.themes(:subdomain => Nimbu::Auth.site).assets(:theme_id => theme).create({:name => "javascripts/#{js}", :file => io, force: "true"})
|
|
217
|
-
end
|
|
219
|
+
end
|
|
218
220
|
end
|
|
219
221
|
end
|
|
220
222
|
end
|
|
@@ -241,7 +243,7 @@ class Nimbu::Command::Themes < Nimbu::Command::Base
|
|
|
241
243
|
rescue Nimbu::Error::Conflict => error
|
|
242
244
|
handle_conflict(error, snippet) do
|
|
243
245
|
nimbu.themes(:subdomain => Nimbu::Auth.site).snippets(:theme_id => theme).create({:name => snippet, :content => IO.read(file).force_encoding('UTF-8'), force: "true"})
|
|
244
|
-
end
|
|
246
|
+
end
|
|
245
247
|
end
|
|
246
248
|
end
|
|
247
249
|
|
|
@@ -271,7 +273,7 @@ class Nimbu::Command::Themes < Nimbu::Command::Base
|
|
|
271
273
|
rescue Nimbu::Error::Conflict => error
|
|
272
274
|
handle_conflict(error, template) do
|
|
273
275
|
nimbu.themes(:subdomain => Nimbu::Auth.site).templates(:theme_id => theme).create({:name => template, :content => IO.read(file).force_encoding('UTF-8'), force: "true"})
|
|
274
|
-
end
|
|
276
|
+
end
|
|
275
277
|
end
|
|
276
278
|
end
|
|
277
279
|
end
|
|
@@ -315,7 +317,7 @@ class Nimbu::Command::Themes < Nimbu::Command::Base
|
|
|
315
317
|
server = json["code"].to_s.force_encoding('UTF-8').gsub(/\r\n?/, "\n").strip
|
|
316
318
|
diff = Diffy::Diff.new(local, server, :include_diff_info => true, :context => 3).to_s(:color).strip
|
|
317
319
|
if diff != ""
|
|
318
|
-
print "\n - #{type}/#{data["name"]} has #{'changed'.yellow.bold }:\n\n#{diff}"
|
|
320
|
+
print "\n - #{type}/#{data["name"]} has #{'changed'.yellow.bold }:\n\n#{diff}"
|
|
319
321
|
@diff[type] = true
|
|
320
322
|
end
|
|
321
323
|
else
|
data/lib/nimbu/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nimbu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zenjoy BVBA
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: term-ansicolor
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.4.
|
|
33
|
+
version: 0.4.3
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.4.
|
|
40
|
+
version: 0.4.3
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rubyzip
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
326
326
|
version: '0'
|
|
327
327
|
requirements: []
|
|
328
328
|
rubyforge_project:
|
|
329
|
-
rubygems_version: 2.
|
|
329
|
+
rubygems_version: 2.7.6
|
|
330
330
|
signing_key:
|
|
331
331
|
specification_version: 4
|
|
332
332
|
summary: Client library and CLI to design websites on the Nimbu platform.
|