graph_starter 0.13.11 → 0.13.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ede20bbf0708b67e531553d15636c099f01fa87
4
- data.tar.gz: 8906030351954bcb3167a31d13c36a83fc40d56e
3
+ metadata.gz: 429a681a1194bb9e69fb6dd06d6d492c270f9cd7
4
+ data.tar.gz: 55ec5e854587e8568c6a0fde9e09553cd34b0270
5
5
  SHA512:
6
- metadata.gz: 45a3a2e63ecc53b3e9002dcb97f88f6aba7b468b77360a1c2f42457b8e6dc3b34ef2b9a998481db89c6e8f937d08bac74cc1f5cbd07298143e729206e0660a58
7
- data.tar.gz: dc926bd23e31e0eb26d06e74bd493b0ff64bc63571dd4118e48741755aa21ee53e7c116a1e560085156192631bd08449e99901737e594fda97263129b1c1ff67
6
+ metadata.gz: 766a154c85156db13d4e1b3e95c3428beae340ea66c60839685c8fae3fdbce75e01d0aebbb86aac7417b8b63f97b4d3e0dd7026342f2cf51e6ded2e95eda1dcc
7
+ data.tar.gz: 8fdf41d94d916ae841c7e49adcc4a06cb9c09a99f5c807c10c36231c87c676a957d91cb3e46cb7c84d81c870851bc2f8782fb351e8c8911a66b5b3b7da53bfa3
@@ -2,7 +2,10 @@
2
2
  #= require jquery_ujs
3
3
  #= require turbolinks
4
4
  #= require graph_starter/underscore
5
- #= require semantic-ui
5
+ #= require semantic-ui/api
6
+ #= require semantic-ui/rating
7
+ #= require semantic-ui/search
8
+ #= require semantic-ui/transition
6
9
 
7
10
  spinner_timeout_id = null
8
11
 
@@ -2,7 +2,32 @@
2
2
  *= require_self
3
3
  */
4
4
 
5
- @import "semantic-ui";
5
+ @import "semantic-ui/globals/reset";
6
+ @import "semantic-ui/globals/site";
7
+
8
+ @import "semantic-ui/elements/button";
9
+ @import "semantic-ui/elements/container";
10
+ @import "semantic-ui/elements/divider";
11
+ @import "semantic-ui/elements/header";
12
+ @import "semantic-ui/elements/icon";
13
+ @import "semantic-ui/elements/image";
14
+ @import "semantic-ui/elements/input";
15
+ @import "semantic-ui/elements/list";
16
+ @import "semantic-ui/elements/loader";
17
+ @import "semantic-ui/elements/segment";
18
+
19
+ //@import "semantic-ui/collections/form";
20
+ @import "semantic-ui/collections/grid";
21
+ @import "semantic-ui/collections/menu";
22
+ @import "semantic-ui/collections/message";
23
+ @import "semantic-ui/collections/table";
24
+
25
+ @import "semantic-ui/views/card";
26
+ @import "semantic-ui/views/item";
27
+
28
+ @import "semantic-ui/modules/rating";
29
+ @import "semantic-ui/modules/search";
30
+ @import "semantic-ui/modules/transition";
6
31
 
7
32
  #menu {
8
33
  margin-top: 0;
@@ -32,22 +32,6 @@ module GraphStarter
32
32
  render json: {results: results_data}.to_json
33
33
  end
34
34
 
35
- def asset_set(var = :asset, limit = 50)
36
- associations = []
37
- associations << model_class.image_association
38
- associations += model_class.category_associations
39
- associations.compact!
40
-
41
- scope = model_class_scope(var)
42
- scope = yield scope if block_given?
43
-
44
- scope = scope.limit(limit)
45
-
46
- scope = apply_associations(scope, var)
47
-
48
- scope
49
- end
50
-
51
35
  def show
52
36
  @asset = asset
53
37
 
@@ -117,6 +101,22 @@ module GraphStarter
117
101
  end
118
102
  end
119
103
 
104
+ def asset_set(var = :asset, limit = 50)
105
+ associations = []
106
+ associations << model_class.image_association
107
+ associations += model_class.category_associations
108
+ associations.compact!
109
+
110
+ scope = model_class_scope(var)
111
+ scope = yield scope if block_given?
112
+
113
+ scope = scope.limit(limit)
114
+
115
+ scope = apply_associations(scope, var)
116
+
117
+ scope
118
+ end
119
+
120
120
  def asset
121
121
  apply_associations(model_class_scope.where(uuid: params[:id])).to_a[0]
122
122
  end
@@ -1,5 +1,7 @@
1
1
  doctype html
2
2
 
3
+ - controller = params[:controller].to_sym
4
+
3
5
  html
4
6
 
5
7
  head
@@ -14,8 +16,6 @@ html
14
16
 
15
17
  = javascript_include_tag 'graph_starter/application', 'data-turbolinks-track' => true
16
18
 
17
- - controller = params[:controller].to_sym
18
-
19
19
  - if ![:users, :groups].include?(controller)
20
20
  = javascript_include_tag 'graph_starter/ember_apps/permissions_modal', 'data-turbolinks-track' => true
21
21
 
@@ -1,3 +1,3 @@
1
1
  module GraphStarter
2
- VERSION = "0.13.11"
2
+ VERSION = "0.13.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.11
4
+ version: 0.13.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-26 00:00:00.000000000 Z
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails