jive_os_apps 0.0.2 → 0.0.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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/jive_os_apps/os_apps_controller.rb +9 -7
  3. data/app/views/jive_os_apps/os_apps/locale.xml.erb +0 -3
  4. data/app/views/jive_os_apps/os_apps/show.xml.erb +1 -13
  5. data/config/routes.rb +2 -3
  6. data/lib/jive_os_apps.rb +2 -0
  7. data/lib/jive_os_apps/concerns/controllers/os_apps.rb +17 -0
  8. data/lib/jive_os_apps/engine.rb +8 -0
  9. data/lib/jive_os_apps/version.rb +1 -1
  10. metadata +80 -95
  11. data/test/dummy/README.rdoc +0 -28
  12. data/test/dummy/Rakefile +0 -6
  13. data/test/dummy/app/assets/javascripts/application.js +0 -13
  14. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  15. data/test/dummy/app/controllers/application_controller.rb +0 -5
  16. data/test/dummy/app/helpers/application_helper.rb +0 -2
  17. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  18. data/test/dummy/bin/bundle +0 -3
  19. data/test/dummy/bin/rails +0 -4
  20. data/test/dummy/bin/rake +0 -4
  21. data/test/dummy/bin/setup +0 -29
  22. data/test/dummy/config.ru +0 -4
  23. data/test/dummy/config/application.rb +0 -26
  24. data/test/dummy/config/boot.rb +0 -5
  25. data/test/dummy/config/database.yml +0 -25
  26. data/test/dummy/config/environment.rb +0 -5
  27. data/test/dummy/config/environments/development.rb +0 -41
  28. data/test/dummy/config/environments/production.rb +0 -79
  29. data/test/dummy/config/environments/test.rb +0 -42
  30. data/test/dummy/config/initializers/assets.rb +0 -11
  31. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  32. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  33. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  34. data/test/dummy/config/initializers/inflections.rb +0 -16
  35. data/test/dummy/config/initializers/jive_os_apps.rb +0 -3
  36. data/test/dummy/config/initializers/mime_types.rb +0 -4
  37. data/test/dummy/config/initializers/session_store.rb +0 -3
  38. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  39. data/test/dummy/config/jive_osapp_dummy_config.yml +0 -52
  40. data/test/dummy/config/locales/en.yml +0 -23
  41. data/test/dummy/config/routes.rb +0 -3
  42. data/test/dummy/config/secrets.yml +0 -22
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/log/development.log +0 -17455
  45. data/test/dummy/log/passenger.3000.log +0 -1230
  46. data/test/dummy/passenger.3000.pid.lock +0 -0
  47. data/test/dummy/public/404.html +0 -67
  48. data/test/dummy/public/422.html +0 -67
  49. data/test/dummy/public/500.html +0 -66
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/integration/navigation_test.rb +0 -8
  52. data/test/jive_os_apps_test.rb +0 -7
  53. data/test/test_helper.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59e14eea6641b0d4881e48e9b861a39d89449f4b
4
- data.tar.gz: 2708ad0bf97f7795d53d43f27f06097d1c7ccdc1
3
+ metadata.gz: b7946f0b880d3e48f6dc3113937dd7972c2d2029
4
+ data.tar.gz: 23ec429720b5d96a1631df65f6dbb4efed01864e
5
5
  SHA512:
6
- metadata.gz: b4902c94b6557e9e6ff8bb3ab29eb3054e8bb87f31c3895fe8567a5dfbf0474cd3e4323407bee2ee274733a4443e21385c1589df14108c11a92e7180170083af
7
- data.tar.gz: f46dd93e5a9681f60408e0755b72e6f1b478935c2d659385c68143e2d7c299b657ca6a7a1c8dcebfae4b989d41dd3bb219527683f8341c314b74b93b4d0219fa
6
+ metadata.gz: 65cc51f82740551cc9da87c8a65f2c1ee40f4e596dc404eb3f9ec6056207e9a33ef4404a8cc6cb3241ff3105bc0be1c295a84f2b9bb7034446d5f5781e2f2fb9
7
+ data.tar.gz: 2cbaba4ce7ee7bb82b6e6bd9a735306d30e7db7a3cc449e5acc638530cb32622c33e1914e4b7864fb0288a34c5514423960efaf571e5d49ede131de133fb0c06
@@ -1,13 +1,15 @@
1
1
  require_dependency "jive_os_apps/application_controller"
2
2
 
3
- module JiveOsApps
4
- class OsAppsController < ApplicationController
5
- def show
6
- @config = YAML.load(ERB.new(File.read("#{Rails.root}/config/jive_osapp_#{params[:app_name]}_config.yml")).result)[Rails.env]
3
+ module Concerns
4
+ module Controllers
5
+ module OsApps
6
+ extend JiveOsApps::Concerns::Controllers::OsApps
7
7
  end
8
+ end
9
+ end
8
10
 
