iugusdk 1.0.5 → 1.0.6
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.
| 
         @@ -17,28 +17,27 @@ 
     | 
|
| 
       17 
17 
     | 
    
         
             
                            %h4.notice-heading
         
     | 
| 
       18 
18 
     | 
    
         
             
                              = msg
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
                    -  
     | 
| 
       21 
     | 
    
         
            -
                       
     | 
| 
       22 
     | 
    
         
            -
                        . 
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
                           
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
                        . 
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
                         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
                         
     | 
| 
       36 
     | 
    
         
            -
                          . 
     | 
| 
       37 
     | 
    
         
            -
                            . 
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
                            -  
     | 
| 
       40 
     | 
    
         
            -
                               
     | 
| 
       41 
     | 
    
         
            -
                                = link_to "#{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), :class => "full-width button no-bottom-margin default #{provider.to_s}"
         
     | 
| 
      
 20 
     | 
    
         
            +
                    = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "no-bottom-margin" }) do |f|
         
     | 
| 
      
 21 
     | 
    
         
            +
                      .inputs
         
     | 
| 
      
 22 
     | 
    
         
            +
                        = f.input :email, :required => false, :autofocus => true, :placeholder => "E-Mail", :label => false
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                        = f.input :password, :required => false, :placeholder => I18n.t("activerecord.attributes.password"), :label => false
         
     | 
| 
      
 25 
     | 
    
         
            +
                        // = f.input :remember_me, :as => :boolean, :label => I18n.t("activerecord.attributes.remember_me") if devise_mapping.rememberable?
         
     | 
| 
      
 26 
     | 
    
         
            +
                        - if !params[:invitation_token].blank?
         
     | 
| 
      
 27 
     | 
    
         
            +
                          = f.input :user_invitation, as: :hidden, input_html: { value: params[:invitation_token] }
         
     | 
| 
      
 28 
     | 
    
         
            +
                      .actions
         
     | 
| 
      
 29 
     | 
    
         
            +
                        = f.button :submit, I18n.t("iugu.sign_in"), :class => "full-width default"
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                      - if devise_mapping.recoverable? && controller_name != 'passwords'
         
     | 
| 
      
 32 
     | 
    
         
            +
                        = link_to I18n.t("iugu.forgot_your_password?"), new_password_path(resource_name), :class => "button full-width no-bottom-margin"
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
                      - if IuguSDK::enable_social_login
         
     | 
| 
      
 35 
     | 
    
         
            +
                        .social
         
     | 
| 
      
 36 
     | 
    
         
            +
                          .text
         
     | 
| 
      
 37 
     | 
    
         
            +
                            = I18n.t("iugu.or_sign_up_with")
         
     | 
| 
      
 38 
     | 
    
         
            +
                          - if devise_mapping.omniauthable?
         
     | 
| 
      
 39 
     | 
    
         
            +
                            - resource_class.omniauth_providers.each do |provider|
         
     | 
| 
      
 40 
     | 
    
         
            +
                              = link_to "#{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), :class => "full-width button no-bottom-margin default #{provider.to_s}"
         
     | 
| 
       42 
41 
     | 
    
         | 
| 
       43 
42 
     | 
    
         | 
| 
       44 
43 
     | 
    
         
             
                    - if IuguSDK::enable_user_confirmation
         
     | 
| 
         @@ -51,29 +51,27 @@ 
     | 
|
| 
       51 
51 
     | 
    
         
             
                = f.submit I18n.t("iugu.save"), :class => "btn-block btn btn-lg btn-primary"
         
     | 
| 
       52 
52 
     | 
    
         | 
| 
       53 
53 
     | 
    
         | 
| 
       54 
     | 
    
         
            -
               
     | 
| 
      
 54 
     | 
    
         
            +
              = simple_form_for @user, :url => profile_update_path + "#password", role: "form", :method => :post do |f|
         
     | 
| 
       55 
55 
     | 
    
         | 
| 
       56 
     | 
    
         
            -
                 
     | 
| 
      
 56 
     | 
    
         
            +
                .element-spacing
         
     | 
| 
      
 57 
     | 
    
         
            +
                  %h3.no-bottom-margin
         
     | 
| 
      
 58 
     | 
    
         
            +
                    = I18n.t "activerecord.attributes.password"
         
     | 
| 
       57 
59 
     | 
    
         | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
                      = I18n.t "activerecord.attributes.password"
         
     | 
| 
      
 60 
     | 
    
         
            +
                - @input_success = ''
         
     | 
| 
      
 61 
     | 
    
         
            +
                = render partial: "iugu/shared/notices", locals: { group: :password, resource: @user }
         
     | 
| 
       61 
62 
     | 
    
         | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
                   
     | 
| 
      
 63 
     | 
    
         
            +
                .row
         
     | 
| 
      
 64 
     | 
    
         
            +
                  .col-md-6
         
     | 
| 
      
 65 
     | 
    
         
            +
                    .form-group{ class: "form-group #{@user.errors.include?(:password) ? 'has-error':@input_success}" }
         
     | 
