representative_view 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +10 -0
- data/lib/representative_view/version.rb +1 -1
- data/lib/representative_view/view_helpers.rb +1 -1
- metadata +72 -36
data/.travis.yml
ADDED
@@ -39,7 +39,7 @@ module RepresentativeView
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def create_representative(format)
|
42
|
-
mime_type = Mime::Type.lookup_by_extension(format) || begin
|
42
|
+
mime_type = Mime::Type.lookup_by_extension(format.to_s) || begin
|
43
43
|
raise ArgumentError, "unrecognised format: #{format.inspect}"
|
44
44
|
end
|
45
45
|
case mime_type.to_s
|
metadata
CHANGED
@@ -1,48 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: representative_view
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 2
|
9
|
+
- 2
|
10
|
+
version: 1.2.2
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Mike Williams
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
+
|
18
|
+
date: 2012-02-27 00:00:00 +11:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
17
23
|
none: false
|
18
|
-
requirements:
|
24
|
+
requirements:
|
19
25
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 19
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 0
|
31
|
+
- 2
|
21
32
|
version: 1.0.2
|
22
|
-
|
33
|
+
requirement: *id001
|
23
34
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
35
|
+
name: representative
|
36
|
+
type: :runtime
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
40
|
+
requirements:
|
41
|
+
- - ">"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 3
|
47
|
+
- 0
|
32
48
|
version: 2.3.0
|
33
49
|
- - <
|
34
|
-
- !ruby/object:Gem::Version
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
hash: 63
|
52
|
+
segments:
|
53
|
+
- 4
|
54
|
+
- 0
|
55
|
+
- 0
|
35
56
|
version: 4.0.0
|
36
|
-
|
57
|
+
requirement: *id002
|
37
58
|
prerelease: false
|
38
|
-
|
59
|
+
name: actionpack
|
60
|
+
type: :runtime
|
39
61
|
description:
|
40
62
|
email: mdub@dogbiscuit.org
|
41
63
|
executables: []
|
64
|
+
|
42
65
|
extensions: []
|
66
|
+
|
43
67
|
extra_rdoc_files: []
|
44
|
-
|
68
|
+
|
69
|
+
files:
|
45
70
|
- .gitignore
|
71
|
+
- .travis.yml
|
46
72
|
- CHANGES.markdown
|
47
73
|
- Gemfile
|
48
74
|
- README.markdown
|
@@ -57,31 +83,41 @@ files:
|
|
57
83
|
- spec/fixtures/books.rb
|
58
84
|
- spec/representative_view/template_handler_spec.rb
|
59
85
|
- spec/spec_helper.rb
|
86
|
+
has_rdoc: true
|
60
87
|
homepage: http://github.com/mdub/representative_view
|
61
88
|
licenses: []
|
89
|
+
|
62
90
|
post_install_message:
|
63
91
|
rdoc_options: []
|
64
|
-
|
92
|
+
|
93
|
+
require_paths:
|
65
94
|
- lib
|
66
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
96
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
hash: 3
|
101
|
+
segments:
|
102
|
+
- 0
|
103
|
+
version: "0"
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
105
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
hash: 3
|
110
|
+
segments:
|
111
|
+
- 0
|
112
|
+
version: "0"
|
78
113
|
requirements: []
|
114
|
+
|
79
115
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.
|
116
|
+
rubygems_version: 1.5.3
|
81
117
|
signing_key:
|
82
118
|
specification_version: 3
|
83
119
|
summary: Builds XML and JSON from a single view template
|
84
|
-
test_files:
|
120
|
+
test_files:
|
85
121
|
- spec/fixtures/books.rb
|
86
122
|
- spec/representative_view/template_handler_spec.rb
|
87
123
|
- spec/spec_helper.rb
|