9
- def locale
10
- @config = YAML.load(ERB.new(File.read("#{Rails.root}/config/jive_osapp_#{params[:app_name]}_config.yml")).result)[Rails.env]
11
- end
11
+ module JiveOsApps
12
+ class OsAppsController < ApplicationController
13
+ include Concerns::Controllers::OsApps
12
14
  end
13
15
  end
@@ -1,5 +1,2 @@
1
1
  <messagebundle>
2
- <% (@config["locales"][params[:locale]] || {}).each_pair { |k,v| %>
3
- <msg name="<%= k %>"><%= v %></msg>
4
- <% } %>
5
2
  </messagebundle>
@@ -1,21 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <Module specificationVersion="1">
3
- <ModulePrefs<% (@config["module_prefs"] || {}).each_pair { |k,v| %> <%= k %>="<%= v %>"<% } %>>
4
- <% (@config["features"] || []).each { |feature| %>
5
- <Require feature="<%= (feature.is_a?(String)? feature : feature.keys.first) %>" <%= (feature.is_a?(Hash)? feature[feature.keys.first].collect { |i| "#{i[0]}=\"#{i[1]}\"" }.join(' ')+" " : "").html_safe %>/>
6
- <% } -%>
7
- <% (@config["locales"] || {}).each_pair { |locale,data| %>
8
- <Locale lang="<%= locale %>" messages="<%= app_locale_path(params[:app_name], locale) %>"></Locale>
9
- <% } -%>
3
+ <ModulePrefs>
10
4
  <Require feature="actions">
11
5
  <Param name="action-contributions">
12
- <% (@config["actions"] || []).each { |content| %>
13
- <action<% content.each_pair { |k,v| %> <%= k %>="<%= v %>"<% } %> />
14
- <% } %>
15
6
  </Param>
16
7
  </Require>
17
8
  </ModulePrefs>
18
- <% (@config["content"] || []).each { |content| %>
19
- <Content<% content.each_pair { |k,v| %> <%= k %>="<%= v %>"<% } %> />
20
- <% } %>
21
9
  </Module>
@@ -1,5 +1,4 @@
1
1
  JiveOsApps::Engine.routes.draw do
2
- #resources :os_apps
3
- get ":app_name/xml" => "os_apps#show", :defaults => { :format => 'xml' }, :as => :app_xml
4
- get ":app_name/locale/:locale" => "os_apps#locale", :defaults => { :format => 'xml' }, :as => :app_locale
2
+ get ":name" => "os_apps#show", :defaults => { :format => 'xml' }, :as => :app_xml
3
+ get ":name/:locale" => "os_apps#locale", :defaults => { :format => 'xml' }, :as => :app_local
5
4
  end
@@ -1,4 +1,6 @@
1
+ require "jive/signed_request"
1
2
  require "jive_os_apps/engine"
3
+ require "jive_os_apps/concerns/controllers/os_apps"
2
4
 
3
5
  module JiveOsApps
4
6
  end
@@ -0,0 +1,17 @@
1
+ module JiveOsApps
2
+ module Concerns
3
+ module Controllers
4
+ module OsApps
5
+ extend ActiveSupport::Concern
6
+
7
+ def show
8
+ render template: (template_exists?("jive_os_apps/os_apps/show_#{params[:name]}") ? "jive_os_apps/os_apps/show_#{params[:name]}" : "jive_os_apps/os_apps/show")
9
+ end
10
+
11
+ def locale
12
+ render template: (template_exists?("jive_os_apps/os_apps/locale_#{params[:name]}") ? "jive_os_apps/os_apps/locale_#{params[:name]}" : "jive_os_apps/os_apps/locale")
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,6 +1,14 @@
1
1
  module JiveOsApps
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace JiveOsApps
4
+
5
+ initializer :append_migrations do |app|
6
+ unless app.root.to_s.match(root.to_s)
7
+ config.paths["db/migrate"].expanded.each do |expanded_path|
8
+ app.config.paths["db/migrate"] << expanded_path
9
+ end
10
+ end
11
+ end
4
12
  end
5
13
 
6
14
  class Configuration
@@ -1,3 +1,3 @@
1
1
  module JiveOsApps
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,31 +1,101 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jive_os_apps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Butch Marshall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-21 00:00:00.000000000 Z
11
+ date: 2016-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.5
19
+ version: 4.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.5
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: jive-signed_request
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">"
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: factory_girl_rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: capybara
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: database_cleaner
29
99
  requirement: !ruby/object:Gem::Requirement
30
100
  requirements:
31
101
  - - ">="
@@ -38,7 +108,7 @@ dependencies:
38
108
  - - ">="
39
109
  - !ruby/object:Gem::Version
40
110
  version: '0'
41
- description: " Description of JiveOsApps."
111
+ description: Api endpoints for making your platform Jive application ready.
42
112
  email:
43
113
  - butch.a.marshall@gmail.com
44
114
  executables: []
@@ -56,52 +126,10 @@ files:
56
126
  - app/views/jive_os_apps/os_apps/show.xml.erb
57
127
  - config/routes.rb
58
128
  - lib/jive_os_apps.rb
129
+ - lib/jive_os_apps/concerns/controllers/os_apps.rb
59
130
  - lib/jive_os_apps/engine.rb
