metro_relic 0.0.1 → 0.0.2

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzY5YTY3Y2M1N2YyMWQ0MzU1M2EwNDdkYzA1YTJhN2FhMDliMDIzNQ==
4
+ YmZhMmEzNzU0NDgxNjA2NmE3YjhjNWU4ZWY4NjE2NGY2NTc4MzA5Ng==
5
5
  data.tar.gz: !binary |-
6
- MmVmYTdlM2U0MGYyZDU4NTJhNTk2Y2Y5YWYwYmU2NTEzNjMxZmNkZQ==
6
+ NmY5Y2QzZTNjMmE2MTI3Mjk2NGU1ODJlM2UzMWVlNWVlOTBhYzI1MA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGJmNzg5NzdkMGFhODI1NjQ3Y2Y1NDAyZDY0ZWM2NThlYTcxZjBhZjcwNTU4
10
- Mjc4ZjVmNjVkOTZlZThmNjFjYTg5OGU0NjRhY2E3N2Q5OGYyYTczOGUyMmU1
11
- N2ExNDQ5YjRkODVlNjU3YjliYjliODM0Zjg5Nzg0YTY0NmJjODA=
9
+ ZmIxNzVlMDgxYWJiMzhhMDNkMTlhY2M0ZTFkNTlmZDQ4OGZhODkyYjQ5MWVk
10
+ ZWNkZTZkODc2ZDA0MzViMTJiZGEwMDQ4YTMyZTUxN2VjNzhjMTFjYjE5YTQ5
11
+ MWQ4MDhhNWY0YjQ0MmZmYWJmMzgxNGIyOTYyMzM1YmQwYmE5ZTg=
12
12
  data.tar.gz: !binary |-
13
- YzgwOWEwNzhhYzg4MTUzMTE3NTYyMzcwY2NhOTQ1NWZhNzVjODc3MjIzOTk2
14
- NjMxMzFhMzRjMWI5ZGRmZWNjMWI2YTcxMjNjZGU4NjEwZjhjYzlkOWQ3NWVm
15
- NzRmN2U0MzllZjA4NTk2MDZmM2U3MzAyZDRkMDVlMjQ1YjFiOTE=
13
+ YTY1YTQ4YjljODIwZWM5MjVhOTNlYzUwNjgwOTU1YzljZWJjYmY5NzRjZDgw
14
+ OGZmZTlmNjk3MDhiYjM0OWEzNDU3MTc1NzYyZTUzNTk1YzUyZDJlZjU5MmY4
15
+ YTczYmFkZWZmMGFhYzY4NTU5NzJkNjY4NjJiZTU5YjZlOGQ4ZmQ=
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # MetroRelic
2
2
 
3
- TODO: Write a gem description
4
-
5
3
  ## Installation
6
4
 
7
5
  Add this line to your application's Gemfile:
@@ -16,9 +14,53 @@ Or install it yourself as:
16
14
 
17
15
  $ gem install metro_relic
18
16
 
19
- ## Usage
17
+ ## Initialization
18
+
19
+ ```ruby
20
+ MetroRelic::Tracker.new('path/to/config_file').track
21
+ ```
22
+
23
+ You can also log the methods that fail to load:
24
+
25
+ ```ruby
26
+
27
+ class CustomLogger
28
+
29
+ def log(message)
30
+ # do something with message
31
+ end
32
+
33
+ end
34
+
35
+ MetroRelic::Tracker.new('path/to/config_file', logger: CustomLogger.new).track
36
+
37
+ ```
38
+
39
+
40
+ ## Implementation
41
+ In your config file, you can track:
42
+
43
+ ### Class methods
44
+ Track class methods with `<class>.<method_name>`
45
+
46
+ Example:
47
+
48
+ ```
49
+ Foo.bar
50
+ Baz.bux
51
+ ```
52
+
53
+ **and**
54
+
55
+ ### Instance methods
56
+ Track instance methods with `<class>.<method_name>`
57
+
58
+ Example:
20
59
 
21
- TODO: Write usage instructions here
60
+ ```
61
+ Foo#bar
62
+ Baz#bux
63
+ ```
22
64
 
23
65
  ## Contributing
24
66
 
data/lib/metro_relic.rb CHANGED
@@ -87,7 +87,7 @@ module MetroRelic
87
87
  private
88
88
 
89
89
  def path=(path)
90
- @method_list = File.read(path).split("\n")
90
+ @method_list = File.read(path).split(/\n+/)
91
91
  end
92
92
 
93
93
  end
@@ -1,3 +1,3 @@
1
1
  module MetroRelic
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,2 +1,3 @@
1
1
  Foo#bar
2
+
2
3
  Foo.baz
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metro_relic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Farmer and Micah Cooper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-01 00:00:00.000000000 Z
11
+ date: 2013-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: newrelic_rpm