informant-rails 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +11 -5
- data/lib/informant-rails/client.rb +3 -3
- data/lib/informant-rails/railtie.rb +2 -2
- data/lib/informant-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e78c8253683a9d854fb0702b6fb28502f0921e24
|
4
|
+
data.tar.gz: 52294cde986bc75570ad277d1e9358bfd27ee64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d074dc65c5f740aeb80ae77add7bdc9fbe0eae46daeb0147c18688454f7910f796f3d3fc677fc5b0ed2239a0ff3f722df676aab012f690e06fed250b98a6a487
|
7
|
+
data.tar.gz: 694cf69ce4a38a6137585757c550e35d6c69d8508b2c90d34931a02dbc611c7637dfb975afb88f4b177314ccfab9ba717e838f960fbde40b324e96260467c82c
|
data/Rakefile
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
-
require "
|
2
|
-
|
3
|
-
spec.pattern = "spec/**/*_spec.rb"
|
4
|
-
end
|
1
|
+
require "bundler/setup"
|
2
|
+
require "bundler/gem_tasks"
|
5
3
|
|
6
|
-
|
4
|
+
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
|
5
|
+
require "appraisal/task"
|
6
|
+
Appraisal::Task.new
|
7
|
+
task default: :appraisal
|
8
|
+
else
|
9
|
+
require "rspec/core/rake_task"
|
10
|
+
RSpec::Core::RakeTask.new
|
11
|
+
task default: :spec
|
12
|
+
end
|
@@ -10,14 +10,14 @@ module InformantRails
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
def self.
|
13
|
+
def self.record_action(controller_name, action)
|
14
14
|
if request
|
15
15
|
request.filename = controller_name
|
16
16
|
request.action = action
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
def self.
|
20
|
+
def self.record_validated_model(model)
|
21
21
|
request.process_model(model) if request && include_model?(model)
|
22
22
|
end
|
23
23
|
|
@@ -60,7 +60,7 @@ module InformantRails
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def self.api_url
|
63
|
-
@api_url ||= ['
|
63
|
+
@api_url ||= ['https://api.informantapp.com/api/v1', InformantRails::Config.server_environment].join('/')
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -7,7 +7,7 @@ module InformantRails
|
|
7
7
|
initializer 'informant ActionController binding' do
|
8
8
|
class ::ActionController::Base
|
9
9
|
before_filter do
|
10
|
-
InformantRails::Client.
|
10
|
+
InformantRails::Client.record_action(
|
11
11
|
controller_name, action_name
|
12
12
|
)
|
13
13
|
end
|
@@ -19,7 +19,7 @@ module InformantRails
|
|
19
19
|
initializer 'informant ActiveRecord binding' do
|
20
20
|
class ::ActiveRecord::Base
|
21
21
|
set_callback(:validate, :after) do
|
22
|
-
InformantRails::Client.
|
22
|
+
InformantRails::Client.record_validated_model(self)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: informant-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Elliott
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -59,7 +59,7 @@ files:
|
|
59
59
|
- lib/informant-rails/railtie.rb
|
60
60
|
- lib/informant-rails/request.rb
|
61
61
|
- lib/informant-rails/version.rb
|
62
|
-
homepage:
|
62
|
+
homepage: https://www.informantapp.com
|
63
63
|
licenses:
|
64
64
|
- GPL
|
65
65
|
metadata: {}
|