peteshow 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/.gitignore +8 -0
- data/Gemfile +3 -0
- data/Gruntfile.js +96 -0
- data/README.md +28 -0
- data/dist/peteshow.css +1 -0
- data/dist/peteshow.js +1289 -0
- data/dist/peteshow.min.js +7 -0
- data/lib/assets/javascripts/peteshow.js +1289 -0
- data/lib/assets/javascripts/peteshow.min.js +7 -0
- data/lib/assets/stylesheets/peteshow.css +1 -0
- data/lib/peteshow/config.rb +9 -0
- data/lib/peteshow/engine.rb +4 -0
- data/lib/peteshow/helpers.rb +17 -0
- data/lib/peteshow/railtie.rb +18 -0
- data/lib/peteshow.rb +16 -0
- data/license.txt +20 -0
- data/package.json +43 -0
- data/peteshow.gemspec +17 -0
- data/src/css/peteshow.css +147 -0
- data/src/peteshow-core.js +240 -0
- data/src/peteshow-helpers.js +60 -0
- data/src/peteshow.js +29 -0
- data/tests/index.html +58 -0
- data/tests/suite/core.js +49 -0
- data/tests/suite/helpers.js +18 -0
- data/tests/suite/keybindings.js +13 -0
- data/vendor/faker.js +731 -0
- data/vendor/jquery.formatdatetime.js +225 -0
- data/vendor/peteshow.plugin.js +33 -0
- data/vendor/qunit/jquery.js +4 -0
- data/vendor/qunit/qunit.css +237 -0
- data/vendor/qunit/qunit.js +2288 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZTkxNWJlMzIxZjA3ODgyNmJkZGMxYTYzMmU4NzhiMjBhYzkwMzE3Yw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZTBkYTlhYjA5NWQwZmNiM2QyMmRmYTZjYjBlODE3YmQ3ZjAxZjE4OQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Njc2M2IwYmYwOGU3NWRlMmQzZmYzMDY4NDc5ZTRkNjViMDQwODZiMTg1MWU4
|
10
|
+
MzZlZGRlOGJlYmVkYWYyYzA0MmViYzlhNjNkZjNlZTE4YTdjMDJhM2QzOTE5
|
11
|
+
YzUwNzg5OTY4NTY5ODU5ZmMwZTQ2MTJmZDY2YmU2NWZiM2RmZDU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ODRlNTlmZjQ2Mjc5OGUxMzA5N2M3NTczODEzZjk0ZjhlMDNkMTkwNmUyM2Fm
|
14
|
+
ZDVmOTAxZWIzMzI5Yzc4Nzc5ZTdmNjFlZGQ3OTNmMjRkOTU3ZjVjYzhhMTA3
|
15
|
+
MjFlOGJiYmMwNzMwMzA1YTZkODRlZTA0ODJjMzI2ZmRjOWU0ZGY=
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gruntfile.js
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
/* globals module */
|
2
|
+
module.exports = function(grunt) {
|
3
|
+
|
4
|
+
// Project configuration
|
5
|
+
grunt.initConfig({
|
6
|
+
pkg: grunt.file.readJSON('package.json'),
|
7
|
+
|
8
|
+
connect: {
|
9
|
+
server: {
|
10
|
+
options: {
|
11
|
+
keepalive: true,
|
12
|
+
port: 3000
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
|
17
|
+
meta: {
|
18
|
+
depFiles : [
|
19
|
+
'vendor/faker.js',
|
20
|
+
'vendor/jquery.formatdatetime.js'
|
21
|
+
],
|
22
|
+
|
23
|
+
srcFiles : [
|
24
|
+
'src/peteshow.js',
|
25
|
+
'src/peteshow-helpers.js',
|
26
|
+
'src/peteshow-core.js'
|
27
|
+
]
|
28
|
+
},
|
29
|
+
|
30
|
+
concat: {
|
31
|
+
options: {
|
32
|
+
separator: '\n'
|
33
|
+
},
|
34
|
+
dist: {
|
35
|
+
src: [
|
36
|
+
'<%= meta.depFiles %>',
|
37
|
+
'<%= meta.srcFiles %>'
|
38
|
+
],
|
39
|
+
dest: 'dist/<%= pkg.name %>.js'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
|
43
|
+
cssmin: {
|
44
|
+
min_peteshow_css: {
|
45
|
+
src: 'src/css/peteshow.css', dest: 'dist/peteshow.css',
|
46
|
+
}
|
47
|
+
},
|
48
|
+
|
49
|
+
clean: {
|
50
|
+
dist: ['dist/*'],
|
51
|
+
rails: ['lib/assets/javascripts/*', 'lib/assets/stylesheets/*']
|
52
|
+
},
|
53
|
+
|
54
|
+
copy: {
|
55
|
+
dist: {
|
56
|
+
files: [
|
57
|
+
{ cwd: 'dist', src: 'peteshow.js', dest: 'lib/assets/javascripts', expand: true, flatten: true, filter: 'isFile' },
|
58
|
+
{ cwd: 'dist', src: 'peteshow.min.js', dest: 'lib/assets/javascripts', expand: true, flatten: true, filter: 'isFile' },
|
59
|
+
{ cwd: 'dist', src: 'peteshow.css', dest: 'lib/assets/stylesheets', expand: true, flatten: true, filter: 'isFile' }
|
60
|
+
]
|
61
|
+
}
|
62
|
+
},
|
63
|
+
|
64
|
+
uglify: {
|
65
|
+
options: {
|
66
|
+
banner: '/**\n' +
|
67
|
+
' * ' + 'Peteshow - <%= pkg.homepage %>\n' +
|
68
|
+
' * ' + '<%= pkg.author.name %> @brousalis\n' +
|
69
|
+
' * ' + 'v<%= pkg.version %>\n' +
|
70
|
+
' **/\n'
|
71
|
+
},
|
72
|
+
|
73
|
+
my_target: {
|
74
|
+
files: {
|
75
|
+
'dist/peteshow.min.js': ['dist/peteshow.js']
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
|
80
|
+
qunit: {
|
81
|
+
all: ['tests/*.html']
|
82
|
+
}
|
83
|
+
});
|
84
|
+
|
85
|
+
grunt.loadNpmTasks('grunt-contrib-watch');
|
86
|
+
grunt.loadNpmTasks('grunt-contrib-uglify');
|
87
|
+
grunt.loadNpmTasks('grunt-contrib-concat');
|
88
|
+
grunt.loadNpmTasks('grunt-contrib-connect');
|
89
|
+
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
90
|
+
grunt.loadNpmTasks('grunt-contrib-copy');
|
91
|
+
grunt.loadNpmTasks('grunt-contrib-clean');
|
92
|
+
grunt.loadNpmTasks('grunt-contrib-qunit');
|
93
|
+
|
94
|
+
grunt.registerTask('default', ['qunit', 'concat', 'uglify', 'cssmin', 'copy']);
|
95
|
+
grunt.registerTask('test', 'qunit');
|
96
|
+
};
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Peteshow
|
2
|
+
|
3
|
+
Peteshow is a javascript plugin for filling out forms with fake data for testing purposes. You can configure the functionality by creating a custom plugin.
|
4
|
+
|
5
|
+

|
6
|
+
|
7
|
+

|
8
|
+
|
9
|
+
|
10
|
+
## Getting Started
|
11
|
+
See the [Wiki on GitHub](https://github.com/brousalis/peteshow/wiki) for documentation.
|
12
|
+
|
13
|
+
- [Setup](https://github.com/brousalis/peteshow/wiki/Setup)
|
14
|
+
- [Usage](https://github.com/brousalis/peteshow/wiki/Usage)
|
15
|
+
- [Custom plugins](https://github.com/brousalis/peteshow/wiki/Custom-plugins)
|
16
|
+
- [Customization](https://github.com/brousalis/peteshow/wiki/Customization)
|
17
|
+
- [Plugin example](https://github.com/brousalis/peteshow/wiki/Plugin-example)
|
18
|
+
- [Change log](https://github.com/brousalis/peteshow/wiki/Change-log)
|
19
|
+
|
20
|
+
Also specific pages for frameworks:
|
21
|
+
- [Ruby on Rails](https://github.com/brousalis/peteshow/wiki/Ruby-on-Rails-gem)
|
22
|
+
|
23
|
+
### Further notes
|
24
|
+
[](http://www.enova.com)
|
25
|
+
|
26
|
+
Developed by [Pete Brousalis](http://twitter.com/brousalis) in his spare time for use at [Enova](http://www.enova.com/) in Chicago, IL.
|
27
|
+
|
28
|
+
Special thanks to Matthew Bergman & Marak Squires for [Faker.js](http://github.com/marak/Faker.js/), and Adam Gschwender for [jquery.formatDateTime](https://github.com/agschwender/jquery.formatDateTime), both included with Peteshow.
|
data/dist/peteshow.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
#peteshow{position:fixed;font-family:'Helvetica Neue',Tahoma;color:#fff;top:0;left:0;padding:0;text-align:left;z-index:9001;font-size:13px;background:#000;background:rgba(0,0,0,.85);text-shadow:none;width:60px;transition:width .2s ease}#peteshow.active{width:200px}#peteshow.active #peteshow-toggle i{right:10px;border-left:0;border-right-width:6px;border-right-style:solid;border-right-color:#fff}#peteshow.active #peteshow-toggle:before{content:'PETESHOW'}#peteshow-toggle{color:#fff;text-decoration:none;font-weight:700;display:block;padding:5px 10px;position:relative}#peteshow-toggle:before{content:'PS'}#peteshow-toggle i{border-style:dashed;display:-moz-inline-box;display:inline-block;font-size:10px;height:0;line-height:0;position:relative;vertical-align:middle;width:0;position:absolute;right:3px;border-color:transparent;border-width:5px;border-left-width:6px;border-left-style:solid;border-left-color:#fff;top:9px;margin:0}#peteshow-tools{display:none;color:#fff;transition:all 1s ease}#peteshow-tools a{text-shadow:none;display:block;color:#999;font-weight:700;text-decoration:none;text-transform:capitalize;height:1%}#peteshow-tools a:link,#peteshow-tools a:visited{display:block;color:#999;padding:5px 10px;text-decoration:none;text-transform:capitalize;height:1%}#peteshow-tools a:hover{background:#000;color:#FFF;text-decoration:none}#peteshow-tools a:active{height:1%}#peteshow-tools ul{list-style:none;padding:0;margin:0}#peteshow-tools ul li{display:block;border-top:1px dotted #666}#peteshow-tools ul li.list{padding:5px 10px 10px;font-size:12px;overflow:hidden;color:#aaa}#peteshow-tools ul li.list:hover{overflow:visible}#peteshow-tools ul li.list:before,#peteshow-tools ul li.list:after{content:" ";display:table}#peteshow-tools ul li.list:after{clear:both}#peteshow-tools ul li.list div{display:block;white-space:nowrap}#peteshow-tools ul li.list span{display:inline-block;margin-left:15px}#peteshow-tools ul li.list:before{content:'Stored:';display:block;font-size:13px;margin-bottom:3px;color:#999}#peteshow-tools ul li .inner{background:rgba(0,0,0,.9);padding:3px 5px;z-index:100;position:relative;float:left}@media (max-width:768px){#peteshow{position:absolute;width:100%;top:0}#peteshow.active{width:100%}}
|