cornerstone-source 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/README.md +4 -5
- data/{cornerstone.gemspec → cornerstone-source.gemspec} +2 -2
- data/game.js +2 -3
- data/lib/cornerstone-source/rails.rb +7 -0
- data/lib/{cornerstone → cornerstone-source}/sprockets.rb +0 -0
- data/lib/cornerstone-source/version.rb +5 -0
- data/lib/cornerstone-source.rb +13 -0
- metadata +15 -15
- data/lib/cornerstone/rails.rb +0 -5
- data/lib/cornerstone/version.rb +0 -3
- data/lib/cornerstone.rb +0 -11
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
Cornerstone.coffee
|
2
2
|
=======
|
3
3
|
|
4
|
-
Cornerstone
|
4
|
+
Cornerstone is a JavaScript extension library that gives you the core classes you've always wanted. Fully tested and fully documented, Cornerstone runs in any JavaScript environment, from the browser to the server, or even on Xbox Live.
|
5
5
|
|
6
6
|
Array Extensions
|
7
7
|
----------------
|
8
8
|
|
9
|
-
|
9
|
+
Ruby's core library inspired the Cornerstone `Array` extensions. Staple methods include `each`, `remove`, `select`, and `include`. Fancier methods such as `partition`, `rand`, and `extremes` come in handy during game programming or web application development.
|
10
10
|
|
11
11
|
Number Extensions
|
12
12
|
-----------------
|
13
13
|
|
14
|
-
JavaScript
|
14
|
+
JavaScript's `Number` class provides many useful methods, but sometimes leaves us hanging. Cornerstone extends `Number.prototype` with `clamp`, `times`, and `abs`. It also provides the classic utilities `floor`, `ceil`, and `round`. For a little spice, try `primeFactors`, `toColorPart`, or a host of other great methods for approaching and modifying numbers, and see where your imagination takes you.
|
15
15
|
|
16
16
|
String Extensions
|
17
17
|
-----------------
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
Default JavaScript does a lot with `String`, but Cornerstone goes even further. Inspired by the Rails inflector, there are many methods to alter strings, such as `titleize`, `underscore`, and `humanize`. Methods like `parse` and `constantize` are especially powerful for metaprogramming.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require File.expand_path('../lib/cornerstone/version', __FILE__)
|
2
|
+
require File.expand_path('../lib/cornerstone-source/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Matt Diebolt", "Daniel X. Moore"]
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "cornerstone-source"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = Cornerstone::VERSION
|
16
|
+
gem.version = Cornerstone::Source::VERSION
|
17
17
|
|
18
18
|
gem.add_development_dependency "middleman", "~>3.0.0.beta.3"
|
19
19
|
gem.add_development_dependency "rb-inotify"
|
data/game.js
CHANGED
@@ -965,6 +965,8 @@ CommandStack = function() {
|
|
965
965
|
}
|
966
966
|
};
|
967
967
|
};
|
968
|
+
|
969
|
+
(typeof exports !== "undefined" && exports !== null ? exports : this)["CommandStack"] = CommandStack;
|
968
970
|
;
|
969
971
|
/**
|
970
972
|
The Core class is used to add extended functionality to objects without
|
@@ -4287,7 +4289,4 @@ Generate a random uuid.
|
|
4287
4289
|
}).toUpperCase();
|
4288
4290
|
};
|
4289
4291
|
})();;
|
4290
|
-
|
4291
|
-
|
4292
|
-
;
|
4293
4292
|
;
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "cornerstone-source/version"
|
2
|
+
|
3
|
+
# Sneaky require for Rails engine environment
|
4
|
+
if defined? ::Rails::Engine
|
5
|
+
require "cornerstone-source/rails"
|
6
|
+
elsif defined? ::Sprockets
|
7
|
+
require "cornerstone-source/sprockets"
|
8
|
+
end
|
9
|
+
|
10
|
+
module Cornerstone
|
11
|
+
module Source
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cornerstone-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-06-
|
13
|
+
date: 2012-06-02 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: middleman
|
17
|
-
requirement: &
|
17
|
+
requirement: &20258480 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.0.beta.3
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *20258480
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rb-inotify
|
28
|
-
requirement: &
|
28
|
+
requirement: &20257660 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *20257660
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: sass
|
39
|
-
requirement: &
|
39
|
+
requirement: &20256200 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *20256200
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: therubyracer
|
50
|
-
requirement: &
|
50
|
+
requirement: &20254960 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,7 +55,7 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *20254960
|
59
59
|
description: Cornerstone provides a solid foundation for working with JavaScript.
|
60
60
|
It aggressively shivs many of the core classes.
|
61
61
|
email:
|
@@ -71,14 +71,14 @@ files:
|
|
71
71
|
- Rakefile
|
72
72
|
- config.rb
|
73
73
|
- config.ru
|
74
|
-
- cornerstone.gemspec
|
74
|
+
- cornerstone-source.gemspec
|
75
75
|
- doc_scraper.rb
|
76
76
|
- game.js
|
77
77
|
- lib/assets/javascripts/cornerstone.js
|
78
|
-
- lib/cornerstone.rb
|
79
|
-
- lib/cornerstone/rails.rb
|
80
|
-
- lib/cornerstone/sprockets.rb
|
81
|
-
- lib/cornerstone/version.rb
|
78
|
+
- lib/cornerstone-source.rb
|
79
|
+
- lib/cornerstone-source/rails.rb
|
80
|
+
- lib/cornerstone-source/sprockets.rb
|
81
|
+
- lib/cornerstone-source/version.rb
|
82
82
|
- manifest.json
|
83
83
|
- pixie.json
|
84
84
|
- source/javascripts/_cornerstone/_object_extensions.js.coffee
|
data/lib/cornerstone/rails.rb
DELETED
data/lib/cornerstone/version.rb
DELETED
data/lib/cornerstone.rb
DELETED