cnpq_ws 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +2 -0
- data/cnpq_ws.gemspec +26 -0
- data/lib/cnpq_ws/version.rb +3 -0
- data/lib/cnpq_ws.rb +23 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d578e137b83659f9b4c5ccffe6d024844da8a22b
|
4
|
+
data.tar.gz: 0931fdc6db7af2fc8b493334fc31c8be27d98057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 264ac40cd52b55cb03f63c23ccd2dc1b8279758c2a3435a85a8569b3e85d844e2b19132aaedaac4a47f508c3a76d374f20a9371fb451f23e831fe1433a115e2e
|
7
|
+
data.tar.gz: 2530c5be80aceaefc09cc1e8b2c27b30b214388303c810fc26f90034b32b9fe679720ccdd052e216eb7de2f25c0313af2daa36cfbd35592a1a146cc04546d2c5
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Renato Carvalho de Souza
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# CnpqWs
|
2
|
+
|
3
|
+
Gem de apoio a respostas do serviço web do CPNq.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Adicione no Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'cnpq_ws'
|
11
|
+
```
|
12
|
+
|
13
|
+
E execute:
|
14
|
+
|
15
|
+
$ bundle install
|
16
|
+
|
17
|
+
Ou instale diretamente:
|
18
|
+
|
19
|
+
$ gem install cnpq_ws
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it ( https://github.com/[my-github-username]/cnpq_ws/fork )
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/cnpq_ws.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cnpq_ws/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cnpq_ws"
|
8
|
+
spec.version = CnpqWs::VERSION
|
9
|
+
spec.authors = ["Renato Carvalho de Souza"]
|
10
|
+
spec.email = ["renato.souza@ifb.edu.br"]
|
11
|
+
spec.summary = %q{Gem de suporte a respostas do serviço web do CNPq.}
|
12
|
+
spec.description = %q{Write a longer description. Optional.}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
|
24
|
+
spec.add_runtime_dependency 'rubyzip', '~> 1.1', '>= 1.1.7'
|
25
|
+
spec.add_runtime_dependency 'savon', '~> 2.10', '>= 2.10.1'
|
26
|
+
end
|
data/lib/cnpq_ws.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require "cnpq_ws/version"
|
2
|
+
require "cnpq_ws/railtie" if defined?(Rails)
|
3
|
+
require "cnpq_ws/curriculo_lattes"
|
4
|
+
|
5
|
+
module CnpqWs
|
6
|
+
def self.setup
|
7
|
+
yield self
|
8
|
+
end
|
9
|
+
|
10
|
+
def tem_curriculo_lattes
|
11
|
+
include CurriculoLattes
|
12
|
+
end
|
13
|
+
|
14
|
+
mattr_accessor :cnpq_login
|
15
|
+
@@cnpq_login = nil
|
16
|
+
|
17
|
+
mattr_accessor :curriculo_end_point
|
18
|
+
@@curriculo_end_point = "http://servicosweb.cnpq.br/srvcurriculo/WSCurriculo"
|
19
|
+
|
20
|
+
mattr_accessor :curriculo_wsdl
|
21
|
+
@@curriculo_wsdl = "https://servicosweb.cnpq.br/srvcurriculo/WSCurriculo?wsdl"
|
22
|
+
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cnpq_ws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renato Carvalho de Souza
|
@@ -84,7 +84,15 @@ email:
|
|
84
84
|
executables: []
|
85
85
|
extensions: []
|
86
86
|
extra_rdoc_files: []
|
87
|
-
files:
|
87
|
+
files:
|
88
|
+
- ".gitignore"
|
89
|
+
- Gemfile
|
90
|
+
- LICENSE.txt
|
91
|
+
- README.md
|
92
|
+
- Rakefile
|
93
|
+
- cnpq_ws.gemspec
|
94
|
+
- lib/cnpq_ws.rb
|
95
|
+
- lib/cnpq_ws/version.rb
|
88
96
|
homepage: ''
|
89
97
|
licenses:
|
90
98
|
- MIT
|