| 
      
 66 
     | 
    
         
            +
                      = f.password_field :password, :placeholder => I18n.t("activerecord.attributes.password"), class: "form-control"
         
     | 
| 
       64 
67 
     | 
    
         | 
| 
       65 
     | 
    
         
            -
                  . 
     | 
| 
       66 
     | 
    
         
            -
                    . 
     | 
| 
       67 
     | 
    
         
            -
                      . 
     | 
| 
       68 
     | 
    
         
            -
                        = f.password_field :password, :placeholder => I18n.t("activerecord.attributes.password"), class: "form-control"
         
     | 
| 
      
 68 
     | 
    
         
            +
                  .col-md-6
         
     | 
| 
      
 69 
     | 
    
         
            +
                    .form-group{ class: "form-group #{@user.errors.include?(:password) ? 'has-error':@input_success}" }
         
     | 
| 
      
 70 
     | 
    
         
            +
                      = f.password_field :password_confirmation, :placeholder => I18n.t("activerecord.attributes.password_confirmation"), class: "form-control"
         
     | 
| 
       69 
71 
     | 
    
         | 
| 
       70 
     | 
    
         
            -
             
     | 
| 
       71 
     | 
    
         
            -
                      .form-group{ class: "form-group #{@user.errors.include?(:password) ? 'has-error':@input_success}" }
         
     | 
| 
       72 
     | 
    
         
            -
                        = f.password_field :password_confirmation, :placeholder => I18n.t("activerecord.attributes.password_confirmation"), class: "form-control"
         
     | 
| 
      
 72 
     | 
    
         
            +
                = hidden_field_tag "form_group", :password
         
     | 
| 
       73 
73 
     | 
    
         | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
              
         
     | 
| 
       76 
     | 
    
         
            -
                  = f.submit I18n.t("iugu.save"), :id => "new_password_submit", :class => "btn btn-lg btn-primary btn-block"
         
     | 
| 
      
 74 
     | 
    
         
            +
                = f.submit I18n.t("iugu.save"), :id => "new_password_submit", :class => "btn btn-lg btn-primary btn-block"
         
     | 
| 
       77 
75 
     | 
    
         | 
| 
       78 
76 
     | 
    
         
             
              - if IuguSDK::enable_social_linking
         
     | 
| 
       79 
77 
     | 
    
         | 
| 
         @@ -0,0 +1,20 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            %nav{ class: "navbar navbar-default navbar-fixed-top", role: "navigation" }
         
     | 
| 
      
 2 
     | 
    
         
            +
              .navbar-header
         
     | 
| 
      
 3 
     | 
    
         
            +
                %button{ class: "navbar-toggle", type: "button", data: { toggle: "collapse", target: ".navbar-ex1-collapse" } }
         
     | 
| 
      
 4 
     | 
    
         
            +
                  %span.sr-only
         
     | 
| 
      
 5 
     | 
    
         
            +
                    Toggle Navigation
         
     | 
| 
      
 6 
     | 
    
         
            +
                  %span.icon-bar
         
     | 
| 
      
 7 
     | 
    
         
            +
                  %span.icon-bar
         
     | 
| 
      
 8 
     | 
    
         
            +
                  %span.icon-bar
         
     | 
| 
      
 9 
     | 
    
         
            +
                .navbar-brand
         
     | 
| 
      
 10 
     | 
    
         
            +
                  = link_to image_tag('application_logo.png'), IuguSDK::app_main_url
         
     | 
| 
      
 11 
     | 
    
         
            +
              %div.collapse.navbar-collapse.navbar-ex1-collapse
         
     | 
| 
      
 12 
     | 
    
         
            +
                %ul.nav.navbar-nav
         
     | 
| 
      
 13 
     | 
    
         
            +
                  %li{ :class => "#{controller_name=='profile'?'active':''}" }
         
     | 
| 
      
 14 
     | 
    
         
            +
                    %a{ :href => profile_settings_path }
         
     | 
| 
      
 15 
     | 
    
         
            +
                      = I18n.t "iugu.profile"
         
     | 
| 
      
 16 
     | 
    
         
            +
                  %li{ class: "#{controller_name=='account'?'active':''}" }
         
     | 
| 
      
 17 
     | 
    
         
            +
                    - if IuguSDK::enable_multiple_accounts == false && current_user.accounts.count <= 1
         
     | 
| 
      
 18 
     | 
    
         
            +
                      = link_to I18n.t("iugu.account"), account_view_path
         
     | 
| 
      
 19 
     | 
    
         
            +
                    - else
         
     | 
| 
      
 20 
     | 
    
         
            +
                      = link_to I18n.t("iugu.accounts"), account_settings_path
         
     | 
| 
         @@ -30,26 +30,7 @@ 
     | 
|
| 
       30 
30 
     | 
    
         | 
| 
       31 
31 
     | 
    
         
             
              %body
         
     | 
| 
       32 
32 
     | 
    
         | 
| 
       33 
     | 
    
         
            -
                 
     | 
| 
       34 
     | 
    
         
            -
                  .navbar-header
         
     | 
