flapjack 0.9.4 → 0.9.5
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.
- data/CHANGELOG.md +3 -0
 - data/lib/flapjack/gateways/web/public/js/backbone.jsonapi.js +1 -1
 - data/lib/flapjack/gateways/web/public/js/modules/contact.js +2 -2
 - data/lib/flapjack/gateways/web/public/js/modules/entity.js +2 -2
 - data/lib/flapjack/gateways/web/public/js/modules/medium.js +4 -4
 - data/lib/flapjack/gateways/web/public/js/self_stats.js +1 -1
 - data/lib/flapjack/version.rb +1 -1
 - metadata +4 -4
 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,5 +1,8 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ## Flapjack Changelog
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            # 0.9.5 - 2014-10-08
         
     | 
| 
      
 4 
     | 
    
         
            +
            - Bug: fix api_url handling in the web ui (@jessereynolds)
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
       3 
6 
     | 
    
         
             
            # 0.9.4 - 2014-09-21
         
     | 
| 
       4 
7 
     | 
    
         
             
            - Bug: crash in pagerduty gateway when failing entities have no id #593 (@jessereynolds)
         
     | 
| 
       5 
8 
     | 
    
         
             
            - Bug: bugfix for updating rule data without contact_ids (no-issue) (@ali-graham)
         
     | 
| 
         @@ -187,7 +187,7 @@ Backbone.JSONAPIModel = Backbone.Model.extend({ 
     | 
|
| 
       187 
187 
     | 
    
         
             
                this.linked[type].remove(obj);
         
     | 
| 
       188 
188 
     | 
    
         
             
              },
         
     | 
| 
       189 
189 
     | 
    
         | 
| 
       190 
     | 
    
         
            -
              urlRoot: function() { return(flapjack.api_url +  
     | 
| 
      
 190 
     | 
    
         
            +
              urlRoot: function() { return(flapjack.api_url + this.name); },
         
     | 
| 
       191 
191 
     | 
    
         | 
| 
       192 
192 
     | 
    
         
             
              // can only be called from inside a 'change' event
         
     | 
| 
       193 
193 
     | 
    
         
             
              setDirty: function() {
         
     | 
| 
         @@ -48,7 +48,7 @@ 
     | 
|
| 
       48 
48 
     | 
    
         | 
| 
       49 
49 
     | 
    
         
             
              Contact.List = Backbone.JSONAPICollection.extend({
         
     | 
| 
       50 
50 
     | 
    
         
             
                model: Contact.Model,
         
     | 
| 
       51 
     | 
    
         
            -
                url: function() { return flapjack.api_url + " 
     | 
| 
      
 51 
     | 
    
         
            +
                url: function() { return flapjack.api_url + "contacts"; }
         
     | 
| 
       52 
52 
     | 
    
         
             
              });
         
     | 
| 
       53 
53 
     | 
    
         | 
| 
       54 
54 
     | 
    
         
             
              Contact.Views.List = Backbone.View.extend({
         
     | 
| 
         @@ -518,4 +518,4 @@ 
     | 
|
| 
       518 
518 
     | 
    
         
             
                }
         
     | 
| 
       519 
519 
     | 
    
         
             
              });
         
     | 
| 
       520 
520 
     | 
    
         | 
| 
       521 
     | 
    
         
            -
            })(flapjack, flapjack.module("contact"));
         
     | 
| 
      
 521 
     | 
    
         
            +
            })(flapjack, flapjack.module("contact"));
         
     | 
| 
         @@ -22,7 +22,7 @@ 
     | 
|
| 
       22 
22 
     | 
    
         
             
              Entity.List = Backbone.JSONAPICollection.extend({
         
     | 
| 
       23 
23 
     | 
    
         
             
                model:      Entity.Model,
         
     | 
| 
       24 
24 
     | 
    
         
             
                comparator: 'name',
         
     | 
| 
       25 
     | 
    
         
            -
                url: function() { return flapjack.api_url + " 
     | 
| 
      
 25 
     | 
    
         
            +
                url: function() { return flapjack.api_url + "entities"; }
         
     | 
| 
       26 
26 
     | 
    
         
             
              });
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
            })(flapjack, flapjack.module("entity"));
         
     | 
| 
      
 28 
     | 
    
         
            +
            })(flapjack, flapjack.module("entity"));
         
     | 
| 
         @@ -21,9 +21,9 @@ 
     | 
|
| 
       21 
21 
     | 
    
         
             
                },
         
     | 
