-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate static examples without api call [apm appveyor cdnjs clojars gem npm uptimerobot] #1740
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e2c930c
allow service classes to define a staticExample
chris48s ca4c1a0
define static example for cdnjs
chris48s 1c9305f
rename method
chris48s 48ab922
Merge branch 'master' into issue1700-a
chris48s af19ff0
encode special chars in URL
chris48s 35b6999
add tests
chris48s 687dda5
use a placeholder instead of a real name
chris48s 0e59399
update other new-style services to use static examples
chris48s 5b26ba1
update all-badge-examples test to expect static example
chris48s 6fae315
coding standards
chris48s 6bee4c4
use :param instead of PARAM
chris48s 960d600
clarify query params test
chris48s 23327ee
rename exampleUrl/Uri to placeholderUrl/Uri
chris48s f12351a
provide an example API call for badges using static example
chris48s 15edf9a
comment rot
chris48s 6de6da0
update legacy example to use :param instead of PARAM
chris48s 2688e18
coding standards
chris48s 56a9e0e
placeholderUri --> urlPattern
chris48s f5a0d06
placeholderUrl --> urlPattern
chris48s ded9cf2
add real-looking fake tokens
chris48s a663b1b
move render logic in gem rank badge
chris48s 29ae4b0
Merge branch 'master' into issue1700-a
chris48s b965a0f
fix conflict resolution error
chris48s 3b2446e
make example more clickable
chris48s c33e494
pass tag:undefined implicitly instead of explicitly
chris48s bee965b
pass counts as int instead of str
chris48s 1a5d94a
use existing function to build a label instead of hard-coding it
chris48s ad78f58
Merge branch 'master' into issue1700-a
chris48s File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Total aside: It would be helpful if instead of printing the classname, we printed the file where the class is defined. I wonder if we can do this by introspecting in the BaseService constructor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did something similar, to a different end, in #1934.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true, but I'm not sure we can use the same approach here.
caller()
returnsnull
in this contextThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, that makes sense.
I was thinking there would be a way to snag it when the class was defined, though there’s no code from the superclass that runs at that time. The filename could be identified and associated with the service class at the time the service module is loaded. It’d be kind of dirty but might still be worth doing. I’ll give it some thought.