to_api 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/to_api.rb +1 -1
- data/lib/to_api/version.rb +1 -1
- data/spec/to_api_spec.rb +11 -0
- metadata +64 -83
data/lib/to_api.rb
CHANGED
data/lib/to_api/version.rb
CHANGED
data/spec/to_api_spec.rb
CHANGED
@@ -63,7 +63,18 @@ describe '#to_api' do
|
|
63
63
|
let(:instance) { 8 }
|
64
64
|
it_should_behave_like "ignoring includes"
|
65
65
|
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe Float do
|
69
|
+
it "returns self" do
|
70
|
+
foo = 5.5
|
71
|
+
foo.to_api.should == foo
|
72
|
+
end
|
66
73
|
|
74
|
+
describe "ignoring includes" do
|
75
|
+
let(:instance) { 5.5 }
|
76
|
+
it_should_behave_like "ignoring includes"
|
77
|
+
end
|
67
78
|
end
|
68
79
|
|
69
80
|
describe Symbol do
|
metadata
CHANGED
@@ -1,88 +1,79 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: to_api
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 3
|
10
|
-
version: 1.1.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.4
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Shawn Anderson
|
14
9
|
- Ryan Fogle
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-05-22 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
23
16
|
name: activerecord
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 2
|
33
|
-
- 3
|
34
|
-
version: "2.3"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.3'
|
35
23
|
- - <
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
|
38
|
-
segments:
|
39
|
-
- 3
|
40
|
-
version: "3"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '3'
|
41
26
|
type: :development
|
42
|
-
version_requirements: *id001
|
43
|
-
- !ruby/object:Gem::Dependency
|
44
|
-
name: rspec
|
45
27
|
prerelease: false
|
46
|
-
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
29
|
none: false
|
48
|
-
requirements:
|
49
|
-
- -
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.3'
|
34
|
+
- - <
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '3'
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rspec
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - '='
|
43
|
+
- !ruby/object:Gem::Version
|
56
44
|
version: 1.3.1
|
57
45
|
type: :development
|
58
|
-
version_requirements: *id002
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: rake
|
61
46
|
prerelease: false
|
62
|
-
|
47
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
48
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
49
|
+
requirements:
|
50
|
+
- - '='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.3.1
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: rake
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
72
60
|
version: 0.8.7
|
73
61
|
type: :development
|
74
|
-
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.8.7
|
75
69
|
description: Helper for simplifying JSON api creation.
|
76
|
-
email:
|
70
|
+
email:
|
77
71
|
- shawn42@gmail.com
|
78
72
|
- github@atomicobject.com
|
79
73
|
executables: []
|
80
|
-
|
81
74
|
extensions: []
|
82
|
-
|
83
75
|
extra_rdoc_files: []
|
84
|
-
|
85
|
-
files:
|
76
|
+
files:
|
86
77
|
- .gitignore
|
87
78
|
- Gemfile
|
88
79
|
- README.md
|
@@ -92,40 +83,30 @@ files:
|
|
92
83
|
- spec/spec_helper.rb
|
93
84
|
- spec/to_api_spec.rb
|
94
85
|
- to_api.gemspec
|
95
|
-
has_rdoc: true
|
96
86
|
homepage: http://github.com/atomicobject/to_api
|
97
87
|
licenses: []
|
98
|
-
|
99
88
|
post_install_message:
|
100
89
|
rdoc_options: []
|
101
|
-
|
102
|
-
require_paths:
|
90
|
+
require_paths:
|
103
91
|
- lib
|
104
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
93
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
110
|
-
|
111
|
-
- 0
|
112
|
-
version: "0"
|
113
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
99
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
119
|
-
segments:
|
120
|
-
- 0
|
121
|
-
version: "0"
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
122
104
|
requirements: []
|
123
|
-
|
124
105
|
rubyforge_project: to_api
|
125
|
-
rubygems_version: 1.
|
106
|
+
rubygems_version: 1.8.21
|
126
107
|
signing_key:
|
127
108
|
specification_version: 3
|
128
109
|
summary: Helper for simplifying JSON api creation
|
129
|
-
test_files:
|
110
|
+
test_files:
|
130
111
|
- spec/spec_helper.rb
|
131
112
|
- spec/to_api_spec.rb
|