| 
       22 
22 
     | 
    
         
             
                sync: function(method, model, options) {
         
     | 
| 
       23 
23 
     | 
    
         
             
                  if ( method == 'create') {
         
     | 
| 
       24 
     | 
    
         
            -
                    options.url = flapjack.api_url + ' 
     | 
| 
      
 24 
     | 
    
         
            +
                    options.url = flapjack.api_url + 'contacts/' + model.contact.get('id') + '/' + this.name;
         
     | 
| 
       25 
25 
     | 
    
         
             
                  } else {
         
     | 
| 
       26 
     | 
    
         
            -
                    options.url = flapjack.api_url +  
     | 
| 
      
 26 
     | 
    
         
            +
                    options.url = flapjack.api_url + this.name + '/' + model.contact.get('id') + '_' + model.get('type');
         
     | 
| 
       27 
27 
     | 
    
         
             
                  }
         
     | 
| 
       28 
28 
     | 
    
         
             
                  Backbone.JSONAPIModel.prototype.sync(method, model, options);
         
     | 
| 
       29 
29 
     | 
    
         
             
                }
         
     | 
| 
         @@ -33,7 +33,7 @@ 
     | 
|
| 
       33 
33 
     | 
    
         
             
              Medium.List = Backbone.JSONAPICollection.extend({
         
     | 
| 
       34 
34 
     | 
    
         
             
                model:      Medium.Model,
         
     | 
| 
       35 
35 
     | 
    
         
             
                comparator: 'type',
         
     | 
| 
       36 
     | 
    
         
            -
                url: function() { return flapjack.api_url + " 
     | 
| 
      
 36 
     | 
    
         
            +
                url: function() { return flapjack.api_url + "media"; }
         
     | 
| 
       37 
37 
     | 
    
         
             
              });
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
            })(flapjack, flapjack.module("medium"));
         
     | 
| 
      
 39 
     | 
    
         
            +
            })(flapjack, flapjack.module("medium"));
         
     | 
| 
         @@ -62,7 +62,7 @@ $(document).ready(function() { 
     | 
|
| 
       62 
62 
     | 
    
         | 
| 
       63 
63 
     | 
    
         
             
              function updateData() {
         
     | 
| 
       64 
64 
     | 
    
         
             
                var api_url = $('div#data-api-url').data('api-url');
         
     | 
| 
       65 
     | 
    
         
            -
                $.get(api_url + ' 
     | 
| 
      
 65 
     | 
    
         
            +
                $.get(api_url + 'metrics?filter=event_queue_length', function(json) {
         
     | 
| 
       66 
66 
     | 
    
         
             
                  var d = new Date().getTime();
         
     | 
| 
       67 
67 
     | 
    
         
             
                  var value = {x: d, y: json.event_queue_length}
         
     | 
| 
       68 
68 
     | 
    
         
             
                  data[0].values.push(value);
         
     | 
    
        data/lib/flapjack/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: flapjack
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.9. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.9.5
         
     | 
| 
       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: 2014- 
     | 
| 
      
 14 
     | 
    
         
            +
            date: 2014-10-07 00:00:00.000000000 Z
         
     | 
| 
       15 
15 
     | 
    
         
             
            dependencies:
         
     | 
| 
       16 
16 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       17 
17 
     | 
    
         
             
              name: dante
         
     | 
| 
         @@ -633,7 +633,7 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       633 
633 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       634 
634 
     | 
    
         
             
                  segments:
         
     | 
| 
       635 
635 
     | 
    
         
             
                  - 0
         
     | 
| 
       636 
     | 
    
         
            -
                  hash:  
     | 
| 
      
 636 
     | 
    
         
            +
                  hash: 3444506708991125351
         
     | 
| 
       637 
637 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       638 
638 
     | 
    
         
             
              none: false
         
     | 
| 
       639 
639 
     | 
    
         
             
              requirements:
         
     | 
| 
         @@ -642,7 +642,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       642 
642 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       643 
643 
     | 
    
         
             
                  segments:
         
     | 
| 
       644 
644 
     | 
    
         
             
                  - 0
         
     | 
| 
       645 
     | 
    
         
            -
                  hash:  
     | 
| 
      
 645 
     | 
    
         
            +
                  hash: 3444506708991125351
         
     | 
| 
       646 
646 
     | 
    
         
             
            requirements: []
         
     | 
| 
       647 
647 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       648 
648 
     | 
    
         
             
            rubygems_version: 1.8.23
         
     |