60
131
  - lib/jive_os_apps/version.rb
61
132
  - lib/tasks/jive_os_apps_tasks.rake
62
- - test/dummy/README.rdoc
63
- - test/dummy/Rakefile
64
- - test/dummy/app/assets/javascripts/application.js
65
- - test/dummy/app/assets/stylesheets/application.css
66
- - test/dummy/app/controllers/application_controller.rb
67
- - test/dummy/app/helpers/application_helper.rb
68
- - test/dummy/app/views/layouts/application.html.erb
69
- - test/dummy/bin/bundle
70
- - test/dummy/bin/rails
71
- - test/dummy/bin/rake
72
- - test/dummy/bin/setup
73
- - test/dummy/config.ru
74
- - test/dummy/config/application.rb
75
- - test/dummy/config/boot.rb
76
- - test/dummy/config/database.yml
77
- - test/dummy/config/environment.rb
78
- - test/dummy/config/environments/development.rb
79
- - test/dummy/config/environments/production.rb
80
- - test/dummy/config/environments/test.rb
81
- - test/dummy/config/initializers/assets.rb
82
- - test/dummy/config/initializers/backtrace_silencers.rb
83
- - test/dummy/config/initializers/cookies_serializer.rb
84
- - test/dummy/config/initializers/filter_parameter_logging.rb
85
- - test/dummy/config/initializers/inflections.rb
86
- - test/dummy/config/initializers/jive_os_apps.rb
87
- - test/dummy/config/initializers/mime_types.rb
88
- - test/dummy/config/initializers/session_store.rb
89
- - test/dummy/config/initializers/wrap_parameters.rb
90
- - test/dummy/config/jive_osapp_dummy_config.yml
91
- - test/dummy/config/locales/en.yml
92
- - test/dummy/config/routes.rb
93
- - test/dummy/config/secrets.yml
94
- - test/dummy/db/development.sqlite3
95
- - test/dummy/log/development.log
96
- - test/dummy/log/passenger.3000.log
97
- - test/dummy/passenger.3000.pid.lock
98
- - test/dummy/public/404.html
99
- - test/dummy/public/422.html
100
- - test/dummy/public/500.html
101
- - test/dummy/public/favicon.ico
102
- - test/integration/navigation_test.rb
103
- - test/jive_os_apps_test.rb
104
- - test/test_helper.rb
105
133
  homepage: https://github.com/butchmarshall/jive_os_apps
106
134
  licenses:
107
135
  - MIT
@@ -125,48 +153,5 @@ rubyforge_project:
125
153
  rubygems_version: 2.4.8
126
154
  signing_key:
127
155
  specification_version: 4
128
- summary: Summary of JiveOsApps.
129
- test_files:
130
- - test/test_helper.rb
131
- - test/dummy/bin/setup
132
- - test/dummy/bin/bundle
133
- - test/dummy/bin/rails
134
- - test/dummy/bin/rake
135
- - test/dummy/public/422.html
136
- - test/dummy/public/favicon.ico
137
- - test/dummy/public/404.html
138
- - test/dummy/public/500.html
139
- - test/dummy/log/development.log
140
- - test/dummy/log/passenger.3000.log
141
- - test/dummy/README.rdoc
142
- - test/dummy/db/development.sqlite3
143
- - test/dummy/passenger.3000.pid.lock
144
- - test/dummy/config.ru
145
- - test/dummy/config/database.yml
146
- - test/dummy/config/environments/development.rb
147
- - test/dummy/config/environments/production.rb
148
- - test/dummy/config/environments/test.rb
149
- - test/dummy/config/secrets.yml
150
- - test/dummy/config/application.rb
151
- - test/dummy/config/locales/en.yml
152
- - test/dummy/config/routes.rb
153
- - test/dummy/config/initializers/backtrace_silencers.rb
154
- - test/dummy/config/initializers/wrap_parameters.rb
155
- - test/dummy/config/initializers/mime_types.rb
156
- - test/dummy/config/initializers/filter_parameter_logging.rb
157
- - test/dummy/config/initializers/inflections.rb
158
- - test/dummy/config/initializers/session_store.rb
159
- - test/dummy/config/initializers/cookies_serializer.rb
160
- - test/dummy/config/initializers/jive_os_apps.rb
161
- - test/dummy/config/initializers/assets.rb
162
- - test/dummy/config/environment.rb
163
- - test/dummy/config/jive_osapp_dummy_config.yml
164
- - test/dummy/config/boot.rb
165
- - test/dummy/Rakefile
166
- - test/dummy/app/helpers/application_helper.rb
167
- - test/dummy/app/assets/javascripts/application.js
168
- - test/dummy/app/assets/stylesheets/application.css
169
- - test/dummy/app/controllers/application_controller.rb
170
- - test/dummy/app/views/layouts/application.html.erb
171
- - test/integration/navigation_test.rb
172
- - test/jive_os_apps_test.rb
156
+ summary: Rails Engine for handling Jive OpenSocial applications.
157
+ test_files: []
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'