bjond-api 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,28 +1,15 @@
1
- <div class="integration-app">
2
- <h2>App Info</h2>
3
-
4
- <h3><%= @app_info.name %></h3>
5
-
6
- <div class="field-wrapper">
7
- <div class="app-label">ID::</div>
8
- <div class="info"><%= @app_info.id %></div>
1
+ <div class="app-info">
2
+ <div class="app-info-header">
3
+ <%= image_tag @app_info.iconURL %>
4
+ <h2 class="app-name"><%= @app_info.name %></h2>
9
5
  </div>
10
6
 
11
- <div class="field-wrapper">
12
- <div class="app-label">Author::</div>
13
- <div class="info"><%= @app_info.author %></div>
14
- </div>
15
7
 
16
8
  <div class="field-wrapper">
17
9
  <div class="app-label">Description:</div>
18
10
  <div class="info"><%= @app_info.description %></div>
19
11
  </div>
20
12
 
21
- <div class="field-wrapper">
22
- <div class="app-label">Icon URL:</div>
23
- <div class="info"><%= @app_info.iconURL %></div>
24
- </div>
25
-
26
13
  <div class="field-wrapper">
27
14
  <div class="app-label">Config URL:</div>
28
15
  <div class="info"><%= @app_info.configURL %></div>
@@ -33,75 +20,92 @@
33
20
  <div class="info"><%= @app_info.rootEndpoint %></div>
34
21
  </div>
35
22
 
23
+ <div class="field-wrapper">
24
+ <div class="app-label">Author:</div>
25
+ <div class="info"><%= @app_info.author %></div>
26
+ </div>
27
+
28
+ <div class="field-wrapper">
29
+ <div class="app-label">ID:</div>
30
+ <div class="info"><%= @app_info.id %></div>
31
+ </div>
32
+
33
+
36
34
  </br>
37
35
 
38
36
  <% if @app_info.integrationEvent.count > 0 %>
39
- <h3> Events </h3>
40
- <% @app_info.integrationEvent.each do |event| %>
41
- <div class="event">
42
- <h4><%= event.name %></h4>
43
-
44
- <div class="field-wrapper">
45
- <div class="app-label">Description:</div>
46
- <div class="info"><%= event.description %></div>
47
- </div>
37
+ <h2> Events </h2>
38
+ <div class="events">
39
+ <% @app_info.integrationEvent.each do |event| %>
40
+ <div class="event">
41
+ <h4><%= event.name %></h4>
42
+
43
+ <div class="field-wrapper">
44
+ <div class="app-label">Description:</div>
45
+ <div class="info"><%= event.description %></div>
46
+ </div>
48
47
 
49
- <div class="field-wrapper">
50
- <div class="app-label">jsonKey:</div>
51
- <div class="info"><%= event.jsonKey %></div>
52
- </div>
53
-
54
- <h4>Fields:</h4>
55
- <% event.fields.each do |field| %>
56
- <div class="field">
57
- <div class="field-wrapper">
58
- <div class="app-label">Field Name:</div>
59
- <div class="info"><%= field.name %></div>
60
- </div>
61
- <div class="field-wrapper">
62
- <div class="app-label">ID:</div>
63
- <div class="info"><%= field.id %></div>
64
- </div>
65
- <div class="field-wrapper">
66
- <div class="app-label">Json Key:</div>
67
- <div class="info"><%= field.jsonKey %></div>
68
- </div>
48
+ <div class="field-wrapper">
49
+ <div class="app-label">jsonKey:</div>
50
+ <div class="info"><%= event.jsonKey %></div>
51
+ </div>
52
+
53
+ <h3>Fields:</h3>
54
+ <div class="fields">
55
+ <% event.fields.each do |field| %>
56
+ <div class="field">
57
+ <div class="field-wrapper">
58
+ <div class="app-label">Field Name:</div>
59
+ <div class="info"><%= field.name %></div>
60
+ </div>
61
+ <div class="field-wrapper">
62
+ <div class="app-label">ID:</div>
63
+ <div class="info"><%= field.id %></div>
64
+ </div>
65
+ <div class="field-wrapper">
66
+ <div class="app-label">Json Key:</div>
67
+ <div class="info"><%= field.jsonKey %></div>
68
+ </div>
69
+ </div>
70
+ <% end %>
69
71
  </div>
