tagenjs 0.0.1

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.
@@ -0,0 +1,18 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "tagenjs"
3
+ s.version = "0.0.1"
4
+ s.summary = "An extension to javascript"
5
+ s.description = <<-EOF
6
+ An extension to JavaScript
7
+ EOF
8
+
9
+ s.author = "Guten"
10
+ s.email = "ywzhaifei"
11
+ s.homepage = "http://github.com/GutenYe/tagenjs"
12
+ s.rubyforge_project = "xx"
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ #s.executables = ["x"]
16
+
17
+ #s.add_dependency "x"
18
+ end
@@ -0,0 +1,140 @@
1
+ /* ===========================================================================
2
+ BPM Combined Asset File
3
+ MANIFEST: tagen (0.0.1)
4
+ This file is generated automatically by the bpm (http://www.bpmjs.org)
5
+ =========================================================================*/
6
+
7
+ (function() {
8
+ Array.prototype.equals = function(arr) {
9
+ var i, _ref;
10
+ if (this.length !== arr.length) {
11
+ return false;
12
+ }
13
+ for (i = 0, _ref = this.length; 0 <= _ref ? i < _ref : i > _ref; 0 <= _ref ? i++ : i--) {
14
+ if (this[i].equals) {
15
+ if (!this[i].equals(arr[i])) {
16
+ return false;
17
+ } else {
18
+ continue;
19
+ }
20
+ }
21
+ if (this[i] !== arr[i]) {
22
+ return false;
23
+ }
24
+ }
25
+ return true;
26
+ };
27
+ Array.prototype.contains = function(x) {
28
+ var i, _ref;
29
+ for (i = 0, _ref = this.length; 0 <= _ref ? i < _ref : i > _ref; 0 <= _ref ? i++ : i--) {
30
+ if (this[i] === x) {
31
+ return true;
32
+ }
33
+ }
34
+ return false;
35
+ };
36
+ Array.prototype.random = function() {
37
+ var i;
38
+ i = Math.random() * this.length;
39
+ return this[Math.floor(i)];
40
+ };
41
+ Array.prototype.isEmpty = function() {
42
+ return this.length === 0;
43
+ };
44
+ }).call(this);
45
+ (function() {
46
+
47
+ }).call(this);
48
+ (function() {
49
+ Math.mod = function(val, mod) {
50
+ if (val < 0) {
51
+ while (val < 0) {
52
+ val += mod;
53
+ }
54
+ return val;
55
+ } else {
56
+ return val % mod;
57
+ }
58
+ };
59
+ }).call(this);
60
+ (function() {
61
+ Number.max = function(a, b) {
62
+ if (a < b) {
63
+ return b;
64
+ } else {
65
+ return a;
66
+ }
67
+ };
68
+ Number.min = function(a, b) {
69
+ if (a > b) {
70
+ return b;
71
+ } else {
72
+ return a;
73
+ }
74
+ };
75
+ }).call(this);
76
+ (function() {
77
+ String.prototype.toInteger = function() {
78
+ return parseInt(this);
79
+ };
80
+ String.prototype.pluralize = function() {
81
+ return "" + this + "s";
82
+ };
83
+ String.prototype.capitalize = function() {
84
+ return this.charAt(0).toUpperCase() + this.slice(1);
85
+ };
86
+ String.prototype.chop = function() {
87
+ if (this.length === 0) {
88
+ return "";
89
+ } else {
90
+ return this.substring(0, this.length - 1);
91
+ }
92
+ };
93
+ String.prototype.endsWith = function(str) {
94
+ return this.length - str.length === this.lastIndexOf(str);
95
+ };
96
+ String.prototype.reverse = function() {
97
+ var i, s;
98
+ s = "";
99
+ i = this.length;
100
+ while (i > 0) {
101
+ s += this.substring(i - 1, i);
102
+ i--;
103
+ }
104
+ return s;
105
+ };
106
+ String.prototype.isEmpty = function() {
107
+ return this.length === 0;
108
+ };
109
+ }).call(this);
110
+ (function() {
111
+ window.pd = function() {
112
+ var _ref;
113
+ if ((_ref = pd.history) == null) {
114
+ pd.history = [];
115
+ }
116
+ pd.history.push(arguments);
117
+ if (this.console) {
118
+ arguments.callee = arguments.callee.caller;
119
+ return console.log(Array.prototype.slice.call(arguments));
120
+ }
121
+ };
122
+ window.getInnerWidth = function() {
123
+ if (window.innerWidth) {
124
+ return window.innerWidth;
125
+ } else if (document.body.clientWidth) {
126
+ return document.body.clientWidth;
127
+ } else if (document.documentElement.clientWidth) {
128
+ return document.documentElement.clientWidth;
129
+ }
130
+ };
131
+ window.getInnerHeight = function() {
132
+ if (window.innerHeight) {
133
+ return window.innerHeight;
134
+ } else if (document.body.clientHeight) {
135
+ return document.body.clientHeight;
136
+ } else if (document.documentElement.clientHeight) {
137
+ return document.documentElement.clientHeight;
138
+ }
139
+ };
140
+ }).call(this);
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tagenjs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Guten
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-10-22 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: ! 'An extension to JavaScript
15
+
16
+ '
17
+ email: ywzhaifei
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - tagenjs.gemspec
23
+ - vendor/assets/javascripts/tagenjs.js
24
+ homepage: http://github.com/GutenYe/tagenjs
25
+ licenses: []
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubyforge_project: xx
44
+ rubygems_version: 1.8.10
45
+ signing_key:
46
+ specification_version: 3
47
+ summary: An extension to javascript
48
+ test_files: []