midge 0.1.0 → 0.2.1

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/README.md CHANGED
@@ -1,22 +1,27 @@
1
1
  # Midge
2
2
 
3
- Midge is a quick and cheap javascript module system for the rails asset pipeline.
4
-
5
- **Beta Release: Still a work in progress!**
3
+ Midge is a quick and cheap [javascript module](http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth)
4
+ system for the rails asset pipeline.
6
5
 
7
6
  ## Installation
8
7
 
9
8
  Add this line to your application's Gemfile:
10
9
 
11
- gem 'midge'
10
+ ``` ruby
11
+ gem 'midge'
12
+ ```
12
13
 
13
14
  And then execute:
14
15
 
15
- $ bundle
16
+ ``` console
17
+ $ bundle
18
+ ```
16
19
 
17
20
  Or install it yourself as:
18
21
 
19
- $ gem install midge
22
+ ``` console
23
+ $ gem install midge
24
+ ```
20
25
 
21
26
  ## Usage
22
27
 
@@ -62,7 +67,12 @@ So with this in place you can access the `Person` object on the `Midge` namespac
62
67
  var guy = new Midge.Person;
63
68
  ```
64
69
 
65
- Simple albeit limited javascript modules.
70
+ Voila! Simple albeit limited javascript modules.
71
+
72
+ ## TODO
73
+
74
+ - Tests
75
+ - Documentation
66
76
 
67
77
  ## Contributing
68
78
 
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Create the initializer for midge with some sane defaults.
3
+
4
+ Example:
5
+ rails generate midge:install
6
+
7
+ This will create:
8
+ config/initializers/midge.rb
@@ -0,0 +1,9 @@
1
+ module Midge
2
+ class InstallGenerator < Rails::Generators::Base
3
+ source_root File.expand_path('../templates', __FILE__)
4
+
5
+ def write_midge_initializer
6
+ template 'midge.rb', "config/initializers/midge.rb"
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ Midge.setup do |config|
2
+ config.jst_processor ".midge_template", <%= Rails.application.class.parent_name.inspect %>
3
+ config.js_processor ".midge", <%= Rails.application.class.parent_name.inspect %>
4
+ end
@@ -1,3 +1,3 @@
1
1
  module Midge
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.1"
3
3
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -50,6 +50,9 @@ executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
+ - lib/generators/midge/install/install_generator.rb
54
+ - lib/generators/midge/install/templates/midge.rb
55
+ - lib/generators/midge/install/USAGE
53
56
  - lib/midge/config.rb
54
57
  - lib/midge/engine.rb
55
58
  - lib/midge/javascript.rb
@@ -83,6 +86,7 @@ files:
83
86
  - test/dummy/config/routes.rb
84
87
  - test/dummy/config.ru
85
88
  - test/dummy/db/test.sqlite3
89
+ - test/dummy/log/development.log
86
90
  - test/dummy/log/test.log
87
91
  - test/dummy/public/404.html
88
92
  - test/dummy/public/422.html
@@ -107,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
111
  version: '0'
108
112
  segments:
109
113
  - 0
110
- hash: 3387002539675943546
114
+ hash: 1856805139089412848
111
115
  required_rubygems_version: !ruby/object:Gem::Requirement
112
116
  none: false
113
117
  requirements:
@@ -116,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
120
  version: '0'
117
121
  segments:
118
122
  - 0
119
- hash: 3387002539675943546
123
+ hash: 1856805139089412848
120
124
  requirements: []
121
125
  rubyforge_project:
122
126
  rubygems_version: 1.8.24
@@ -146,6 +150,7 @@ test_files:
146
150
  - test/dummy/config/routes.rb
147
151
  - test/dummy/config.ru
148
152
  - test/dummy/db/test.sqlite3
153
+ - test/dummy/log/development.log
149
154
  - test/dummy/log/test.log
150
155
  - test/dummy/public/404.html
151
156
  - test/dummy/public/422.html