my-simon 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore.orig +55 -0
- data/DOC/Launch Check List.docx +0 -0
- data/DOC/Launch Check List.pdf +0 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +44 -0
- data/LICENSE.txt +20 -0
- data/README.md +21 -0
- data/README.rdoc +19 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/build/rakefile.rb +12 -0
- data/config.rb +24 -0
- data/lib/simon.rb +0 -5
- data/my-simon.gemspec +141 -0
- data/scaffolding/simon/controller.tpl +9 -0
- data/scaffolding/simon/model.tpl +10 -0
- data/scaffolding/simon/view.tpl +5 -0
- data/scaffolding/standards/html_template.html +44 -0
- data/scaffolding/standards/html_template.php +44 -0
- data/scaffolding/standards/jquery_plugin_template.js +45 -0
- data/scaffolding/standards/js_template.js +43 -0
- data/simon +282 -0
- data/test/helper.rb +18 -0
- data/test/test_simon.rb +7 -0
- data/www/.htaccess +488 -0
- data/www/404.html +32 -0
- data/www/crossdomain.xml +25 -0
- data/www/favicon.ico +0 -0
- data/www/index.php +17 -0
- data/www/lib/js/homePage.js +43 -0
- data/www/lib/js/jquery/JQbook.js +809 -0
- data/www/lib/js/jquery/jquery-1.8.0.min.js +27 -0
- data/www/lib/js/jquery/jquery.alphanumeric.js +82 -0
- data/www/lib/js/jquery/jquery.cookie.js +96 -0
- data/www/lib/js/jquery/jquery.easing.1.3.js +207 -0
- data/www/lib/js/main.js +117 -0
- data/www/lib/js/master.js +6 -0
- data/www/lib/js/plugins/handlebars-1.0.rc.1.js +1920 -0
- data/www/lib/js/plugins/modernizr-1.7.min.js +2 -0
- data/www/lib/js/plugins/swfobject.js +777 -0
- data/www/lib/js/plugins_mod/README.txt +3 -0
- data/www/lib/php/app.php +53 -0
- data/www/lib/php/controller/index.php +10 -0
- data/www/lib/php/controller/regex.php +23 -0
- data/www/lib/php/model/Book.php +8 -0
- data/www/lib/php/model/Model.php +8 -0
- data/www/lib/php/plugins/php-activerecord/ActiveRecord.php +44 -0
- data/www/lib/php/plugins/php-activerecord/lib/CallBack.php +226 -0
- data/www/lib/php/plugins/php-activerecord/lib/Column.php +155 -0
- data/www/lib/php/plugins/php-activerecord/lib/Config.php +288 -0
- data/www/lib/php/plugins/php-activerecord/lib/Connection.php +456 -0
- data/www/lib/php/plugins/php-activerecord/lib/ConnectionManager.php +38 -0
- data/www/lib/php/plugins/php-activerecord/lib/DateTime.php +45 -0
- data/www/lib/php/plugins/php-activerecord/lib/Exceptions.php +137 -0
- data/www/lib/php/plugins/php-activerecord/lib/Expressions.php +183 -0
- data/www/lib/php/plugins/php-activerecord/lib/Inflector.php +115 -0
- data/www/lib/php/plugins/php-activerecord/lib/Model.php +1673 -0
- data/www/lib/php/plugins/php-activerecord/lib/Reflections.php +86 -0
- data/www/lib/php/plugins/php-activerecord/lib/Relationship.php +637 -0
- data/www/lib/php/plugins/php-activerecord/lib/SQLBuilder.php +396 -0
- data/www/lib/php/plugins/php-activerecord/lib/Serialization.php +302 -0
- data/www/lib/php/plugins/php-activerecord/lib/Singleton.php +57 -0
- data/www/lib/php/plugins/php-activerecord/lib/Table.php +547 -0
- data/www/lib/php/plugins/php-activerecord/lib/Utils.php +351 -0
- data/www/lib/php/plugins/php-activerecord/lib/Validations.php +833 -0
- data/www/lib/php/plugins/php-activerecord/lib/adapters/MysqlAdapter.php +73 -0
- data/www/lib/php/plugins/php-activerecord/lib/adapters/OciAdapter.php +121 -0
- data/www/lib/php/plugins/php-activerecord/lib/adapters/PgsqlAdapter.php +104 -0
- data/www/lib/php/plugins/php-activerecord/lib/adapters/SqliteAdapter.php +81 -0
- data/www/lib/php/system/Config.php +174 -0
- data/www/lib/php/system/config.routes.php +29 -0
- data/www/lib/php/system/router.php +220 -0
- data/www/lib/php/template/footer.php +59 -0
- data/www/lib/php/template/header.php +74 -0
- data/www/lib/php/view/index.php +5 -0
- data/www/media/images/facebook_share.jpg +0 -0
- data/www/robots.txt +5 -0
- data/www/sandbox/readme.txt +3 -0
- data/www/sass/javascript.scss +1 -0
- data/www/sass/layout.scss +128 -0
- data/www/sass/master.scss +4 -0
- data/www/sass/reset.scss +47 -0
- data/www/sass/typography.scss +24 -0
- data/www/styles/javascript.css +1 -0
- data/www/styles/layout.css +186 -0
- data/www/styles/master.css +4 -0
- data/www/styles/reset.css +60 -0
- data/www/styles/typography.css +24 -0
- metadata +179 -7
data/.document
ADDED
data/.gitignore.orig
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
<<<<<<< HEAD
|
2
|
+
# rcov generated
|
3
|
+
coverage
|
4
|
+
coverage.data
|
5
|
+
|
6
|
+
# rdoc generated
|
7
|
+
rdoc
|
8
|
+
|
9
|
+
# yard generated
|
10
|
+
doc
|
11
|
+
.yardoc
|
12
|
+
|
13
|
+
# bundler
|
14
|
+
.bundle
|
15
|
+
|
16
|
+
# jeweler generated
|
17
|
+
pkg
|
18
|
+
|
19
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
20
|
+
#
|
21
|
+
# * Create a file at ~/.gitignore
|
22
|
+
# * Include files you want ignored
|
23
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
24
|
+
#
|
25
|
+
# After doing this, these files will be ignored in all your git projects,
|
26
|
+
# saving you from having to 'pollute' every project you touch with them
|
27
|
+
#
|
28
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
29
|
+
#
|
30
|
+
# For MacOS:
|
31
|
+
#
|
32
|
+
#.DS_Store
|
33
|
+
|
34
|
+
# For TextMate
|
35
|
+
#*.tmproj
|
36
|
+
#tmtags
|
37
|
+
|
38
|
+
# For emacs:
|
39
|
+
#*~
|
40
|
+
#\#*
|
41
|
+
#.\#*
|
42
|
+
|
43
|
+
# For vim:
|
44
|
+
#*.swp
|
45
|
+
|
46
|
+
# For redcar:
|
47
|
+
#.redcar
|
48
|
+
|
49
|
+
# For rubinius:
|
50
|
+
#*.rbc
|
51
|
+
=======
|
52
|
+
.svn
|
53
|
+
bin
|
54
|
+
obj
|
55
|
+
>>>>>>> eea8fe7d3aefd5e9133f7eccdf27b697b971347f
|
Binary file
|
Binary file
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "shoulda", ">= 0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler"
|
12
|
+
gem "jeweler", "~> 1.8.4"
|
13
|
+
gem 'simplecov'
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.2.11)
|
5
|
+
i18n (~> 0.6)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
bourne (1.1.2)
|
8
|
+
mocha (= 0.10.5)
|
9
|
+
git (1.2.5)
|
10
|
+
i18n (0.6.1)
|
11
|
+
jeweler (1.8.4)
|
12
|
+
bundler (~> 1.0)
|
13
|
+
git (>= 1.2.5)
|
14
|
+
rake
|
15
|
+
rdoc
|
16
|
+
json (1.7.6)
|
17
|
+
metaclass (0.0.1)
|
18
|
+
mocha (0.10.5)
|
19
|
+
metaclass (~> 0.0.1)
|
20
|
+
multi_json (1.5.0)
|
21
|
+
rake (10.0.3)
|
22
|
+
rdoc (3.12)
|
23
|
+
json (~> 1.4)
|
24
|
+
shoulda (3.3.2)
|
25
|
+
shoulda-context (~> 1.0.1)
|
26
|
+
shoulda-matchers (~> 1.4.1)
|
27
|
+
shoulda-context (1.0.2)
|
28
|
+
shoulda-matchers (1.4.2)
|
29
|
+
activesupport (>= 3.0.0)
|
30
|
+
bourne (~> 1.1.2)
|
31
|
+
simplecov (0.7.1)
|
32
|
+
multi_json (~> 1.0)
|
33
|
+
simplecov-html (~> 0.7.1)
|
34
|
+
simplecov-html (0.7.1)
|
35
|
+
|
36
|
+
PLATFORMS
|
37
|
+
ruby
|
38
|
+
|
39
|
+
DEPENDENCIES
|
40
|
+
bundler
|
41
|
+
jeweler (~> 1.8.4)
|
42
|
+
rdoc (~> 3.12)
|
43
|
+
shoulda
|
44
|
+
simplecov
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Aaron McGuire
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Simon
|
2
|
+
=====
|
3
|
+
|
4
|
+
Simple PHP MVC Boilerplate
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
Using Simon to setup the boilerplate
|
9
|
+
```php
|
10
|
+
./simon setup
|
11
|
+
```
|
12
|
+
|
13
|
+
Using Simon to add a new Section
|
14
|
+
```php
|
15
|
+
./simon add section
|
16
|
+
```
|
17
|
+
|
18
|
+
Using Simon to add a remote repository (via beanstalkapp)
|
19
|
+
```php
|
20
|
+
./simon add repo
|
21
|
+
```
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= simon
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to simon
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2013 Aaron McGuire. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
|
5
|
+
require 'rake'
|
6
|
+
|
7
|
+
require 'jeweler'
|
8
|
+
Jeweler::Tasks.new do |gem|
|
9
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
10
|
+
gem.name = "my-simon"
|
11
|
+
gem.homepage = "http://github.com/samcreate/simon"
|
12
|
+
gem.license = "MIT"
|
13
|
+
gem.summary = "CLI tool for Simon"
|
14
|
+
gem.description = "CLI tool for Simon, the simple PHP project boilerplate!"
|
15
|
+
gem.email = "aaron.mcguire@evb.com"
|
16
|
+
gem.authors = ["Aaron McGuire"]
|
17
|
+
# dependencies defined in Gemfile
|
18
|
+
end
|
19
|
+
Jeweler::RubygemsDotOrgTasks.new
|
20
|
+
|
21
|
+
|
22
|
+
require 'rake/testtask'
|
23
|
+
Rake::TestTask.new(:test) do |test|
|
24
|
+
test.libs << 'lib' << 'test'
|
25
|
+
test.pattern = 'test/**/test_*.rb'
|
26
|
+
test.verbose = true
|
27
|
+
end
|
28
|
+
|
29
|
+
# Rcov::RcovTask.new do |test|
|
30
|
+
# test.libs << 'test'
|
31
|
+
# test.pattern = 'test/**/test_*.rb'
|
32
|
+
# test.verbose = true
|
33
|
+
# test.rcov_opts << '--exclude "gems/*"'
|
34
|
+
# end
|
35
|
+
|
36
|
+
task :default => :test
|
37
|
+
|
38
|
+
require 'rdoc/task'
|
39
|
+
Rake::RDocTask.new do |rdoc|
|
40
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
41
|
+
|
42
|
+
rdoc.rdoc_dir = 'rdoc'
|
43
|
+
rdoc.title = "simon #{version}"
|
44
|
+
rdoc.rdoc_files.include('README*')
|
45
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
46
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/build/rakefile.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
task :build do
|
2
|
+
puts "Building CSS"
|
3
|
+
sh 'juicer merge ../www/styles/master.css -o ../www/styles/evbmaster-min.css --force'
|
4
|
+
puts "Building JS"
|
5
|
+
sh 'juicer merge -i ../www/lib/js/master.js -o ../www/lib/js/evbmaster-min.js --force'
|
6
|
+
puts "Building CSS Mobile"
|
7
|
+
sh 'juicer merge ../www/mobile/styles/master.css -o ../www/mobile/styles/evbmaster-min.css --force'
|
8
|
+
puts "Building JS Mobile"
|
9
|
+
sh 'juicer merge -i ../www/mobile/lib/js/master.js -o ../www/mobile/lib/js/evbmaster-min.js --force'
|
10
|
+
end
|
11
|
+
|
12
|
+
|
data/config.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Require any additional compass plugins here.
|
2
|
+
|
3
|
+
# Set this to the root of your project when deployed:
|
4
|
+
http_path = "/"
|
5
|
+
css_dir = "www/styles"
|
6
|
+
sass_dir = "www/sass"
|
7
|
+
images_dir = "www/media/images"
|
8
|
+
javascripts_dir = "www/lib/js"
|
9
|
+
|
10
|
+
# You can select your preferred output style here (can be overridden via the command line):
|
11
|
+
# output_style = :expanded or :nested or :compact or :compressed
|
12
|
+
|
13
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
14
|
+
# relative_assets = true
|
15
|
+
|
16
|
+
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
17
|
+
# line_comments = false
|
18
|
+
|
19
|
+
|
20
|
+
# If you prefer the indented syntax, you might want to regenerate this
|
21
|
+
# project again passing --syntax sass, or you can uncomment this:
|
22
|
+
# preferred_syntax = :sass
|
23
|
+
# and then run:
|
24
|
+
# sass-convert -R --from scss --to sass www/sass scss && rm -rf sass && mv scss sass
|
data/lib/simon.rb
CHANGED
data/my-simon.gemspec
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "my-simon"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Aaron McGuire"]
|
12
|
+
s.date = "2013-02-03"
|
13
|
+
s.description = "CLI tool for Simon, the simple PHP project boilerplate!"
|
14
|
+
s.email = "aaron.mcguire@evb.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
".gitignore.orig",
|
23
|
+
"DOC/Launch Check List.docx",
|
24
|
+
"DOC/Launch Check List.pdf",
|
25
|
+
"Gemfile",
|
26
|
+
"Gemfile.lock",
|
27
|
+
"LICENSE.txt",
|
28
|
+
"README.md",
|
29
|
+
"README.rdoc",
|
30
|
+
"Rakefile",
|
31
|
+
"VERSION",
|
32
|
+
"build/rakefile.rb",
|
33
|
+
"config.rb",
|
34
|
+
"lib/simon.rb",
|
35
|
+
"my-simon.gemspec",
|
36
|
+
"scaffolding/simon/controller.tpl",
|
37
|
+
"scaffolding/simon/model.tpl",
|
38
|
+
"scaffolding/simon/view.tpl",
|
39
|
+
"scaffolding/standards/html_template.html",
|
40
|
+
"scaffolding/standards/html_template.php",
|
41
|
+
"scaffolding/standards/jquery_plugin_template.js",
|
42
|
+
"scaffolding/standards/js_template.js",
|
43
|
+
"simon",
|
44
|
+
"test/helper.rb",
|
45
|
+
"test/test_simon.rb",
|
46
|
+
"www/.htaccess",
|
47
|
+
"www/404.html",
|
48
|
+
"www/crossdomain.xml",
|
49
|
+
"www/favicon.ico",
|
50
|
+
"www/index.php",
|
51
|
+
"www/lib/js/homePage.js",
|
52
|
+
"www/lib/js/jquery/JQbook.js",
|
53
|
+
"www/lib/js/jquery/jquery-1.8.0.min.js",
|
54
|
+
"www/lib/js/jquery/jquery.alphanumeric.js",
|
55
|
+
"www/lib/js/jquery/jquery.cookie.js",
|
56
|
+
"www/lib/js/jquery/jquery.easing.1.3.js",
|
57
|
+
"www/lib/js/main.js",
|
58
|
+
"www/lib/js/master.js",
|
59
|
+
"www/lib/js/plugins/handlebars-1.0.rc.1.js",
|
60
|
+
"www/lib/js/plugins/modernizr-1.7.min.js",
|
61
|
+
"www/lib/js/plugins/swfobject.js",
|
62
|
+
"www/lib/js/plugins_mod/README.txt",
|
63
|
+
"www/lib/php/app.php",
|
64
|
+
"www/lib/php/controller/index.php",
|
65
|
+
"www/lib/php/controller/regex.php",
|
66
|
+
"www/lib/php/model/Book.php",
|
67
|
+
"www/lib/php/model/Model.php",
|
68
|
+
"www/lib/php/plugins/php-activerecord/ActiveRecord.php",
|
69
|
+
"www/lib/php/plugins/php-activerecord/lib/CallBack.php",
|
70
|
+
"www/lib/php/plugins/php-activerecord/lib/Column.php",
|
71
|
+
"www/lib/php/plugins/php-activerecord/lib/Config.php",
|
72
|
+
"www/lib/php/plugins/php-activerecord/lib/Connection.php",
|
73
|
+
"www/lib/php/plugins/php-activerecord/lib/ConnectionManager.php",
|
74
|
+
"www/lib/php/plugins/php-activerecord/lib/DateTime.php",
|
75
|
+
"www/lib/php/plugins/php-activerecord/lib/Exceptions.php",
|
76
|
+
"www/lib/php/plugins/php-activerecord/lib/Expressions.php",
|
77
|
+
"www/lib/php/plugins/php-activerecord/lib/Inflector.php",
|
78
|
+
"www/lib/php/plugins/php-activerecord/lib/Model.php",
|
79
|
+
"www/lib/php/plugins/php-activerecord/lib/Reflections.php",
|
80
|
+
"www/lib/php/plugins/php-activerecord/lib/Relationship.php",
|
81
|
+
"www/lib/php/plugins/php-activerecord/lib/SQLBuilder.php",
|
82
|
+
"www/lib/php/plugins/php-activerecord/lib/Serialization.php",
|
83
|
+
"www/lib/php/plugins/php-activerecord/lib/Singleton.php",
|
84
|
+
"www/lib/php/plugins/php-activerecord/lib/Table.php",
|
85
|
+
"www/lib/php/plugins/php-activerecord/lib/Utils.php",
|
86
|
+
"www/lib/php/plugins/php-activerecord/lib/Validations.php",
|
87
|
+
"www/lib/php/plugins/php-activerecord/lib/adapters/MysqlAdapter.php",
|
88
|
+
"www/lib/php/plugins/php-activerecord/lib/adapters/OciAdapter.php",
|
89
|
+
"www/lib/php/plugins/php-activerecord/lib/adapters/PgsqlAdapter.php",
|
90
|
+
"www/lib/php/plugins/php-activerecord/lib/adapters/SqliteAdapter.php",
|
91
|
+
"www/lib/php/system/Config.php",
|
92
|
+
"www/lib/php/system/config.routes.php",
|
93
|
+
"www/lib/php/system/router.php",
|
94
|
+
"www/lib/php/template/footer.php",
|
95
|
+
"www/lib/php/template/header.php",
|
96
|
+
"www/lib/php/view/index.php",
|
97
|
+
"www/media/images/facebook_share.jpg",
|
98
|
+
"www/robots.txt",
|
99
|
+
"www/sandbox/readme.txt",
|
100
|
+
"www/sass/javascript.scss",
|
101
|
+
"www/sass/layout.scss",
|
102
|
+
"www/sass/master.scss",
|
103
|
+
"www/sass/reset.scss",
|
104
|
+
"www/sass/typography.scss",
|
105
|
+
"www/styles/javascript.css",
|
106
|
+
"www/styles/layout.css",
|
107
|
+
"www/styles/master.css",
|
108
|
+
"www/styles/reset.css",
|
109
|
+
"www/styles/typography.css"
|
110
|
+
]
|
111
|
+
s.homepage = "http://github.com/samcreate/simon"
|
112
|
+
s.licenses = ["MIT"]
|
113
|
+
s.require_paths = ["lib"]
|
114
|
+
s.rubygems_version = "1.8.23"
|
115
|
+
s.summary = "CLI tool for Simon"
|
116
|
+
|
117
|
+
if s.respond_to? :specification_version then
|
118
|
+
s.specification_version = 3
|
119
|
+
|
120
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
121
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
122
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
123
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
124
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
125
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
126
|
+
else
|
127
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
128
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
129
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
130
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
131
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
132
|
+
end
|
133
|
+
else
|
134
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
135
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
136
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
137
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
138
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
// ======================================================================================
|
4
|
+
// = Model template for active record http://www.phpactiverecord.org/projects/main/wiki =
|
5
|
+
// ======================================================================================
|
6
|
+
class %name% extends ActiveRecord\Model {
|
7
|
+
|
8
|
+
}
|
9
|
+
|
10
|
+
?>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<?php
|
2
|
+
require_once 'lib/php/Config.php';
|
3
|
+
$settings = Config::getInstance();
|
4
|
+
|
5
|
+
?>
|
6
|
+
<!doctype html>
|
7
|
+
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
|
8
|
+
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
|
9
|
+
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
|
10
|
+
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
11
|
+
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
|
12
|
+
<head>
|
13
|
+
<?php
|
14
|
+
require_once 'lib/php/includes/html_header.php';
|
15
|
+
?>
|
16
|
+
</head>
|
17
|
+
<body environment="<?php echo $settings->environment ?>" cdn_path="<?php echo $settings->cdn_path ?>" serviceURL="<?php echo $settings->base_url?>" >
|
18
|
+
<div id="PageWrapper">
|
19
|
+
<header>
|
20
|
+
<h1>
|
21
|
+
<a href="#">CHANGE_ME</a>
|
22
|
+
</h1>
|
23
|
+
</header>
|
24
|
+
|
25
|
+
<div id="MainContent" role="main">
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<footer>
|
30
|
+
|
31
|
+
</footer>
|
32
|
+
</div>
|
33
|
+
<!--[if lt IE 7 ]>
|
34
|
+
<script src="lib/js/plugins/dd_belatedpng.js"></script>
|
35
|
+
<script> DD_belatedPNG.fix('img, .png_bg');</script>
|
36
|
+
<![endif]-->
|
37
|
+
<script>
|
38
|
+
var _gaq=[['_setAccount','<?php echo $settings->analytics_id; ?>'],['_trackPageview']]; // Change UA-XXXXX-X to be your site's ID
|
39
|
+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
|
40
|
+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
41
|
+
s.parentNode.insertBefore(g,s)}(document,'script'));
|
42
|
+
</script>
|
43
|
+
</body>
|
44
|
+
</html>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<?php
|
2
|
+
require_once 'lib/php/Config.php';
|
3
|
+
$settings = Config::getInstance();
|
4
|
+
|
5
|
+
?>
|
6
|
+
<!doctype html>
|
7
|
+
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
|
8
|
+
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
|
9
|
+
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
|
10
|
+
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
11
|
+
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
|
12
|
+
<head>
|
13
|
+
<?php
|
14
|
+
require_once 'lib/php/includes/html_header.php';
|
15
|
+
?>
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<div id="PageWrapper">
|
19
|
+
<header>
|
20
|
+
<h1>
|
21
|
+
<a href="#">CHANGE_ME</a>
|
22
|
+
</h1>
|
23
|
+
</header>
|
24
|
+
|
25
|
+
<div id="MainContent" role="main">
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<footer>
|
30
|
+
|
31
|
+
</footer>
|
32
|
+
</div>
|
33
|
+
<!--[if lt IE 7 ]>
|
34
|
+
<script src="lib/js/plugins/dd_belatedpng.js"></script>
|
35
|
+
<script> DD_belatedPNG.fix('img, .png_bg');</script>
|
36
|
+
<![endif]-->
|
37
|
+
<script>
|
38
|
+
var _gaq=[['_setAccount','<?php echo $settings->analytics_id; ?>'],['_trackPageview']]; // Change UA-XXXXX-X to be your site's ID
|
39
|
+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
|
40
|
+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
41
|
+
s.parentNode.insertBefore(g,s)}(document,'script'));
|
42
|
+
</script>
|
43
|
+
</body>
|
44
|
+
</html>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
(function($) {
|
2
|
+
|
3
|
+
$.pluginName = function(element, options) {
|
4
|
+
|
5
|
+
var defaults = {
|
6
|
+
foo: 'bar',
|
7
|
+
onFoo: function() {}
|
8
|
+
}
|
9
|
+
|
10
|
+
var plugin = this;
|
11
|
+
|
12
|
+
plugin.settings = {}
|
13
|
+
|
14
|
+
var $element = $(element),
|
15
|
+
element = element;
|
16
|
+
|
17
|
+
plugin.init = function() {
|
18
|
+
plugin.settings = $.extend({}, defaults, options);
|
19
|
+
// code goes here
|
20
|
+
}
|
21
|
+
|
22
|
+
plugin.foo_public_method = function() {
|
23
|
+
// code goes here
|
24
|
+
}
|
25
|
+
|
26
|
+
var foo_private_method = function() {
|
27
|
+
// code goes here
|
28
|
+
}
|
29
|
+
|
30
|
+
plugin.init();
|
31
|
+
|
32
|
+
}
|
33
|
+
|
34
|
+
$.fn.pluginName = function(options) {
|
35
|
+
|
36
|
+
return this.each(function() {
|
37
|
+
if (undefined == $(this).data('pluginName')) {
|
38
|
+
var plugin = new $.pluginName(this, options);
|
39
|
+
$(this).data('pluginName', plugin);
|
40
|
+
}
|
41
|
+
});
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
})(jQuery);
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/*! CLASS_NAME class
|
2
|
+
* Put javascript plugin depedencies below (see main.js for an exmaple)
|
3
|
+
* @depends jquery/jquery-1.8.0.min.js
|
4
|
+
*/
|
5
|
+
var CHANGE_ME = CHANGE_ME || {};
|
6
|
+
CHANGE_ME.CLASS_NAME = function(){
|
7
|
+
// =================================================
|
8
|
+
// = Private variables (example: var _foo = bar; ) =
|
9
|
+
// =================================================
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
// =================================================
|
14
|
+
// = public functions =
|
15
|
+
// =================================================
|
16
|
+
var self = {
|
17
|
+
|
18
|
+
init : function(){
|
19
|
+
|
20
|
+
debug.group("# [CLASS_NAME.js]");
|
21
|
+
|
22
|
+
debug.log('- initialized');
|
23
|
+
|
24
|
+
//--> sof private functions
|
25
|
+
|
26
|
+
//--> eof private functions
|
27
|
+
|
28
|
+
debug.groupEnd();
|
29
|
+
|
30
|
+
}
|
31
|
+
|
32
|
+
};
|
33
|
+
|
34
|
+
return self;
|
35
|
+
|
36
|
+
// ================================================
|
37
|
+
// = Private functionse (function _private() {} ) =
|
38
|
+
// ================================================
|
39
|
+
|
40
|
+
}();
|
41
|
+
//CHANGE_ME.main.queue(CHANGE_ME.CLASS_NAME.init);
|
42
|
+
|
43
|
+
|