BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
662bdfbe
Commit
662bdfbe
authored
Apr 18, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make StatGraph JS explicitly require its dependencies
This allows us to test them in a bit more isolation.
parent
d5c7b62b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
0 deletions
+14
-0
stat_graph_contributors.js.coffee
app/assets/javascripts/stat_graph_contributors.js.coffee
+4
-0
stat_graph_contributors_graph.js.coffee
...ssets/javascripts/stat_graph_contributors_graph.js.coffee
+4
-0
stat_graph_contributors_graph_spec.js
spec/javascripts/stat_graph_contributors_graph_spec.js
+2
-0
stat_graph_contributors_util_spec.js
spec/javascripts/stat_graph_contributors_util_spec.js
+2
-0
stat_graph_spec.js
spec/javascripts/stat_graph_spec.js
+2
-0
No files found.
app/assets/javascripts/stat_graph_contributors.js.coffee
View file @
662bdfbe
#= require d3
#= require jquery
#= require stat_graph_contributors_util
class
@
ContributorsStatGraph
init
:
(
log
)
->
@
parsed_log
=
ContributorsStatGraphUtil
.
parse_log
(
log
)
...
...
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
View file @
662bdfbe
#= require d3
#= require jquery
#= require underscore
class
@
ContributorsGraph
MARGIN
:
top
:
20
...
...
spec/javascripts/stat_graph_contributors_graph_spec.js
View file @
662bdfbe
//= require stat_graph_contributors_graph
describe
(
"ContributorsGraph"
,
function
()
{
describe
(
"#set_x_domain"
,
function
()
{
it
(
"set the x_domain"
,
function
()
{
...
...
spec/javascripts/stat_graph_contributors_util_spec.js
View file @
662bdfbe
//= require stat_graph_contributors_util
describe
(
"ContributorsStatGraphUtil"
,
function
()
{
describe
(
"#parse_log"
,
function
()
{
...
...
spec/javascripts/stat_graph_spec.js
View file @
662bdfbe
//= require stat_graph
describe
(
"StatGraph"
,
function
()
{
describe
(
"#get_log"
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment