oxymoron 1.0.9 → 1.0.10

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: 0585e3db359132f25083e32cddcc8e378ab634c4
4
- data.tar.gz: cda02a1670c4563cd1ed3a76bd722fa365545f05
3
+ metadata.gz: 86d4ad98634b4369be8a81bf872d2ffec5330d8a
4
+ data.tar.gz: 50365f3ffa393beb862898def01cdc511836bbf6
5
5
  SHA512:
6
- metadata.gz: c891023373203480139315bdc773e01fb48d42a7ffefd4da337217a1f96a372ee3efe74fcaea05bcd4f948c3be6a6d0060f0377f57a14b239053a1009756008e
7
- data.tar.gz: 942450bf49f3b19fbb721aa06c4bcdf2a6eef4cbc890b315cadd4f27e8a5c05cf5982c6762b6205e22fd95c1cfda7271310c7d9287a1902b634f895b17f61323
6
+ metadata.gz: a3b97191ae95b981f11ca084d8c126614b05f48276eb494d1300a84b8888aba84b6e47c9df8ef4ef9682939416129aade02f760a72f161e8788da0f15536a676
7
+ data.tar.gz: 7b3c75b55678640c5e54641ee605ffa1a2bf72eb86414a27bf0b240d97eb4f4a6272d3c24ff6dce2022a370345d8d85ba59da24a626c58496685229ff1d74270
@@ -40,6 +40,9 @@ angular.module("oxymoron.config.states", [])
40
40
  <% @states.each do |key, value| %>
41
41
  .state('<%= key %>_path', {
42
42
  url: <%= value[:url] %>,
43
+ <% if value[:params] %>
44
+ params: <%= value[:params].to_json %>,
45
+ <% end %>
43
46
  templateUrl: function(params) {
44
47
  params['ng-view']='';
45
48
  <% unless value[:cache] %>
@@ -1,3 +1,3 @@
1
1
  module Oxymoron
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
data/lib/oxymoron.rb CHANGED
@@ -53,6 +53,10 @@ module Oxymoron
53
53
  templateUrl: path,
54
54
  cache: route.defaults[:cache] === false ? false : true
55
55
  }
56
+
57
+ if route.defaults[:ui_params]
58
+ @states[route.name][:params] = Hash[route.defaults[:ui_params].map {|v| [v,nil]}]
59
+ end
56
60
 
57
61
  if route.defaults[:controller]
58
62
  @states[route.name][:controller] = "#{route.defaults[:controller].camelize.gsub('::', '')}Ctrl as ctrl"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxymoron
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kononenko Paul