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 +11 -0
- data/README.md +5 -0
- data/TODO.md +13 -0
- data/lib/paloma/generators/add_generator.rb +1 -1
- data/paloma.gemspec +1 -1
- data/spec/generator_spec.rb +5 -0
- metadata +3 -2
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
@@ -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}
|
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.
|
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"]
|
data/spec/generator_spec.rb
CHANGED
@@ -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.
|
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:
|
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
|