exoskeleton 0.0.1 → 0.0.2

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWFjOWEyNjZkNjYzZGNhZGYzMWVjNzY5MTdjYmNhNjhkOGU3ZjljNA==
4
+ ODU4NGM1YjI0YTBjNDI4Y2M3MDFjOTQyY2U0MmNhNTljOTk1MjEzNg==
5
5
  data.tar.gz: !binary |-
6
- MjlmNzM5YjQyNWMyYzE3OGM4YmRiYzcwZmMyNDcxZDk2NjliMGFlNQ==
6
+ YzA5OTAwYWIyNzMyOWNhODNkZTgyZDNkYzcwMmRkZDkyNjk3OTZjNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODcwODcyOWI4YmJkYjhiNGI0OWRmYzgzNzBkOThjMWI3ZjFiZmQ4NzUyZjA0
10
- Y2Y3YTBlN2FhZDBjZWQ0YWQ2MTAzODJmOTFiYTJjYThmNWIxY2U1YjFmYmM1
11
- N2RkMDlkZTJhODU5YTEyNmM5YzM4ODk4YzQ1NzRhZTk3ZmU3MWQ=
9
+ ZDczOWU1ZDQ0NmMwMDE2MDI4NDU1NGYxOTg3ODkwNzMyYmQ1NmE0ZjFjZDYy
10
+ MzQ3MzI0ZWFjY2ZhYTQ1OGFkZTI3NzEyMjYyNDRmYzY3YjJlYmZkMmQ2MmJj
11
+ NTg5NjJiMWMyZGJiODAzMzY2NTUyMThkZmEyMDcxNWNkZmM3MDY=
12
12
  data.tar.gz: !binary |-
13
- MTU0YTIyNWUwM2JjZDk2NDI3MjJiZDAyMGQ2OGYzZGYzNzE5MTdjZjM3OTE0
14
- MzBjNTE3YThjOTRmZjc0ZGQxNGE2YTNmOThiYjRmM2IxYzUzNTE2ZDM1MzI3
15
- MDU4YmRlZmQ5ODExNzAxM2M3M2VjMWI5NTU5MThmNTdmZWFlNDE=
13
+ MDc1ODY5YTNiNmRmMjZmZmNlZThiZWJiNWE1MjFhY2MxMGRiNzE4M2I1YjMw
14
+ MTg0OWIwMmI3MmQ2YmVlOWY1ZjY1MGFkYTVmNzljMmQzYzgxNjEzMDhhNmY1
15
+ MmI3M2RkOTU0MjE5YjdiZGRkNzhjNmUyMzkwY2EwOGMxZjIxZmU=
data/README.md CHANGED
@@ -29,15 +29,15 @@ Add the following to `application.js` before `//= require_tree .`:
29
29
 
30
30
  //= require exoskeleton
31
31
  //= require ./YOUR_APP_NAME
32
- //= require_tree ./views
33
- //= require_tree ../templates
32
+ //= require_tree ./backbone/views
33
+ //= require_tree ./backbone/templates
34
34
 
35
- Then build the folder structure to hold all of your awesome Backbone. We use the following structure:
35
+ Then build the folder structure to hold all of your awesome Backbone. We use the following structure that can be built easily using the [backbone-rails](https://github.com/codebrew/backbone-rails) gem
36
36
 
37
- app/assets/javascripts/views
38
- app/assets/javascripts/models
39
- app/assets/javascripts/collections
40
- app/assets/templates
37
+ app/assets/javascripts/backbone/views
38
+ app/assets/javascripts/backbone/models
39
+ app/assets/javascripts/backbone/collections
40
+ app/assets/javascripts/backbone/templates
41
41
 
42
42
  Create base javascript file `app/assets/javascripts/YOUR_APP_NAME.js` with the following content:
43
43
 
@@ -2,21 +2,16 @@ class MyJstProcessor < Sprockets::JstProcessor
2
2
  def prepare
3
3
  @namespace = "this.#{Rails.application.config.exoskeleton_base}.templates"
4
4
  end
5
- #def evaluate(scope, locals, &block)
6
- # puts scope.inspect
7
- # if scope.logical_path.start_with? 'exoskeleton'
8
- # namespace_name = 'this.exoskeleton.templates'
9
- # else
10
- # namespace_name = 'this.testing.templates'
11
- # end
12
- # name = scope.logical_path.inspect
13
- #
14
- # <<-JST
15
- # (function() {
16
- # #{namespace_name} || (#{namespace_name} = {});
17
- # #{namespace_name}[#{name}] = #{indent(data)};
18
- # }).call(this);
19
- # JST
20
- #end
5
+ def evaluate(scope, locals, &block)
6
+ existing_path = scope.logical_path.inspect
7
+ new_path = existing_path.gsub 'backbone/templates/', ''
8
+
9
+ <<-JST
10
+ (function() {
11
+ #{namespace} || (#{namespace} = {});
12
+ #{namespace}[#{new_path}] = #{indent(data)};
13
+ }).call(this);
14
+ JST
15
+ end
21
16
  end
22
17
 
@@ -1,3 +1,3 @@
1
1
  module Exoskeleton
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exoskeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Hopp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-07 00:00:00.000000000 Z
11
+ date: 2013-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails