erector-rails4 0.0.7 → 0.1.0

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: 6c970e127c854beb86842b2b0e933b1ac0454943
4
- data.tar.gz: 29b100b708674e78ee3c9197dc31e0b23aeb00ea
3
+ metadata.gz: da69f3db76573c98b6de2a3866be5a733b3488e5
4
+ data.tar.gz: c72a6d66ee3e7dc109fdcde74850111373643c10
5
5
  SHA512:
6
- metadata.gz: 723e19c720846dab589f91907188d15a8815ccab33986877dc85ce2d8e74077721504f25bd1e7f53f8d7a316d35cfe1d3e6ac726823432d0a51e856a66cc747c
7
- data.tar.gz: a857dfd076029db035f9c33494f44739e0f88f8f976e002335fa1cd5e6d05910907ff820e1d2bef225a472fbf39969035f8d98855b68d638837c0b033fabad50
6
+ metadata.gz: f2734c6ff7e1cd29ec232e42d6aafba27c97a89f4cb5947aced0ceccc9b5d1807ae54d8b62e2fadc1290965a2e288596a88108b02f030915bc0c39a456e7261a
7
+ data.tar.gz: 413edd51199463ad67a81ff3741c09c7f3a5ecb347b62becf38581d4dbcbf732a9fdb2e24591e0ace0fe4226adbdaddd4151550aa6e157f7cd233e17271a786d
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.0.0-p353
1
+ 2.1.0
data/Gemfile.lock CHANGED
@@ -2,39 +2,41 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  erector-rails4 (0.0.7)
5
- rails (>= 4.0)
5
+ rails (= 4.1.0.rc1)
6
6
  treetop (>= 1.2.3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionmailer (4.0.0)
12
- actionpack (= 4.0.0)
13
- mail (~> 2.5.3)
14
- actionpack (4.0.0)
15
- activesupport (= 4.0.0)
16
- builder (~> 3.1.0)
17
- erubis (~> 2.7.0)
11
+ actionmailer (4.1.0.rc1)
12
+ actionpack (= 4.1.0.rc1)
13
+ actionview (= 4.1.0.rc1)
14
+ mail (~> 2.5.4)
15
+ actionpack (4.1.0.rc1)
16
+ actionview (= 4.1.0.rc1)
17
+ activesupport (= 4.1.0.rc1)
18
18
  rack (~> 1.5.2)
19
19
  rack-test (~> 0.6.2)
20
- activemodel (4.0.0)
21
- activesupport (= 4.0.0)
22
- builder (~> 3.1.0)
23
- activerecord (4.0.0)
24
- activemodel (= 4.0.0)
25
- activerecord-deprecated_finders (~> 1.0.2)
26
- activesupport (= 4.0.0)
27
- arel (~> 4.0.0)
28
- activerecord-deprecated_finders (1.0.3)
29
- activesupport (4.0.0)
30
- i18n (~> 0.6, >= 0.6.4)
31
- minitest (~> 4.2)
32
- multi_json (~> 1.3)
20
+ actionview (4.1.0.rc1)
21
+ activesupport (= 4.1.0.rc1)
22
+ builder (~> 3.1)
23
+ erubis (~> 2.7.0)
24
+ activemodel (4.1.0.rc1)
25
+ activesupport (= 4.1.0.rc1)
26
+ builder (~> 3.1)
27
+ activerecord (4.1.0.rc1)
28
+ activemodel (= 4.1.0.rc1)
29
+ activesupport (= 4.1.0.rc1)
30
+ arel (~> 5.0.0)
31
+ activesupport (4.1.0.rc1)
32
+ i18n (~> 0.6, >= 0.6.9)
33
+ json (~> 1.7, >= 1.7.7)
34
+ minitest (~> 5.1)
33
35
  thread_safe (~> 0.1)
34
- tzinfo (~> 0.3.37)
35
- arel (4.0.1)
36
- atomic (1.1.14)
37
- builder (3.1.4)
36
+ tzinfo (~> 1.1)
37
+ arel (5.0.0)
38
+ atomic (1.1.15)
39
+ builder (3.2.2)
38
40
  coveralls (0.7.0)
39
41
  multi_json (~> 1.3)
40
42
  rest-client
@@ -42,39 +44,43 @@ GEM
42
44
  term-ansicolor
43
45
  thor
44
46
  diff-lcs (1.1.3)
47
+ docile (1.1.3)
45
48
  erubis (2.7.0)
46
- haml (4.0.3)
49
+ haml (4.0.5)
47
50
  tilt
48
51
  hike (1.2.3)
49
- i18n (0.6.5)
52
+ i18n (0.6.9)
53
+ json (1.8.1)
50
54
  mail (2.5.4)
51
55
  mime-types (~> 1.16)
52
56
  treetop (~> 1.4.8)
53
- mime-types (1.25)
57
+ mime-types (1.25.1)
54
58
  mini_portile (0.5.2)
55
- minitest (4.7.5)
56
- multi_json (1.8.2)
57
- nokogiri (1.6.0)
59
+ minitest (5.3.0)
60
+ multi_json (1.9.0)
61
+ nokogiri (1.6.1)
58
62
  mini_portile (~> 0.5.0)
59
- polyglot (0.3.3)
63
+ polyglot (0.3.4)
60
64
  predicated (0.2.6)
61
65
  rack (1.5.2)
62
66
  rack-test (0.6.2)
63
67
  rack (>= 1.0)
64
- rails (4.0.0)
65
- actionmailer (= 4.0.0)
66
- actionpack (= 4.0.0)
67
- activerecord (= 4.0.0)
68
- activesupport (= 4.0.0)
68
+ rails (4.1.0.rc1)
69
+ actionmailer (= 4.1.0.rc1)
70
+ actionpack (= 4.1.0.rc1)
71
+ actionview (= 4.1.0.rc1)
72
+ activemodel (= 4.1.0.rc1)
73
+ activerecord (= 4.1.0.rc1)
74
+ activesupport (= 4.1.0.rc1)
69
75
  bundler (>= 1.3.0, < 2.0)
70
- railties (= 4.0.0)
76
+ railties (= 4.1.0.rc1)
71
77
  sprockets-rails (~> 2.0.0)
72
- railties (4.0.0)
73
- actionpack (= 4.0.0)
74
- activesupport (= 4.0.0)
78
+ railties (4.1.0.rc1)
79
+ actionpack (= 4.1.0.rc1)
80
+ activesupport (= 4.1.0.rc1)
75
81
  rake (>= 0.8.7)
76
82
  thor (>= 0.18.1, < 2.0)
77
- rake (10.1.0)
83
+ rake (10.1.1)
78
84
  rest-client (1.6.7)
79
85
  mime-types (>= 1.16)
80
86
  rr (1.1.2)
@@ -89,21 +95,22 @@ GEM
89
95
  rspec-core (~> 2.12.0)
90
96
  rspec-expectations (~> 2.12.0)
91
97
  rspec-mocks (~> 2.12.0)
92
- ruby2ruby (2.0.6)
98
+ ruby2ruby (2.0.7)
93
99
  ruby_parser (~> 3.1)
94
100
  sexp_processor (~> 4.0)
95
- ruby_parser (3.2.2)
101
+ ruby_parser (3.4.1)
96
102
  sexp_processor (~> 4.1)
97
- sass (3.2.12)
98
- sexp_processor (4.4.0)
103
+ sass (3.2.14)
104
+ sexp_processor (4.4.1)
99
105
  simple_form (3.0.1)
100
106
  actionpack (>= 4.0.0, < 4.1)
101
107
  activemodel (>= 4.0.0, < 4.1)
102
- simplecov (0.7.1)
103
- multi_json (~> 1.0)
104
- simplecov-html (~> 0.7.1)
105
- simplecov-html (0.7.1)
106
- sprockets (2.10.1)
108
+ simplecov (0.8.2)
109
+ docile (~> 1.1.0)
110
+ multi_json
111
+ simplecov-html (~> 0.8.0)
112
+ simplecov-html (0.8.0)
113
+ sprockets (2.11.0)
107
114
  hike (~> 1.2)
108
115
  multi_json (~> 1.0)
109
116
  rack (~> 1.0)
@@ -112,18 +119,19 @@ GEM
112
119
  actionpack (>= 3.0)
113
120
  activesupport (>= 3.0)
114
121
  sprockets (~> 2.8)
115
- sqlite3 (1.3.8)
116
- term-ansicolor (1.2.2)
117
- tins (~> 0.8)
122
+ sqlite3 (1.3.9)
123
+ term-ansicolor (1.3.0)
124
+ tins (~> 1.0)
118
125
  thor (0.18.1)
119
- thread_safe (0.1.3)
120
- atomic
126
+ thread_safe (0.2.0)
127
+ atomic (>= 1.1.7, < 2)
121
128
  tilt (1.4.1)
122
- tins (0.12.0)
129
+ tins (1.0.0)
123
130
  treetop (1.4.15)
124
131
  polyglot
125
132
  polyglot (>= 0.3.1)
126
- tzinfo (0.3.38)
133
+ tzinfo (1.1.0)
134
+ thread_safe (~> 0.1)
127
135
  wrong (0.7.0)
128
136
  diff-lcs (~> 1.1.2)
129
137
  predicated (~> 0.2.6)
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.homepage = "http://github.com/adamjacobbecker/erector-rails4"
22
22
  s.require_paths = ["lib"]
23
23
 
24
- s.add_dependency 'rails', '>= 4.0'
24
+ s.add_dependency 'rails', '4.1.0.rc1'
25
25
  s.add_dependency 'treetop', '>= 1.2.3'
26
26
 
27
27
  s.add_development_dependency 'coveralls'
@@ -13,9 +13,9 @@ module Erector
13
13
 
14
14
  attr_reader :parent, :template
15
15
 
16
- def initialize(object_name, object, template, options, proc = nil)
16
+ def initialize(object_name, object, template, options)
17
17
  @template = template
18
- @parent = parent_builder_class.new(object_name, object, template, options, proc)
18
+ @parent = parent_builder_class.new(object_name, object, template, options)
19
19
  end
20
20
 
21
21
  def method_missing(method_name, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module Erector
2
- VERSION = "0.0.7"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -192,7 +192,7 @@ describe Erector::Rails do
192
192
  it "works without a block" do
193
193
  test_render do
194
194
  form_tag("/posts")
195
- end.should == %{<form accept-charset="UTF-8" action="/posts" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>}
195
+ end.should == %{<form accept-charset="UTF-8" action="/posts" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /></div>}
196
196
  end
197
197
 
198
198
  it "can be mixed with erector and rails helpers" do
@@ -200,7 +200,7 @@ describe Erector::Rails do
200
200
  form_tag("/posts") do
201
201
  div { submit_tag 'Save' }
202
202
  end
203
- end.should == %{<form accept-charset="UTF-8" action="/posts" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div><div><input name="commit" type="submit" value="Save" /></div></form>}
203
+ end.should == %{<form accept-charset="UTF-8" action="/posts" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /></div><div><input name="commit" type="submit" value="Save" /></div></form>}
204
204
  end
205
205
  end
206
206
 
@@ -211,7 +211,7 @@ describe Erector::Rails do
211
211
  form.label :my_input, "My input"
212
212
  form.text_field :my_input
213
213
  end
214
- end.should == %{<form accept-charset="UTF-8" action="/test" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div><label for="something_my_input">My input</label><input id="something_my_input" name="something[my_input]" type="text" /></form>}
214
+ end.should == %{<form accept-charset="UTF-8" action="/test" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /></div><label for="something_my_input">My input</label><input id="something_my_input" name="something[my_input]" type="text" /></form>}
215
215
  end
216
216
 
217
217
  it "doesn't double render if 'text form.label' is used by mistake" do
@@ -219,7 +219,7 @@ describe Erector::Rails do
219
219
  form_for(:something, :url => "/test") do |form|
220
220
  text form.label(:my_input, "My input")
221
221
  end
222
- end.should == %{<form accept-charset="UTF-8" action="/test" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div><label for="something_my_input">My input</label></form>}
222
+ end.should == %{<form accept-charset="UTF-8" action="/test" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /></div><label for="something_my_input">My input</label></form>}
223
223
  end
224
224
 
225
225
  it "can be called from a nested widget" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erector-rails4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Chaffee
@@ -13,90 +13,90 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-01-04 00:00:00.000000000 Z
16
+ date: 2014-03-06 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - '>='
22
+ - - '='
23
23
  - !ruby/object:Gem::Version
24
- version: '4.0'
24
+ version: 4.1.0.rc1
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - '>='
29
+ - - '='
30
30
  - !ruby/object:Gem::Version
31
- version: '4.0'
31
+ version: 4.1.0.rc1
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: treetop
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - '>='
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: 1.2.3
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
- - - '>='
43
+ - - ">="
44
44
  - !ruby/object:Gem::Version
45
45
  version: 1.2.3
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: coveralls
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - '>='
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  type: :development
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - '>='
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: haml
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - '>='
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: nokogiri
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - '>='
78
+ - - ">="
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  type: :development
82
82
  prerelease: false
83
83
  version_requirements: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - '>='
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  - !ruby/object:Gem::Dependency
89
89
  name: rr
90
90
  requirement: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  type: :development
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  - !ruby/object:Gem::Dependency
@@ -117,56 +117,56 @@ dependencies:
117
117
  name: sass
118
118
  requirement: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - '>='
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - '>='
127
+ - - ">="
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  - !ruby/object:Gem::Dependency
131
131
  name: simple_form
132
132
  requirement: !ruby/object:Gem::Requirement
133
133
  requirements:
134
- - - '>='
134
+ - - ">="
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  type: :development
138
138
  prerelease: false
139
139
  version_requirements: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - '>='
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  - !ruby/object:Gem::Dependency
145
145
  name: sqlite3
146
146
  requirement: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - '>='
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  type: :development
152
152
  prerelease: false
153
153
  version_requirements: !ruby/object:Gem::Requirement
154
154
  requirements:
155
- - - '>='
155
+ - - ">="
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: wrong
160
160
  requirement: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - '>='
162
+ - - ">="
163
163
  - !ruby/object:Gem::Version
164
164
  version: 0.5.4
165
165
  type: :development
166
166
  prerelease: false
167
167
  version_requirements: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - '>='
169
+ - - ">="
170
170
  - !ruby/object:Gem::Version
171
171
  version: 0.5.4
172
172
  description: This is a fork of Erector, updated for Rails 4.
@@ -175,19 +175,19 @@ executables: []
175
175
  extensions: []
176
176
  extra_rdoc_files: []
177
177
  files:
178
- - .coveralls.yml
179
- - .gitignore
180
- - .rspec
181
- - .ruby-gemset
182
- - .ruby-version
183
- - .travis.yml
178
+ - ".coveralls.yml"
179
+ - ".gitignore"
180
+ - ".rspec"
181
+ - ".ruby-gemset"
182
+ - ".ruby-version"
183
+ - ".travis.yml"
184
184
  - Gemfile
185
185
  - Gemfile.lock
186
186
  - LICENSE.md
187
187
  - README.md
188
188
  - Rakefile
189
189
  - erector-rails4.gemspec
190
- - erector-rails4.sublimeproject
190
+ - erector-rails4.sublime-project
191
191
  - lib/erector.rb
192
192
  - lib/erector/abstract_widget.rb
193
193
  - lib/erector/after_initialize.rb
@@ -302,17 +302,17 @@ require_paths:
302
302
  - lib
303
303
  required_ruby_version: !ruby/object:Gem::Requirement
304
304
  requirements:
305
- - - '>='
305
+ - - ">="
306
306
  - !ruby/object:Gem::Version
307
307
  version: 2.0.0
308
308
  required_rubygems_version: !ruby/object:Gem::Requirement
309
309
  requirements:
310
- - - '>='
310
+ - - ">="
311
311
  - !ruby/object:Gem::Version
312
312
  version: '0'
313
313
  requirements: []
314
314
  rubyforge_project:
315
- rubygems_version: 2.1.11
315
+ rubygems_version: 2.2.2
316
316
  signing_key:
317
317
  specification_version: 4
318
318
  summary: Erector, for Rails 4