cartilage 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDA0MTBiZjc1ZjljNTdjNzljMTUxNGE5NzM0NTQ0Mzg4MGI0MmFkZQ==
5
+ data.tar.gz: !binary |-
6
+ YjhmZGI5N2JkNmEwOGM1OWU4YjBmOGM1ZmE5MGY0ZWRhM2FlMzZlNg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NjdkOGRhMGZhZjNlZWI1NDVkMjFiYzhmNzM1N2M1MTU3MjdjOGFjZDg4YmMy
10
+ MmFkMjljNTNhNjVhNmYyZGM0ZjVhNGRmYjY0ZjJjMTY4ZTc2N2VjZTgyNTVh
11
+ MGM2OTk0MDA5YWY0MTcwNjAxMzNmNGM2NTY2YTQxZjUwMmYwNGI=
12
+ data.tar.gz: !binary |-
13
+ YTZhNTM0MWIzZjEwYTJhYzJmNmI3OTgwMDA1ZGMwZTliNThlNjUxNGZiMDFi
14
+ Njc1ZDAzYTBlN2Y2NDQ0MDQ2NmNlNzNkZGM4ZjI4OWYyZGZhOGRhZmU2ZTVj
15
+ MzEzMGM1Y2QzOTE0NWMzOTRhZWQ2NDA5NjlhNmJhNjEyYjJiMWM=
@@ -1,3 +1,3 @@
1
1
  module Cartilage
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -0,0 +1,40 @@
1
+ (function($) {
2
+
3
+ $.fn.centerPoint = function()
4
+ {
5
+ return {
6
+ x: this.position().left + (this.outerWidth(true) / 2),
7
+ y: this.position().top + (this.outerHeight(true) / 2)
8
+ };
9
+ };
10
+
11
+ $.fn.containsPoint = function(point)
12
+ {
13
+ var position = this.position(),
14
+ left = position.left,
15
+ top = position.top,
16
+ width = this.outerWidth(true),
17
+ height = this.outerHeight(true);
18
+
19
+ return (point.x >= left &&
20
+ point.x <= (left + width) &&
21
+ point.y >= top &&
22
+ point.y <= (top + height));
23
+ };
24
+
25
+ $.fn.overlapped = function(x, y, width, height)
26
+ {
27
+ var left = $(this).position().left,
28
+ top = $(this).position().top,
29
+ right = left + $(this).outerWidth(),
30
+ bottom = top + $(this).outerHeight();
31
+
32
+ return (((x >= left && x <= right) ||
33
+ (x + width >= left && x + width <= right) ||
34
+ (left >= x && left <= x + width)) &&
35
+ ((y >= top && y <= bottom) ||
36
+ (y + height >= top && y + height <= bottom) ||
37
+ (top >= y && top <= y + height)));
38
+ };
39
+
40
+ })(jQuery);
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartilage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Justin Mecham
@@ -12,12 +11,11 @@ authors:
12
11
  autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2013-03-18 00:00:00.000000000 Z
14
+ date: 2013-03-19 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: rails
19
18
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
19
  requirements:
22
20
  - - ~>
23
21
  - !ruby/object:Gem::Version
@@ -25,7 +23,6 @@ dependencies:
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
27
  - - ~>
31
28
  - !ruby/object:Gem::Version
@@ -33,7 +30,6 @@ dependencies:
33
30
  - !ruby/object:Gem::Dependency
34
31
  name: sass-rails
35
32
  requirement: !ruby/object:Gem::Requirement
36
- none: false
37
33
  requirements:
38
34
  - - ~>
39
35
  - !ruby/object:Gem::Version
@@ -41,7 +37,6 @@ dependencies:
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
41
  - - ~>
47
42
  - !ruby/object:Gem::Version
@@ -49,7 +44,6 @@ dependencies:
49
44
  - !ruby/object:Gem::Dependency
50
45
  name: bootstrap-sass
51
46
  requirement: !ruby/object:Gem::Requirement
52
- none: false
53
47
  requirements:
54
48
  - - ~>
55
49
  - !ruby/object:Gem::Version
@@ -57,7 +51,6 @@ dependencies:
57
51
  type: :runtime
58
52
  prerelease: false
59
53
  version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
54
  requirements:
62
55
  - - ~>
63
56
  - !ruby/object:Gem::Version
@@ -65,7 +58,6 @@ dependencies:
65
58
  - !ruby/object:Gem::Dependency
66
59
  name: ejs
67
60
  requirement: !ruby/object:Gem::Requirement
68
- none: false
69
61
  requirements:
70
62
  - - ~>
71
63
  - !ruby/object:Gem::Version
@@ -73,7 +65,6 @@ dependencies:
73
65
  type: :runtime
74
66
  prerelease: false
75
67
  version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
68
  requirements:
