easy_reports 0.0.26 → 0.0.27
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.
- checksums.yaml +4 -4
 - data/app/assets/javascripts/easy_reports/application.js +7 -12
 - data/app/assets/javascripts/easy_reports/backbone/easy_reports.js.coffee +32 -0
 - data/easy_reports.gemspec +1 -1
 - data/lib/easy_reports.rb +1 -0
 - data/lib/easy_reports/version.rb +1 -1
 - data/test/dummy/Gemfile.lock +25 -7
 - metadata +16 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 3baa4665601463932b8e0481c14f406803f33438
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 104ad099185c0e62c64f2198d1be68b92cf79ede
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e60454089ed8f0550b7359e9dc5d7ee160704200fd966ed72a3337ba492eddb93c1ae92b484dbe076b85728716222e7d1e9d2c8a0da5f78f6535e0e3a5e1f772
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 91d05585ab871248ad1da5b18da0e48957ea5d6d613a3fa672e657e3e9e9a272abb51031bb3583bb6c888528eda884848ed5e0c68f01311d153c247a937fb96e
         
     | 
| 
         @@ -1,17 +1,12 @@ 
     | 
|
| 
       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 vendor/assets/javascripts of plugins, if any, 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/sstephenson/sprockets#sprockets-directives) for details
         
     | 
| 
       11 
     | 
    
         
            -
            // about supported directives.
         
     | 
| 
       12 
     | 
    
         
            -
            //
         
     | 
| 
       13 
1 
     | 
    
         
             
            //= require jquery
         
     | 
| 
       14 
2 
     | 
    
         
             
            //= require jquery_ujs
         
     | 
| 
       15 
3 
     | 
    
         
             
            //= require twitter/bootstrap
         
     | 
| 
       16 
4 
     | 
    
         
             
            //= require bootstrap-select
         
     | 
| 
      
 5 
     | 
    
         
            +
            //= require skim
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            //= require underscore
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            //= require backbone
         
     | 
| 
      
 10 
     | 
    
         
            +
            //= require ./backbone/easy_reports
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       17 
12 
     | 
    
         
             
            //= require_tree .
         
     | 
| 
         @@ -0,0 +1,32 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            #= require_self
         
     | 
| 
      
 2 
     | 
    
         
            +
            #= require_tree ./templates
         
     | 
| 
      
 3 
     | 
    
         
            +
            #= require_tree ./models
         
     | 
| 
      
 4 
     | 
    
         
            +
            #= require_tree ./collections
         
     | 
| 
      
 5 
     | 
    
         
            +
            #= require_tree ./views
         
     | 
| 
      
 6 
     | 
    
         
            +
            #= require_tree ./routers
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            window.EasyReports =
         
     | 
| 
      
 9 
     | 
    
         
            +
              Models: {}
         
     | 
| 
      
 10 
     | 
    
         
            +
              Collections: {}
         
     | 
| 
      
 11 
     | 
    
         
            +
              Routers: {}
         
     | 
| 
      
 12 
     | 
    
         
            +
              Views: {}
         
     | 
| 
      
 13 
     | 
    
         
            +
              init: ->
         
     | 
| 
      
 14 
     | 
    
         
            +
                # new EasyReports.Views.HeaderView()
         
     | 
| 
      
 15 
     | 
    
         
            +
                # new EasyReports.Views.GlobalView()
         
     | 
| 
      
 16 
     | 
    
         
            +
                new EasyReports.Routers.Reports()
         
     | 
| 
      
 17 
     | 
    
         
            +
                Backbone.history.start(pushState: true)
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            $(document).ready ->
         
     | 
| 
      
 20 
     | 
    
         
            +
              initialize_routers_callback()
         
     | 
| 
      
 21 
     | 
    
         
            +
              EasyReports.init()
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            initialize_routers_callback = ->
         
     | 
| 
      
 24 
     | 
    
         
            +
              # registrationDialogModel = new Stoege.Models.RegistrationDialog
         
     | 
| 
      
 25 
     | 
    
         
            +
              # registrationDialogView = new Stoege.Views.RegistrationDialog(model: registrationDialogModel)
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
              # Backbone.Router::after = =>
         
     | 
| 
      
 28 
     | 
    
         
            +
              #   params = Backbone.History.prototype.getQueryParameters(window.location.search)
         
     | 
| 
      
 29 
     | 
    
         
            +
              #   if params['registration']?
         
     | 
| 
      
 30 
     | 
    
         
            +
              #     registrationDialogView.open_registration(params)
         
     | 
| 
      
 31 
     | 
    
         
            +
              #   else
         
     | 
| 
      
 32 
     | 
    
         
            +
              #     registrationDialogView.destroy() if $('.registration_dialog').length
         
     | 
    
        data/easy_reports.gemspec
    CHANGED
    
    | 
         @@ -33,7 +33,7 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       33 
