Skip to content

Commit 80df44c

Browse files
Import initial app_profiler gem
Signed-off-by: Jay Lim <jayching.lim@shopify.com>
0 parents  commit 80df44c

47 files changed

Lines changed: 2249 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/probots.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
enabled:
2+
- cla

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Ruby 2.6
11+
uses: actions/setup-ruby@v1
12+
with:
13+
ruby-version: 2.6.x
14+
- name: Build
15+
run: |
16+
gem install bundler
17+
bundle install --jobs 4 --retry 3
18+
- name: Test
19+
run: |
20+
bundle exec rake
21+
lint:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up Ruby 2.6
26+
uses: actions/setup-ruby@v1
27+
with:
28+
ruby-version: 2.6.x
29+
- name: Build
30+
run: |
31+
gem install bundler
32+
bundle install --jobs 4 --retry 3
33+
- name: Lint
34+
run: |
35+
bundle exec rubocop

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status
12+
13+
# Ignore RuboCop cache
14+
.rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml

.rubocop.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
inherit_from:
2+
- http://shopify.github.io/ruby-style-guide/rubocop.yml
3+
4+
require: rubocop-performance
5+
6+
AllCops:
7+
TargetRubyVersion: 2.6
8+
9+
Style/StringLiterals:
10+
EnforcedStyle: double_quotes

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
[Unreleased]: https://github.com/Shopify/app_profiler

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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 make participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and 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 within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be 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 opensource@shopify.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 https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing
2+
3+
Bug reports and pull requests are welcome on GitHub at https://github.com/Shopify/app_profiler.

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
source("https://rubygems.org")
4+
gemspec
5+
6+
# Specify the same dependency sources as the application Gemfile
7+
gem("activesupport", "~> 5.2")
8+
gem("railties", "~> 5.2")
9+
10+
gem("google-cloud-storage", "~> 1.21")
11+
gem("rubocop")
12+
gem("rubocop-performance")

