iugusdk 1.0.0.alpha.25 → 1.0.0.alpha.26
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/iugu/account_controller.rb +1 -1
- data/app/controllers/iugu/account_users_controller.rb +11 -0
- data/app/controllers/iugu/plan_controller.rb +2 -0
- data/app/mailers/iugu_mailer.rb +2 -2
- data/app/models/account.rb +20 -0
- data/app/models/account_user.rb +5 -0
- data/app/models/user_invitation.rb +1 -0
- data/app/views/iugu/account_roles/edit.html.haml +4 -3
- data/app/views/iugu/account_users/index.html.haml +13 -10
- data/app/views/iugu/invitations/new.html.haml +4 -3
- data/app/views/iugu/settings/account.html.haml +4 -2
- data/config/locales/iugu.en.yml +4 -0
- data/config/locales/iugu.pt-BR.yml +5 -1
- data/config/routes.rb +1 -0
- data/lib/generators/iugusdk_config_generator.rb +14 -0
- data/lib/generators/templates/account_roles.yml +3 -0
- data/lib/generators/templates/iugusdk.rb +10 -0
- data/lib/generators/templates/web-app/entry_point_controller.rb +11 -0
- data/lib/generators/templates/web-app/entry_point_view.html.haml +40 -0
- data/lib/generators/templates/web-app/web-app/config.js.erb +72 -0
- data/lib/generators/templates/web-app/web-app/i18n-languages.js.erb +13 -0
- data/lib/generators/templates/web-app/web-app/locale/en.yml +1 -0
- data/lib/generators/templates/web-app/web-app/locale/pt-BR.yml +1 -0
- data/lib/generators/templates/web-app/web-app/models.js +1 -0
- data/lib/generators/templates/web-app/web-app/presenters/dashboard/index.jst.eco +3 -0
- data/lib/generators/templates/web-app/web-app/presenters/sidebar/sidebar.jst.eco +14 -0
- data/lib/generators/templates/web-app/web-app/presenters.js +1 -0
- data/lib/generators/templates/web-app/web-app/usecode/application_controller.js.coffee +13 -0
- data/lib/generators/templates/web-app/web-app/usecode/dashboard/dashboard_controller.js.coffee +32 -0
- data/lib/generators/templates/web-app/web-app/usecode/sidebar/sidebar_controller.js.coffee +17 -0
- data/lib/generators/templates/web-app/web-app/usecode/storyboard.js.coffee +9 -0
- data/lib/generators/templates/web-app/web-app/usecode.js +5 -0
- data/lib/generators/webapp_generator.rb +48 -0
- data/lib/iugusdk/version.rb +1 -1
- metadata +108 -89
@@ -1,7 +1,7 @@
|
|
1
1
|
class Iugu::AccountController < Iugu::AccountSettingsController
|
2
2
|
|
3
3
|
before_filter(:only => [:destroy, :cancel_destruction, :update]) { |c| c.must_be :owner, :id }
|
4
|
-
before_filter(:only => [:generate_new_token]) { |c| c.must_be :owner, :account_id }
|
4
|
+
before_filter(:only => [:payment_history, :generate_new_token]) { |c| c.must_be :owner, :account_id }
|
5
5
|
|
6
6
|
def index
|
7
7
|
@accounts = current_user.accounts.order(:created_at)
|
@@ -17,6 +17,17 @@ class Iugu::AccountUsersController < Iugu::AccountSettingsController
|
|
17
17
|
render 'iugu/account_users/view'
|
18
18
|
end
|
19
19
|
|
20
|
+
def transfer_ownership
|
21
|
+
if @account_user = AccountUser.find_by_account_id_and_user_id(params[:account_id], params[:user_id])
|
22
|
+
@account = Account.find(params[:account_id])
|
23
|
+
else
|
24
|
+
raise ActionController::RoutingError.new('Not Found')
|
25
|
+
end
|
26
|
+
raise ActionController::RoutingError.new('Access Denied') if @account_user.user.id == current_user.id || @account_user.is?(:owner)
|
27
|
+
@account.transfer_ownership @account_user.user
|
28
|
+
redirect_to account_users_index_path(params[:account_id]), :notice => I18n.t("iugu.account_user_make_owner")
|
29
|
+
end
|
30
|
+
|
20
31
|
def destroy
|
21
32
|
if @account_user = AccountUser.find_by_account_id_and_user_id(params[:account_id], params[:user_id])
|
22
33
|
@account = Account.find(params[:account_id])
|
@@ -1,4 +1,6 @@
|
|
1
1
|
class Iugu::PlanController < Iugu::AccountSettingsController
|
2
|
+
before_filter(:only => [:index, :change]) { |c| c.must_be :owner, :id }
|
3
|
+
|
2
4
|
def index
|
3
5
|
params[:id] ? @account = current_user.accounts.find(params[:id]) : @account = current_user_account.account
|
4
6
|
get_index_data
|
data/app/mailers/iugu_mailer.rb
CHANGED
@@ -17,7 +17,7 @@ class IuguMailer < Devise::Mailer
|
|
17
17
|
user = User.find(user_invitation.invited_by)
|
18
18
|
set_locale(user)
|
19
19
|
@user_invitation = user_invitation
|
20
|
-
mail(to: @user_invitation.email, :subject => I18n.t("user_invitation", account_name: @user_invitation.account.try(:name))) do |format|
|
20
|
+
mail(to: @user_invitation.email, :subject => I18n.t("emails.user_invitation", account_name: @user_invitation.account.try(:name))) do |format|
|
21
21
|
format.html { render "iugu/mailer/invitation" }
|
22
22
|
end
|
23
23
|
set_default_locale
|
@@ -26,7 +26,7 @@ class IuguMailer < Devise::Mailer
|
|
26
26
|
def welcome(user)
|
27
27
|
set_locale(user)
|
28
28
|
@user = user
|
29
|
-
mail(to: @user.email, :subject => I18n.t("user_welcome", application_title: IuguSDK::application_title)) do |format|
|
29
|
+
mail(to: @user.email, :subject => I18n.t("emails.user_welcome", application_title: IuguSDK::application_title)) do |format|
|
30
30
|
format.html { render "iugu/mailer/welcome" }
|
31
31
|
end
|
32
32
|
set_default_locale
|
data/app/models/account.rb
CHANGED
@@ -90,6 +90,26 @@ class Account < ActiveRecord::Base
|
|
90
90
|
def subscription_features
|
91
91
|
subscription.try :features
|
92
92
|
end
|
93
|
+
|
94
|
+
def owner_account_user
|
95
|
+
account_users.each { |au| return au if au.is? :owner }
|
96
|
+
nil
|
97
|
+
end
|
98
|
+
|
99
|
+
def transfer_ownership(user)
|
100
|
+
au = account_users.find_by_user_id user.id
|
101
|
+
au.set_owner
|
102
|
+
|
103
|
+
owner_account_user.roles.find_by_name("owner").try :destroy if owner_account_user
|
104
|
+
|
105
|
+
if au.is? :owner
|
106
|
+
subscription = Iugu::Api::Subscription.find subscription_id.to_uuid.to_s
|
107
|
+
customer = Iugu::Api::Customer.find subscription.customer_id
|
108
|
+
customer.email = user.email
|
109
|
+
customer.name = user.name
|
110
|
+
customer.save
|
111
|
+
end
|
112
|
+
end
|
93
113
|
|
94
114
|
private
|
95
115
|
|
data/app/models/account_user.rb
CHANGED
@@ -52,6 +52,11 @@ class AccountUser < ActiveRecord::Base
|
|
52
52
|
true
|
53
53
|
end
|
54
54
|
|
55
|
+
def set_owner
|
56
|
+
roles.create name: "owner"
|
57
|
+
reload
|
58
|
+
end
|
59
|
+
|
55
60
|
def is?(role)
|
56
61
|
role = APP_ROLES[ "owner_role" ] if role.to_s == "owner"
|
57
62
|
role = APP_ROLES[ "admin_role" ] if role.to_s == "admin"
|
@@ -12,9 +12,10 @@
|
|
12
12
|
%div{ :style => "margin-bottom:20px" }
|
13
13
|
- if current_user.is?(:owner, @account)
|
14
14
|
- APP_ROLES['roles'].each do |role|
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
- unless role == APP_ROLES['owner_role']
|
16
|
+
%div{ :style => "margin-bottom: 5px" }
|
17
|
+
= check_box_tag "roles[]", role, @account_user.is?(role), :id => "#{role}_checkbox"
|
18
|
+
= label_tag "#{role}_checkbox", I18n.t("iugu.#{role}")
|
18
19
|
|
19
20
|
- elsif current_user.is?(:admin, @account)
|
20
21
|
- APP_ROLES['roles'].each do |role|
|
@@ -19,17 +19,20 @@
|
|
19
19
|
= account_user.user.name
|
20
20
|
%td
|
21
21
|
- if current_user.is?(:owner, @account) || current_user.is?(:admin, @account)
|
22
|
-
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
= I18n.t("iugu.removing")
|
22
|
+
.group.horizontal_stacking
|
23
|
+
= link_to I18n.t("iugu.permissions"), account_roles_edit_path(@account, :user_id => account_user.user), :class => "button small no-bottom-margin", style: "#{ (current_user.is?(:owner, @account) && account_user.user_id != current_user.id)? 'width: 50%' : ''}"
|
24
|
+
- if current_user.is?(:owner, @account) && account_user.user_id != current_user.id
|
25
|
+
= link_to I18n.t("iugu.make_owner"), account_users_transfer_ownership_path(@account, :user_id => account_user.user), :class => "button small no-bottom-margin", style: "width: 50%", confirm: I18n.t('iugu.are_you_sure?'), method: 'put'
|
26
|
+
- unless account_user.destroying?
|
27
|
+
- unless account_user.is?(:owner) || account_user.user_id == current_user.id
|
28
|
+
|
29
|
+
= link_to I18n.t("iugu.remove"), account_users_destroy_path(@account, :user_id => account_user.user), :method => 'delete', :class => "button small no-bottom-margin", confirm: I18n.t('iugu.are_you_sure?')
|
31
30
|
- else
|
32
|
-
|
31
|
+
|
32
|
+
- if IuguSDK::delay_account_user_exclusion == 0
|
33
|
+
= I18n.t("iugu.removing")
|
34
|
+
- else
|
35
|
+
= link_to I18n.t("iugu.undo"), account_users_cancel_destruction_path(@account, :user_id => account_user.user), :method => 'delete', :class => "button small no-bottom-margin"
|
33
36
|
|
34
37
|
- if current_user.is?(:owner, @account) || current_user.is?(:admin, @account)
|
35
38
|
%div
|
@@ -16,9 +16,10 @@
|
|
16
16
|
Permissões
|
17
17
|
- if current_user.is?(:owner, @account)
|
18
18
|
- APP_ROLES['roles'].each do |role|
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
- unless role == APP_ROLES['owner_role']
|
20
|
+
%div{ :style => "margin-bottom: 5px" }
|
21
|
+
= check_box_tag "user_invitation[roles][]", role, false, :id => "#{role}_checkbox"
|
22
|
+
= label_tag "#{role}_checkbox", I18n.t("iugu.#{role}")
|
22
23
|
|
23
24
|
- elsif current_user.is?(:admin, @account)
|
24
25
|
- APP_ROLES['roles'].each do |role|
|
@@ -52,8 +52,10 @@
|
|
52
52
|
= @plan_name
|
53
53
|
%td{ :style => "width: 40%" }
|
54
54
|
.group.horizontal_stacking
|
55
|
-
|
56
|
-
|
55
|
+
- if current_user.is?(:owner, @account)
|
56
|
+
= link_to I18n.t("iugu.change"), plan_index_url(@account), class: "button"
|
57
|
+
- if current_user.is?(:owner, @account)
|
58
|
+
= link_to I18n.t("iugu.payment_history"), account_payment_history_path(@account), class: "button full-width"
|
57
59
|
|
58
60
|
%hr
|
59
61
|
|
data/config/locales/iugu.en.yml
CHANGED
@@ -46,6 +46,7 @@ en:
|
|
46
46
|
accept: "Accept"
|
47
47
|
invite: "Invite"
|
48
48
|
permissions: "Permissions"
|
49
|
+
make_owner: "Make Owner"
|
49
50
|
select: "Select"
|
50
51
|
configs: "Configs"
|
51
52
|
error: "Error"
|
@@ -53,6 +54,7 @@ en:
|
|
53
54
|
account: "Account"
|
54
55
|
accounts: "Accounts"
|
55
56
|
account_domains: "Account Domains"
|
57
|
+
account_user_make_owner: "Owner changed successfully"
|
56
58
|
social_unlinked: "Social Account successfully unlink"
|
57
59
|
social_linked: "Social Account successfully linked"
|
58
60
|
account_destruction_in: "Account will be remove at "
|
@@ -163,4 +165,6 @@ en:
|
|
163
165
|
birthdate: "Birthdate"
|
164
166
|
locale: "Language"
|
165
167
|
remember_me: "Remember me"
|
168
|
+
user_invitation:
|
169
|
+
roles: "Permissions"
|
166
170
|
|
@@ -46,6 +46,7 @@ pt-BR:
|
|
46
46
|
accept: "Aceitar"
|
47
47
|
invite: "Convidar"
|
48
48
|
permissions: "Permissões"
|
49
|
+
make_owner: "Tornar Dono"
|
49
50
|
select: "Selecionar"
|
50
51
|
configs: "Configurações"
|
51
52
|
error: "Erro"
|
@@ -53,6 +54,7 @@ pt-BR:
|
|
53
54
|
account: "Conta"
|
54
55
|
accounts: "Contas"
|
55
56
|
account_domains: "Domínios"
|
57
|
+
account_user_make_owner: "Dono alterado com sucesso"
|
56
58
|
social_unlinked: "Rede social desvinculada com sucesso"
|
57
59
|
social_linked: "Rede social vinculada com sucesso"
|
58
60
|
account_destruction_in: "A conta será removida em "
|
@@ -127,7 +129,7 @@ pt-BR:
|
|
127
129
|
api_renew: "Renovar Token de Acesso"
|
128
130
|
description: "Descrição"
|
129
131
|
i_dont_have_any_accounts: "Eu não tenho nenhuma conta"
|
130
|
-
owner: "
|
132
|
+
owner: "Dono"
|
131
133
|
admin: "administrador"
|
132
134
|
user: "usuário"
|
133
135
|
guest: "convidado"
|
@@ -166,6 +168,8 @@ pt-BR:
|
|
166
168
|
birthdate: "Data de nascimento"
|
167
169
|
locale: "Idioma"
|
168
170
|
remember_me: "Lembre-me"
|
171
|
+
user_invitation:
|
172
|
+
roles: "Permissões"
|
169
173
|
|
170
174
|
simple_form:
|
171
175
|
"yes": "Sim"
|
data/config/routes.rb
CHANGED
@@ -22,6 +22,7 @@ Rails.application.routes.draw do
|
|
22
22
|
get "settings/account/:account_id/payment_history" => "iugu/account#payment_history", :as => "account_payment_history"
|
23
23
|
get "settings/account/:account_id/users" => "iugu/account_users#index", :as => "account_users_index"
|
24
24
|
get "settings/account/:account_id/user/:user_id" => "iugu/account_users#view", :as => "account_users_view"
|
25
|
+
put "settings/account/:account_id/user/:user_id" => "iugu/account_users#transfer_ownership", :as => "account_users_transfer_ownership"
|
25
26
|
delete "settings/account/:account_id/user/:user_id" => "iugu/account_users#destroy", :as => "account_users_destroy"
|
26
27
|
delete "settings/account/:account_id/user/:user_id/cancel" => "iugu/account_users#cancel_destruction", :as => "account_users_cancel_destruction"
|
27
28
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class IugusdkConfigGenerator < Rails::Generators::Base
|
2
|
+
source_root File.expand_path("../templates", __FILE__)
|
3
|
+
|
4
|
+
argument :app_name, :type => :string, default: "myapp_name"
|
5
|
+
|
6
|
+
def copy_initializer
|
7
|
+
template "iugusdk.rb", "config/initializers/iugusdk.rb"
|
8
|
+
end
|
9
|
+
|
10
|
+
def copy_account_roles
|
11
|
+
copy_file "account_roles.yml", "config/account_roles.yml"
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
IuguSDK.setup do |config|
|
2
|
+
config.app_main_url = '/'
|
3
|
+
config.application_title = '<%= app_name %>'
|
4
|
+
config.application_main_host = '<%= app_name %>.dev'
|
5
|
+
config.application_main_host = '<%= app_name %>.com' if Rails.env.production?
|
6
|
+
|
7
|
+
#Add your other options
|
8
|
+
#Example:
|
9
|
+
#config.enable_user_confirmation = true
|
10
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
!!!
|
2
|
+
%html{ :class => "no-js not-ready" }
|
3
|
+
%head
|
4
|
+
%meta{ :charset => "utf-8" }
|
5
|
+
%title
|
6
|
+
= IuguSDK::application_title
|
7
|
+
|
8
|
+
:javascript
|
9
|
+
window.api_token = '#{@current_user.token.token}';
|
10
|
+
|
11
|
+
= javascript_include_tag 'vendor'
|
12
|
+
= javascript_include_tag 'iugu-ux'
|
13
|
+
= stylesheet_link_tag 'iugu-ux'
|
14
|
+
|
15
|
+
%meta{ :name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1" }
|
16
|
+
%meta{ :name => "apple-mobile-web-app-capable", :content => "yes" }
|
17
|
+
%meta{ :name => "apple-mobile-web-status-bar-style", :content => "black" }
|
18
|
+
%meta{ 'http-equiv' => 'cleartype', :content => 'on' }
|
19
|
+
%meta{ 'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge,chrome=1' }
|
20
|
+
%meta{ :name => 'MobileOptimized', :content => '320' }
|
21
|
+
|
22
|
+
%link{:href => "//iugu.com/imgs/favicon.ico", :rel => "icon"}/
|
23
|
+
%link{:href => "//iugu.com/imgs/favicon.ico", :rel => "shortcut icon"}/
|
24
|
+
|
25
|
+
|
26
|
+
%body.iugu-ui.ui-box-background
|
27
|
+
|
28
|
+
|
29
|
+
%noscript
|
30
|
+
.js-warning
|
31
|
+
|
32
|
+
#app
|
33
|
+
|
34
|
+
%script
|
35
|
+
(function() { $(function() {
|
36
|
+
if (typeof(run_webapp) == 'function')
|
37
|
+
i18n.setDefaultLocale('#{@current_user.locale}');
|
38
|
+
return run_webapp(true);
|
39
|
+
});
|
40
|
+
}).call(this);
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<% environment.context_class.instance_eval { include Rails.application.routes.url_helpers } %>
|
2
|
+
|
3
|
+
window.IuguUI = {}
|
4
|
+
|
5
|
+
var app_domain = <%= IuguSDK::application_main_host %>;
|
6
|
+
|
7
|
+
if (window.location.hostname.indexOf('xip.io') != -1) {
|
8
|
+
app_domain = 'xip.io';
|
9
|
+
}
|
10
|
+
|
11
|
+
var enable_debug = <%= Rails.env.production? ? 'false' : 'true' %>;
|
12
|
+
//var enable_debug_events = <%= Rails.env.production? ? 'false' : 'true' %>;
|
13
|
+
var enable_debug_events = false
|
14
|
+
|
15
|
+
var enable_ajax_on_subdomain = false;
|
16
|
+
var api_base = window.location.hostname + '/api/v1/';
|
17
|
+
//var subdomain_xdr_url = api_base + 'xdreceiver.html';
|
18
|
+
|
19
|
+
var app_root = '/app';
|
20
|
+
|
21
|
+
var app_main_url = '<%= IuguSDK::app_main_url %>';
|
22
|
+
var app_root_url = '<%= IuguSDK::app_root_url %>';
|
23
|
+
|
24
|
+
var logout_path = '<%= destroy_user_session_path %>';
|
25
|
+
var settings_path = '<%= settings_path %>';
|
26
|
+
|
27
|
+
// Other routes
|
28
|
+
// api_v1_profile_path
|
29
|
+
|
30
|
+
rivets.formatters.toArrayRemovingDestroyed = function(collection) {
|
31
|
+
var arr;
|
32
|
+
|
33
|
+
if(typeof collection !== "undefined") {
|
34
|
+
arr = _.clone(collection.models);
|
35
|
+
} else {
|
36
|
+
arr = []
|
37
|
+
}
|
38
|
+
|
39
|
+
_.each(arr, function(val, key) {
|
40
|
+
if(val.get('_destroy')) {
|
41
|
+
arr.splice(key, 1);
|
42
|
+
}
|
43
|
+
});
|
44
|
+
|
45
|
+
return arr;
|
46
|
+
}
|
47
|
+
|
48
|
+
rivets.formatters.toArray = function(collection) {
|
49
|
+
return collection.models;
|
50
|
+
}
|
51
|
+
|
52
|
+
rivets.configure({
|
53
|
+
prefix: "model",
|
54
|
+
adapter: {
|
55
|
+
subscribe: function(obj, keypath, callback) {
|
56
|
+
callback.wrapped = function(m, v) { callback(v) };
|
57
|
+
obj.on('change:' + keypath, callback.wrapped);
|
58
|
+
},
|
59
|
+
|
60
|
+
unsubscribe: function(obj, keypath, callback) {
|
61
|
+
obj.off('change:' + keypath, callback.wrapped);
|
62
|
+
},
|
63
|
+
|
64
|
+
read: function(obj, keypath) {
|
65
|
+
return obj.get(keypath);
|
66
|
+
},
|
67
|
+
|
68
|
+
publish: function(obj, keypath, value) {
|
69
|
+
obj.set(keypath, value, { silent: true } );
|
70
|
+
}
|
71
|
+
}
|
72
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%=
|
2
|
+
# UTF-8 (Fix for Sprockets UTF-8 AutoDetect: á)
|
3
|
+
locale_directory = "#{File.expand_path(File.dirname(__FILE__))}/locale"
|
4
|
+
files = Dir.glob("#{locale_directory}/*.json")
|
5
|
+
content = "var AVAILABLE_LOCALES = Array();\r\n"
|
6
|
+
files.each do |filename|
|
7
|
+
language_name = File.basename(filename, ".json")
|
8
|
+
contents = File.open(filename,"r:UTF-8").read
|
9
|
+
content += "AVAILABLE_LOCALES['#{language_name}'] = #{contents}\r\n"
|
10
|
+
end
|
11
|
+
content
|
12
|
+
|
13
|
+
%>
|
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require_tree ./models
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div class="content">
|
2
|
+
<div class="handle-scrolling">
|
3
|
+
<form action="/logout" data-form="logout" style="display:none"><input type="hidden" name="_method" value="delete"></form>
|
4
|
+
|
5
|
+
<div class="nav group vertical_stacking">
|
6
|
+
|
7
|
+
<div>
|
8
|
+
<a href="#" class="button tal large full-width" data-action="dashboard"><div class="icon-home"></div>Dashboard</a>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
</div>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require_tree ./presenters
|
data/lib/generators/templates/web-app/web-app/usecode/dashboard/dashboard_controller.js.coffee
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
class DashboardController extends ApplicationController
|
2
|
+
|
3
|
+
@DashboardController = DashboardController
|
4
|
+
|
5
|
+
class DashboardIndex extends DashboardController
|
6
|
+
layout: 'dashboard/index'
|
7
|
+
|
8
|
+
initialize: ->
|
9
|
+
super
|
10
|
+
@load()
|
11
|
+
@
|
12
|
+
|
13
|
+
render: ->
|
14
|
+
super
|
15
|
+
|
16
|
+
@
|
17
|
+
|
18
|
+
DashboardRouter = Backbone.Router.extend
|
19
|
+
|
20
|
+
initialize: ->
|
21
|
+
app.routes['dashboard#index'] = ''
|
22
|
+
|
23
|
+
routes:
|
24
|
+
"" : "index"
|
25
|
+
"/": "index"
|
26
|
+
|
27
|
+
index: ->
|
28
|
+
Events.trigger "navigation:go", "dashboard"
|
29
|
+
app.rootWindow.pushRootView new DashboardIndex
|
30
|
+
|
31
|
+
$ ->
|
32
|
+
app.registerRouter( DashboardRouter )
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class SidebarController extends ApplicationController
|
2
|
+
layout: "sidebar/sidebar"
|
3
|
+
secondaryView: true
|
4
|
+
className: "iugu-main-sidebar"
|
5
|
+
|
6
|
+
events:
|
7
|
+
'click [data-action=dashboard]' : 'openDashboard'
|
8
|
+
|
9
|
+
initialize: ->
|
10
|
+
super
|
11
|
+
|
12
|
+
openDashboard: (evt) ->
|
13
|
+
app.rootWindow.closeSidebar()
|
14
|
+
evt.preventDefault()
|
15
|
+
Backbone.history.navigate app.routes['dashboard#index'], trigger: true
|
16
|
+
|
17
|
+
@SidebarController = SidebarController
|
@@ -0,0 +1,48 @@
|
|
1
|
+
class WebappGenerator < Rails::Generators::Base
|
2
|
+
source_root File.expand_path("../templates/web-app", __FILE__)
|
3
|
+
|
4
|
+
def create_entry_point_route
|
5
|
+
line = "::Application.routes.draw do"
|
6
|
+
gsub_file 'config/routes.rb', /(#{Regexp.escape(line)})/mi do |match|
|
7
|
+
"#{match}\n get 'app(/*path)' => 'entry_point#index'\n"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def create_entry_point_controller
|
12
|
+
copy_file "entry_point_controller.rb", "app/controllers/entry_point_controller.rb"
|
13
|
+
end
|
14
|
+
|
15
|
+
def create_entry_point_view
|
16
|
+
copy_file "entry_point_view.html.haml", "app/views/entry_point/index.html.haml"
|
17
|
+
end
|
18
|
+
|
19
|
+
def create_web_app_directories
|
20
|
+
directory "web-app/models", "app/assets/javascripts/web-app/models"
|
21
|
+
end
|
22
|
+
|
23
|
+
def create_web_app_config_files
|
24
|
+
copy_file "web-app/models.js", "app/assets/javascripts/web-app/models.js"
|
25
|
+
copy_file "web-app/usecode.js", "app/assets/javascripts/web-app/usecode.js"
|
26
|
+
copy_file "web-app/presenters.js", "app/assets/javascripts/web-app/presenters.js"
|
27
|
+
copy_file "web-app/config.js.erb", "app/assets/javascripts/web-app/config.js.erb"
|
28
|
+
copy_file "web-app/i18n-languages.js.erb", "app/assets/javascripts/web-app/i18n-languages.js.erb"
|
29
|
+
copy_file "web-app/locale/en.yml", "app/assets/javascripts/web-app/locale/en.yml"
|
30
|
+
copy_file "web-app/locale/pt-BR.yml", "app/assets/javascripts/web-app/locale/pt-BR.yml"
|
31
|
+
copy_file "web-app/usecode/application_controller.js.coffee", "app/assets/javascripts/web-app/usecode/application_controller.js.coffee"
|
32
|
+
end
|
33
|
+
|
34
|
+
def create_web_app_storyboard
|
35
|
+
copy_file "web-app/usecode/storyboard.js.coffee", "app/assets/javascripts/web-app/usecode/storyboard.js.coffee"
|
36
|
+
end
|
37
|
+
|
38
|
+
def create_web_app_sidebar
|
39
|
+
copy_file "web-app/usecode/sidebar/sidebar_controller.js.coffee", "app/assets/javascripts/web-app/usecode/sidebar/sidebar_controller.js.coffee"
|
40
|
+
copy_file "web-app/presenters/sidebar/sidebar.jst.eco", "app/assets/javascripts/web-app/presenters/sidebar/sidebar.jst.eco"
|
41
|
+
end
|
42
|
+
|
43
|
+
def create_web_app_dashboard
|
44
|
+
copy_file "web-app/usecode/dashboard/dashboard_controller.js.coffee", "app/assets/javascripts/web-app/usecode/dashboard/dashboard_controller.js.coffee"
|
45
|
+
copy_file "web-app/presenters/dashboard/index.jst.eco", "app/assets/javascripts/web-app/presenters/dashboard/index.jst.eco"
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
data/lib/iugusdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iugusdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.alpha.
|
4
|
+
version: 1.0.0.alpha.26
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-08-
|
14
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
18
|
-
requirement: &
|
18
|
+
requirement: &70171541835800 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 3.1.5
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70171541835800
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: coffee-script
|
29
|
-
requirement: &
|
29
|
+
requirement: &70171541834600 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70171541834600
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: sass
|
40
|
-
requirement: &
|
40
|
+
requirement: &70171541833400 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - =
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: 3.2.9
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *70171541833400
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: eco
|
51
|
-
requirement: &
|
51
|
+
requirement: &70171541832620 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: '0'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *70171541832620
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: haml
|
62
|
-
requirement: &
|
62
|
+
requirement: &70171541831780 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ! '>='
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: '0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *70171541831780
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: compass
|
73
|
-
requirement: &
|
73
|
+
requirement: &70171541830720 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ! '>='
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
version: 0.12.2
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *70171541830720
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: haml-rails
|
84
|
-
requirement: &
|
84
|
+
requirement: &70171541856060 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ! '>='
|
@@ -89,10 +89,10 @@ dependencies:
|
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *70171541856060
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: rails-i18n
|
95
|
-
requirement: &
|
95
|
+
requirement: &70171541854760 !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
98
98
|
- - ! '>='
|
@@ -100,10 +100,10 @@ dependencies:
|
|
100
100
|
version: '0'
|
101
101
|
type: :runtime
|
102
102
|
prerelease: false
|
103
|
-
version_requirements: *
|
103
|
+
version_requirements: *70171541854760
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: simple_form
|
106
|
-
requirement: &
|
106
|
+
requirement: &70171541853960 !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
109
109
|
- - ! '>='
|
@@ -111,10 +111,10 @@ dependencies:
|
|
111
111
|
version: '0'
|
112
112
|
type: :runtime
|
113
113
|
prerelease: false
|
114
|
-
version_requirements: *
|
114
|
+
version_requirements: *70171541853960
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: sass-rails
|
117
|
-
requirement: &
|
117
|
+
requirement: &70171541853400 !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
120
120
|
- - ! '>='
|
@@ -122,10 +122,10 @@ dependencies:
|
|
122
122
|
version: '0'
|
123
123
|
type: :runtime
|
124
124
|
prerelease: false
|
125
|
-
version_requirements: *
|
125
|
+
version_requirements: *70171541853400
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: rabl
|
128
|
-
requirement: &
|
128
|
+
requirement: &70171541852980 !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
131
131
|
- - ! '>='
|
@@ -133,10 +133,10 @@ dependencies:
|
|
133
133
|
version: '0'
|
134
134
|
type: :runtime
|
135
135
|
prerelease: false
|
136
|
-
version_requirements: *
|
136
|
+
version_requirements: *70171541852980
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
name: fuubar
|
139
|
-
requirement: &
|
139
|
+
requirement: &70171541852460 !ruby/object:Gem::Requirement
|
140
140
|
none: false
|
141
141
|
requirements:
|
142
142
|
- - ! '>='
|
@@ -144,10 +144,10 @@ dependencies:
|
|
144
144
|
version: '0'
|
145
145
|
type: :runtime
|
146
146
|
prerelease: false
|
147
|
-
version_requirements: *
|
147
|
+
version_requirements: *70171541852460
|
148
148
|
- !ruby/object:Gem::Dependency
|
149
149
|
name: default_value_for
|
150
|
-
requirement: &
|
150
|
+
requirement: &70171541851860 !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|
153
153
|
- - ! '>='
|
@@ -155,10 +155,10 @@ dependencies:
|
|
155
155
|
version: '0'
|
156
156
|
type: :runtime
|
157
157
|
prerelease: false
|
158
|
-
version_requirements: *
|
158
|
+
version_requirements: *70171541851860
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
160
|
name: paperclip
|
161
|
-
requirement: &
|
161
|
+
requirement: &70171541851120 !ruby/object:Gem::Requirement
|
162
162
|
none: false
|
163
163
|
requirements:
|
164
164
|
- - ! '>='
|
@@ -166,10 +166,10 @@ dependencies:
|
|
166
166
|
version: '0'
|
167
167
|
type: :runtime
|
168
168
|
prerelease: false
|
169
|
-
version_requirements: *
|
169
|
+
version_requirements: *70171541851120
|
170
170
|
- !ruby/object:Gem::Dependency
|
171
171
|
name: prawn
|
172
|
-
requirement: &
|
172
|
+
requirement: &70171541850040 !ruby/object:Gem::Requirement
|
173
173
|
none: false
|
174
174
|
requirements:
|
175
175
|
- - ! '>='
|
@@ -177,10 +177,10 @@ dependencies:
|
|
177
177
|
version: '0'
|
178
178
|
type: :runtime
|
179
179
|
prerelease: false
|
180
|
-
version_requirements: *
|
180
|
+
version_requirements: *70171541850040
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: prawn_rails
|
183
|
-
requirement: &
|
183
|
+
requirement: &70171532833060 !ruby/object:Gem::Requirement
|
184
184
|
none: false
|
185
185
|
requirements:
|
186
186
|
- - ! '>='
|
@@ -188,10 +188,10 @@ dependencies:
|
|
188
188
|
version: '0'
|
189
189
|
type: :runtime
|
190
190
|
prerelease: false
|
191
|
-
version_requirements: *
|
191
|
+
version_requirements: *70171532833060
|
192
192
|
- !ruby/object:Gem::Dependency
|
193
193
|
name: nokogiri
|
194
|
-
requirement: &
|
194
|
+
requirement: &70171532831760 !ruby/object:Gem::Requirement
|
195
195
|
none: false
|
196
196
|
requirements:
|
197
197
|
- - ! '>='
|
@@ -199,10 +199,10 @@ dependencies:
|
|
199
199
|
version: '0'
|
200
200
|
type: :runtime
|
201
201
|
prerelease: false
|
202
|
-
version_requirements: *
|
202
|
+
version_requirements: *70171532831760
|
203
203
|
- !ruby/object:Gem::Dependency
|
204
204
|
name: less
|
205
|
-
requirement: &
|
205
|
+
requirement: &70171532831140 !ruby/object:Gem::Requirement
|
206
206
|
none: false
|
207
207
|
requirements:
|
208
208
|
- - ! '>='
|
@@ -210,10 +210,10 @@ dependencies:
|
|
210
210
|
version: '0'
|
211
211
|
type: :runtime
|
212
212
|
prerelease: false
|
213
|
-
version_requirements: *
|
213
|
+
version_requirements: *70171532831140
|
214
214
|
- !ruby/object:Gem::Dependency
|
215
215
|
name: kaminari
|
216
|
-
requirement: &
|
216
|
+
requirement: &70171532830240 !ruby/object:Gem::Requirement
|
217
217
|
none: false
|
218
218
|
requirements:
|
219
219
|
- - ! '>='
|
@@ -221,10 +221,10 @@ dependencies:
|
|
221
221
|
version: '0'
|
222
222
|
type: :runtime
|
223
223
|
prerelease: false
|
224
|
-
version_requirements: *
|
224
|
+
version_requirements: *70171532830240
|
225
225
|
- !ruby/object:Gem::Dependency
|
226
226
|
name: devise
|
227
|
-
requirement: &
|
227
|
+
requirement: &70171532829160 !ruby/object:Gem::Requirement
|
228
228
|
none: false
|
229
229
|
requirements:
|
230
230
|
- - =
|
@@ -232,10 +232,10 @@ dependencies:
|
|
232
232
|
version: 2.1.2
|
233
233
|
type: :runtime
|
234
234
|
prerelease: false
|
235
|
-
version_requirements: *
|
235
|
+
version_requirements: *70171532829160
|
236
236
|
- !ruby/object:Gem::Dependency
|
237
237
|
name: omniauth
|
238
|
-
requirement: &
|
238
|
+
requirement: &70171532828220 !ruby/object:Gem::Requirement
|
239
239
|
none: false
|
240
240
|
requirements:
|
241
241
|
- - ! '>='
|
@@ -243,10 +243,10 @@ dependencies:
|
|
243
243
|
version: '0'
|
244
244
|
type: :runtime
|
245
245
|
prerelease: false
|
246
|
-
version_requirements: *
|
246
|
+
version_requirements: *70171532828220
|
247
247
|
- !ruby/object:Gem::Dependency
|
248
248
|
name: omniauth-twitter
|
249
|
-
requirement: &
|
249
|
+
requirement: &70171532826720 !ruby/object:Gem::Requirement
|
250
250
|
none: false
|
251
251
|
requirements:
|
252
252
|
- - ! '>='
|
@@ -254,10 +254,10 @@ dependencies:
|
|
254
254
|
version: '0'
|
255
255
|
type: :runtime
|
256
256
|
prerelease: false
|
257
|
-
version_requirements: *
|
257
|
+
version_requirements: *70171532826720
|
258
258
|
- !ruby/object:Gem::Dependency
|
259
259
|
name: omniauth-facebook
|
260
|
-
requirement: &
|
260
|
+
requirement: &70171533060480 !ruby/object:Gem::Requirement
|
261
261
|
none: false
|
262
262
|
requirements:
|
263
263
|
- - ! '>='
|
@@ -265,10 +265,10 @@ dependencies:
|
|
265
265
|
version: '0'
|
266
266
|
type: :runtime
|
267
267
|
prerelease: false
|
268
|
-
version_requirements: *
|
268
|
+
version_requirements: *70171533060480
|
269
269
|
- !ruby/object:Gem::Dependency
|
270
270
|
name: delayed_job_active_record
|
271
|
-
requirement: &
|
271
|
+
requirement: &70171533056180 !ruby/object:Gem::Requirement
|
272
272
|
none: false
|
273
273
|
requirements:
|
274
274
|
- - ! '>='
|
@@ -276,10 +276,10 @@ dependencies:
|
|
276
276
|
version: '0'
|
277
277
|
type: :runtime
|
278
278
|
prerelease: false
|
279
|
-
version_requirements: *
|
279
|
+
version_requirements: *70171533056180
|
280
280
|
- !ruby/object:Gem::Dependency
|
281
281
|
name: koala
|
282
|
-
requirement: &
|
282
|
+
requirement: &70171533055540 !ruby/object:Gem::Requirement
|
283
283
|
none: false
|
284
284
|
requirements:
|
285
285
|
- - ! '>='
|
@@ -287,10 +287,10 @@ dependencies:
|
|
287
287
|
version: '0'
|
288
288
|
type: :runtime
|
289
289
|
prerelease: false
|
290
|
-
version_requirements: *
|
290
|
+
version_requirements: *70171533055540
|
291
291
|
- !ruby/object:Gem::Dependency
|
292
292
|
name: activeuuid
|
293
|
-
requirement: &
|
293
|
+
requirement: &70171533054660 !ruby/object:Gem::Requirement
|
294
294
|
none: false
|
295
295
|
requirements:
|
296
296
|
- - ! '>='
|
@@ -298,10 +298,10 @@ dependencies:
|
|
298
298
|
version: '0'
|
299
299
|
type: :runtime
|
300
300
|
prerelease: false
|
301
|
-
version_requirements: *
|
301
|
+
version_requirements: *70171533054660
|
302
302
|
- !ruby/object:Gem::Dependency
|
303
303
|
name: iugu-api
|
304
|
-
requirement: &
|
304
|
+
requirement: &70171533053580 !ruby/object:Gem::Requirement
|
305
305
|
none: false
|
306
306
|
requirements:
|
307
307
|
- - ! '>='
|
@@ -309,10 +309,10 @@ dependencies:
|
|
309
309
|
version: '0'
|
310
310
|
type: :runtime
|
311
311
|
prerelease: false
|
312
|
-
version_requirements: *
|
312
|
+
version_requirements: *70171533053580
|
313
313
|
- !ruby/object:Gem::Dependency
|
314
314
|
name: iugu-ux
|
315
|
-
requirement: &
|
315
|
+
requirement: &70171533052660 !ruby/object:Gem::Requirement
|
316
316
|
none: false
|
317
317
|
requirements:
|
318
318
|
- - ! '>='
|
@@ -320,10 +320,10 @@ dependencies:
|
|
320
320
|
version: '0'
|
321
321
|
type: :runtime
|
322
322
|
prerelease: false
|
323
|
-
version_requirements: *
|
323
|
+
version_requirements: *70171533052660
|
324
324
|
- !ruby/object:Gem::Dependency
|
325
325
|
name: database_cleaner
|
326
|
-
requirement: &
|
326
|
+
requirement: &70171532849020 !ruby/object:Gem::Requirement
|
327
327
|
none: false
|
328
328
|
requirements:
|
329
329
|
- - ! '>='
|
@@ -331,10 +331,10 @@ dependencies:
|
|
331
331
|
version: '0'
|
332
332
|
type: :runtime
|
333
333
|
prerelease: false
|
334
|
-
version_requirements: *
|
334
|
+
version_requirements: *70171532849020
|
335
335
|
- !ruby/object:Gem::Dependency
|
336
336
|
name: compass-rails
|
337
|
-
requirement: &
|
337
|
+
requirement: &70171532847880 !ruby/object:Gem::Requirement
|
338
338
|
none: false
|
339
339
|
requirements:
|
340
340
|
- - ! '>='
|
@@ -342,10 +342,10 @@ dependencies:
|
|
342
342
|
version: '0'
|
343
343
|
type: :runtime
|
344
344
|
prerelease: false
|
345
|
-
version_requirements: *
|
345
|
+
version_requirements: *70171532847880
|
346
346
|
- !ruby/object:Gem::Dependency
|
347
347
|
name: money
|
348
|
-
requirement: &
|
348
|
+
requirement: &70171532846100 !ruby/object:Gem::Requirement
|
349
349
|
none: false
|
350
350
|
requirements:
|
351
351
|
- - ! '>='
|
@@ -353,10 +353,10 @@ dependencies:
|
|
353
353
|
version: '0'
|
354
354
|
type: :runtime
|
355
355
|
prerelease: false
|
356
|
-
version_requirements: *
|
356
|
+
version_requirements: *70171532846100
|
357
357
|
- !ruby/object:Gem::Dependency
|
358
358
|
name: mysql2
|
359
|
-
requirement: &
|
359
|
+
requirement: &70171532845120 !ruby/object:Gem::Requirement
|
360
360
|
none: false
|
361
361
|
requirements:
|
362
362
|
- - ! '>='
|
@@ -364,10 +364,10 @@ dependencies:
|
|
364
364
|
version: '0'
|
365
365
|
type: :development
|
366
366
|
prerelease: false
|
367
|
-
version_requirements: *
|
367
|
+
version_requirements: *70171532845120
|
368
368
|
- !ruby/object:Gem::Dependency
|
369
369
|
name: rspec
|
370
|
-
requirement: &
|
370
|
+
requirement: &70171532844300 !ruby/object:Gem::Requirement
|
371
371
|
none: false
|
372
372
|
requirements:
|
373
373
|
- - ! '>='
|
@@ -375,10 +375,10 @@ dependencies:
|
|
375
375
|
version: '0'
|
376
376
|
type: :development
|
377
377
|
prerelease: false
|
378
|
-
version_requirements: *
|
378
|
+
version_requirements: *70171532844300
|
379
379
|
- !ruby/object:Gem::Dependency
|
380
380
|
name: rspec-rails
|
381
|
-
requirement: &
|
381
|
+
requirement: &70171532843480 !ruby/object:Gem::Requirement
|
382
382
|
none: false
|
383
383
|
requirements:
|
384
384
|
- - ! '>='
|
@@ -386,10 +386,10 @@ dependencies:
|
|
386
386
|
version: '0'
|
387
387
|
type: :development
|
388
388
|
prerelease: false
|
389
|
-
version_requirements: *
|
389
|
+
version_requirements: *70171532843480
|
390
390
|
- !ruby/object:Gem::Dependency
|
391
391
|
name: shoulda-matchers
|
392
|
-
requirement: &
|
392
|
+
requirement: &70171532842920 !ruby/object:Gem::Requirement
|
393
393
|
none: false
|
394
394
|
requirements:
|
395
395
|
- - ! '>='
|
@@ -397,10 +397,10 @@ dependencies:
|
|
397
397
|
version: '0'
|
398
398
|
type: :development
|
399
399
|
prerelease: false
|
400
|
-
version_requirements: *
|
400
|
+
version_requirements: *70171532842920
|
401
401
|
- !ruby/object:Gem::Dependency
|
402
402
|
name: fabrication
|
403
|
-
requirement: &
|
403
|
+
requirement: &70171532842320 !ruby/object:Gem::Requirement
|
404
404
|
none: false
|
405
405
|
requirements:
|
406
406
|
- - =
|
@@ -408,10 +408,10 @@ dependencies:
|
|
408
408
|
version: 2.4.0
|
409
409
|
type: :development
|
410
410
|
prerelease: false
|
411
|
-
version_requirements: *
|
411
|
+
version_requirements: *70171532842320
|
412
412
|
- !ruby/object:Gem::Dependency
|
413
413
|
name: capybara
|
414
|
-
requirement: &
|
414
|
+
requirement: &70171532841240 !ruby/object:Gem::Requirement
|
415
415
|
none: false
|
416
416
|
requirements:
|
417
417
|
- - =
|
@@ -419,10 +419,10 @@ dependencies:
|
|
419
419
|
version: 1.1.2
|
420
420
|
type: :development
|
421
421
|
prerelease: false
|
422
|
-
version_requirements: *
|
422
|
+
version_requirements: *70171532841240
|
423
423
|
- !ruby/object:Gem::Dependency
|
424
424
|
name: faker
|
425
|
-
requirement: &
|
425
|
+
requirement: &70171533221700 !ruby/object:Gem::Requirement
|
426
426
|
none: false
|
427
427
|
requirements:
|
428
428
|
- - ! '>='
|
@@ -430,10 +430,10 @@ dependencies:
|
|
430
430
|
version: '0'
|
431
431
|
type: :development
|
432
432
|
prerelease: false
|
433
|
-
version_requirements: *
|
433
|
+
version_requirements: *70171533221700
|
434
434
|
- !ruby/object:Gem::Dependency
|
435
435
|
name: populator
|
436
|
-
requirement: &
|
436
|
+
requirement: &70171533220780 !ruby/object:Gem::Requirement
|
437
437
|
none: false
|
438
438
|
requirements:
|
439
439
|
- - ! '>='
|
@@ -441,10 +441,10 @@ dependencies:
|
|
441
441
|
version: '0'
|
442
442
|
type: :development
|
443
443
|
prerelease: false
|
444
|
-
version_requirements: *
|
444
|
+
version_requirements: *70171533220780
|
445
445
|
- !ruby/object:Gem::Dependency
|
446
446
|
name: simplecov
|
447
|
-
requirement: &
|
447
|
+
requirement: &70171533219920 !ruby/object:Gem::Requirement
|
448
448
|
none: false
|
449
449
|
requirements:
|
450
450
|
- - ! '>='
|
@@ -452,10 +452,10 @@ dependencies:
|
|
452
452
|
version: '0'
|
453
453
|
type: :development
|
454
454
|
prerelease: false
|
455
|
-
version_requirements: *
|
455
|
+
version_requirements: *70171533219920
|
456
456
|
- !ruby/object:Gem::Dependency
|
457
457
|
name: rr
|
458
|
-
requirement: &
|
458
|
+
requirement: &70171533218800 !ruby/object:Gem::Requirement
|
459
459
|
none: false
|
460
460
|
requirements:
|
461
461
|
- - ! '>='
|
@@ -463,10 +463,10 @@ dependencies:
|
|
463
463
|
version: '0'
|
464
464
|
type: :development
|
465
465
|
prerelease: false
|
466
|
-
version_requirements: *
|
466
|
+
version_requirements: *70171533218800
|
467
467
|
- !ruby/object:Gem::Dependency
|
468
468
|
name: brakeman
|
469
|
-
requirement: &
|
469
|
+
requirement: &70171533218120 !ruby/object:Gem::Requirement
|
470
470
|
none: false
|
471
471
|
requirements:
|
472
472
|
- - ! '>='
|
@@ -474,10 +474,10 @@ dependencies:
|
|
474
474
|
version: '0'
|
475
475
|
type: :development
|
476
476
|
prerelease: false
|
477
|
-
version_requirements: *
|
477
|
+
version_requirements: *70171533218120
|
478
478
|
- !ruby/object:Gem::Dependency
|
479
479
|
name: launchy
|
480
|
-
requirement: &
|
480
|
+
requirement: &70171533217360 !ruby/object:Gem::Requirement
|
481
481
|
none: false
|
482
482
|
requirements:
|
483
483
|
- - ! '>='
|
@@ -485,7 +485,7 @@ dependencies:
|
|
485
485
|
version: '0'
|
486
486
|
type: :development
|
487
487
|
prerelease: false
|
488
|
-
version_requirements: *
|
488
|
+
version_requirements: *70171533217360
|
489
489
|
description: SDK for Iugu Platform Applications
|
490
490
|
email:
|
491
491
|
- contato@iugu.com.br
|
@@ -594,6 +594,25 @@ files:
|
|
594
594
|
- db/migrate/20130716122614_add_indexes_to_account_user.rb
|
595
595
|
- db/migrate/20130716203032_add_indexes_to_api_token.rb
|
596
596
|
- db/migrate/20130723173704_add_used_to_user_invitation.rb
|
597
|
+
- lib/generators/iugusdk_config_generator.rb
|
598
|
+
- lib/generators/templates/account_roles.yml
|
599
|
+
- lib/generators/templates/iugusdk.rb
|
600
|
+
- lib/generators/templates/web-app/entry_point_controller.rb
|
601
|
+
- lib/generators/templates/web-app/entry_point_view.html.haml
|
602
|
+
- lib/generators/templates/web-app/web-app/config.js.erb
|
603
|
+
- lib/generators/templates/web-app/web-app/i18n-languages.js.erb
|
604
|
+
- lib/generators/templates/web-app/web-app/locale/en.yml
|
605
|
+
- lib/generators/templates/web-app/web-app/locale/pt-BR.yml
|
606
|
+
- lib/generators/templates/web-app/web-app/models.js
|
607
|
+
- lib/generators/templates/web-app/web-app/presenters/dashboard/index.jst.eco
|
608
|
+
- lib/generators/templates/web-app/web-app/presenters/sidebar/sidebar.jst.eco
|
609
|
+
- lib/generators/templates/web-app/web-app/presenters.js
|
610
|
+
- lib/generators/templates/web-app/web-app/usecode/application_controller.js.coffee
|
611
|
+
- lib/generators/templates/web-app/web-app/usecode/dashboard/dashboard_controller.js.coffee
|
612
|
+
- lib/generators/templates/web-app/web-app/usecode/sidebar/sidebar_controller.js.coffee
|
613
|
+
- lib/generators/templates/web-app/web-app/usecode/storyboard.js.coffee
|
614
|
+
- lib/generators/templates/web-app/web-app/usecode.js
|
615
|
+
- lib/generators/webapp_generator.rb
|
597
616
|
- lib/iugusdk/controllers/helpers.rb
|
598
617
|
- lib/iugusdk/engine.rb
|
599
618
|
- lib/iugusdk/iugusdk_base_controller.rb
|
@@ -1094,7 +1113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1094
1113
|
version: '0'
|
1095
1114
|
segments:
|
1096
1115
|
- 0
|
1097
|
-
hash:
|
1116
|
+
hash: -2332762508241473502
|
1098
1117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1099
1118
|
none: false
|
1100
1119
|
requirements:
|