mote 0.0.1.rc3 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +1 -1
  2. data/lib/mote.rb +2 -2
  3. data/mote.gemspec +11 -2
  4. metadata +6 -8
data/README.markdown CHANGED
@@ -85,7 +85,7 @@ its content. The compiled template is cached for subsequent calls.
85
85
  Installation
86
86
  ------------
87
87
 
88
- $ gem install mote --pre
88
+ $ gem install mote
89
89
 
90
90
  License
91
91
  -------
data/lib/mote.rb CHANGED
@@ -18,7 +18,7 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  # THE SOFTWARE.
20
20
  class Mote
21
- VERSION = "0.0.1.rc3"
21
+ VERSION = "0.0.1"
22
22
 
23
23
  def self.parse(template, context = self)
24
24
  terms = template.split(/(<%[=#]?)\s*(.*?)\s*%>/)
@@ -30,7 +30,7 @@ class Mote
30
30
  when "<%#" then terms.shift # skip
31
31
  when "<%" then parts << "#{terms.shift}\n"
32
32
  when "<%=" then parts << "__o << (#{terms.shift}).to_s\n"
33
- else parts << "__o << #{term.inspect}\n"
33
+ else parts << "__o << '#{term}'\n"
34
34
  end
35
35
  end
36
36
 
data/mote.gemspec CHANGED
@@ -1,11 +1,20 @@
1
+ require "./lib/mote"
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = "mote"
3
- s.version = "0.0.1.rc3"
5
+ s.version = Mote::VERSION
4
6
  s.summary = "Minimum Operational Template."
5
7
  s.description = "Mote is the little brother of ERB. It only provides a subset of ERB's features, but praises itself of being simple--both internally and externally--and super fast."
6
8
  s.authors = ["Michel Martens"]
7
9
  s.email = ["michel@soveran.com"]
8
10
  s.homepage = "http://github.com/soveran/mote"
9
- s.files = ["LICENSE", "README.markdown", "Rakefile", "lib/mote.rb", "mote.gemspec", "test/mote_test.rb"]
11
+ s.files = Dir[
12
+ "LICENSE",
13
+ "README.markdown",
14
+ "Rakefile",
15
+ "lib/**/*.rb",
16
+ "*.gemspec",
17
+ "test/**/*.rb"
18
+ ]
10
19
  s.add_development_dependency "cutest", "~> 0.1"
11
20
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mote
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 0.0.1.rc3
4
+ prerelease:
5
+ version: 0.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Michel Martens
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-05 00:00:00 -03:00
14
- default_executable:
13
+ date: 2011-05-19 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: cutest
@@ -40,7 +39,6 @@ files:
40
39
  - lib/mote.rb
41
40
  - mote.gemspec
42
41
  - test/mote_test.rb
43
- has_rdoc: true
44
42
  homepage: http://github.com/soveran/mote
45
43
  licenses: []
46
44
 
@@ -58,13 +56,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
56
  required_rubygems_version: !ruby/object:Gem::Requirement
59
57
  none: false
60
58
  requirements:
61
- - - ">"
59
+ - - ">="
62
60
  - !ruby/object:Gem::Version
63
- version: 1.3.1
61
+ version: "0"
64
62
  requirements: []
65
63
 
66
64
  rubyforge_project:
67
- rubygems_version: 1.6.0
65
+ rubygems_version: 1.8.1
68
66
  signing_key:
69
67
  specification_version: 3
70
68
  summary: Minimum Operational Template.