alephant-preview 0.1.1 → 0.1.2

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: 7b076d44bae4f7bc1b78d603d0fb9f4db87db0a8
4
- data.tar.gz: 205af6c4ce755215adb37dba427b5858402c4fb9
3
+ metadata.gz: c004d2e560ce0cbe0ad5dbbf93e2796165a54701
4
+ data.tar.gz: dafff4c23c5bb14906c76abbe1c5e6504fbd0b2e
5
5
  SHA512:
6
- metadata.gz: 08ccef50bc325d735e0e9b1058801d9418db392c8d14cbe4aaed9d1ddca6446d19d959008e1f84ea9014d3228ed53fe9b9edd2fbb9f32e8b9c7cf921eea2f191
7
- data.tar.gz: 25eb87965eeb0bb43460d23fc62c6d2be92d84b915d6bacd29b6e6418dca5fbdeb0c0d90938256c711d9ebabd15d689e04334dd75c977e0ebc131877d00e6058
6
+ metadata.gz: 0ab5b5f72a420d02bae3f2f119494e4b42fa3262fb10dbe346d708e21c265c94a0e5156e77ec35840f97d55833b4b66b252902db5eb71693d7827abde60bcd35
7
+ data.tar.gz: 552cc1ed428a541c5fa43d047b016fced40d6dfa03718f79857fad3e151f3c7dceb6d6f88a03ded40df21af6cfc10930436bad6ec3d93b9006e49fa81e91e4d7
@@ -23,18 +23,15 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "guard"
24
24
  spec.add_development_dependency "guard-rspec"
25
25
  spec.add_development_dependency "pry"
26
- spec.add_development_dependency "pry-remote"
27
- spec.add_development_dependency "pry-nav"
28
- spec.add_development_dependency "bundler", "~> 1.5"
26
+ spec.add_development_dependency "bundler"
29
27
  spec.add_development_dependency "rake"
30
28
 
31
29
  spec.add_runtime_dependency 'sinatra'
32
30
  spec.add_runtime_dependency 'sinatra-reloader'
33
31
  spec.add_runtime_dependency 'faraday'
34
32
  spec.add_runtime_dependency 'trollop'
35
- spec.add_runtime_dependency 'rake'
36
33
  spec.add_runtime_dependency 'mustache', '>= 0.99.5'
37
34
 
38
35
  spec.add_runtime_dependency 'alephant-support'
39
- spec.add_runtime_dependency 'alephant-publisher'
36
+ spec.add_runtime_dependency 'alephant-renderer'
40
37
  end
@@ -1,6 +1,6 @@
1
- require 'alephant/publisher/views/html'
2
- require 'alephant/publisher/views/json'
3
- require 'alephant/publisher/view_mapper'
1
+ require 'alephant/renderer/views/html'
2
+ require 'alephant/renderer/views/json'
3
+ require 'alephant/renderer/view_mapper'
4
4
 
5
5
  require 'alephant/support/parser'
6
6
 
@@ -59,7 +59,7 @@ module Alephant
59
59
  private
60
60
  def model
61
61
  require model_location
62
- Alephant::Publisher::Views.get_registered_class(template).new(fixture_data)
62
+ Alephant::Renderer::Views.get_registered_class(template).new(fixture_data)
63
63
  end
64
64
 
65
65
  def base_path
@@ -109,7 +109,7 @@ module Alephant
109
109
  end
110
110
 
111
111
  def view_mapper
112
- Alephant::Publisher::ViewMapper.new(id, BASE_LOCATION)
112
+ Alephant::Renderer::ViewMapper.new(id, BASE_LOCATION)
113
113
  end
114
114
 
115
115
  end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Preview
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -1,5 +1,7 @@
1
+ require 'alephant/renderer/views/html'
2
+
1
3
  module MyApp
2
- class Foo < ::Alephant::Views::Base
4
+ class Foo < ::Alephant::Renderer::Views::Html
3
5
  def content
4
6
  "content"
5
7
  end
data/spec/spec_helper.rb CHANGED
@@ -9,4 +9,3 @@ ENV['RACK_ENV'] = 'test'
9
9
  require 'pry'
10
10
  require 'rack/test'
11
11
  require 'alephant/preview'
12
-
metadata CHANGED
@@ -1,268 +1,226 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-22 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
15
  requirement: !ruby/object:Gem::Requirement
21
16
  requirements:
22
17
  - - '>='
23
18
  - !ruby/object:Gem::Version