Gemfile.lock

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
PATH
2+
remote: .
3+
specs:
4+
app_profiler (0.0.1)
5+
activesupport (>= 5.2)
6+
rack
7+
railties (>= 5.2)
8+
stackprof (~> 0.2)
9+
10+
GEM
11+
remote: https://rubygems.org/
12+
specs:
13+
actionpack (5.2.4)
14+
actionview (= 5.2.4)
15+
activesupport (= 5.2.4)
16+
rack (~> 2.0)
17+
rack-test (>= 0.6.3)
18+
rails-dom-testing (~> 2.0)
19+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
20+
actionview (5.2.4)
21+
activesupport (= 5.2.4)
22+
builder (~> 3.1)
23+
erubi (~> 1.4)
24+
rails-dom-testing (~> 2.0)
25+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
26+
activesupport (5.2.4)
27+
concurrent-ruby (~> 1.0, >= 1.0.2)
28+
i18n (>= 0.7, < 2)
29+
minitest (~> 5.1)
30+
tzinfo (~> 1.1)
31+
addressable (2.7.0)
32+
public_suffix (>= 2.0.2, < 5.0)
33+
ast (2.4.0)
34+
builder (3.2.4)
35+
concurrent-ruby (1.1.5)
36+
crass (1.0.5)
37+
declarative (0.0.10)
38+
declarative-option (0.1.0)
39+
digest-crc (0.4.1)
40+
erubi (1.9.0)
41+
faraday (0.17.1)
42+
multipart-post (>= 1.2, < 3)
43+
google-api-client (0.36.0)
44+
addressable (~> 2.5, >= 2.5.1)
45+
googleauth (~> 0.9)
46+
httpclient (>= 2.8.1, < 3.0)
47+
mini_mime (~> 1.0)
48+
representable (~> 3.0)
49+
retriable (>= 2.0, < 4.0)
50+
signet (~> 0.12)
51+
google-cloud-core (1.4.1)
52+
google-cloud-env (~> 1.0)
53+
google-cloud-env (1.3.0)
54+
faraday (~> 0.11)
55+
google-cloud-storage (1.25.0)
56+
addressable (~> 2.5)
57+
digest-crc (~> 0.4)
58+
google-api-client (~> 0.33)
59+
google-cloud-core (~> 1.2)
60+
googleauth (~> 0.9)
61+
mini_mime (~> 1.0)
62+
googleauth (0.10.0)
63+
faraday (~> 0.12)
64+
jwt (>= 1.4, < 3.0)
65+
memoist (~> 0.16)
66+
multi_json (~> 1.11)
67+
os (>= 0.9, < 2.0)
68+
signet (~> 0.12)
69+
httpclient (2.8.3)
70+
i18n (1.7.0)
71+
concurrent-ruby (~> 1.0)
72+
jaro_winkler (1.5.4)
73+
jwt (2.2.1)
74+
loofah (2.4.0)
75+
crass (~> 1.0.2)
76+
nokogiri (>= 1.5.9)
77+
memoist (0.16.2)
78+
method_source (0.9.2)
79+
mini_mime (1.0.2)
80+
mini_portile2 (2.4.0)
81+
minitest (5.13.0)
82+
minitest-stub-const (0.6)
83+
mocha (1.10.1)
84+
multi_json (1.14.1)
85+
multipart-post (2.1.1)
86+
nokogiri (1.10.7)
87+
mini_portile2 (~> 2.4.0)
88+
os (1.0.1)
89+
parallel (1.19.1)
90+
parser (2.6.5.0)
91+
ast (~> 2.4.0)
92+
public_suffix (4.0.1)
93+
rack (2.0.7)
94+
rack-test (1.1.0)
95+
rack (>= 1.0, < 3)
96+
rails-dom-testing (2.0.3)
97+
activesupport (>= 4.2.0)
98+
nokogiri (>= 1.6)
99+
rails-html-sanitizer (1.3.0)
100+
loofah (~> 2.3)
101+
railties (5.2.4)
102+
actionpack (= 5.2.4)
103+
activesupport (= 5.2.4)
104+
method_source
105+
rake (>= 0.8.7)
106+
thor (>= 0.19.0, < 2.0)
107+
rainbow (2.2.2)
108+
rake
109+
rake (13.0.1)
110+
representable (3.0.4)
111+
declarative (< 0.1.0)
112+
declarative-option (< 0.2.0)
113+
uber (< 0.2.0)
114+
retriable (3.1.2)
115+
rubocop (0.76.0)
116+
jaro_winkler (~> 1.5.1)
117+
parallel (~> 1.10)
118+
parser (>= 2.6)
119+
rainbow (>= 2.2.2, < 4.0)
120+
ruby-progressbar (~> 1.7)
121+
unicode-display_width (>= 1.4.0, < 1.7)
122+
rubocop-performance (1.4.1)
123+
rubocop (>= 0.71.0)
124+
ruby-progressbar (1.10.1)
125+
signet (0.12.0)
126+
addressable (~> 2.3)
127+
faraday (~> 0.9)
128+
jwt (>= 1.5, < 3.0)
129+
multi_json (~> 1.10)
130+
stackprof (0.2.15)
131+
thor (0.20.3)
132+
thread_safe (0.3.6)
133+
tzinfo (1.2.5)
134+
thread_safe (~> 0.1)
135+
uber (0.1.0)
136+
unicode-display_width (1.6.0)
137+
138+
PLATFORMS
139+
ruby
140+
141+
DEPENDENCIES
142+
activesupport (~> 5.2)
143+
app_profiler!
144+
bundler
145+
google-cloud-storage (~> 1.21)
146+
minitest
147+
minitest-stub-const (= 0.6)
148+
mocha
149+
railties (~> 5.2)
150+
rake
151+
rubocop
152+
rubocop-performance
153+
154+
BUNDLED WITH
155+
1.17.3

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Shopify Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

0 commit comments

Comments
 (0)