diff options
| author | Matthew Bergman <[email protected]> | 2014-05-05 00:36:40 -0400 |
|---|---|---|
| committer | Matthew Bergman <[email protected]> | 2014-05-05 00:36:40 -0400 |
| commit | 4cd2837454068fff8193ed0db9d73cb20b3f0fb5 (patch) | |
| tree | abe8a4cd001febb979feb04fb3402d0c25e81b11 | |
| parent | a83ddb7946f3b3283b362080cf7d4b8733131cf5 (diff) | |
| parent | 272cd8e1e1fa7a504326b3f3ed5cd75151429977 (diff) | |
| download | faker-4cd2837454068fff8193ed0db9d73cb20b3f0fb5.tar.xz faker-4cd2837454068fff8193ed0db9d73cb20b3f0fb5.zip | |
Merge pull request #81 from hkal/auto_increment_copyright_year
auto-increment copyright year in docs
| -rwxr-xr-x | BUILD/BUILD.js | 3 | ||||
| -rw-r--r-- | BUILD/docs.js | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/BUILD/BUILD.js b/BUILD/BUILD.js index 04ea8364..dc3063a0 100755 --- a/BUILD/BUILD.js +++ b/BUILD/BUILD.js @@ -11,6 +11,7 @@ var docs = {}; docs.main = ''; docs.API = ''; +docs.copyrightYear = new Date().getFullYear(); // read in the the main.js file as our main boilerplate code code += fs.readFileSync('./main.js', encoding = 'utf8'); @@ -82,7 +83,7 @@ fs.writeFile('../examples/js/Faker.js', code, function() { sys.puts("Faker.js generated successfully!"); }); -var docOutput = M.Mustache.to_html(docs.main, {"API": docs.API}); +var docOutput = M.Mustache.to_html(docs.main, {"API": docs.API, "copyrightYear": docs.copyrightYear}); // generate some samples sets (move this code to another section) fs.writeFile('../Readme.md', docOutput, function() { diff --git a/BUILD/docs.js b/BUILD/docs.js index 31aea417..f8ce7d82 100644 --- a/BUILD/docs.js +++ b/BUILD/docs.js @@ -40,7 +40,7 @@ You can view a code coverage report generated in coverage/lcov-report/index.html Heavily inspired by Benjamin Curtis's Ruby Gem [Faker](http://faker.rubyforge.org/) and Perl's [Data::Faker](http://search.cpan.org/~jasonk/Data-Faker-0.07/lib/Data/Faker.pm) <br/> -Copyright (c) 2010 Matthew Bergman & Marak Squires http://github.com/marak/Faker.js/ +Copyright (c) {{copyrightYear}} Matthew Bergman & Marak Squires http://github.com/marak/Faker.js/ <br/> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the |
