susanoo 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.yardopts +1 -0
- data/docs/guide/index.md +9 -0
- data/lib/susanoo/tasks/assets.rake +1 -5
- data/lib/susanoo/tasks/run.rake +3 -3
- data/lib/susanoo/templates/application/Gemfile +1 -0
- data/lib/susanoo/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b70dbf48109146268832b75a63b0f5fb69360b26
|
4
|
+
data.tar.gz: d39ce476d21f2b284c4b08b7c43027d3f6c648aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a24b04b291fdd00ebc0359fb82742fa4ec308b702cd5fa63b8dd999915eeaa9e566a91c1e0e2aaa2cdca277404c544a298822fe21ec8518e85370b1bbf73180
|
7
|
+
data.tar.gz: 94434fedeab4868194a06b1b8ae9d235409e8c2246f0172e47fa7b701a306f6c373881cd5aea96e1a33700bd3f56e656b7b1926ce23937d57f53e4ba3de795d5
|
data/.gitignore
CHANGED
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--no-private --exclude templates --protected lib/**/*.rb - docs/guide/**/*.md README.md LICENSE --markup-provider=redcarpet --markup=markdown --output-dir docs/ruby --private --protected --main docs/guide/index.md
|
data/docs/guide/index.md
ADDED
@@ -4,7 +4,7 @@ Bundler.require
|
|
4
4
|
|
5
5
|
desc "Compile assets into statics folder"
|
6
6
|
task :assets1 do
|
7
|
-
require
|
7
|
+
require 'sprockets'
|
8
8
|
#require "rake/sprocketstask"
|
9
9
|
|
10
10
|
assets = Sprockets::Environment.new
|
@@ -13,13 +13,10 @@ task :assets1 do
|
|
13
13
|
|
14
14
|
#Susanoo::Assets.path = ""
|
15
15
|
LOOSE_APP_ASSETS = lambda do |path, filename|
|
16
|
-
puts ">>>>>>>>>>>>>>>>>>>> ", filename, filename !~ %r~assets~ && !%w[.js .css].include?(File.extname(path))
|
17
16
|
filename !~ %r~assets~ && !%w[.js .css].include?(File.extname(path))
|
18
17
|
end
|
19
|
-
puts ">>>>>"
|
20
18
|
precompile = [LOOSE_APP_ASSETS, /(?:\/|\\|\A)application\.(css|js)$/]
|
21
19
|
assets.each_logical_path(*precompile).each {|path|
|
22
|
-
puts "<$$$$$$ ", File.extname(path)
|
23
20
|
dir = ''
|
24
21
|
case File.extname(path)
|
25
22
|
when '.js'
|
@@ -27,7 +24,6 @@ task :assets1 do
|
|
27
24
|
when '.css'
|
28
25
|
dir = 'stylesheets'
|
29
26
|
end
|
30
|
-
puts "<<<<<<<<<<<<<<<< ", dir
|
31
27
|
assets[path].write_to "www/assets/#{dir}/#{path}"
|
32
28
|
}
|
33
29
|
|
data/lib/susanoo/tasks/run.rake
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
namespace :run do
|
2
|
-
|
3
|
-
[:android, :ios, "amazon-fireos", "ubuntu", "wp7", "wp8", "tizen"].each do |platform|
|
2
|
+
[:android, :ios, 'amazon-fireos', 'ubuntu', 'wp7', 'wp8', 'tizen'].each do |platform|
|
4
3
|
desc "run application for #{platform} platform"
|
5
4
|
task platform do
|
6
|
-
Rake::Task[
|
5
|
+
Rake::Task['assets'].invoke
|
6
|
+
Rake::Task['compile'].invoke
|
7
7
|
system "cordova run #{platform}"
|
8
8
|
end
|
9
9
|
end
|
data/lib/susanoo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: susanoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Rahmani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -229,6 +229,7 @@ extensions: []
|
|
229
229
|
extra_rdoc_files: []
|
230
230
|
files:
|
231
231
|
- ".gitignore"
|
232
|
+
- ".yardopts"
|
232
233
|
- Gemfile
|
233
234
|
- LICENSE
|
234
235
|
- README.md
|
@@ -236,6 +237,7 @@ files:
|
|
236
237
|
- Susanoo.gemspec
|
237
238
|
- TODO.org
|
238
239
|
- bin/susanoo
|
240
|
+
- docs/guide/index.md
|
239
241
|
- lib/susanoo.rb
|
240
242
|
- lib/susanoo/application.rb
|
241
243
|
- lib/susanoo/assets.rb
|