24
19
  version: '0'
25
- prerelease: false
26
20
  type: :development
27
- - !ruby/object:Gem::Dependency
28
- name: rspec-nc
21
+ prerelease: false
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
24
  - - '>='
32
25
  - !ruby/object:Gem::Version
33
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec-nc
34
29
  requirement: !ruby/object:Gem::Requirement
35
30
  requirements:
36
31
  - - '>='
37
32
  - !ruby/object:Gem::Version
38
33
  version: '0'
39
- prerelease: false
40
34
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: rack-test
35
+ prerelease: false
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
38
  - - '>='
46
39
  - !ruby/object:Gem::Version
47
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack-test
48
43
  requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
45
  - - '>='
51
46
  - !ruby/object:Gem::Version
52
47
  version: '0'
53
- prerelease: false
54
48
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: guard
49
+ prerelease: false
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
52
  - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard
62
57
  requirement: !ruby/object:Gem::Requirement
63
58
  requirements:
64
59
  - - '>='
65
60
  - !ruby/object:Gem::Version
66
61
  version: '0'
67
- prerelease: false
68
62
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: guard-rspec
63
+ prerelease: false
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
66
  - - '>='
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
76
71
  requirement: !ruby/object:Gem::Requirement
77
72
  requirements:
78
73
  - - '>='
79
74
  - !ruby/object:Gem::Version
80
75
  version: '0'
81
- prerelease: false
82
76
  type: :development
83
- - !ruby/object:Gem::Dependency
84
- name: pry
77
+ prerelease: false
85
78
  version_requirements: !ruby/object:Gem::Requirement
86
79
  requirements:
87
80
  - - '>='
88
81
  - !ruby/object:Gem::Version
89
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
90
85
  requirement: !ruby/object:Gem::Requirement
91
86
  requirements:
92
87
  - - '>='
93
88
  - !ruby/object:Gem::Version
94
89
  version: '0'
95
- prerelease: false
96
90
  type: :development
97
- - !ruby/object:Gem::Dependency
98
- name: pry-remote
91
+ prerelease: false
99
92
  version_requirements: !ruby/object:Gem::Requirement
100
93
  requirements:
101
94
  - - '>='
102
95
  - !ruby/object:Gem::Version
103
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: bundler
104
99
  requirement: !ruby/object:Gem::Requirement
105
100
  requirements:
106
101
  - - '>='
107
102
  - !ruby/object:Gem::Version
108
103
  version: '0'
109
- prerelease: false
110
104
  type: :development
111
- - !ruby/object:Gem::Dependency
112
- name: pry-nav
105
+ prerelease: false
113
106
  version_requirements: !ruby/object:Gem::Requirement
114
107
  requirements:
115
108
  - - '>='
116
109
  - !ruby/object:Gem::Version
117
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
118
113
  requirement: !ruby/object:Gem::Requirement
119
114
  requirements:
120
115
  - - '>='
121
116
  - !ruby/object:Gem::Version
122
117
  version: '0'
123
- prerelease: false
124
118
  type: :development
125
- - !ruby/object:Gem::Dependency
126
- name: bundler
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ~>
130
- - !ruby/object:Gem::Version
131
- version: '1.5'
132
- requirement: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - ~>
135
- - !ruby/object:Gem::Version
136
- version: '1.5'
137
119
  prerelease: false
138
- type: :development
139
- - !ruby/object:Gem::Dependency
140
- name: rake
141
120
  version_requirements: !ruby/object:Gem::Requirement
142
121
  requirements:
143
122
  - - '>='
144
123
  - !ruby/object:Gem::Version
145
124
  version: '0'
146
- requirement: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - '>='
149
- - !ruby/object:Gem::Version
150
- version: '0'
151
- prerelease: false
152
- type: :development
153
125
  - !ruby/object:Gem::Dependency
154
126
  name: sinatra
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '>='
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
127
  requirement: !ruby/object:Gem::Requirement
161
128
  requirements:
162
129
  - - '>='
163
130
  - !ruby/object:Gem::Version
164
131
  version: '0'
165
- prerelease: false
166
132
  type: :runtime
167
- - !ruby/object:Gem::Dependency
168
- name: sinatra-reloader
133
+ prerelease: false
169
134
  version_requirements: !ruby/object:Gem::Requirement
170
135
  requirements:
171
136
  - - '>='
172
137
  - !ruby/object:Gem::Version
173
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sinatra-reloader
174
141
  requirement: !ruby/object:Gem::Requirement
175
142
  requirements:
176
143
  - - '>='
177
144
  - !ruby/object:Gem::Version
178
145
  version: '0'
179
- prerelease: false
180
146
  type: :runtime
181
- - !ruby/object:Gem::Dependency
182
- name: faraday
147
+ prerelease: false
183
148
  version_requirements: !ruby/object:Gem::Requirement
184
149
  requirements:
185
150
  - - '>='
186
151
  - !ruby/object:Gem::Version
187
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: faraday
188
155
  requirement: !ruby/object:Gem::Requirement
189
156
  requirements:
190
157
  - - '>='
191
158
  - !ruby/object:Gem::Version
192
159
  version: '0'
193
- prerelease: false
194
160
  type: :runtime
195
- - !ruby/object:Gem::Dependency
196
- name: trollop
161
+ prerelease: false
197
162
  version_requirements: !ruby/object:Gem::Requirement
198
163
  requirements:
199
164
  - - '>='
200
165
  - !ruby/object:Gem::Version
201
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: trollop
202
169
  requirement: !ruby/object:Gem::Requirement
203
170
  requirements:
204
171
  - - '>='
205
172
  - !ruby/object:Gem::Version
206
173
  version: '0'
207
- prerelease: false
208
174
  type: :runtime
209
- - !ruby/object:Gem::Dependency
210
- name: rake
175
+ prerelease: false
211
176
  version_requirements: !ruby/object:Gem::Requirement
212
177
  requirements:
213
178
  - - '>='
214
179
  - !ruby/object:Gem::Version
215
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: mustache
216
183
  requirement: !ruby/object:Gem::Requirement
217
184
  requirements:
218
185
  - - '>='
219
186
  - !ruby/object:Gem::Version
220
- version: '0'
221
- prerelease: false
187
+ version: 0.99.5
222
188
  type: :runtime
223
- - !ruby/object:Gem::Dependency
224
- name: mustache
189
+ prerelease: false
225
190
  version_requirements: !ruby/object:Gem::Requirement
226
191
  requirements:
227
192
  - - '>='
228
193
  - !ruby/object:Gem::Version
229
194
  version: 0.99.5
195
+ - !ruby/object:Gem::Dependency
196
+ name: alephant-support
230
197
  requirement: !ruby/object:Gem::Requirement
231
198
  requirements:
232
199
  - - '>='
233
200
  - !ruby/object:Gem::Version
234
- version: 0.99.5
235
- prerelease: false
201
+ version: '0'
236
202
  type: :runtime
237
- - !ruby/object:Gem::Dependency
238
- name: alephant-support
203
+ prerelease: false
239
204
  version_requirements: !ruby/object:Gem::Requirement
240
205
  requirements:
241
206
  - - '>='
242
207
  - !ruby/object:Gem::Version
243
208
  version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: alephant-renderer
244
211
  requirement: !ruby/object:Gem::Requirement
245
212
  requirements:
246
213
  - - '>='
247
214
  - !ruby/object:Gem::Version
248
215
  version: '0'
249
- prerelease: false
250
216
  type: :runtime
251
- - !ruby/object:Gem::Dependency
252
- name: alephant-publisher
217
+ prerelease: false
253
218
  version_requirements: !ruby/object:Gem::Requirement
254
219
  requirements:
255
220
  - - '>='
256
221
  - !ruby/object:Gem::Version
257
222
  version: '0'
258
- requirement: !ruby/object:Gem::Requirement
259
- requirements:
260
- - - '>='
261
- - !ruby/object:Gem::Version
262
- version: '0'
263
- prerelease: false
264
- type: :runtime
265
- description:
223
+ description:
266
224
  email:
267
225
  - kenoir@gmail.com
268
226
  executables:
@@ -299,7 +257,7 @@ homepage: ''
299
257
  licenses:
300
258
  - MIT
301
259
  metadata: {}
302
- post_install_message:
260
+ post_install_message:
303
261
  rdoc_options: []
304
262
  require_paths:
305
263
  - lib
@@ -314,9 +272,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
272
  - !ruby/object:Gem::Version
315
273
  version: '0'
316
274
  requirements: []
317
- rubyforge_project:
318
- rubygems_version: 2.1.9
319
- signing_key:
275
+ rubyforge_project:
276
+ rubygems_version: 2.2.2
277
+ signing_key:
320
278
  specification_version: 4
321
279
  summary: Preview component templates
322
280
  test_files: