jzip 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.textile +13 -6
  2. data/Rakefile +0 -2
  3. data/VERSION +1 -1
  4. data/jzip.gemspec +1 -4
  5. metadata +4 -16
@@ -29,11 +29,6 @@ Add Jzip in environment.rb as a gem dependency:
29
29
  config.gem "jzip"
30
30
  </pre>
31
31
 
32
- Optionally, you can run @rake jzip:assets:install@ which creates the following:
33
-
34
- * @assets/jzip@ - which is the default template location
35
- * @assets/jzip/defaults.jz@ - a Jzip template which requires the default Javascript files (Prototype, Scriptaculous sources and application.js)
36
-
37
32
  h3. Using Jzip as plugin
38
33
 
39
34
  Install the Jzip plugin:
@@ -42,7 +37,10 @@ Install the Jzip plugin:
42
37
  ./script/plugin install git://github.com/archan937/jzip.git
43
38
  </pre>
44
39
 
45
- *Note*: a Jzip template (@assets/jzip/defaults.jz@) for the Prototype and Scriptaculous sources along with application.js will be created
40
+ *Note*: the following will be created at installation of the plugin:
41
+
42
+ * @assets/jzip@ - which is the default template location
43
+ * @assets/jzip/defaults.jz@ - a Jzip template which requires the default Javascript files (Prototype, Scriptaculous and application.js)
46
44
 
47
45
  h2. Usage
48
46
 
@@ -77,6 +75,8 @@ The following instructs Jzip to merge the Prototype and Scriptaculous libraries
77
75
  //= require builder/model_browser
78
76
  </pre>
79
77
 
78
+ Please see "http://github.com/archan937/jzip/tree/master/test/javascripts/assets/jzip/":http://github.com/archan937/jzip/tree/master/test/javascripts/assets/jzip/ for a complete assets directory example.
79
+
80
80
  h3. Registering template locations
81
81
 
82
82
  You probably already have guessed that the default location for Jzip templates is @RAILS_ROOT/assets/jzip@. I can imagine that you would have choosen another location. So fortunately, the Jzip engine offers you to that piece of freedom. All you have to do is put the following in your @environment.rb@ file:
@@ -125,6 +125,13 @@ You can specify a Jzip option by putting the following in your @environment.rb@
125
125
  Jzip::Engine.options[:always_update] = true
126
126
  </pre>
127
127
 
128
+ h3. In the Rails console
129
+
130
+ You can run the following commands in the Rails console (with @./script/console@):
131
+
132
+ * @Jzip::Assets.install_defaults@ - which installs @assets/jzip/defaults.jz@ (see "Using Jzip as plugin" for more information)
133
+ * @Jzip::Engine.compile_javascript_files@ - which instructs Jzip to compile the Javascript files (this is automatically called at every request)
134
+
128
135
  h2. Contact me
129
136
 
130
137
  For support, remarks and requests please mail me at "paul.engel@holder.nl":mailto:paul.engel@holder.nl.
data/Rakefile CHANGED
@@ -12,8 +12,6 @@ begin
12
12
  gemspec.email = "paul.engel@holder.nl"
13
13
  gemspec.homepage = "http://github.com/archan937/jzip"
14
14
  gemspec.author = "Paul Engel"
15
-
16
- gemspec.add_dependency "formtastic"
17
15
  end
18
16
  Jeweler::GemcutterTasks.new
19
17
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jzip}
8
- s.version = "1.0.7"
8
+ s.version = "1.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Engel"]
@@ -132,12 +132,9 @@ Gem::Specification.new do |s|
132
132
  s.specification_version = 3
133
133
 
134
134
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
135
- s.add_runtime_dependency(%q<formtastic>, [">= 0"])
136
135
  else
137
- s.add_dependency(%q<formtastic>, [">= 0"])
138
136
  end
139
137
  else
140
- s.add_dependency(%q<formtastic>, [">= 0"])
141
138
  end
142
139
  end
143
140
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 7
9
- version: 1.0.7
8
+ - 8
9
+ version: 1.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Engel
@@ -16,20 +16,8 @@ cert_chain: []
16
16
 
17
17
  date: 2010-06-27 00:00:00 +02:00
18
18
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: formtastic
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- version: "0"
31
- type: :runtime
32
- version_requirements: *id001
19
+ dependencies: []
20
+
33
21
  description: |-
34
22
  Jzip was created due to the need of simply merging and minifying Javascript files to reduce HTTP requests and file size of application assets. Using sprites for images and SASS for stylesheets only left javascripts not be optimized.
35
23
  AssetPackager almost suited the solution, but it hasn't got enough flexibility in configuration. So using AssetPackager and SASS for inspriration the Jzip gem was created.