modularity-rails 0.15.0 → 0.16.0
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.
- data/{LICENSE → MIT-LICENSE} +0 -0
- data/README.md +16 -15
- data/Rakefile +3 -14
- data/{vendor → app}/assets/javascripts/modularity/data/ajax_loader.coffee +0 -0
- data/{vendor → app}/assets/javascripts/modularity/data/cache.coffee +5 -0
- data/{vendor → app}/assets/javascripts/modularity/data/indexed_cache.coffee +8 -2
- data/{vendor → app}/assets/javascripts/modularity/data/persistence_manager.coffee +11 -0
- data/{vendor → app}/assets/javascripts/modularity/mixins/clickable.coffee +2 -2
- data/{vendor → app}/assets/javascripts/modularity/mixins/closable.coffee +0 -0
- data/{vendor/assets/javascripts/modularity.js.coffee → app/assets/javascripts/modularity/modularity.coffee} +3 -0
- data/{vendor → app}/assets/javascripts/modularity/modules/autogrow_textarea.coffee +2 -1
- data/{vendor → app}/assets/javascripts/modularity/modules/button.coffee +0 -0
- data/{vendor → app}/assets/javascripts/modularity/tools/array_tools.coffee +1 -0
- data/{vendor → app}/assets/javascripts/modularity/tools/object_tools.coffee +0 -0
- data/config/initializers/konacha.rb +6 -0
- data/lib/modularity-rails.rb +0 -1
- data/lib/modularity-rails/engine.rb +1 -0
- data/lib/modularity-rails/version.rb +1 -1
- metadata +80 -100
- data/.evergreen +0 -6
- data/.gitignore +0 -20
- data/.travis.yml +0 -8
- data/Gemfile +0 -4
- data/Guardfile +0 -8
- data/demo/.gitignore +0 -15
- data/demo/Gemfile +0 -23
- data/demo/README.rdoc +0 -261
- data/demo/Rakefile +0 -7
- data/demo/app/assets/images/rails.png +0 -0
- data/demo/app/assets/javascripts/application.coffee +0 -2
- data/demo/app/assets/stylesheets/application.css +0 -13
- data/demo/app/controllers/application_controller.rb +0 -3
- data/demo/app/helpers/application_helper.rb +0 -2
- data/demo/app/mailers/.gitkeep +0 -0
- data/demo/app/models/.gitkeep +0 -0
- data/demo/app/views/layouts/application.html.erb +0 -14
- data/demo/config.ru +0 -4
- data/demo/config/application.rb +0 -59
- data/demo/config/boot.rb +0 -6
- data/demo/config/database.yml +0 -25
- data/demo/config/environment.rb +0 -5
- data/demo/config/environments/development.rb +0 -37
- data/demo/config/environments/production.rb +0 -67
- data/demo/config/environments/test.rb +0 -37
- data/demo/config/initializers/backtrace_silencers.rb +0 -7
- data/demo/config/initializers/inflections.rb +0 -15
- data/demo/config/initializers/konacha.rb +0 -5
- data/demo/config/initializers/mime_types.rb +0 -5
- data/demo/config/initializers/secret_token.rb +0 -7
- data/demo/config/initializers/session_store.rb +0 -8
- data/demo/config/initializers/wrap_parameters.rb +0 -14
- data/demo/config/locales/en.yml +0 -5
- data/demo/config/routes.rb +0 -58
- data/demo/db/seeds.rb +0 -7
- data/demo/lib/assets/.gitkeep +0 -0
- data/demo/lib/tasks/.gitkeep +0 -0
- data/demo/log/.gitkeep +0 -0
- data/demo/public/404.html +0 -26
- data/demo/public/422.html +0 -26
- data/demo/public/500.html +0 -25
- data/demo/public/favicon.ico +0 -0
- data/demo/public/index.html +0 -241
- data/demo/public/robots.txt +0 -5
- data/demo/script/rails +0 -6
- data/demo/spec/javascripts/data/ajax_loader_spec.coffee +0 -132
- data/demo/spec/javascripts/data/cache_spec.coffee +0 -103
- data/demo/spec/javascripts/data/indexed_cache_spec.coffee +0 -51
- data/demo/spec/javascripts/data/persistence_manager_spec.coffee +0 -283
- data/demo/spec/javascripts/konacha_config.coffee +0 -2
- data/demo/spec/javascripts/mixins/closable_spec.coffee +0 -98
- data/demo/spec/javascripts/modularity_spec.coffee +0 -329
- data/demo/spec/javascripts/modules/autogrow_textarea_spec.coffee +0 -43
- data/demo/spec/javascripts/modules/button_spec.coffee +0 -39
- data/demo/spec/javascripts/modules/counter_button_spec.coffee +0 -57
- data/demo/spec/javascripts/sinon-chai.js +0 -116
- data/demo/spec/javascripts/sinon.js +0 -3555
- data/demo/spec/javascripts/spec_helper.coffee +0 -10
- data/demo/spec/javascripts/templates/autogrow_textarea.jst.ejs +0 -2
- data/demo/spec/javascripts/templates/button.jst.ejs +0 -3
- data/demo/spec/javascripts/templates/closable.jst.ejs +0 -14
- data/demo/spec/javascripts/templates/modularity.jst.ejs +0 -6
- data/demo/spec/javascripts/tools/array_tools_spec.coffee +0 -12
- data/demo/spec/javascripts/tools/object_tools_spec.coffee +0 -46
- data/demo/vendor/assets/javascripts/.gitkeep +0 -0
- data/demo/vendor/assets/stylesheets/.gitkeep +0 -0
- data/demo/vendor/plugins/.gitkeep +0 -0
- data/modularity-rails.gemspec +0 -22
- data/run_tests +0 -6
- data/vendor/assets/javascripts/modularity/modules/counter_button.coffee +0 -17
data/{LICENSE → MIT-LICENSE}
RENAMED
File without changes
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Modularity::Rails [](https://travis-ci.org/kevgo/modularity-rails)
|
2
2
|
|
3
3
|
Makes the [Modularity CoffeeScript](http://github.com/kevgo/modularity-coffeescript) library and related modules available to
|
4
4
|
Rails 3.1 applications.
|
@@ -16,7 +16,7 @@ out of well structured and reusable components. It scales very well with complex
|
|
16
16
|
# Installation
|
17
17
|
|
18
18
|
Load modularity in your application's Gemfile:
|
19
|
-
|
19
|
+
|
20
20
|
```ruby
|
21
21
|
gem 'modularity-rails'
|
22
22
|
```
|
@@ -39,20 +39,20 @@ The easiest way is to add it to `application.coffee`:
|
|
39
39
|
# Usage
|
40
40
|
|
41
41
|
Modularity is a lightweight framework for building powerful AJAX applications.
|
42
|
-
Modularity avoids magic and heavyness. It focusses on providing a pragmatic and interoperable foundation
|
43
|
-
for clean hand-written code bases.
|
44
|
-
Modularity provides practices to create code bases of incredible complexity that are still
|
45
|
-
nicely manageable and perform very well.
|
42
|
+
Modularity avoids magic and heavyness. It focusses on providing a pragmatic and interoperable foundation
|
43
|
+
for clean hand-written code bases.
|
44
|
+
Modularity provides practices to create code bases of incredible complexity that are still
|
45
|
+
nicely manageable and perform very well.
|
46
46
|
|
47
47
|
|
48
48
|
## Modules
|
49
49
|
|
50
|
-
Modules are native CoffeeScript classes that are specialized for doing what most JavaScript running in browsers does:
|
51
|
-
managing a UI consisting of DOM elements, reacting to events that happen within that section,
|
50
|
+
Modules are native CoffeeScript classes that are specialized for doing what most JavaScript running in browsers does:
|
51
|
+
managing a UI consisting of DOM elements, reacting to events that happen within that section,
|
52
52
|
representing application logic specific to that section, and providing high-level APIs for others to interact with the section.
|
53
53
|
|
54
|
-
Each module has a container. The container is the outermost DOM element of a section.
|
55
|
-
Everything the module does must happen inside this container.
|
54
|
+
Each module has a container. The container is the outermost DOM element of a section.
|
55
|
+
Everything the module does must happen inside this container.
|
56
56
|
The module is responsible for managing the inner DOM-structure of the container.
|
57
57
|
|
58
58
|
|
@@ -66,7 +66,7 @@ myMixin =
|
|
66
66
|
# This will be called when an instance of a class that includes this mixin is created.
|
67
67
|
constructor: ->
|
68
68
|
|
69
|
-
# This method will be available in every class that includes
|
69
|
+
# This method will be available in every class that includes
|
70
70
|
myMethod: ->
|
71
71
|
|
72
72
|
|
@@ -75,7 +75,7 @@ class MyModule extends Module
|
|
75
75
|
@mixin myMixin
|
76
76
|
|
77
77
|
constructor: (container) ->
|
78
|
-
|
78
|
+
|
79
79
|
# The super constructor will call the mixin constructors here.
|
80
80
|
super
|
81
81
|
|
@@ -97,7 +97,7 @@ and must be explicitly required in your Rails files using the `require` commands
|
|
97
97
|
|
98
98
|
## Modules
|
99
99
|
|
100
|
-
* __button.coffee__: A simple button. Fires the `clicked` event when anything inside the container is clicked. Uses the `clickable` mixin.
|
100
|
+
* __button.coffee__: A simple button. Fires the `clicked` event when anything inside the container is clicked. Uses the `clickable` mixin.
|
101
101
|
* __counter_button.coffee__: Similar to button, but includes the click count as data payload in the fired event.
|
102
102
|
|
103
103
|
|
@@ -110,7 +110,7 @@ Including this mixins adds a 'clickable' aspect to your module, i.e. turns it in
|
|
110
110
|
Including this mixin makes a module closable. The mixin searches for an embedded DOM element with the class 'CloseButton'. When it is clicked, the following things happen:
|
111
111
|
|
112
112
|
* The _closable_closing_ hook of the closable class is called.
|
113
|
-
This hook could be used to display confirmation dialogs (and abort the close process) or to fire custom events that depend on the DOM still being present.
|
113
|
+
This hook could be used to display confirmation dialogs (and abort the close process) or to fire custom events that depend on the DOM still being present.
|
114
114
|
If this method returns a falsy value, the closing process is aborted.
|
115
115
|
* The closable module fires a local 'closing' event (with the DOM still present).
|
116
116
|
* The whole module including its container is removed from the DOM.
|
@@ -124,7 +124,7 @@ A generic cached loader for parallel and repeated GET requests.
|
|
124
124
|
Prevents duplicate requests, caches the responses.
|
125
125
|
|
126
126
|
The first request triggers the ajax request. Subsequent requests while the resquest is running are accumulated without causing new requests.
|
127
|
-
Once the response arrives, all currently requesting clients are answered. Subsequent requests are answered immediately using the cached data.
|
127
|
+
Once the response arrives, all currently requesting clients are answered. Subsequent requests are answered immediately using the cached data.
|
128
128
|
|
129
129
|
```coffeescript
|
130
130
|
Module.loader.get '/test.json', (data) ->
|
@@ -160,3 +160,4 @@ Modularity-Rails comes with support for [LifeReload](https://github.com/mockko/l
|
|
160
160
|
* Navigate to the test page that you want to observe.
|
161
161
|
* Change and save code and see the browser reload.
|
162
162
|
|
163
|
+
|
data/Rakefile
CHANGED
@@ -4,20 +4,9 @@ begin
|
|
4
4
|
rescue LoadError
|
5
5
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
6
|
end
|
7
|
-
begin
|
8
|
-
require 'rdoc/task'
|
9
|
-
rescue LoadError
|
10
|
-
require 'rdoc/rdoc'
|
11
|
-
require 'rake/rdoctask'
|
12
|
-
RDoc::Task = Rake::RDocTask
|
13
|
-
end
|
14
7
|
|
15
|
-
|
16
|
-
|
17
|
-
rdoc.title = 'ModularityRails'
|
18
|
-
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.rdoc')
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
-
end
|
8
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
9
|
+
load 'rails/tasks/engine.rake'
|
22
10
|
|
23
11
|
Bundler::GemHelper.install_tasks
|
12
|
+
task :default => 'app:konacha:run'
|
File without changes
|
@@ -44,6 +44,11 @@ class window.modularity.Cache
|
|
44
44
|
delete @cache[key]
|
45
45
|
|
46
46
|
|
47
|
+
# Removes all entries with the given keys.
|
48
|
+
remove_many: (keys) ->
|
49
|
+
@remove(key) for key in keys
|
50
|
+
|
51
|
+
|
47
52
|
# Replaces the cache with the given data.
|
48
53
|
# When 'key' is given, treats 'data' as an array of objects, and indexes each element by the given key.
|
49
54
|
# When 'key' is not given, treats 'data' as an already indexed hash object.
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#= require modularity/data/cache
|
2
2
|
|
3
|
-
# Provides fast and convenient retrieval of hash objects
|
3
|
+
# Provides fast and convenient retrieval of hash objects
|
4
4
|
# by indexing them on a given key column.
|
5
5
|
class modularity.IndexedCache
|
6
6
|
|
7
7
|
constructor: (@key) ->
|
8
8
|
@cache = new modularity.Cache
|
9
9
|
|
10
|
-
|
10
|
+
|
11
11
|
add: (entry) ->
|
12
12
|
@cache.add entry[@key], entry
|
13
13
|
|
@@ -19,8 +19,14 @@ class modularity.IndexedCache
|
|
19
19
|
remove: (entry) ->
|
20
20
|
@cache.remove entry[@key]
|
21
21
|
|
22
|
+
|
23
|
+
remove_many: (entries) ->
|
24
|
+
@cache.remove_many entries
|
25
|
+
|
26
|
+
|
22
27
|
get: (key) ->
|
23
28
|
@cache.get key
|
24
29
|
|
25
30
|
|
26
31
|
length: => @cache.length()
|
32
|
+
|
@@ -53,6 +53,17 @@ class modularity.PersistenceManager
|
|
53
53
|
callback() if callback?
|
54
54
|
|
55
55
|
|
56
|
+
delete_many: (objects, callback) ->
|
57
|
+
@client_data.remove_many obj
|
58
|
+
@server_data.remove_many obj
|
59
|
+
jQuery.ajax
|
60
|
+
url: @base_url
|
61
|
+
type: 'DELETE'
|
62
|
+
data: (obj.id for obj in objects)
|
63
|
+
success: ->
|
64
|
+
callback() if callback?
|
65
|
+
|
66
|
+
|
56
67
|
# Returns the url to access a single entry.
|
57
68
|
entry_url: (entry) ->
|
58
69
|
"#{@base_url}/#{entry[@key]}.json"
|
@@ -10,12 +10,12 @@ window.modularity.clickable =
|
|
10
10
|
events:
|
11
11
|
clicked: 'clicked'
|
12
12
|
|
13
|
-
|
13
|
+
|
14
14
|
# Programmatically click this clickable element.
|
15
15
|
# For testing and scripting.
|
16
16
|
click: -> @container.click()
|
17
17
|
|
18
18
|
|
19
|
-
# Event handler for clicks on this clickable element.
|
19
|
+
# Event handler for clicks on this clickable element.
|
20
20
|
container_clicked: -> @fire_event modularity.clickable.events.clicked
|
21
21
|
|
File without changes
|
@@ -1,3 +1,5 @@
|
|
1
|
+
#= require jquery
|
2
|
+
|
1
3
|
# The Modularity framework written specificially for CoffeeScript.
|
2
4
|
#
|
3
5
|
# Use UglifyJS (http://github.com/mishoo/UglifyJS) for compression.
|
@@ -125,3 +127,4 @@ jQuery.fn.module = (klass, args...) ->
|
|
125
127
|
|
126
128
|
# Instantiate the class and return the instance.
|
127
129
|
new klass(this, args...)
|
130
|
+
|
@@ -23,9 +23,10 @@ class window.modularity.AutogrowTextArea extends modularity.Module
|
|
23
23
|
grow: =>
|
24
24
|
@textarea.rows = Math.max modularity.AutogrowTextArea.lines(@characters_per_line, @textarea.value), @min_rows
|
25
25
|
|
26
|
-
# Returns the number of lines
|
26
|
+
# Returns the number of lines
|
27
27
|
@lines: (width, text) ->
|
28
28
|
lines_count = 0
|
29
29
|
lines = text.split(/\n/)
|
30
30
|
lines_count += Math.floor((line.length / width) + 1) for line in lines
|
31
31
|
lines_count
|
32
|
+
|
File without changes
|
File without changes
|
data/lib/modularity-rails.rb
CHANGED
metadata
CHANGED
@@ -2,41 +2,73 @@
|
|
2
2
|
name: modularity-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.16.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kevin Goslar
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
+
prerelease: false
|
15
16
|
version_requirements: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- -
|
18
|
+
- - ~>
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
20
|
+
version: 3.2.12
|
20
21
|
none: false
|
22
|
+
type: :runtime
|
21
23
|
name: rails
|
24
|
+
requirement: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 3.2.12
|
29
|
+
none: false
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
prerelease: false
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ! '>='
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
none: false
|
22
38
|
type: :runtime
|
39
|
+
name: coffee-rails
|
40
|
+
requirement: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
none: false
|
46
|
+
- !ruby/object:Gem::Dependency
|
23
47
|
prerelease: false
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
none: false
|
54
|
+
type: :runtime
|
55
|
+
name: jquery-rails
|
24
56
|
requirement: !ruby/object:Gem::Requirement
|
25
57
|
requirements:
|
26
58
|
- - ! '>='
|
27
59
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
60
|
+
version: '0'
|
29
61
|
none: false
|
30
62
|
- !ruby/object:Gem::Dependency
|
63
|
+
prerelease: false
|
31
64
|
version_requirements: !ruby/object:Gem::Requirement
|
32
65
|
requirements:
|
33
66
|
- - ! '>='
|
34
67
|
- !ruby/object:Gem::Version
|
35
68
|
version: '0'
|
36
69
|
none: false
|
37
|
-
name: capybara-webkit
|
38
70
|
type: :development
|
39
|
-
|
71
|
+
name: guard-livereload
|
40
72
|
requirement: !ruby/object:Gem::Requirement
|
41
73
|
requirements:
|
42
74
|
- - ! '>='
|
@@ -44,15 +76,15 @@ dependencies:
|
|
44
76
|
version: '0'
|
45
77
|
none: false
|
46
78
|
- !ruby/object:Gem::Dependency
|
79
|
+
prerelease: false
|
47
80
|
version_requirements: !ruby/object:Gem::Requirement
|
48
81
|
requirements:
|
49
82
|
- - ! '>='
|
50
83
|
- !ruby/object:Gem::Version
|
51
84
|
version: '0'
|
52
85
|
none: false
|
53
|
-
name: evergreen
|
54
86
|
type: :development
|
55
|
-
|
87
|
+
name: konacha
|
56
88
|
requirement: !ruby/object:Gem::Requirement
|
57
89
|
requirements:
|
58
90
|
- - ! '>='
|
@@ -60,15 +92,15 @@ dependencies:
|
|
60
92
|
version: '0'
|
61
93
|
none: false
|
62
94
|
- !ruby/object:Gem::Dependency
|
95
|
+
prerelease: false
|
63
96
|
version_requirements: !ruby/object:Gem::Requirement
|
64
97
|
requirements:
|
65
98
|
- - ! '>='
|
66
99
|
- !ruby/object:Gem::Version
|
67
100
|
version: '0'
|
68
101
|
none: false
|
69
|
-
name: rb-fsevent
|
70
102
|
type: :development
|
71
|
-
|
103
|
+
name: poltergeist
|
72
104
|
requirement: !ruby/object:Gem::Requirement
|
73
105
|
requirements:
|
74
106
|
- - ! '>='
|
@@ -76,115 +108,62 @@ dependencies:
|
|
76
108
|
version: '0'
|
77
109
|
none: false
|
78
110
|
- !ruby/object:Gem::Dependency
|
111
|
+
prerelease: false
|
79
112
|
version_requirements: !ruby/object:Gem::Requirement
|
80
113
|
requirements:
|
81
114
|
- - ! '>='
|
82
115
|
- !ruby/object:Gem::Version
|
83
116
|
version: '0'
|
84
117
|
none: false
|
85
|
-
name: guard-livereload
|
86
118
|
type: :development
|
119
|
+
name: rb-fsevent
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
none: false
|
126
|
+
- !ruby/object:Gem::Dependency
|
87
127
|
prerelease: false
|
128
|
+
version_requirements: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
none: false
|
134
|
+
type: :development
|
135
|
+
name: sqlite3
|
88
136
|
requirement: !ruby/object:Gem::Requirement
|
89
137
|
requirements:
|
90
138
|
- - ! '>='
|
91
139
|
- !ruby/object:Gem::Version
|
92
140
|
version: '0'
|
93
141
|
none: false
|
94
|
-
description:
|
142
|
+
description: Makes the modularity-coffee framework available to Ruby on Rails applications.
|
95
143
|
email:
|
96
144
|
- kevin.goslar@gmail.com
|
97
145
|
executables: []
|
98
146
|
extensions: []
|
99
147
|
extra_rdoc_files: []
|
100
148
|
files:
|
101
|
-
- .
|
102
|
-
- .
|
103
|
-
- .
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
- demo/app/assets/images/rails.png
|
114
|
-
- demo/app/assets/javascripts/application.coffee
|
115
|
-
- demo/app/assets/stylesheets/application.css
|
116
|
-
- demo/app/controllers/application_controller.rb
|
117
|
-
- demo/app/helpers/application_helper.rb
|
118
|
-
- demo/app/mailers/.gitkeep
|
119
|
-
- demo/app/models/.gitkeep
|
120
|
-
- demo/app/views/layouts/application.html.erb
|
121
|
-
- demo/config.ru
|
122
|
-
- demo/config/application.rb
|
123
|
-
- demo/config/boot.rb
|
124
|
-
- demo/config/database.yml
|
125
|
-
- demo/config/environment.rb
|
126
|
-
- demo/config/environments/development.rb
|
127
|
-
- demo/config/environments/production.rb
|
128
|
-
- demo/config/environments/test.rb
|
129
|
-
- demo/config/initializers/backtrace_silencers.rb
|
130
|
-
- demo/config/initializers/inflections.rb
|
131
|
-
- demo/config/initializers/konacha.rb
|
132
|
-
- demo/config/initializers/mime_types.rb
|
133
|
-
- demo/config/initializers/secret_token.rb
|
134
|
-
- demo/config/initializers/session_store.rb
|
135
|
-
- demo/config/initializers/wrap_parameters.rb
|
136
|
-
- demo/config/locales/en.yml
|
137
|
-
- demo/config/routes.rb
|
138
|
-
- demo/db/seeds.rb
|
139
|
-
- demo/lib/assets/.gitkeep
|
140
|
-
- demo/lib/tasks/.gitkeep
|
141
|
-
- demo/log/.gitkeep
|
142
|
-
- demo/public/404.html
|
143
|
-
- demo/public/422.html
|
144
|
-
- demo/public/500.html
|
145
|
-
- demo/public/favicon.ico
|
146
|
-
- demo/public/index.html
|
147
|
-
- demo/public/robots.txt
|
148
|
-
- demo/script/rails
|
149
|
-
- demo/spec/javascripts/data/ajax_loader_spec.coffee
|
150
|
-
- demo/spec/javascripts/data/cache_spec.coffee
|
151
|
-
- demo/spec/javascripts/data/indexed_cache_spec.coffee
|
152
|
-
- demo/spec/javascripts/data/persistence_manager_spec.coffee
|
153
|
-
- demo/spec/javascripts/konacha_config.coffee
|
154
|
-
- demo/spec/javascripts/mixins/closable_spec.coffee
|
155
|
-
- demo/spec/javascripts/modularity_spec.coffee
|
156
|
-
- demo/spec/javascripts/modules/autogrow_textarea_spec.coffee
|
157
|
-
- demo/spec/javascripts/modules/button_spec.coffee
|
158
|
-
- demo/spec/javascripts/modules/counter_button_spec.coffee
|
159
|
-
- demo/spec/javascripts/sinon-chai.js
|
160
|
-
- demo/spec/javascripts/sinon.js
|
161
|
-
- demo/spec/javascripts/spec_helper.coffee
|
162
|
-
- demo/spec/javascripts/templates/autogrow_textarea.jst.ejs
|
163
|
-
- demo/spec/javascripts/templates/button.jst.ejs
|
164
|
-
- demo/spec/javascripts/templates/closable.jst.ejs
|
165
|
-
- demo/spec/javascripts/templates/modularity.jst.ejs
|
166
|
-
- demo/spec/javascripts/tools/array_tools_spec.coffee
|
167
|
-
- demo/spec/javascripts/tools/object_tools_spec.coffee
|
168
|
-
- demo/vendor/assets/javascripts/.gitkeep
|
169
|
-
- demo/vendor/assets/stylesheets/.gitkeep
|
170
|
-
- demo/vendor/plugins/.gitkeep
|
171
|
-
- lib/modularity-rails.rb
|
149
|
+
- app/assets/javascripts/modularity/data/ajax_loader.coffee
|
150
|
+
- app/assets/javascripts/modularity/data/cache.coffee
|
151
|
+
- app/assets/javascripts/modularity/data/indexed_cache.coffee
|
152
|
+
- app/assets/javascripts/modularity/data/persistence_manager.coffee
|
153
|
+
- app/assets/javascripts/modularity/mixins/clickable.coffee
|
154
|
+
- app/assets/javascripts/modularity/mixins/closable.coffee
|
155
|
+
- app/assets/javascripts/modularity/modularity.coffee
|
156
|
+
- app/assets/javascripts/modularity/modules/autogrow_textarea.coffee
|
157
|
+
- app/assets/javascripts/modularity/modules/button.coffee
|
158
|
+
- app/assets/javascripts/modularity/tools/array_tools.coffee
|
159
|
+
- app/assets/javascripts/modularity/tools/object_tools.coffee
|
160
|
+
- config/initializers/konacha.rb
|
172
161
|
- lib/modularity-rails/engine.rb
|
173
162
|
- lib/modularity-rails/version.rb
|
174
|
-
- modularity-rails.
|
175
|
-
-
|
176
|
-
-
|
177
|
-
-
|
178
|
-
- vendor/assets/javascripts/modularity/data/cache.coffee
|
179
|
-
- vendor/assets/javascripts/modularity/data/indexed_cache.coffee
|
180
|
-
- vendor/assets/javascripts/modularity/data/persistence_manager.coffee
|
181
|
-
- vendor/assets/javascripts/modularity/mixins/clickable.coffee
|
182
|
-
- vendor/assets/javascripts/modularity/mixins/closable.coffee
|
183
|
-
- vendor/assets/javascripts/modularity/modules/autogrow_textarea.coffee
|
184
|
-
- vendor/assets/javascripts/modularity/modules/button.coffee
|
185
|
-
- vendor/assets/javascripts/modularity/modules/counter_button.coffee
|
186
|
-
- vendor/assets/javascripts/modularity/tools/array_tools.coffee
|
187
|
-
- vendor/assets/javascripts/modularity/tools/object_tools.coffee
|
163
|
+
- lib/modularity-rails.rb
|
164
|
+
- MIT-LICENSE
|
165
|
+
- Rakefile
|
166
|
+
- README.md
|
188
167
|
homepage: http://github.com/kevgo/modularity-rails
|
189
168
|
licenses: []
|
190
169
|
post_install_message:
|
@@ -205,8 +184,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
184
|
none: false
|
206
185
|
requirements: []
|
207
186
|
rubyforge_project:
|
208
|
-
rubygems_version: 1.8.
|
187
|
+
rubygems_version: 1.8.25
|
209
188
|
signing_key:
|
210
189
|
specification_version: 3
|
211
|
-
summary:
|
190
|
+
summary: A lightweight, object- and component-oriented CoffeeScript framework for
|
191
|
+
Ruby on Rails applications.
|
212
192
|
test_files: []
|