| 
       35 
     | 
    
         
            -
                    %button{ class: "navbar-toggle", type: "button", data: { toggle: "collapse", target: ".navbar-ex1-collapse" } }
         
     | 
| 
       36 
     | 
    
         
            -
                      %span.sr-only
         
     | 
| 
       37 
     | 
    
         
            -
                        Toggle Navigation
         
     | 
| 
       38 
     | 
    
         
            -
                      %span.icon-bar
         
     | 
| 
       39 
     | 
    
         
            -
                      %span.icon-bar
         
     | 
| 
       40 
     | 
    
         
            -
                      %span.icon-bar
         
     | 
| 
       41 
     | 
    
         
            -
                    .navbar-brand
         
     | 
| 
       42 
     | 
    
         
            -
                      = link_to image_tag('application_logo.png'), IuguSDK::app_main_url
         
     | 
| 
       43 
     | 
    
         
            -
                  %div.collapse.navbar-collapse.navbar-ex1-collapse
         
     | 
| 
       44 
     | 
    
         
            -
                    %ul.nav.navbar-nav
         
     | 
| 
       45 
     | 
    
         
            -
                      %li{ :class => "#{controller_name=='profile'?'active':''}" }
         
     | 
| 
       46 
     | 
    
         
            -
                        %a{ :href => profile_settings_path }
         
     | 
| 
       47 
     | 
    
         
            -
                          = I18n.t "iugu.profile"
         
     | 
| 
       48 
     | 
    
         
            -
                      %li{ class: "#{controller_name=='account'?'active':''}" }
         
     | 
| 
       49 
     | 
    
         
            -
                        - if IuguSDK::enable_multiple_accounts == false && current_user.accounts.count <= 1
         
     | 
| 
       50 
     | 
    
         
            -
                          = link_to I18n.t("iugu.account"), account_view_path
         
     | 
| 
       51 
     | 
    
         
            -
                        - else
         
     | 
| 
       52 
     | 
    
         
            -
                          = link_to I18n.t("iugu.accounts"), account_settings_path
         
     | 
| 
      
 33 
     | 
    
         
            +
                = render :partial => "iugu/shared/settings.header"
         
     | 
| 
       53 
34 
     | 
    
         | 
| 
       54 
35 
     | 
    
         
             
                - unless flash[:social] || flash[:group]
         
     | 
| 
       55 
36 
     | 
    
         
             
                  - flash.each do |name, msg|
         
     | 
    
        data/lib/iugusdk/version.rb
    CHANGED
    
    
    
        data/lib/iugusdk.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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.6
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -11,7 +11,7 @@ authors: 
     | 
|
| 
       11 
11 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       12 
12 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       13 
13 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       14 
     | 
    
         
            -
            date: 2013- 
     | 
| 
      
 14 
     | 
    
         
            +
            date: 2013-12-19 00:00:00.000000000 Z
         
     | 
| 
       15 
15 
     | 
    
         
             
            dependencies:
         
     | 
| 
       16 
16 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       17 
17 
     | 
    
         
             
              name: rails
         
     | 
| 
         @@ -768,6 +768,7 @@ files: 
     | 
|
| 
       768 
768 
     | 
    
         
             
            - app/views/iugu/shared/_links.html.haml
         
     | 
| 
       769 
769 
     | 
    
         
             
            - app/views/iugu/shared/_notices.html.haml
         
     | 
| 
       770 
770 
     | 
    
         
             
            - app/views/iugu/shared/_responsive-dialog.header.html.haml
         
     | 
| 
      
 771 
     | 
    
         
            +
            - app/views/iugu/shared/_settings.header.html.haml
         
     | 
| 
       771 
772 
     | 
    
         
             
            - app/views/iugu/shared/_signup_fields.html.haml
         
     | 
| 
       772 
773 
     | 
    
         
             
            - app/views/iugu/unlocks/new.html.haml
         
     | 
| 
       773 
774 
     | 
    
         
             
            - app/views/layouts/iugu-sdk.html.haml
         
     | 
| 
         @@ -940,7 +941,7 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       940 
941 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       941 
942 
     | 
    
         
             
                  segments:
         
     | 
| 
       942 
943 
     | 
    
         
             
                  - 0
         
     | 
| 
       943 
     | 
    
         
            -
                  hash:  
     | 
| 
      
 944 
     | 
    
         
            +
                  hash: 1359425245067352116
         
     | 
| 
       944 
945 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       945 
946 
     | 
    
         
             
              none: false
         
     | 
| 
       946 
947 
     | 
    
         
             
              requirements:
         
     | 
| 
         @@ -949,7 +950,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       949 
950 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       950 
951 
     | 
    
         
             
                  segments:
         
     | 
| 
       951 
952 
     | 
    
         
             
                  - 0
         
     | 
| 
       952 
     | 
    
         
            -
                  hash:  
     | 
| 
      
 953 
     | 
    
         
            +
                  hash: 1359425245067352116
         
     | 
| 
       953 
954 
     | 
    
         
             
            requirements: []
         
     | 
| 
       954 
955 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       955 
956 
     | 
    
         
             
            rubygems_version: 1.8.24
         
     |