informant-rails 0.9.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65c3c747328be0efaa7ba65e5ac0d79d38ba0478
4
- data.tar.gz: 116db5adee7088ea5534834fcb4c161ac1a01018
3
+ metadata.gz: df2bebded0f01d0d92c6feda1b4405a6dd0cf0c0
4
+ data.tar.gz: 53129acf760d019260f87e0d6df979467a99d2c5
5
5
  SHA512:
6
- metadata.gz: 47cc3b01489162d35be20cd58f3a4e2d75b2aaf1540f38b2b97740a086203e89a4854c7bdd5262031b3713d2018d4d574e7df93b765da1ac09c6d64ab5170fe9
7
- data.tar.gz: 63b86c907ab30f57a6ed1a7bb6786a4f9211ad8b8e7013346dbe6d07486dfdbef23fa259c91f6907fa631fd7c20ac9db397fe835a0ff2bf30468168c6f5c18df
6
+ metadata.gz: 5e6f98ae025c8ef282f83f4c7483e13c178ac289501e921db85eaa1bcb58d2dd2fab3be05334a7f755bd2b37f4e422d37946b7d895c60e00dc7ef4bf2dfb36fd
7
+ data.tar.gz: 320aba0ca4bc6eadbea74dd0cb81a4d97b67d31981201f952740cb00d905c825433a4e09c227496b50ef8169a8343888dfe337a25a5f8e1e9db1008069573ed1
data/LICENSE CHANGED
@@ -1 +1,8 @@
1
- Copyright 2013 The Informant
1
+ MIT License
2
+ Copyright (c) 2016 Informant, LLC
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -18,12 +18,17 @@ module InformantRails
18
18
  request_url: request_url,
19
19
  filename: filename,
20
20
  action: action,
21
- client: InformantRails::Config.client_identifier
21
+ client: InformantRails::Config.client_identifier,
22
+ rails_version: rails_version
22
23
  }
23
24
  end
24
25
 
25
26
  protected
26
27
 
28
+ def rails_version
29
+ @rails_version ||= Rails.version
30
+ end
31
+
27
32
  def untracked?(model)
28
33
  !models.detect { |container| container.model == model }
29
34
  end
@@ -3,8 +3,14 @@ module InformantRails
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- before_action do
7
- InformantRails::Client.record_action(controller_name, action_name)
6
+ if defined? before_action
7
+ before_action do
8
+ InformantRails::Client.record_action(controller_name, action_name)
9
+ end
10
+ else
11
+ before_filter do
12
+ InformantRails::Client.record_action(controller_name, action_name)
13
+ end
8
14
  end
9
15
  end
10
16
  end
@@ -1,3 +1,3 @@
1
1
  module InformantRails
2
- VERSION = '0.9.2'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: informant-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Informant, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-09 00:00:00.000000000 Z
11
+ date: 2016-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -51,7 +51,7 @@ files:
51
51
  - lib/tasks/test_connection.rake
52
52
  homepage: https://www.informantapp.com
53
53
  licenses:
54
- - GPL
54
+ - MIT
55
55
  metadata: {}
56
56
  post_install_message:
57
57
  rdoc_options: []