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 CHANGED
@@ -13,7 +13,7 @@ doc/
13
13
  docs/
14
14
  lib/bundler/man
15
15
  lib/assets/test.html
16
- lib/assets/cornerstone_tests.js
16
+ lib/assets/javascripts/cornerstone_tests.js
17
17
  pkg
18
18
  rdoc
19
19
  spec/reports
data/README.md CHANGED
@@ -1,20 +1,19 @@
1
1
  Cornerstone.coffee
2
2
  =======
3
3
 
4
- Cornerstone.coffee is a JavaScript extension library that gives you the core classes that you've always wanted. Cornerstone is fully tested and fully documented and runs in any JavaScript environment, from the browser to the server, even on Xbox Live.
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
- The array extensions are inspired by Ruby's core library. Simple things like `each`, `remove`, `select`, and `include` are the staples. Fancier methods such as `partition`, `rand`, and `extremes` often come in handy during game programming.
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 is a language that allows for `Number` to provide many useful methods, but leaves us hanging. Cornerstone extends Number.prototype with the ever-popular `clamp`, `times`, and `abs`. It also provides the classic utilities `floor`, `ceil`, and `round`. But that's just the beginning, there are many more including `primeFactors`.
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
- String is one of the classes that default JavaScript does the most with, but why stop there. Inspired by the Rails inflector, there are many methods provided to alter strings such as `titleize`, `underscore`, and `humanize`. Some especially powerful methods like `parse` and `constantize` will no doubt come in handy.
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
  ;
@@ -0,0 +1,7 @@
1
+ module Cornerstone
2
+ module Source
3
+ class Rails < Rails::Engine
4
+ # auto wire assets
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Cornerstone
2
+ module Source
3
+ VERSION = "0.1.2"
4
+ end
5
+ end
@@ -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.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-01 00:00:00.000000000Z
13
+ date: 2012-06-02 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: middleman
17
- requirement: &9815040 !ruby/object:Gem::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: *9815040
25
+ version_requirements: *20258480
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rb-inotify
28
- requirement: &9814040 !ruby/object:Gem::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: *9814040
36
+ version_requirements: *20257660
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: sass
39
- requirement: &9812940 !ruby/object:Gem::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: *9812940
47
+ version_requirements: *20256200
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: therubyracer
50
- requirement: &9812000 !ruby/object:Gem::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: *9812000
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
@@ -1,5 +0,0 @@
1
- module Cornerstone
2
- class Rails < Rails::Engine
3
- # auto wire assets
4
- end
5
- end
@@ -1,3 +0,0 @@
1
- module Cornerstone
2
- VERSION = "0.1.1"
3
- end
data/lib/cornerstone.rb DELETED
@@ -1,11 +0,0 @@
1
- require "cornerstone/version"
2
-
3
- # Sneaky require for Rails engine environment
4
- if defined? ::Rails::Engine
5
- require "cornerstone/rails"
6
- elsif defined? ::Sprockets
7
- require "cornerstone/sprockets"
8
- end
9
-
10
- module Cornerstone
11
- end