flexible_api_server 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module FlexibleApiServer
2
2
 
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
 
5
5
  end
@@ -7,8 +7,10 @@ require 'json'
7
7
  require 'flexible_api'
8
8
 
9
9
  class ActiveRecord::Base
10
- named_scope :limit, lambda { |l| { :limit => l } }
11
- named_scope :offset, lambda { |o| { :offset => o } }
10
+ if ActiveRecord::VERSION::MAJOR < 3
11
+ named_scope :limit, lambda { |l| { :limit => l } }
12
+ named_scope :offset, lambda { |o| { :offset => o } }
13
+ end
12
14
  end
13
15
 
14
16
  module FlexibleApiServer
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexible_api_server
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Crepezzi
@@ -77,7 +77,7 @@ dependencies:
77
77
  type: :runtime
78
78
  version_requirements: *id004
79
79
  - !ruby/object:Gem::Dependency
80
- name: activerecord
80
+ name: json
81
81
  prerelease: false
82
82
  requirement: &id005 !ruby/object:Gem::Requirement
83
83
  none: false
@@ -91,7 +91,7 @@ dependencies:
91
91
  type: :runtime
92
92
  version_requirements: *id005
93
93
  - !ruby/object:Gem::Dependency
94
- name: sinatra
94
+ name: activerecord
95
95
  prerelease: false
96
96
  requirement: &id006 !ruby/object:Gem::Requirement
97
97
  none: false
@@ -105,7 +105,7 @@ dependencies:
105
105
  type: :runtime
106
106
  version_requirements: *id006
107
107
  - !ruby/object:Gem::Dependency
108
- name: sinatra-respond_to
108
+ name: sinatra
109
109
  prerelease: false
110
110
  requirement: &id007 !ruby/object:Gem::Requirement
111
111
  none: false
@@ -118,6 +118,20 @@ dependencies:
118
118
  version: "0"
119
119
  type: :runtime
120
120
  version_requirements: *id007
121
+ - !ruby/object:Gem::Dependency
122
+ name: sinatra-respond_to
123
+ prerelease: false
124
+ requirement: &id008 !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
132
+ version: "0"
133
+ type: :runtime
134
+ version_requirements: *id008
121
135
  description: Server for exposing Flexible APIs
122
136
  email: john.crepezzi@gmail.com
123
137
  executables: []