paloma 0.0.6 → 0.0.7

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/Changelog.md CHANGED
@@ -1,6 +1,17 @@
1
1
  Changelog
2
2
  =
3
3
 
4
+ Version 0.0.7
5
+ -
6
+ * Fix A Major Bug that copies the _local.js template instead of _callbacks.js
7
+
8
+ Version 0.0.6
9
+ -
10
+ * `SetupGenerator` moved from `paloma_generator.rb` to `paloma/generators/setup_generator.rb`
11
+ * `AddGenerator` moved from `paloma_generator` to `paloma/generators/add_generator.rb`
12
+ * Refactored both generators
13
+ * Test for both generators
14
+
4
15
  Version 0.0.5
5
16
  -
6
17
  * Callbacks are executed after the DOM is ready
data/README.md CHANGED
@@ -243,3 +243,8 @@ Gotchas
243
243
  -
244
244
  * Callbacks will not be executed if the response is `js`, `json`, `xml` or any other format except `html`.
245
245
  This will not work: `render "something.js.erb"`
246
+
247
+ Credits
248
+ -
249
+ * [Karl Bryan Paragua](http://www.daftcoder.com "Daftcoder.com")
250
+ * Bianca Camille Esmero
data/TODO.md ADDED
@@ -0,0 +1,13 @@
1
+ TODO
2
+ =
3
+
4
+ Features
5
+ -
6
+ * Handle namespaced controllers
7
+ * Setup for coffescript (although I hate coffescript)
8
+ * A way to manually trigger callbacks with parameters
9
+
10
+ Dev
11
+ -
12
+ * Documentation
13
+ * Enough comments on source code
@@ -62,7 +62,7 @@ module Paloma
62
62
 
63
63
  def generate_from_template destination_filename
64
64
  filename = destination_filename.split('/').last
65
- content = File.read("#{Paloma.templates}/_local.js").gsub(/controller/, @controller_name)
65
+ content = File.read("#{Paloma.templates}/#{filename}").gsub(/controller/, @controller_name)
66
66
  File.open(destination_filename, 'w'){ |f| f.write(content) }
67
67
  end
68
68
  end
data/paloma.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'paloma'
3
- s.version = '0.0.6'
3
+ s.version = '0.0.7'
4
4
  s.summary = "a sexy way to organize javascript files using Rails` asset pipeline"
5
5
  s.description = "a sexy way to organize javascript files using Rails` asset pipeline"
6
6
  s.authors = ["Karl Paragua", "Bia Esmero"]
@@ -80,6 +80,11 @@ feature Paloma::AddGenerator, 'creating action with existing controller folder'
80
80
  file 'new_action.js' do
81
81
  contains "Paloma.callbacks['existing_controller_folder/new_action']"
82
82
  end
83
+
84
+ file '_callbacks.js' do
85
+ contains "//= require ./existing_controller_folder/_local"
86
+ contains "//= require_tree ."
87
+ end
83
88
  end
84
89
  end
85
90
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paloma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-21 00:00:00.000000000 Z
13
+ date: 2013-01-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jquery-rails
@@ -168,6 +168,7 @@ files:
168
168
  - License
169
169
  - README.md
170
170
  - Rakefile
171
+ - TODO.md
171
172
  - app/templates/_callbacks.js
172
173
  - app/templates/_local.js
173
174
  - app/templates/action.js