rails_api_response 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b066361b714562c86f833d37c7a8aa3db621ecdf
4
- data.tar.gz: 408c68b4102e9ccf96aa17b3adb5df9be860096c
3
+ metadata.gz: 58b532eb4ea856c833850db0c603c1ee28f480f6
4
+ data.tar.gz: 5dbfe1c57d5571d43773ddf8c5dd5d14c92f52fc
5
5
  SHA512:
6
- metadata.gz: 3cfde9a86a413c9c200ffbbb5131b903a43334e0d85041fb07eae0d38c9c881d1c3fe9109ce80f2b3ab508f4f2539ada01ee020aee3c392f64e7f84a70c3e3b2
7
- data.tar.gz: 9d47f3540f70b002a1277b93abf7641331d9e2e2481e66febf9d8cb80be96512da2d97df38f0b02b78d9a4d99a498f04d57745fa60d98218c7bd41006e54e756
6
+ metadata.gz: 1e8973d32468cb2a85fb9ae0dcaf2b8c7371d51099e831a3703863e57b2317b85d9985b5c101d34c151e1aedb9d6a042588535b880e610d04f86efe456f06436
7
+ data.tar.gz: aad9545c40c59424a5acc003e23e3bf2100fc0377553d82abf1233f7f1f574d32b7c3b02df300eda9750d5ce85f43a564d6c0f8fd7fb4881d5d077d3bc4792b5
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+
11
+ /.idea
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in api_response.gemspec
3
+ # Specify your gem's dependencies in rails_api_response.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # ApiResponse
1
+ # RailsApiResponse
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/api_response`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rails_api_response`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
5
  TODO: Delete this and the text above, and describe your gem
6
6
 
@@ -8,8 +8,8 @@ TODO: Delete this and the text above, and describe your gem
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- ```ruby
12
- gem 'api_response'
11
+ ```rails
12
+ gem 'rails_api_response'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install api_response
21
+ $ gem install rails_api_response
22
22
 
23
23
  ## Usage
24
24
 
@@ -32,6 +32,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/api_response.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rails_api_response.
36
36
 
37
37
  # api-response
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "api_response"
4
+ require "rails_api_response"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -0,0 +1,3 @@
1
+ module RailsApiResponse
2
+ VERSION = "1.0.0"
3
+ end
@@ -1,4 +1,4 @@
1
- require "api_response/version"
1
+ require "rails_api_response/version"
2
2
 
3
3
  module Core
4
4
  module ControllerHelpers
@@ -7,6 +7,6 @@ module Core
7
7
  end
8
8
  end
9
9
 
10
- module ApiResponse
10
+ module RailsApiResponse
11
11
  # Your code goes here...
12
12
  end
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'api_response/version'
4
+ require 'rails_api_response/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "rails_api_response"
8
- spec.version = ApiResponse::VERSION
8
+ spec.version = RailsApiResponse::VERSION
9
9
  spec.authors = ["Vinh Chau"]
10
10
  spec.email = ["cpvinh@gmail.com"]
11
11
 
@@ -14,15 +14,6 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/vinhcp/api-response"
15
15
  spec.license = 'MIT'
16
16
 
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- #if spec.respond_to?(:metadata)
20
- # spec.metadata['allowed_push_host'] = "https://rubygems.org/gems/api-response"
21
- #else
22
- # raise "RubyGems 2.0 or newer is required to protect against " \
23
- # "public gem pushes."
24
- #end
25
-
26
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
18
  f.match(%r{^(test|spec|features)/})
28
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_api_response
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinh Chau
@@ -49,13 +49,13 @@ files:
49
49
  - Gemfile
50
50
  - README.md
51
51
  - Rakefile
52
- - api_response.gemspec
53
52
  - bin/console
54
53
  - bin/setup
55
- - lib/api_response.rb
56
- - lib/api_response/version.rb
57
54
  - lib/core/controller_helpers/response_template.rb
58
55
  - lib/core/controller_helpers/responses.rb
56
+ - lib/rails_api_response.rb
57
+ - lib/rails_api_response/version.rb
58
+ - rails_api_response.gemspec
59
59
  homepage: https://github.com/vinhcp/api-response
60
60
  licenses:
61
61
  - MIT
@@ -1,3 +0,0 @@
1
- module ApiResponse
2
- VERSION = "0.1.0"
3
- end