action_tracker 0.1.2.2 → 0.1.3
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/lib/action_tracker.rb +1 -0
- data/lib/action_tracker/concerns/tracker.rb +1 -0
- data/lib/action_tracker/configuration.rb +23 -0
- data/lib/action_tracker/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 469c3d3178839b4b363a1486cd7ab1a48bce4562
|
4
|
+
data.tar.gz: 378183a75a3a54544d6eef48e92ed4714da11d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f318632a0b0fe0ebc5e8cada9b7b157d2f0bcdcec88cf97eead2c95e14c8304cf8bd132d01d974fc3ce98f627b3ea8d24b866934d57e17fe51600e4d1d45a140
|
7
|
+
data.tar.gz: 72cb25c4a82f5ec36b460974cb714e55e92215447cfd2a6db2f6503ed7693928368a82450ccc5a5bc53368bbd0579738ab310a9d86e96ec92f51fabd6947b46a
|
data/lib/action_tracker.rb
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
# nodoc
|
2
|
+
module ActionTracker
|
3
|
+
class << self
|
4
|
+
attr_accessor :configuration
|
5
|
+
|
6
|
+
def configuration
|
7
|
+
@configuration ||= Configuration.new
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.configure
|
12
|
+
yield(configuration)
|
13
|
+
end
|
14
|
+
|
15
|
+
# nodoc
|
16
|
+
class Configuration
|
17
|
+
attr_accessor :track_events
|
18
|
+
|
19
|
+
def initialize
|
20
|
+
@track_events = true
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_tracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Taiar
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- lib/action_tracker.rb
|
162
162
|
- lib/action_tracker/base.rb
|
163
163
|
- lib/action_tracker/concerns/tracker.rb
|
164
|
+
- lib/action_tracker/configuration.rb
|
164
165
|
- lib/action_tracker/engine.rb
|
165
166
|
- lib/action_tracker/helpers/render.rb
|
166
167
|
- lib/action_tracker/version.rb
|
@@ -184,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
185
|
version: '0'
|
185
186
|
requirements: []
|
186
187
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.4.
|
188
|
+
rubygems_version: 2.4.5
|
188
189
|
signing_key:
|
189
190
|
specification_version: 4
|
190
191
|
summary: Easy way to track actions in your application.
|