xing-framework 0.2.2 → 0.2.3

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: 9f49185d0b2b299b6669318d7e3ae230bc65b3ba
4
- data.tar.gz: f5588acfcbf59e2dca842282c905a11081362c47
3
+ metadata.gz: e157c3f60a9f384ec26b5ba638c87b49e67a8c83
4
+ data.tar.gz: ba3b62d579a30c81739f2aa662effcaf23e0b6e6
5
5
  SHA512:
6
- metadata.gz: dc532d09f1969349dcb2151a563fbef518a3ae3ec1934244339bb042783d2e6d4aa60be016053e5aa05d926aa6cb788f8ac03b759996d530d657a1e71d8db4bf
7
- data.tar.gz: 497938afb002a688ffd2907a47a682f5399d19d41d74efd066d1429036e6930d161b7ac89be7ed776538f074ddb740c73e596d57f861966e3c925b0e84627d13
6
+ metadata.gz: 55996603926d37209d5d1ac3c178e99c4b504adaffb47bfa0764c8f04aa022c07e2df8e8a4675a0240db70cb093644a72d66a21aa4f778d340dbb277bd511768
7
+ data.tar.gz: 98e945849cd3f99ed9fa7dac58e2052ef0bdccbe601bc14a6b729fd027373caac349f1b1ec40942f382d599c54dd37a6e58c7bc00fa4fdf98a34eb1eb8acf23c
@@ -72,12 +72,12 @@ GEM
72
72
  nokogiri (>= 1.5.9)
73
73
  mail (2.6.3)
74
74
  mime-types (>= 1.16, < 3)
75
- mattock (0.10.0)
75
+ mattock (0.10.1)
76
76
  calibrate (~> 0.0.1)
77
- caliph (~> 0.3.1)
77
+ caliph (~> 0.3)
78
78
  rake (~> 10.0)
79
79
  tilt (> 0)
80
- valise (~> 1.1.1)
80
+ valise (~> 1.1)
81
81
  mime-types (2.6.1)
82
82
  mini_portile (0.6.2)
83
83
  minitest (5.7.0)
@@ -134,8 +134,8 @@ GEM
134
134
  tilt (2.0.2)
135
135
  tzinfo (1.2.2)
136
136
  thread_safe (~> 0.1)
137
- valise (1.1.4)
138
- xing-root (0.0.6)
137
+ valise (1.2.0)
138
+ xing-root (0.0.7)
139
139
  caliph (~> 0.3)
140
140
  edict (< 1.0)
141
141
  mattock (~> 0.10)
@@ -24,6 +24,8 @@ import Homepage from './homepage/homepage.js';
24
24
  import * as RootStates from './rootStates.js';
25
25
  import RootCtrl from './rootController.js';
26
26
 
27
+ import Resources from "common/resources.js";
28
+
27
29
  var app = new Module(appName, [
28
30
  'templates-app', 'templates-common', 'ui.router',
29
31
  'picardy.fontawesome',
@@ -40,7 +42,8 @@ var app = new Module(appName, [
40
42
  Toast,
41
43
  appConfig,
42
44
  RootStates,
43
- RootCtrl
45
+ RootCtrl,
46
+ Resources
44
47
  ]);
45
48
 
46
49
  var injector = new Injector(appName);
@@ -0,0 +1,24 @@
1
+ import RL from "relayer";
2
+ import {Module, Config, applyAnnotation} from "a1atscript";
3
+ import {backendUrl} from 'config';
4
+ // import other resources from src/common/resources here
5
+
6
+ class Resources extends RL.Resource {
7
+ }
8
+
9
+ RL.Describe(Resources, (desc) => {
10
+ // put top level links to resources here
11
+ });
12
+
13
+ // sets up default API as 'resources' service
14
+ function setupResources(relayerProvider) {
15
+ relayerProvider.createApi("resources", Resources, backendUrl+"resources")
16
+ }
17
+
18
+ // this is a syntax for applying an annotation without an ES7 Decorator
19
+ applyAnnotation(setupResources, Config, "relayerProvider");
20
+
21
+ var resourcesModule = new Module('xing.resources', [setupResources,
22
+ RL]);
23
+
24
+ export default resourcesModule;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xing-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Dorn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-14 00:00:00.000000000 Z
12
+ date: 2016-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
@@ -204,6 +204,7 @@ files:
204
204
  - default_configuration/base_app/frontend/src/common/components/sessionLinks/sessionLinks.js
205
205
  - default_configuration/base_app/frontend/src/common/components/signOut/signOut.js
206
206
  - default_configuration/base_app/frontend/src/common/config.js
207
+ - default_configuration/base_app/frontend/src/common/resources.js
207
208
  - default_configuration/base_app/frontend/src/index.html
208
209
  - default_configuration/base_app/frontend/src/styles/_constants.sass
209
210
  - default_configuration/base_app/frontend/src/styles/main.sass
@@ -248,7 +249,7 @@ rdoc_options:
248
249
  - "--main"
249
250
  - doc/README
250
251
  - "--title"
251
- - xing-framework-0.2.2 Documentation
252
+ - xing-framework-0.2.3 Documentation
252
253
  require_paths:
253
254
  - lib/
254
255
  required_ruby_version: !ruby/object:Gem::Requirement