mumukit-platform 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +2 -0
- data/.travis.yml +13 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +33 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/mumukit/platform/application.rb +50 -0
- data/lib/mumukit/platform/organization_mapping.rb +40 -0
- data/lib/mumukit/platform/uri.rb +31 -0
- data/lib/mumukit/platform/version.rb +5 -0
- data/lib/mumukit/platform/web_framework.rb +29 -0
- data/lib/mumukit/platform/with_applications.rb +32 -0
- data/lib/mumukit/platform/with_organization_mapping.rb +11 -0
- data/lib/mumukit/platform.rb +49 -0
- data/mumukit-platform.gemspec +29 -0
- metadata +119 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 024bf781a48ada1f1e2536ece324a305771a6d4d
|
4
|
+
data.tar.gz: 69c6dfb30d9dcaf02fd59000c3dc5c8c4e2356be
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1e22b6cb08f1df7284ed97b60d66280f158e3bc892279614700b4952b23b6ddb9ef6732e43fbc5e827e15ed04d5e0cd47256b3f643b616bd491131e5c6d4d5a8
|
7
|
+
data.tar.gz: 35b20ce05e326cd56a73e064d86c9189c55167b90f70a488fe866b11dc676c54090c0dba88052e2c3efc49a8be0d9b0d596f1fbe1704a911eaf315918631ec3c
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
sudo: false
|
2
|
+
language: ruby
|
3
|
+
rvm:
|
4
|
+
- 2.3.1
|
5
|
+
before_install: gem install bundler -v 1.14.2
|
6
|
+
deploy:
|
7
|
+
provider: rubygems
|
8
|
+
api_key:
|
9
|
+
secure: peqcsnX2NXwCvy20HfitFl7Dhhi4jrkeu2ZuJz6eEVml5xkkGOuTiAXiSFMvysuV1uCueWNKvQJzNl6u82cwM/InYjFj1kG3SRLIZCkEKks2tOxtJmky7CpIh9jI5SZKOL/DKuMRIuYJwhN0WURi58aCybqyhAsh0XQYGN0EFo6jwnJHehe1KEwgxaTFFB1Q1bn41o+7LWw4r39j7mj28x+WTnl11iM/CRndrQj/YSB8Xk92il8W2vfEWbn4xY2rK/joQ9Doi+rbrW90J7ArGkiMbbsofKkt2snOjrO5UDqqDGWi1/iQmBwtf2qgqB+TmTELrqd4ehRraq4P7dgW3uWGQe/0gR5xoYDusimcBQ5N+JDZbac/YKMRYG0+Ce09ggIaGjq2iEyn9zus00aaaoEGixqVtTwMtkvApmlM/c7CaeSmKSUhYdYE8ayOuCqHgIhCKoZPhADylTc3NL5qizk3/3/wrCyAf9Slq/Oa04Wa4NRXfC5yDkdJggaIzYwq03mc1diechM1ZrovZHNOWznbtjq1JrbEDQk95A29BsrTRLCk98QnChaTHrGmwvlk7g40iUurDplfg5IpUHnSc9BBQg+hcKd5IjKVkrHH5cUHq+U8pXIXgf4vs8cYFX8B1asIO7ApiSABxnC8bsjBZx4ccu303LWILiFBurQQn7w=
|
10
|
+
gem: mumukit-platform
|
11
|
+
on:
|
12
|
+
tags: true
|
13
|
+
repo: mumuki/mumukit-platform
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at flbulgarelli@yahoo.com.ar. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Mumuki Project, Franco Leonardo Bulgarelli
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/mumuki/mumukit-platform.svg?branch=master)](https://travis-ci.org/mumuki/mumukit-platform)
|
2
|
+
[![Code Climate](https://codeclimate.com/github/mumuki/mumukit-platform/badges/gpa.svg)](https://codeclimate.com/github/mumuki/mumukit-platform)
|
3
|
+
[![Test Coverage](https://codeclimate.com/github/mumuki/mumukit-platform/badges/coverage.svg)](https://codeclimate.com/github/mumuki/mumukit-platform)
|
4
|
+
[![Issue Count](https://codeclimate.com/github/mumuki/mumukit-platform/badges/issue_count.svg)](https://codeclimate.com/github/mumuki/mumukit-platform)
|
5
|
+
|
6
|
+
# Mumukit::Platform
|
7
|
+
|
8
|
+
> Generic components for building Mumuki Platform applications
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem 'mumukit-platform'
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle
|
21
|
+
|
22
|
+
Or install it yourself as:
|
23
|
+
|
24
|
+
$ gem install mumukit-platform
|
25
|
+
|
26
|
+
## Contributing
|
27
|
+
|
28
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mumuki/mumukit-platform. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
29
|
+
|
30
|
+
## License
|
31
|
+
|
32
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
33
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "mumukit/platform"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
class Mumukit::Platform::Application
|
2
|
+
attr_accessor :url
|
3
|
+
|
4
|
+
def initialize(url)
|
5
|
+
@url = url
|
6
|
+
end
|
7
|
+
|
8
|
+
def uri
|
9
|
+
URI(@url)
|
10
|
+
end
|
11
|
+
|
12
|
+
required :organic_uri
|
13
|
+
|
14
|
+
def organic_url(organization)
|
15
|
+
organic_uri(organization).to_s
|
16
|
+
end
|
17
|
+
|
18
|
+
def organic_domain(organization)
|
19
|
+
organic_uri(organization).host
|
20
|
+
end
|
21
|
+
|
22
|
+
def domain
|
23
|
+
uri.host
|
24
|
+
end
|
25
|
+
|
26
|
+
def url_for(path)
|
27
|
+
uri.url_for(path) if path
|
28
|
+
end
|
29
|
+
|
30
|
+
def organic_url_for(organization, path)
|
31
|
+
organic_uri(organization).url_for(path)
|
32
|
+
end
|
33
|
+
|
34
|
+
class Basic < Mumukit::Platform::Application
|
35
|
+
def organic_uri(_organization)
|
36
|
+
uri
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class Organic < Mumukit::Platform::Application
|
41
|
+
def initialize(url, organization_mapping)
|
42
|
+
super(url)
|
43
|
+
@organization_mapping = organization_mapping
|
44
|
+
end
|
45
|
+
|
46
|
+
def organic_uri(organization)
|
47
|
+
@organization_mapping.organic_uri(uri, organization)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Mumukit::Platform::OrganizationMapping
|
2
|
+
def self.from_env
|
3
|
+
mapping = ENV['MUMUKI_ORGANIZATION_MAPPING']&.strip
|
4
|
+
if ENV['RACK_ENV'] == 'test' || ENV['RAILS_ENV'] == 'test' || mapping == 'subdomain'
|
5
|
+
Subdomain
|
6
|
+
elsif mapping == 'path'
|
7
|
+
Path
|
8
|
+
else
|
9
|
+
raise "Unrecognized organization mapping #{mapping}"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Subdomain
|
14
|
+
def self.map_organization_routes!(native, _framework, &block)
|
15
|
+
native.instance_eval(&block)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.organization_name(request, domain)
|
19
|
+
request.first_subdomain_after(domain) || 'central'
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.organic_uri(uri, organization)
|
23
|
+
uri.subdominate(organization)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
module Path
|
28
|
+
def self.map_organization_routes!(native, framework, &block)
|
29
|
+
framework.configure_tenant_path_routes! native, &block
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.organization_name(request, _domain)
|
33
|
+
request.path.split('/')[1]
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.organic_uri(uri, organization)
|
37
|
+
uri.subroute(organization)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
class URI::HTTP
|
2
|
+
def subdominate(subdomain)
|
3
|
+
if host.start_with? 'www.'
|
4
|
+
new_host = host.gsub('www.', "www.#{subdomain}.")
|
5
|
+
else
|
6
|
+
new_host = "#{subdomain}.#{host}"
|
7
|
+
end
|
8
|
+
URI::HTTP.build(scheme: scheme,
|
9
|
+
host: new_host,
|
10
|
+
path: path,
|
11
|
+
query: query,
|
12
|
+
port: port)
|
13
|
+
end
|
14
|
+
|
15
|
+
def subroute(route)
|
16
|
+
if path.start_with? '/'
|
17
|
+
new_path = "/#{route}#{path}"
|
18
|
+
else
|
19
|
+
new_path = "/#{route}/#{path}"
|
20
|
+
end
|
21
|
+
URI::HTTP.build(scheme: scheme,
|
22
|
+
host: host,
|
23
|
+
path: new_path,
|
24
|
+
query: query,
|
25
|
+
port: port)
|
26
|
+
end
|
27
|
+
|
28
|
+
def url_for(path)
|
29
|
+
URI.join(self, path).to_s
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Mumukit::Platform::WebFramework
|
2
|
+
module Rails
|
3
|
+
class LazyString
|
4
|
+
def initialize(proc)
|
5
|
+
@proc = proc
|
6
|
+
end
|
7
|
+
|
8
|
+
def to_s
|
9
|
+
@proc.call.to_s
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.lazy_string(&block)
|
14
|
+
LazyString.new(proc(&block))
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.configure_tenant_path_routes!(mapper, &block)
|
18
|
+
mapper.scope '/:tenant', defaults: {tenant: lazy_string { Mumukit::Platform.current_organization_name }}, &block
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module Sinatra
|
23
|
+
def self.configure_tenant_path_routes!(mapper, &block)
|
24
|
+
require 'sinatra/namespace'
|
25
|
+
|
26
|
+
mapper.send :namespace, '/:tenant', &block
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Mumukit::Platform::WithApplications
|
2
|
+
delegate :application, to: :config
|
3
|
+
delegate :url_for, :organic_url_for, to: :application
|
4
|
+
|
5
|
+
def laboratory
|
6
|
+
Mumukit::Platform::Application::Organic.new config.laboratory_url, organization_mapping
|
7
|
+
end
|
8
|
+
|
9
|
+
def classroom
|
10
|
+
Mumukit::Platform::Application::Organic.new config.classroom_url, organization_mapping
|
11
|
+
end
|
12
|
+
|
13
|
+
def classroom_api
|
14
|
+
Mumukit::Platform::Application::Organic.new config.classroom_api_url, organization_mapping
|
15
|
+
end
|
16
|
+
|
17
|
+
def office
|
18
|
+
Mumukit::Platform::Application::Basic.new config.office_url
|
19
|
+
end
|
20
|
+
|
21
|
+
def bibliotheca
|
22
|
+
Mumukit::Platform::Application::Basic.new config.bibliotheca_url
|
23
|
+
end
|
24
|
+
|
25
|
+
def bibliotheca_api
|
26
|
+
Mumukit::Platform::Application::Basic.new config.bibliotheca_api_url
|
27
|
+
end
|
28
|
+
|
29
|
+
def application_for(name)
|
30
|
+
send name
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Mumukit::Platform::WithOrganizationMapping
|
2
|
+
delegate :organization_mapping, to: :config
|
3
|
+
|
4
|
+
def organization_name(request)
|
5
|
+
organization_mapping.organization_name(request, application.domain)
|
6
|
+
end
|
7
|
+
|
8
|
+
def map_organization_routes!(native_mapper, &block)
|
9
|
+
organization_mapping.map_organization_routes!(native_mapper, config.web_framework, &block)
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'mumukit/core'
|
2
|
+
|
3
|
+
require_relative './platform/version'
|
4
|
+
require_relative './platform/uri'
|
5
|
+
|
6
|
+
module Mumukit::Platform
|
7
|
+
def self.configure
|
8
|
+
@config ||= defaults
|
9
|
+
yield @config
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.defaults
|
13
|
+
struct.tap do |config|
|
14
|
+
domain = platform_domain_from_env
|
15
|
+
|
16
|
+
config.laboratory_url = ENV['MUMUKI_LABORATORY_URL'] || "http://#{domain}"
|
17
|
+
config.thesaurus_url = ENV['MUMUKI_THESAURUS_URL'] || "http://thesaurus.#{domain}"
|
18
|
+
config.bibliotheca_url = ENV['MUMUKI_BIBLIOTHECA_URL'] || "http://bibliotheca.#{domain}"
|
19
|
+
config.bibliotheca_api_url = ENV['MUMUKI_BIBLIOTHECA_API_URL'] || "http://bibliotheca-api.#{domain}"
|
20
|
+
config.office_url = ENV['MUMUKI_OFFICE_URL'] || "http://office.#{domain}"
|
21
|
+
config.classroom_url = ENV['MUMUKI_CLASSROOM_URL'] || "http://classroom.#{domain}"
|
22
|
+
config.classroom_api_url = ENV['MUMUKI_CLASSROOM_API_URL'] || "http://classroom-api.#{domain}"
|
23
|
+
config.organization_mapping = Mumukit::Platform::OrganizationMapping.from_env
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.platform_domain_from_env
|
28
|
+
if ENV['RACK_ENV'] == 'test' || ENV['RAILS_ENV'] == 'test'
|
29
|
+
'localmumuki.io'
|
30
|
+
else
|
31
|
+
ENV['MUMUKI_PLATFORM_DOMAIN'] || 'mumuki.io'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.config
|
36
|
+
@config
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
require_relative './platform/application'
|
41
|
+
require_relative './platform/organization_mapping'
|
42
|
+
require_relative './platform/web_framework'
|
43
|
+
require_relative './platform/with_applications'
|
44
|
+
require_relative './platform/with_organization_mapping'
|
45
|
+
|
46
|
+
module Mumukit::Platform
|
47
|
+
extend Mumukit::Platform::WithApplications
|
48
|
+
extend Mumukit::Platform::WithOrganizationMapping
|
49
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'mumukit/platform/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'mumukit-platform'
|
8
|
+
spec.version = Mumukit::Platform::VERSION
|
9
|
+
spec.authors = ['Franco Leonardo Bulgarelli']
|
10
|
+
spec.email = ['franco@mumuki.org']
|
11
|
+
|
12
|
+
spec.summary = %q{Shared Mumuki Platform Components}
|
13
|
+
spec.description = %q{Library for accessing shared models of the Mumuki Platform}
|
14
|
+
spec.homepage = 'https://mumuki.io'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
spec.add_dependency 'mumukit-core', '~> 1.0'
|
25
|
+
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
27
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mumukit-platform
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Franco Leonardo Bulgarelli
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-04-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mumukit-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.14'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.14'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description: Library for accessing shared models of the Mumuki Platform
|
70
|
+
email:
|
71
|
+
- franco@mumuki.org
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- CODE_OF_CONDUCT.md
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/console
|
85
|
+
- bin/setup
|
86
|
+
- lib/mumukit/platform.rb
|
87
|
+
- lib/mumukit/platform/application.rb
|
88
|
+
- lib/mumukit/platform/organization_mapping.rb
|
89
|
+
- lib/mumukit/platform/uri.rb
|
90
|
+
- lib/mumukit/platform/version.rb
|
91
|
+
- lib/mumukit/platform/web_framework.rb
|
92
|
+
- lib/mumukit/platform/with_applications.rb
|
93
|
+
- lib/mumukit/platform/with_organization_mapping.rb
|
94
|
+
- mumukit-platform.gemspec
|
95
|
+
homepage: https://mumuki.io
|
96
|
+
licenses:
|
97
|
+
- MIT
|
98
|
+
metadata: {}
|
99
|
+
post_install_message:
|
100
|
+
rdoc_options: []
|
101
|
+
require_paths:
|
102
|
+
- lib
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
requirements: []
|
114
|
+
rubyforge_project:
|
115
|
+
rubygems_version: 2.5.1
|
116
|
+
signing_key:
|
117
|
+
specification_version: 4
|
118
|
+
summary: Shared Mumuki Platform Components
|
119
|
+
test_files: []
|