70
- <% end %>
72
+ </div>
73
+ <% end %>
74
+ </div>
71
75
 
72
- </div>
73
- <% end %>
74
76
  <% else %>
75
77
  No events are currently available for this app.
76
78
  <% end %>
77
79
 
78
80
  <% if @app_info.integrationConsequence.count > 0 %>
79
- <h3> Consequences </h3>
80
- <% @app_info.integrationConsequence.each do |consequence| %>
81
- <div class="consequence">
82
- <h4><%= consequence.name %></h4>
83
-
84
- <div class="field-wrapper">
85
- <div class="app-label">ID:</div>
86
- <div class="info"><%= consequence.id %></div>
87
- </div>
81
+ <h2> Consequences </h2>
82
+ <div class="consequences">
83
+ <% @app_info.integrationConsequence.each do |consequence| %>
84
+ <div class="consequence">
85
+ <h4><%= consequence.name %></h4>
86
+
87
+ <div class="field-wrapper">
88
+ <div class="app-label">ID:</div>
89
+ <div class="info"><%= consequence.id %></div>
90
+ </div>
88
91
 
89
- <div class="field-wrapper">
90
- <div class="app-label">Json Key:</div>
91
- <div class="info"><%= consequence.jsonKey %></div>
92
- </div>
93
- <div class="field-wrapper">
94
- <div class="app-label">Description:</div>
95
- <div class="info"><%= consequence.description %></div>
96
- </div>
92
+ <div class="field-wrapper">
93
+ <div class="app-label">Json Key:</div>
94
+ <div class="info"><%= consequence.jsonKey %></div>
95
+ </div>
96
+ <div class="field-wrapper">
97
+ <div class="app-label">Description:</div>
98
+ <div class="info"><%= consequence.description %></div>
99
+ </div>
97
100
 
98
- <div class="field-wrapper">
99
- <div class="app-label">Webhook:</div>
100
- <div class="info"><%= consequence.webhook %></div>
101
- </div>
101
+ <div class="field-wrapper">
102
+ <div class="app-label">Webhook:</div>
103
+ <div class="info"><%= consequence.webhook %></div>
104
+ </div>
102
105
 
103
- </div>
104
- <% end %>
106
+ </div>
107
+ <% end %>
108
+ </div>
105
109
  <% else %>
106
110
  <div class="consequence non-available">
107
111
  No consequences are available for this app.
data/bjond-api.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bjond-api 0.1.5 ruby lib
5
+ # stub: bjond-api 0.2.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bjond-api"
9
- s.version = "0.1.5"
9
+ s.version = "0.2.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Blake Rego"]
14
- s.date = "2016-08-05"
14
+ s.date = "2016-08-06"
15
15
  s.description = "Rails engine that provides communication between Bj\u{f6}nd Server Core and a client app."
16
16
  s.email = "blake.rego@bjondinc.com"
17
17
  s.executables = ["rails"]
@@ -24,13 +24,25 @@ Gem::Specification.new do |s|
24
24
  "README.rdoc",
25
25
  "Rakefile",
26
26
  "VERSION",
