barnes 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +13 -0
  3. data/.travis.yml +5 -0
  4. data/CHANGELOG.md +7 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +2 -0
  7. data/MIT-LICENSE +21 -0
  8. data/README.md +47 -0
  9. data/Rakefile +12 -0
  10. data/barnes.gemspec +30 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/{Users/schneems/Documents/projects/barnes/init.rb → init.rb} +0 -0
  14. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes.rb +0 -0
  15. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/consts.rb +0 -0
  16. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/instruments/gctools_oobgc.rb +0 -0
  17. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/instruments/object_space_counter.rb +0 -0
  18. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/instruments/ree_gc.rb +0 -0
  19. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/instruments/ruby_gc.rb +0 -0
  20. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/instruments/stopwatch.rb +0 -0
  21. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/panel.rb +0 -0
  22. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/periodic.rb +0 -0
  23. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/railtie.rb +0 -0
  24. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/reporter.rb +0 -0
  25. data/{Users/schneems/Documents/projects/barnes/lib → lib}/barnes/resource_usage.rb +0 -0
  26. data/lib/barnes/version.rb +3 -0
  27. metadata +45 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 792cf56763f81f15c03c011831715db8ca2cfba96d28a413adf90a75b3b71c42
4
- data.tar.gz: 5097d1257807a9865e997e83b7bd8043f215a92a81189b48b98fe2c2716b43bf
3
+ metadata.gz: de99c6f2b74533e9f574176762af88e29a187aab2bb371521cc53c3745b3de00
4
+ data.tar.gz: e43273a0087e00bcffec458b2e9d2b8d615e77f72ecc85493e7b1de6b68ec418
5
5
  SHA512:
6
- metadata.gz: cf4f5bd62fa66a9b9cf4522949c3defa643aec1096321dadaa886b0c7b4377ffe84db129d7f5f036f4315c41c5363aa056d1dc14bbb3017bef68d985ef084476
7
- data.tar.gz: a7826f928b4a00fbda9642ba73c8223680173efa38239ab2b7d88f8766ae806bbcf7c88c6ad7d094d15120a435c9bbdb08a323e56bf47c18a08506c01974de11
6
+ metadata.gz: 3a856048db44608f358fabb0bbe22b8cd9148f13769a98824c7e7ddbfc8b90daa3cf66f072575e58d6e4cc7564e4e342c5b8003f7584c0ad56b079346302dbd8
7
+ data.tar.gz: 806baaec77677cc583494518ce52384754bf7f4fb5e98ea216c80eb17207c8888265b13c312c4307536b03a19656aa08508072564e38fc1d8f31ed08f7324151
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+ .DS_Store
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.0
5
+ before_install: gem install bundler -v 1.15.4
@@ -0,0 +1,7 @@
1
+ ## 0.0.2
2
+
3
+ - Fix requires for non-rails apps (#11)
4
+
5
+ ## 0.0.1
6
+
7
+ - Fork and Release
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at richard.schneeman@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2017 Salesforce
2
+ Copyright (c) 2009 37signals, LLC
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining
5
+ a copy of this software and associated documentation files (the
6
+ "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish,
8
+ distribute, sublicense, and/or sell copies of the Software, and to
9
+ permit persons to whom the Software is furnished to do so, subject to
10
+ the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,47 @@
1
+ ## Barnes - GC Statsd Reporter
2
+
3
+ A fork of [trashed](https://github.com/basecamp/trashed) focused on Ruby metrics for Heroku.
4
+
5
+ ## Setup
6
+
7
+ ### Rails 5
8
+
9
+ On Rails 5 (and Rails 3 and 4), add this to your Gemfile:
10
+
11
+ ```
12
+ gem "barnes"
13
+ ```
14
+
15
+ Then run:
16
+
17
+ ```
18
+ $ bundle install
19
+ ```
20
+
21
+ ### Non-Rails
22
+
23
+ Add the gem to the Gemfile
24
+
25
+ ```
26
+ gem "barnes"
27
+ ```
28
+
29
+ Then run:
30
+
31
+ ```
32
+ $ bundle install
33
+ ```
34
+
35
+ In your application:
36
+
37
+
38
+ ```ruby
39
+ require 'barnes'
40
+ ```
41
+
42
+ Then you'll need to start the client with default values:
43
+
44
+ ```ruby
45
+ Barnes.start
46
+ ```
47
+
@@ -0,0 +1,12 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ desc 'Default: run tests'
5
+ task :default => :test
6
+
7
+ desc 'Run tests'
8
+ Rake::TestTask.new :test do |t|
9
+ t.libs << 'test/lib'
10
+ t.pattern = 'test/*_test.rb'
11
+ t.verbose = true
12
+ end
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "barnes/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "barnes"
8
+ spec.version = Barnes::VERSION
9
+ spec.authors = ["schneems"]
10
+ spec.email = ["richard.schneeman@gmail.com"]
11
+
12
+ spec.summary = 'Ruby GC stats => StatsD'
13
+ spec.description = 'Report GC usage data to StatsD.'
14
+ spec.homepage = 'https://github.com/heroku/barnes'
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_runtime_dependency 'statsd-ruby', '~> 1.1'
25
+ spec.required_ruby_version = '>= 2.2.0'
26
+
27
+ spec.add_development_dependency 'rake', '~> 10'
28
+ spec.add_development_dependency 'minitest', '~> 5.3'
29
+ spec.add_development_dependency "bundler", "~> 1.15"
30
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "barnes"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ module Barnes
2
+ VERSION = "0.0.3"
3
+ end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barnes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - APG
7
+ - schneems
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2017-10-25 00:00:00.000000000 Z
12
12
  dependencies:
@@ -52,25 +52,53 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.15'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.15'
55
69
  description: Report GC usage data to StatsD.
56
- email: agwozdziewycz@salesforce.com
70
+ email:
71
+ - richard.schneeman@gmail.com
57
72
  executables: []
58
73
  extensions: []
59
74
  extra_rdoc_files: []
60
75
  files:
61
- - "/Users/schneems/Documents/projects/barnes/init.rb"
62
- - "/Users/schneems/Documents/projects/barnes/lib/barnes.rb"
63
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/consts.rb"
64
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/instruments/gctools_oobgc.rb"
65
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/instruments/object_space_counter.rb"
66
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/instruments/ree_gc.rb"
67
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/instruments/ruby_gc.rb"
68
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/instruments/stopwatch.rb"
69
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/panel.rb"
70
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/periodic.rb"
71
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/railtie.rb"
72
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/reporter.rb"
73
- - "/Users/schneems/Documents/projects/barnes/lib/barnes/resource_usage.rb"
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
+ - CHANGELOG.md
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - Gemfile.lock
82
+ - MIT-LICENSE
83
+ - README.md
84
+ - Rakefile
85
+ - barnes.gemspec
86
+ - bin/console
87
+ - bin/setup
88
+ - init.rb
89
+ - lib/barnes.rb
90
+ - lib/barnes/consts.rb
91
+ - lib/barnes/instruments/gctools_oobgc.rb
92
+ - lib/barnes/instruments/object_space_counter.rb
93
+ - lib/barnes/instruments/ree_gc.rb
94
+ - lib/barnes/instruments/ruby_gc.rb
95
+ - lib/barnes/instruments/stopwatch.rb
96
+ - lib/barnes/panel.rb
97
+ - lib/barnes/periodic.rb
98
+ - lib/barnes/railtie.rb
99
+ - lib/barnes/reporter.rb
100
+ - lib/barnes/resource_usage.rb
101
+ - lib/barnes/version.rb
74
102
  homepage: https://github.com/heroku/barnes
75
103
  licenses:
76
104
  - MIT