78
69
  - - ~>
79
70
  - !ruby/object:Gem::Version
@@ -81,7 +72,6 @@ dependencies:
81
72
  - !ruby/object:Gem::Dependency
82
73
  name: coffee-script
83
74
  requirement: !ruby/object:Gem::Requirement
84
- none: false
85
75
  requirements:
86
76
  - - ~>
87
77
  - !ruby/object:Gem::Version
@@ -89,7 +79,6 @@ dependencies:
89
79
  type: :runtime
90
80
  prerelease: false
91
81
  version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
82
  requirements:
94
83
  - - ~>
95
84
  - !ruby/object:Gem::Version
@@ -97,7 +86,6 @@ dependencies:
97
86
  - !ruby/object:Gem::Dependency
98
87
  name: eco
99
88
  requirement: !ruby/object:Gem::Requirement
100
- none: false
101
89
  requirements:
102
90
  - - ~>
103
91
  - !ruby/object:Gem::Version
@@ -105,7 +93,6 @@ dependencies:
105
93
  type: :runtime
106
94
  prerelease: false
107
95
  version_requirements: !ruby/object:Gem::Requirement
108
- none: false
109
96
  requirements:
110
97
  - - ~>
111
98
  - !ruby/object:Gem::Version
@@ -113,7 +100,6 @@ dependencies:
113
100
  - !ruby/object:Gem::Dependency
114
101
  name: backbone-rails
115
102
  requirement: !ruby/object:Gem::Requirement
116
- none: false
117
103
  requirements:
118
104
  - - ~>
119
105
  - !ruby/object:Gem::Version
@@ -121,7 +107,6 @@ dependencies:
121
107
  type: :runtime
122
108
  prerelease: false
123
109
  version_requirements: !ruby/object:Gem::Requirement
124
- none: false
125
110
  requirements:
126
111
  - - ~>
127
112
  - !ruby/object:Gem::Version
@@ -129,7 +114,6 @@ dependencies:
129
114
  - !ruby/object:Gem::Dependency
130
115
  name: jquery-rails
131
116
  requirement: !ruby/object:Gem::Requirement
132
- none: false
133
117
  requirements:
134
118
  - - ~>
135
119
  - !ruby/object:Gem::Version
@@ -137,7 +121,6 @@ dependencies:
137
121
  type: :runtime
138
122
  prerelease: false
139
123
  version_requirements: !ruby/object:Gem::Requirement
140
- none: false
141
124
  requirements:
142
125
  - - ~>
143
126
  - !ruby/object:Gem::Version
@@ -145,7 +128,6 @@ dependencies:
145
128
  - !ruby/object:Gem::Dependency
146
129
  name: coffee-rails
147
130
  requirement: !ruby/object:Gem::Requirement
148
- none: false
149
131
  requirements:
150
132
  - - ~>
151
133
  - !ruby/object:Gem::Version
@@ -153,7 +135,6 @@ dependencies:
153
135
  type: :runtime
154
136
  prerelease: false
155
137
  version_requirements: !ruby/object:Gem::Requirement
156
- none: false
157
138
  requirements:
158
139
  - - ~>
159
140
  - !ruby/object:Gem::Version
@@ -221,6 +202,7 @@ files:
221
202
  - lib/cartilage/version.rb
222
203
  - lib/cartilage.rb
223
204
  - lib/tasks/cartilage_tasks.rake
205
+ - vendor/assets/javascripts/jquery-points.js
224
206
  - MIT-LICENSE
225
207
  - Rakefile
226
208
  - README.markdown
@@ -284,33 +266,26 @@ files:
284
266
  - test/test_helper.rb
285
267
  homepage: http://cartilagejs.org
286
268
  licenses: []
269
+ metadata: {}
287
270
  post_install_message:
288
271
  rdoc_options: []
289
272
  require_paths:
290
273
  - lib
291
274
  required_ruby_version: !ruby/object:Gem::Requirement
292
- none: false
293
275
  requirements:
294
276
  - - ! '>='
295
277
  - !ruby/object:Gem::Version
296
278
  version: '0'
297
- segments:
298
- - 0
299
- hash: 1554801198245234290
300
279
  required_rubygems_version: !ruby/object:Gem::Requirement
301
- none: false
302
280
  requirements:
303
281
  - - ! '>='
304
282
  - !ruby/object:Gem::Version
305
283
  version: '0'
306
- segments:
307
- - 0
308
- hash: 1554801198245234290
309
284
  requirements: []
310
285
  rubyforge_project:
311
- rubygems_version: 1.8.23
286
+ rubygems_version: 2.0.3
312
287
  signing_key:
313
- specification_version: 3
288
+ specification_version: 4
314
289
  summary: Cartilage for Backbone.js
315
290
  test_files:
316
291
  - test/cartilage_test.rb