27
+ "app/assets/fonts/bjond-api/TitilliumWeb-ExtraLight.eot",
28
+ "app/assets/fonts/bjond-api/TitilliumWeb-ExtraLight.svg",
29
+ "app/assets/fonts/bjond-api/TitilliumWeb-ExtraLight.ttf",
30
+ "app/assets/fonts/bjond-api/TitilliumWeb-Light.eot",
31
+ "app/assets/fonts/bjond-api/TitilliumWeb-Light.svg",
32
+ "app/assets/fonts/bjond-api/TitilliumWeb-Light.ttf",
33
+ "app/assets/fonts/bjond-api/TitilliumWeb-Regular.eot",
34
+ "app/assets/fonts/bjond-api/TitilliumWeb-Regular.svg",
35
+ "app/assets/fonts/bjond-api/TitilliumWeb-Regular.ttf",
36
+ "app/assets/fonts/bjond-api/TitilliumWeb-SemiBold.eot",
37
+ "app/assets/fonts/bjond-api/TitilliumWeb-SemiBold.svg",
38
+ "app/assets/fonts/bjond-api/TitilliumWeb-SemiBold.ttf",
27
39
  "app/assets/images/bjond-api/.keep",
28
40
  "app/assets/images/bjond-api/BjondHealth-BackgroundALT_20140724.png",
29
41
  "app/assets/javascripts/bjond-api/.keep",
30
42
  "app/assets/javascripts/bjond_api.js",
31
43
  "app/assets/stylesheets/bjond-api/.keep",
32
44
  "app/assets/stylesheets/bjond_api.less",
33
- "app/assets/stylesheets/bjond_registrations.css",
45
+ "app/assets/stylesheets/bjond_registrations.scss",
34
46
  "app/assets/stylesheets/scaffold.css",
35
47
  "app/controllers/.keep",
36
48
  "app/controllers/bjond_registrations_controller.rb",
@@ -1,4 +1,7 @@
1
1
  module BjondApi
2
2
  class Engine < ::Rails::Engine
3
+ initializer 'static_assets.load_static_assets' do |app|
4
+ app.middleware.use ::ActionDispatch::Static, "#{root}/app"
5
+ end
3
6
  end
4
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bjond-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Rego
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-05 00:00:00.000000000 Z
11
+ date: 2016-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -112,13 +112,25 @@ files:
112
112
  - README.rdoc
113
113
  - Rakefile
114
114
  - VERSION
115
+ - app/assets/fonts/bjond-api/TitilliumWeb-ExtraLight.eot
116
+ - app/assets/fonts/bjond-api/TitilliumWeb-ExtraLight.svg
117
+ - app/assets/fonts/bjond-api/TitilliumWeb-ExtraLight.ttf
118
+ - app/assets/fonts/bjond-api/TitilliumWeb-Light.eot
119
+ - app/assets/fonts/bjond-api/TitilliumWeb-Light.svg
120
+ - app/assets/fonts/bjond-api/TitilliumWeb-Light.ttf
121
+ - app/assets/fonts/bjond-api/TitilliumWeb-Regular.eot
122
+ - app/assets/fonts/bjond-api/TitilliumWeb-Regular.svg
123
+ - app/assets/fonts/bjond-api/TitilliumWeb-Regular.ttf
124
+ - app/assets/fonts/bjond-api/TitilliumWeb-SemiBold.eot
125
+ - app/assets/fonts/bjond-api/TitilliumWeb-SemiBold.svg
126
+ - app/assets/fonts/bjond-api/TitilliumWeb-SemiBold.ttf
115
127
  - app/assets/images/bjond-api/.keep
116
128
  - app/assets/images/bjond-api/BjondHealth-BackgroundALT_20140724.png
117
129
  - app/assets/javascripts/bjond-api/.keep
118
130
  - app/assets/javascripts/bjond_api.js
119
131
  - app/assets/stylesheets/bjond-api/.keep
120
132
  - app/assets/stylesheets/bjond_api.less
121
- - app/assets/stylesheets/bjond_registrations.css
133
+ - app/assets/stylesheets/bjond_registrations.scss
122
134
  - app/assets/stylesheets/scaffold.css
123
135
  - app/controllers/.keep
124
136
  - app/controllers/bjond_registrations_controller.rb
@@ -1,9 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
5
-
6
- .non-available {
7
- margin: 10px;
8
- font-style: italic;
9
- }