33 
     | 
    
         
             
              spec.add_dependency 'pg'
         
     | 
| 
       34 
34 
     | 
    
         
             
              spec.add_dependency 'sequel'
         
     | 
| 
       35 
35 
     | 
    
         
             
              spec.add_dependency 'simple_form'
         
     | 
| 
       36 
     | 
    
         
            -
               
     | 
| 
      
 36 
     | 
    
         
            +
              spec.add_dependency 'skim'
         
     | 
| 
       37 
37 
     | 
    
         
             
              spec.add_dependency 'slim-rails'
         
     | 
| 
       38 
38 
     | 
    
         
             
              spec.add_dependency 'therubyracer'
         
     | 
| 
       39 
39 
     | 
    
         
             
              spec.add_dependency 'twitter-bootstrap-rails'
         
     | 
    
        data/lib/easy_reports.rb
    CHANGED
    
    
    
        data/lib/easy_reports/version.rb
    CHANGED
    
    
    
        data/test/dummy/Gemfile.lock
    CHANGED
    
    | 
         @@ -1,7 +1,8 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            PATH
         
     | 
| 
       2 
2 
     | 
    
         
             
              remote: ../..
         
     | 
| 
       3 
3 
     | 
    
         
             
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                easy_reports (0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
                easy_reports (0.0.26)
         
     | 
| 
      
 5 
     | 
    
         
            +
                  backbone-rails
         
     | 
| 
       5 
6 
     | 
    
         
             
                  bootstrap-select-rails
         
     | 
| 
       6 
7 
     | 
    
         
             
                  jquery-rails
         
     | 
| 
       7 
8 
     | 
    
         
             
                  less-rails
         
     | 
| 
         @@ -9,7 +10,8 @@ PATH 
     | 
|
| 
       9 
10 
     | 
    
         
             
                  rails (~> 4.1.8)
         
     | 
| 
       10 
11 
     | 
    
         
             
                  sequel
         
     | 
| 
       11 
12 
     | 
    
         
             
                  simple_form
         
     | 
| 
       12 
     | 
    
         
            -
                   
     | 
| 
      
 13 
     | 
    
         
            +
                  skim
         
     | 
| 
      
 14 
     | 
    
         
            +
                  slim-rails
         
     | 
| 
       13 
15 
     | 
    
         
             
                  therubyracer
         
     | 
| 
       14 
16 
     | 
    
         
             
                  twitter-bootstrap-rails
         
     | 
| 
       15 
17 
     | 
    
         | 
| 
         @@ -43,8 +45,14 @@ GEM 
     | 
|
| 
       43 
45 
     | 
    
         
             
                  thread_safe (~> 0.1)
         
     | 
| 
       44 
46 
     | 
    
         
             
                  tzinfo (~> 1.1)
         
     | 
| 
       45 
47 
     | 
    
         
             
                arel (5.0.1.20140414130214)
         
     | 
| 
      
 48 
     | 
    
         
            +
                backbone-rails (1.1.2)
         
     | 
| 
      
 49 
     | 
    
         
            +
                  rails (>= 3.0.0)
         
     | 
| 
       46 
50 
     | 
    
         
             
                bootstrap-select-rails (1.6.3)
         
     | 
| 
       47 
51 
     | 
    
         
             
                builder (3.2.2)
         
     | 
| 
      
 52 
     | 
    
         
            +
                coffee-script (2.3.0)
         
     | 
| 
      
 53 
     | 
    
         
            +
                  coffee-script-source
         
     | 
| 
      
 54 
     | 
    
         
            +
                  execjs
         
     | 
| 
      
 55 
     | 
    
         
            +
                coffee-script-source (1.9.0)
         
     | 
| 
       48 
56 
     | 
    
         
             
                commonjs (0.2.7)
         
     | 
| 
       49 
57 
     | 
    
         
             
                daemons (1.1.9)
         
     | 
| 
       50 
58 
     | 
    
         
             
                erubis (2.7.0)
         
     | 
| 
         @@ -89,23 +97,33 @@ GEM 
     | 
|
| 
       89 
97 
     | 
    
         
             
                rake (10.4.2)
         
     | 
| 
       90 
98 
     | 
    
         
             
                ref (1.0.5)
         
     | 
| 
       91 
99 
     | 
    
         
             
                sequel (4.18.0)
         
     | 
| 
       92 
     | 
    
         
            -
                simple_form (3.0 
     | 
| 
      
 100 
     | 
    
         
            +
                simple_form (3.1.0)
         
     | 
| 
       93 
101 
     | 
    
         
             
                  actionpack (~> 4.0)
         
     | 
| 
       94 
102 
     | 
    
         
             
                  activemodel (~> 4.0)
         
     | 
| 
       95 
     | 
    
         
            -
                 
     | 
| 
       96 
     | 
    
         
            -
                   
     | 
| 
      
 103 
     | 
    
         
            +
                skim (0.9.3)
         
     | 
| 
      
 104 
     | 
    
         
            +
                  coffee-script
         
     | 
| 
      
 105 
     | 
    
         
            +
                  coffee-script-source (>= 1.2.0)
         
     | 
| 
      
 106 
     | 
    
         
            +
                  slim (~> 2.0.0)
         
     | 
| 
      
 107 
     | 
    
         
            +
                  sprockets
         
     | 
| 
      
 108 
     | 
    
         
            +
                slim (2.0.3)
         
     | 
| 
      
 109 
     | 
    
         
            +
                  temple (~> 0.6.6)
         
     | 
| 
       97 
110 
     | 
    
         
             
                  tilt (>= 1.3.3, < 2.1)
         
     | 
| 
      
 111 
     | 
    
         
            +
                slim-rails (2.1.5)
         
     | 
| 
      
 112 
     | 
    
         
            +
                  actionpack (>= 3.0, < 4.2)
         
     | 
| 
      
 113 
     | 
    
         
            +
                  activesupport (>= 3.0, < 4.2)
         
     | 
| 
      
 114 
     | 
    
         
            +
                  railties (>= 3.0, < 4.2)
         
     | 
| 
      
 115 
     | 
    
         
            +
                  slim (~> 2.0)
         
     | 
| 
       98 
116 
     | 
    
         
             
                sprockets (2.12.3)
         
     | 
| 
       99 
117 
     | 
    
         
             
                  hike (~> 1.2)
         
     | 
| 
       100 
118 
     | 
    
         
             
                  multi_json (~> 1.0)
         
     | 
| 
       101 
119 
     | 
    
         
             
                  rack (~> 1.0)
         
     | 
| 
       102 
120 
     | 
    
         
             
                  tilt (~> 1.1, != 1.3.0)
         
     | 
| 
       103 
     | 
    
         
            -
                sprockets-rails (2.2. 
     | 
| 
      
 121 
     | 
    
         
            +
                sprockets-rails (2.2.4)
         
     | 
| 
       104 
122 
     | 
    
         
             
                  actionpack (>= 3.0)
         
     | 
| 
       105 
123 
     | 
    
         
             
                  activesupport (>= 3.0)
         
     | 
| 
       106 
124 
     | 
    
         
             
                  sprockets (>= 2.8, < 4.0)
         
     | 
| 
       107 
125 
     | 
    
         
             
                sqlite3 (1.3.10)
         
     | 
| 
       108 
     | 
    
         
            -
                temple (0. 
     | 
| 
      
 126 
     | 
    
         
            +
                temple (0.6.10)
         
     | 
| 
       109 
127 
     | 
    
         
             
                therubyracer (0.12.1)
         
     | 
| 
       110 
128 
     | 
    
         
             
                  libv8 (~> 3.16.14.0)
         
     | 
| 
       111 
129 
     | 
    
         
             
                  ref
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: easy_reports
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.27
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Davydenkov Mihail
         
     | 
| 
         @@ -150,6 +150,20 @@ dependencies: 
     | 
|
| 
       150 
150 
     | 
    
         
             
                - - ">="
         
     | 
| 
       151 
151 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       152 
152 
     | 
    
         
             
                    version: '0'
         
     | 
| 
      
 153 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 154 
     | 
    
         
            +
              name: skim
         
     | 
| 
      
 155 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 156 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 157 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 158 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 159 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 160 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 161 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 162 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 163 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 164 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 165 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 166 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       153 
167 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       154 
168 
     | 
    
         
             
              name: slim-rails
         
     | 
| 
       155 
169 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -209,6 +223,7 @@ files: 
     | 
|
| 
       209 
223 
     | 
    
         
             
            - app/assets/javascripts/application.js
         
     | 
| 
       210 
224 
     | 
    
         
             
            - app/assets/javascripts/bootstrap.js
         
     | 
| 
       211 
225 
     | 
    
         
             
            - app/assets/javascripts/easy_reports/application.js
         
     | 
| 
      
 226 
     | 
    
         
            +
            - app/assets/javascripts/easy_reports/backbone/easy_reports.js.coffee
         
     | 
| 
       212 
227 
     | 
    
         
             
            - app/assets/javascripts/easy_reports/database_configs.js
         
     | 
| 
       213 
228 
     | 
    
         
             
            - app/assets/javascripts/easy_reports/reports.js
         
     | 
| 
       214 
229 
     | 
    
         
             
            - app/assets/stylesheets/application.css
         
     |