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 ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ env:
7
+ - ACTIONPACK_VERSION="~> 2.3.0"
8
+ - ACTIONPACK_VERSION="~> 3.0.0"
9
+ - ACTIONPACK_VERSION="~> 3.1.0"
10
+ - ACTIONPACK_VERSION="~> 3.2.0"
@@ -1,3 +1,3 @@
1
1
  module RepresentativeView
2
- VERSION = "1.2.1".freeze
2
+ VERSION = "1.2.2".freeze
3
3
  end
@@ -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
- version: 1.2.1
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
- date: 2012-02-17 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: representative
16
- requirement: &70357628933980 !ruby/object:Gem::Requirement
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
- type: :runtime
33
+ requirement: *id001
23
34
  prerelease: false
24
- version_requirements: *70357628933980
25
- - !ruby/object:Gem::Dependency
26
- name: actionpack
27
- requirement: &70357628933460 !ruby/object:Gem::Requirement
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
- type: :runtime
57
+ requirement: *id002
37
58
  prerelease: false
38
- version_requirements: *70357628933460
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
- files:
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
- require_paths:
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
- version: '0'
72
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
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.8.10
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