susanoo 0.13.0 → 0.13.1

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: d696657b00d074193759b6373ec87e72af35415a
4
- data.tar.gz: 562bff40ed94c0117d6d3f9c063781f47141b2df
3
+ metadata.gz: 8862acf66cd34b1e0a3bfdcea3bfa4198251536f
4
+ data.tar.gz: b65c760c4afcd794d1e0106529637bc234fc098e
5
5
  SHA512:
6
- metadata.gz: 5872c8633c47c4845c0a6aa6f9622e7999ee92bb2be251bb46af77f81f07e3a04ebcc8786a64dca78ad1ff73ee87ac89e665d2320ac30cbf742d078e9165ece5
7
- data.tar.gz: 73975bd00bbb6a8fcdd3594a116f570561e31064d0a9f3cacf4ed5f3b5f909f585b23c1103d6e9b599995e93faebc7ff893c1cf2823cb40d50c96ea69086c468
6
+ metadata.gz: b983b094f9919066b77c9915ddb33484349111a835c79dd57414045d1ad647046986de0820bdf172929abfa5a77f5a679984f29d215d299e9bdf4c43e3671f85
7
+ data.tar.gz: 273b1de0b37567704d0ca2ae5d969ce0537df8ba45372fb5971a4675fe21bc3a38b33c2ba7d7146291c4a43ea81620afa45c036666451a0c3f22ba47aa2905b8
@@ -1,16 +1,18 @@
1
1
  // Main Application Module
2
2
  // -----------------------
3
3
  // This module is the start point of application.
4
- var App = angular.module("Application", ["ngTouch", "ngAnimate", "ngRoute", "gettext", "angular-gestures"]);
4
+ var App = angular.module("Application", ["ngAnimate", "gettext", "ui.router"]);
5
5
 
6
6
  // configuration section ---------------------------
7
- App.config(["$routeProvider", function($routeProvider){
7
+ App.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider){
8
8
 
9
+ $urlRouterProvider.otherwise("/");
9
10
  // Configuring application index route.
10
11
  // Add any route you need here.
11
- $routeProvider.
12
- when("/", {
13
- templateUrl: template("main"),
12
+ $stateProvider.
13
+ state("root", {
14
+ url: "/",
15
+ templateUrl: template_url("main"),
14
16
  controller: "MainController"
15
17
  });
16
18
 
@@ -1,4 +1,4 @@
1
1
  // Return fixed path to given path
2
- function template(path) {
2
+ function template_url(path) {
3
3
  return "views/" + path + ".html";
4
4
  }
@@ -11,7 +11,7 @@
11
11
  <title>Hello World</title>
12
12
  </head>
13
13
  <body>
14
- <div ng-view>
14
+ <div ui-view>
15
15
  </div>
16
16
  <script type="text/javascript" src="cordova.js"></script>
17
17
 
@@ -2,13 +2,14 @@
2
2
  var <%= module_name %> = angular.module("<%= module_name.camelize %>", ["gettext"<% dependencies.each do |dep| %>, "<%= dep.camelize %>"<% end %>]);
3
3
 
4
4
  // configuration section ---------------------------
5
- <%= module_name %>.config(["$routeProvider", function($routeProvider){
5
+ <%= module_name %>.config(["$stateProvider", function($stateProvider){
6
6
 
7
7
  // Configuring application index route.
8
8
  // Add any route you need here.
9
- $routeProvider.
10
- when("/<%= directory_name %><%= module_name %>/", {
11
- templateUrl: template("<%= directory_name %><%= module_name %>/index"),
9
+ $stateProvider.
10
+ state("<%= module_name %>", {
11
+ url: "/<%= directory_name %><%= module_name %>/",
12
+ templateUrl: template_url("<%= directory_name %><%= module_name %>/index"),
12
13
  controller: "<%= module_name.camelize %>Controller"
13
14
  });
14
15
 
@@ -1,3 +1,3 @@
1
1
  module Susanoo
2
- VERSION = '0.13.0'
2
+ VERSION = '0.13.1'
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.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sameer Rahmani