rubysl-erb 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2c7f2c992f92371c1ba30649ffc4093d70f7f2a
4
- data.tar.gz: f4fd159ff6e3a39beb2c084ab2240231ce2611b7
3
+ metadata.gz: 44308754a82df632f9a6e0fc524e658811294ea1
4
+ data.tar.gz: 76fc423dacf4e110808b4165e22b64852395c0c2
5
5
  SHA512:
6
- metadata.gz: 8b1cd6b883f1df27fc6d651f7b9da5f2c2fff629360dc5d385df0ec626ed009559f31a1ed62b821dc17516aef1310b7fd6a5bf6a73889c201b19ea179ecd591b
7
- data.tar.gz: 65e5fab7e463c69942265d9dc6ddccb3d4a4e6c63496c8bc7dd6398ec0a33c66252b6191336559d8b267b9d178cd74598108d3fd4c2cea0da9d390dc6a3cdc80
6
+ metadata.gz: e857dba53de5adf75332a05743e10a510bba0f52c10a2a50eb8646a6f75803e63a312e496fc003ede39591bd306d85eafc8a3cf317f76492ce5311183dd53fba
7
+ data.tar.gz: 74bbba425ec1979dda8d084f2ffe37093f0afc05329ec7d0c5b649ff5d6e631afa11eb6e87537610bb3d085143f1a4507cac76534cd061f0bac9102bd88312a1
@@ -1,7 +1,14 @@
1
1
  language: ruby
2
2
  env:
3
3
  - RUBYLIB=lib
4
- script: bundle exec mspec
4
+ - RUBYLIB=
5
+ script: mspec spec
5
6
  rvm:
6
- - 1.9.3
7
- - rbx-nightly-19mode
7
+ - 2.0.0
8
+ - rbx-2.1.1
9
+ matrix:
10
+ exclude:
11
+ - rvm: 2.0.0
12
+ env: RUBYLIB=lib
13
+ - rvm: rbx-2.1.1
14
+ env: RUBYLIB=
@@ -63,7 +63,7 @@ require "cgi/util"
63
63
  #
64
64
  # == Character encodings
65
65
  #
66
- # ERB (or ruby code generated by ERB) returns a string in the same
66
+ # ERB (or Ruby code generated by ERB) returns a string in the same
67
67
  # character encoding as the input string. When the input string has
68
68
  # a magic comment, however, it returns a string in the encoding specified
69
69
  # by the magic comment.
@@ -257,7 +257,7 @@ require "cgi/util"
257
257
  # Rails, the web application framework, uses ERB to create views.
258
258
  #
259
259
  class ERB
260
- Revision = '$Date:: $' # :nodoc: #'
260
+ Revision = '$Date:: 2013-07-18 06:50:32 -0700#$' # :nodoc: #'
261
261
 
262
262
  # Returns revision information for the erb.rb module.
263
263
  def self.version
@@ -596,7 +596,7 @@ class ERB
596
596
  def compile(s)
597
597
  enc = s.encoding
598
598
  raise ArgumentError, "#{enc} is not ASCII compatible" if enc.dummy?
599
- s = s.dup.force_encoding("ASCII-8BIT") # don't use constant Enoding::ASCII_8BIT for miniruby
599
+ s = s.b # see String#b
600
600
  enc = detect_magic_comment(s) || enc
601
601
  out = Buffer.new(self, enc)
602
602
 
@@ -859,7 +859,7 @@ class ERB
859
859
  end
860
860
  private :new_toplevel
861
861
 
862
- # Define _methodname_ as instance method of _mod_ from compiled ruby source.
862
+ # Define _methodname_ as instance method of _mod_ from compiled Ruby source.
863
863
  #
864
864
  # example:
865
865
  # filename = 'example.rhtml' # 'arg1' and 'arg2' are used in example.rhtml
@@ -948,8 +948,8 @@ class ERB
948
948
  # Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
949
949
  #
950
950
  def url_encode(s)
951
- s.to_s.dup.force_encoding("ASCII-8BIT").gsub(/[^a-zA-Z0-9_\-.]/n) {
952
- sprintf("%%%02X", $&.unpack("C")[0])
951
+ s.to_s.b.gsub(/[^a-zA-Z0-9_\-.]/n) { |m|
952
+ sprintf("%%%02X", m.unpack("C")[0])
953
953
  }
954
954
  end
955
955
  alias u url_encode
@@ -1,5 +1,5 @@
1
1
  module RubySL
2
2
  module Erb
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -16,7 +16,10 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ["lib"]
18
18
 
19
+ spec.required_ruby_version = "~> 2.0"
20
+
19
21
  spec.add_development_dependency "bundler", "~> 1.3"
20
22
  spec.add_development_dependency "rake", "~> 10.0"
21
23
  spec.add_development_dependency "mspec", "~> 1.5"
24
+ spec.add_development_dependency "rubysl-prettyprint", "~> 2.0"
22
25
  end
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubysl-erb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Shirai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-04 00:00:00.000000000 Z
11
+ date: 2013-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubysl-prettyprint
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.0'
55
69
  description: Ruby standard library erb.
56
70
  email:
57
71
  - brixen@gmail.com
@@ -59,8 +73,8 @@ executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
62
- - .gitignore
63
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".travis.yml"
64
78
  - Gemfile
65
79
  - LICENSE
66
80
  - README.md
@@ -95,12 +109,12 @@ require_paths:
95
109
  - lib
96
110
  required_ruby_version: !ruby/object:Gem::Requirement
97
111
  requirements:
98
- - - '>='
112
+ - - "~>"
99
113
  - !ruby/object:Gem::Version
100
- version: '0'
114
+ version: '2.0'
101
115
  required_rubygems_version: !ruby/object:Gem::Requirement
102
116
  requirements:
103
- - - '>='
117
+ - - ">="
104
118
  - !ruby/object:Gem::Version
105
119
  version: '0'
106
120
  requirements: []
@@ -125,3 +139,4 @@ test_files:
125
139
  - spec/util/shared/url_encode.rb
126
140
  - spec/util/u_spec.rb
127
141
  - spec/util/url_encode_spec.rb
142
+ has_rdoc: