susanoo 0.7.2 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b70dbf48109146268832b75a63b0f5fb69360b26
4
- data.tar.gz: d39ce476d21f2b284c4b08b7c43027d3f6c648aa
3
+ metadata.gz: e5b4783d4a9a26aecdee7e104d4eb88784ac8c4a
4
+ data.tar.gz: 94c2770a694ff736bcaff1d4a76d16f98ccf18c9
5
5
  SHA512:
6
- metadata.gz: 4a24b04b291fdd00ebc0359fb82742fa4ec308b702cd5fa63b8dd999915eeaa9e566a91c1e0e2aaa2cdca277404c544a298822fe21ec8518e85370b1bbf73180
7
- data.tar.gz: 94434fedeab4868194a06b1b8ae9d235409e8c2246f0172e47fa7b701a306f6c373881cd5aea96e1a33700bd3f56e656b7b1926ce23937d57f53e4ba3de795d5
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).
@@ -1,3 +1,4 @@
1
+
1
2
  *~
2
3
  www/statics/*
3
4
  # ANDROID / ECLIPSE
@@ -48,4 +49,5 @@ IOS/www/
48
49
 
49
50
  # Files that might appear on external disk
50
51
  .Spotlight-V100
51
- .Trashes
52
+ .Trashes
53
+ www/
@@ -5,4 +5,5 @@ gem 'pry'
5
5
  gem 'rerun'
6
6
  gem 'rack'
7
7
  gem 'rake'
8
- gem 'sprockets', '~>2.11.0'
8
+ #gem 'sprockets', '2.11.0'
9
+ #gem 'sass'
@@ -1,3 +1,3 @@
1
1
  module Susanoo
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.4'
3
3
  end
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.2
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
@@ -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