susanoo 0.7.2 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/guide/installation.md +18 -0
- data/docs/guide/quick_start.md +42 -0
- data/lib/susanoo/templates/application/.gitignore +3 -1
- data/lib/susanoo/templates/application/Gemfile +2 -1
- data/lib/susanoo/version.rb +1 -1
- metadata +3 -3
- data/lib/susanoo/tasks/compile.rake +0 -10
- data/lib/susanoo/tasks/run.rake +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5b4783d4a9a26aecdee7e104d4eb88784ac8c4a
|
4
|
+
data.tar.gz: 94c2770a694ff736bcaff1d4a76d16f98ccf18c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 476a04721d656adeaf18b42022327731427c444bd0bcc2deb50d30cd016acf70b79dda24e84e27f96da1cc270f354bf879a1c8d4ded115f568b6e43f975e02e0
|
7
|
+
data.tar.gz: 00bb42ff05dd1997626c8eaa38ba60c95f80846d5751cdcceaa60f3938d1f9d2e4f6a7a3104aeab2922378723e2ff014a049b5e05c3daec3d42dd4ad7e01ea15
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Installation
|
2
|
+
`Susanoo`'s installation is fairly easy:
|
3
|
+
|
4
|
+
```bash
|
5
|
+
$ gem install susanoo
|
6
|
+
```
|
7
|
+
|
8
|
+
If you're not using ruby versions manager scripts like `rbenv` or `rvm` (which I totally recommend you to use
|
9
|
+
`rbenv`) install `Susanoo` using `sudo` or `root` user.
|
10
|
+
|
11
|
+
## Requirements
|
12
|
+
|
13
|
+
Before contrinue make sure to install requirements of `Susanoo`. Here is the list:
|
14
|
+
|
15
|
+
* NodeJS + npm
|
16
|
+
* Install Apache Cordova using `npm` globally (version 3.5 or higher)
|
17
|
+
* Target platform SDK. You have to install and setup the SDK of your target
|
18
|
+
platform (e.g android)
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Quick Start
|
2
|
+
|
3
|
+
After [Installation]() of `Susanoo` head to you terminal to create a new project:
|
4
|
+
|
5
|
+
```bash
|
6
|
+
$ susanoo new example_project
|
7
|
+
```
|
8
|
+
|
9
|
+
Above command will ask you a few questions about your new project and download
|
10
|
+
couple of files and the generate the new project for you.
|
11
|
+
|
12
|
+
**Note:** You have to know about `Apache Cordova` basic usage to continue.
|
13
|
+
|
14
|
+
ok now you have a `Susanoo` hello world application.
|
15
|
+
|
16
|
+
## How can I run my new app ?
|
17
|
+
Running a `Susanoo` application is easy too but you have to learn a little about
|
18
|
+
the running process. In order to run you application you have to build it first
|
19
|
+
(of caurse susanoo will do it automatically but it's a good idea to know about
|
20
|
+
these stuff).
|
21
|
+
|
22
|
+
Your code live at `src/` by default but `cordova` except a `www/` directory in your
|
23
|
+
project, so by using:
|
24
|
+
|
25
|
+
```bash
|
26
|
+
$ susanoo build
|
27
|
+
```
|
28
|
+
|
29
|
+
You can compile your assets and ruby code to a static application (which `cordova`
|
30
|
+
excepts) and put them in `www/` directory. There is an other command which allows
|
31
|
+
you to run the built result:
|
32
|
+
|
33
|
+
```bash
|
34
|
+
$ susanoo run PLATFORM
|
35
|
+
```
|
36
|
+
|
37
|
+
will run the built resulted in given **PLATFORM** (NOTE: `run` will also run the
|
38
|
+
`build` command too). Bear in mind that **YOU HAVE TO ALREADY INSTALLED YOU PLATFORM SDK BEFORE**
|
39
|
+
so `run` command can find your **SDK** and run the project using that SDK.
|
40
|
+
|
41
|
+
For example to run the application under `Android` platform you have to connect an android
|
42
|
+
device or use some emulators like [genymotion](http://www.genymotion.com).
|
data/lib/susanoo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Rahmani
|
@@ -238,6 +238,8 @@ files:
|
|
238
238
|
- TODO.org
|
239
239
|
- bin/susanoo
|
240
240
|
- docs/guide/index.md
|
241
|
+
- docs/guide/installation.md
|
242
|
+
- docs/guide/quick_start.md
|
241
243
|
- lib/susanoo.rb
|
242
244
|
- lib/susanoo/application.rb
|
243
245
|
- lib/susanoo/assets.rb
|
@@ -257,9 +259,7 @@ files:
|
|
257
259
|
- lib/susanoo/static_generator.rb
|
258
260
|
- lib/susanoo/tasks.rb
|
259
261
|
- lib/susanoo/tasks/assets.rake
|
260
|
-
- lib/susanoo/tasks/compile.rake
|
261
262
|
- lib/susanoo/tasks/debug.rake
|
262
|
-
- lib/susanoo/tasks/run.rake
|
263
263
|
- lib/susanoo/templates/application/.gitignore
|
264
264
|
- lib/susanoo/templates/application/Gemfile
|
265
265
|
- lib/susanoo/templates/application/Rakefile
|
@@ -1,10 +0,0 @@
|
|
1
|
-
namespace :compile do
|
2
|
-
#require 'susanoo'
|
3
|
-
[:android, :ios, "amazon-fireos", "ubuntu", "wp7", "wp8", "tizen"].each do |platform|
|
4
|
-
desc "compile application for #{platform} platform"
|
5
|
-
task platform do
|
6
|
-
Rake::Task["assets"].invoke
|
7
|
-
system "cordova compile #{platform}"
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
data/lib/susanoo/tasks/run.rake
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
namespace :run do
|
2
|
-
[:android, :ios, 'amazon-fireos', 'ubuntu', 'wp7', 'wp8', 'tizen'].each do |platform|
|
3
|
-
desc "run application for #{platform} platform"
|
4
|
-
task platform do
|
5
|
-
Rake::Task['assets'].invoke
|
6
|
-
Rake::Task['compile'].invoke
|
7
|
-
system "cordova run #{platform}"
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|